/* The inner pages' shared parts: the picture banner at the top, picture-and-text rows, an article's text,
   the questions list and numbered steps. */
.page-hero { position: relative; isolation: isolate; min-height: min(56svh, 620px); display: grid; align-items: end; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--bg) 72%, transparent) 100%), linear-gradient(90deg, color-mix(in srgb, var(--bg) 60%, transparent), transparent 70%); }
.page-hero .wrap { padding-block: 96px calc(48px + var(--b) * 3); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.8rem); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.page-hero .lead { color: var(--text); }

/* A picture beside its text, the sides swapping row by row */
.row { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: 48px; }
.row > * { min-width: 0; }
.row:nth-child(even) > :first-child { order: 2; }
.row img, .row .drawn { border: var(--border); border-radius: var(--radius); box-shadow: var(--card-shadow); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.row .tag { margin-bottom: 14px; }
.row ul { padding-left: 1.2em; color: var(--muted); }
.row li { margin-bottom: 6px; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row:nth-child(even) > :first-child { order: 0; } }

/* An article: a readable column with full-width pictures */
.article { width: min(72ch, 100% - 32px); margin-inline: auto; padding-block: 56px 96px; font-size: 1.12rem; }
.article h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article figure { margin: 32px 0; }
.article figure img { border: var(--border); border-radius: var(--radius); }
.article figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.byline { color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.95rem; }

/* Questions that open on a click or Enter (native details, no script) */
.faq details { border-bottom: var(--border); padding-block: 6px; }
.faq summary { cursor: pointer; font: 700 1.1rem/1.4 "Chakra Petch", sans-serif; padding: 14px 0; list-style-position: outside; }
.faq details p { color: var(--muted); max-width: 70ch; }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps li { counter-increment: step; background: var(--panel); border: var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--card-shadow); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 2rem/1 "Chakra Petch", sans-serif; color: var(--accent-text); margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }

/* The newest post, large: picture and text side by side */
.feature { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; margin-block: 40px; }
.feature img { height: 100%; object-fit: cover; aspect-ratio: auto; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature img { aspect-ratio: 16 / 9; } }
.row ul { list-style: square; }
.row li::marker { color: var(--accent); }
.row .kicker { margin-bottom: 12px; }
