/* plugpress.io v14 pages (2026-11-22): the reading pages and support.

   Fahim: "the support page / blog single page / page single need redesign".
   The same language as site.css (the v14 homepage and product pages): one
   face, neutral greys, hairline rules, soft grey panels, pill buttons, no
   shadows and no product colour.

   Loads last (after blog.css), so it wins where the older rules still reach.
   Tokens only: no raw hex, weights only via --fw-*. */

/* ---------- reading pages: single post (single.php) and plain page (page.php) ---------- */
.pp-art {
	--art-prose: 720px;
	--art-rail: 232px;
	--art-gap: clamp(48px, 6vw, 96px);
}
/* prose and rail centred as one block; the header shares its left edge */
.pp-art__wrap { max-width: calc(var(--art-prose) + var(--art-gap) + var(--art-rail)); margin-inline: auto; }

.pp-art__head { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 4vw, 56px); }
.pp-art__head .pp-crumbs { margin-bottom: 24px; }
.pp-art__head .pp-crumbs span { margin-inline: 4px; color: var(--ink-faint); }
.pp-art__title {
	margin: 0;
	max-width: 17em;
	font-size: clamp(36px, 4.8vw, 60px);
	line-height: 1.05;
	letter-spacing: -0.022em;
	font-weight: var(--fw-medium);
	text-wrap: balance;
}
.pp-art__dek {
	margin: 22px 0 0;
	max-width: var(--art-prose);
	color: var(--ink-soft);
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.55;
}
.pp-art__meta { margin: 20px 0 0; color: var(--ink-soft); font-size: 15px; }
.pp-art__meta a { color: var(--ink); font-weight: var(--fw-medium); }
.pp-art__by { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.pp-art__by p { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.35; }
.pp-art__by a { color: var(--ink); font-weight: var(--fw-medium); }
.pp-art__by a:hover { color: var(--blue); text-decoration: none; }
.pp-art__by .pp-art__meta { margin: 0; font-size: 14.5px; }
.pp-art__avatar { width: 40px; height: 40px; border-radius: 50%; }

.pp-art__cover { margin-bottom: clamp(40px, 5vw, 64px); }
.pp-art__cover img { display: block; width: 100%; height: auto; border-radius: 24px; }

.pp-art__body {
	display: grid;
	grid-template-columns: minmax(0, var(--art-prose)) var(--art-rail);
	column-gap: var(--art-gap);
	padding-top: clamp(36px, 4vw, 56px);
	border-top: 1px solid var(--line);
}
.pp-art__body--solo { grid-template-columns: minmax(0, var(--art-prose)); }

/* the rail: sticky beside the prose from 1024, above it (folded) below */
.pp-art__rail { min-width: 0; }
.pp-art .post-rail__sticky { top: calc(68px + var(--wp-admin--admin-bar--height, 0px) + 32px); max-height: calc(100dvh - 68px - var(--wp-admin--admin-bar--height, 0px) - 64px); }
.pp-art .toc__label { margin-bottom: 12px; color: var(--ink-faint); font-size: 13px; font-weight: var(--fw-medium); letter-spacing: .02em; }
.pp-art .toc__link { padding-block: 6px; font-size: 14.5px; }
.pp-art .post-rail__share { border-top-color: var(--line); }
.pp-art .post-rail__copy { height: 36px; border-color: var(--line-strong); font-size: 14px; }

/* the prose */
.pp-prose { min-width: 0; color: var(--ink); font-size: 18px; line-height: 1.7; }
.pp-prose > * { margin-block: 0; }
.pp-prose > * + * { margin-top: 1.15em; }
.pp-prose > * + h2 { margin-top: 2.2em; }
.pp-prose > * + h3 { margin-top: 1.8em; }
.pp-prose > :is(h2, h3, h4) + * { margin-top: .6em; }
.pp-prose :is(h2, h3, h4) { scroll-margin-top: calc(68px + var(--wp-admin--admin-bar--height, 0px) + 24px); text-wrap: balance; }
.pp-prose h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.015em; font-weight: var(--fw-regular); }
.pp-prose h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.005em; font-weight: var(--fw-medium); }
.pp-prose h4 { font-size: 18px; line-height: 1.4; font-weight: var(--fw-medium); }
.pp-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.pp-prose a:hover { color: var(--blue); text-decoration-color: currentColor; }
.pp-prose :is(ul, ol) { padding-left: 1.3em; }
.pp-prose li + li { margin-top: .45em; }
.pp-prose li::marker { color: var(--ink-faint); }
.pp-prose blockquote { margin-inline: 0; padding-left: 22px; border-left: 2px solid var(--line-strong); color: var(--ink-soft); }
.pp-prose blockquote > :first-child { margin-top: 0; }
.pp-prose blockquote cite { display: block; margin-top: 8px; font-size: 15px; font-style: normal; }
.pp-prose :not(pre) > code { padding: .12em .38em; border-radius: 6px; background: var(--surface-alt); font-family: var(--font-mono); font-size: .86em; }
.pp-prose pre { overflow-x: auto; padding: 20px 22px; border-radius: 16px; background: var(--surface-alt); font-family: var(--font-mono); font-size: 14.5px; line-height: 1.6; }
.pp-prose pre code { font-size: inherit; }
.pp-prose figure { margin-inline: 0; }
.pp-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.pp-prose figcaption { margin-top: 10px; color: var(--ink-faint); font-size: 14px; line-height: 1.5; }
.pp-prose hr { height: 0; border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.pp-prose details { padding: 16px 0; border-top: 1px solid var(--line); }
.pp-prose details + details { margin-top: 0; }
.pp-prose details:last-of-type { border-bottom: 1px solid var(--line); }
.pp-prose summary { cursor: pointer; font-weight: var(--fw-medium); }
.pp-prose details > :not(summary) { margin: 10px 0 0; color: var(--ink-soft); }

/* tables: hairlines only, scroll sideways on a phone instead of squashing */
/* every table sits in .pp-scroll (pp_scroll_tables(), inc/toc.php) */
.pp-prose .pp-scroll { overflow-x: auto; }
.pp-prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.pp-prose table.has-fixed-layout { table-layout: auto; }
.pp-prose :is(th, td) { padding: 12px 20px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pp-prose :is(th, td):last-child { padding-right: 0; }
.pp-prose thead th,
.pp-prose tr:first-child th { border-bottom-color: var(--line-strong); color: var(--ink-soft); font-size: 14px; font-weight: var(--fw-medium); }
.pp-prose td:first-child { font-weight: var(--fw-medium); }
.pp-prose .wp-block-table figcaption { margin-top: 12px; }

/* the author, after the prose */
.pp-art__end { padding-top: clamp(48px, 5vw, 72px); }
.pp-art__end .author-card {
	display: flex;
	gap: 16px;
	max-width: var(--art-prose);
	margin: 0;
	padding: 28px 0 0;
	border: 0;
	border-top: 1px solid var(--line);
	border-radius: 0;
	background: none;
}
.pp-art__end .author-card__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; }
.pp-art__end .author-card__role { display: block; color: var(--ink-faint); font-size: 13px; font-weight: var(--fw-medium); }
.pp-art__end .author-card__name { color: var(--ink); font-size: 18px; font-weight: var(--fw-medium); }
.pp-art__end .author-card__bio { margin: 6px 0 10px; max-width: 520px; color: var(--ink-soft); font-size: 16px; }
.pp-art__end .author-card__more { color: var(--blue); font-size: 15px; font-weight: var(--fw-medium); }

/* what to read next: the homepage's tiles */
.pp-art-next { padding-block: clamp(80px, 9vw, 120px); }
.pp-tile--post { position: relative; min-height: 0; }
.pp-tile--post h3 { font-size: 20px; line-height: 1.3; text-wrap: balance; }
.pp-tile--post h3 a { color: inherit; }
.pp-tile--post h3 a:hover { text-decoration: none; }
/* the title is the one link; this stretches it over the tile */
.pp-tile--post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pp-tile--post h3 a:focus-visible { outline: none; }
.pp-tile--post h3 a:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 2px; }
.pp-tile--post:hover { background: var(--surface-alt-2); }
.pp-tile__kicker { margin: 0 0 4px; color: var(--ink-faint); font-size: 13.5px; font-weight: var(--fw-medium); }

@media (max-width: 1023px) {
	.pp-art__body { grid-template-columns: minmax(0, 1fr); }
	.pp-art__rail { order: -1; margin-bottom: 32px; }
	.pp-art .post-rail__sticky { position: static; max-height: none; }
	/* blog.css folds the outline into a card here; v14 makes it a soft grey panel */
	.pp-art .post-rail .toc { margin-bottom: 0; border: 0; border-radius: 16px; background: var(--surface-alt); }
	.pp-art .toc__label { padding: 14px 18px; color: var(--ink); font-size: 15px; letter-spacing: 0; }
	.pp-art .toc__list { margin: 0 18px 14px; }
}
@media (max-width: 600px) {
	.pp-prose { font-size: 17px; }
	.pp-prose table { min-width: 560px; }
}

/* ---------- support (page-support.php, parts/sections/support-form.php) ----------
   2026-11-22, the simple version Fahim approved as a mock: one centred column,
   labels above fields, two dropdowns, plain white inputs, one button. */
.pp-ct { max-width: 640px; margin-inline: auto; padding: clamp(56px, 7vw, 96px) 20px clamp(72px, 8vw, 112px); }
.pp-ct__h1 { margin: 0; font-size: clamp(34px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.02em; font-weight: var(--fw-medium); text-wrap: balance; }
.pp-ct__who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.pp-ct__who img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pp-ct__who p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.45; }
.pp-ct__body { margin-top: 40px; scroll-margin-top: 96px; }

.pp-ct__form { display: flex; flex-direction: column; gap: 22px; }
.pp-ct__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.pp-ct__field { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pp-ct__field label { color: var(--ink); font-size: 15px; font-weight: var(--fw-medium); }

.pp-ct__field :is(input, select, textarea) {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 12px;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line-strong);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	transition: box-shadow .15s ease;
}
.pp-ct__field :is(input, select) { height: 48px; padding: 0 14px; }
.pp-ct__field textarea { min-height: 160px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.pp-ct__field textarea::placeholder { color: var(--ink-faint); }
.pp-ct__field :is(input, select, textarea):hover { box-shadow: inset 0 0 0 1px var(--ink-faint); }
.pp-ct__field :is(input, select, textarea):focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.pp-ct__field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--mac-red); }

/* a native select with our own chevron */
.pp-ct__select { position: relative; display: block; }
.pp-ct__select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.pp-ct__select select:invalid { color: var(--ink-soft); }
.pp-ct__select option { color: var(--ink); }
.pp-ct__chev { position: absolute; right: 14px; top: 16px; color: var(--ink-soft); pointer-events: none; }

.pp-ct__send { padding-top: 4px; }
.pp-ct__send .pp-btn { height: 50px; padding: 0 26px; border: 0; font-family: inherit; cursor: pointer; }
.pp-ct__small { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.pp-ct__notice { margin: 0 0 28px; padding: 14px 18px; border-radius: 12px; font-size: 15.5px; line-height: 1.5; }
.pp-ct__notice.is-ok { background: var(--surface-alt); color: var(--ink); }
.pp-ct__notice.is-error { box-shadow: inset 0 0 0 2px var(--mac-red); color: var(--ink); }

.pp-ct__foot { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
.pp-ct__foot a { color: var(--ink); font-weight: var(--fw-medium); }
.pp-ct__foot a:hover { color: var(--blue); text-decoration: none; }

@media (max-width: 560px) {
	.pp-ct__row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.pp-ct__field :is(input, select, textarea) { transition: none; }
}
