/* Stand-alone pages (built by pages-src/build.py). Loads after styles.css and reuses its colours, type and buttons.
   Nothing here animates on scroll: every word is on the page without JavaScript, for readers and for search engines. */

.pg-hero { background: var(--paper-tint); border-bottom: 1px solid var(--line); padding: clamp(40px, 7vh, 80px) 0 clamp(40px, 6vh, 68px); }
.pg-crumbs { font-size: 0.9rem; color: var(--body); margin-bottom: 22px; }
.pg-crumbs a { color: var(--teal-text); text-decoration: underline; text-decoration-color: rgba(210, 153, 40, 0.7); text-underline-offset: 3px; }
.pg-crumbs span { margin: 0 8px; color: var(--line-strong); }
.pg-h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); max-width: 18ch; }
.pg-hero .lede { margin-top: 20px; max-width: 720px; color: var(--ink); }
.pg-hero .cta-row { margin-top: 28px; }
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.pg-hero-grid .pg-h1 { max-width: 14ch; }

.pg-sec { padding: clamp(48px, 7vh, 84px) 0; }
.pg-sec + .pg-sec { border-top: 1px solid var(--line); }
.pg-sec.is-tint { background: var(--paper-tint); }
.pg-sec > .container > h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: var(--ink); line-height: 1.02; font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 24ch; margin-bottom: 18px; }
.pg-text { max-width: 760px; }
.pg-text p { margin-top: 14px; font-size: 1.15rem; line-height: 1.65; }
.pg-text p:first-child { margin-top: 0; }
.pg-text strong { color: var(--ink); }
.pg-text a, .pg-list a, .pg-faq a, .pg-src a { color: var(--teal-text); text-decoration: underline; text-decoration-color: rgba(210, 153, 40, 0.7); text-underline-offset: 3px; }
.pg-text a:hover, .pg-list a:hover, .pg-faq a:hover, .pg-src a:hover { color: var(--teal); }
.pg-list { list-style: none; max-width: 760px; margin-top: 18px; display: grid; gap: 10px; }
.pg-list li { position: relative; padding-left: 28px; font-size: 1.12rem; line-height: 1.55; }
.pg-list li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.pg-list strong { color: var(--ink); }
/* space between one block and the next inside a section */
.pg-sec .container > * + .pg-text, .pg-sec .container > .pg-text + * { margin-top: 20px; }

/* numbered steps: one column of wide rows, easy to read at any size */
.pg-steps { list-style: none; counter-reset: pg; display: grid; gap: 14px; margin-top: 22px; max-width: 860px; }
.pg-steps li { counter-increment: pg; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px 20px 78px; }
.pg-steps li::before { content: counter(pg, decimal-leading-zero); position: absolute; left: 20px; top: 16px; font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--gold); }
.pg-steps h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.3rem; color: var(--ink); line-height: 1.1; }
.pg-steps p { margin-top: 6px; font-size: 1.08rem; line-height: 1.55; }

/* cards */
.pg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.pg-cards.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 24px; color: inherit; text-decoration: none; }
a.pg-card { transition: transform 0.2s ease, border-color 0.2s ease; }
a.pg-card:hover { transform: translateY(-3px); border-color: rgba(210, 153, 40, 0.7); }
a.pg-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.pg-card h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.25rem; line-height: 1.1; color: var(--ink); }
.pg-card p { margin-top: 8px; font-size: 1.05rem; line-height: 1.55; }
.pg-card .pg-more { display: inline-block; margin-top: 12px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; color: var(--teal-text); }

/* sourced numbers */
.pg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.pg-stat { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px 22px; }
.pg-stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1; color: var(--teal-text); }
.pg-stat p { margin-top: 10px; font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.pg-stat small { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.92rem; line-height: 1.45; color: var(--body); }
.pg-src { list-style: decimal; margin-top: 22px; max-width: 900px; padding-left: 26px; display: grid; gap: 10px; font-size: 1rem; line-height: 1.5; }
.pg-src a { overflow-wrap: anywhere; }

/* the one real result */
.pg-result { margin-top: 24px; max-width: 760px; background: var(--teal-dark-bg); color: #fff; border-radius: 14px; padding: 26px 28px; }
.pg-result b { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1; color: var(--gold-light); }
.pg-result p { margin-top: 10px; font-size: 1.05rem; line-height: 1.55; color: rgba(255, 255, 255, 0.86); }

/* video */
.pg-video { max-width: 900px; margin-top: 24px; }
.pg-video .cv-frame { background: var(--teal-dark-bg); }
.pg-video-cap { margin-top: 12px; font-size: 0.95rem; color: var(--body); }
.pg-hero .pg-video { margin-top: 0; }

/* questions and answers */
.pg-faq { max-width: 860px; margin-top: 20px; display: grid; gap: 10px; }
.pg-faq details { background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--radius); }
.pg-faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative; font-weight: 700; font-size: 1.1rem; line-height: 1.35; color: var(--ink); }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--teal-text); }
.pg-faq details[open] summary::after { content: "\2013"; }
.pg-faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: var(--radius); }
.pg-faq .pg-a { padding: 0 20px 20px; font-size: 1.12rem; line-height: 1.6; }
.pg-faq .pg-a p + p { margin-top: 10px; }

/* closing band */
.pg-cta { background: var(--teal-deep); color: #fff; padding: clamp(40px, 6vh, 64px) 0; }
.pg-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px; }
.pg-cta-inner > div { max-width: 660px; }
.pg-cta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.1; color: #fff; }
.pg-cta p { margin-top: 8px; font-size: 1.06rem; line-height: 1.5; color: rgba(255, 255, 255, 0.84); }

/* 404 */
.pg-404 { text-align: center; padding: clamp(64px, 12vh, 140px) 0; }
.pg-404 .pg-h1 { margin-inline: auto; }
.pg-404 .lede { margin: 18px auto 0; }
.pg-404 .cta-row { justify-content: center; }

@media (max-width: 960px) {
  .pg-hero-grid { grid-template-columns: 1fr; }
  .pg-cards, .pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pg-cards, .pg-cards.is-two, .pg-stats { grid-template-columns: 1fr; }
  .pg-steps li { padding: 58px 18px 18px; }
  .pg-steps li::before { top: 16px; left: 18px; }
  .pg-text p, .pg-list li, .pg-faq .pg-a { font-size: 1.04rem; }
  .pg-faq summary { font-size: 1.04rem; padding: 16px 48px 16px 16px; }
  .pg-faq summary::after { right: 16px; }
  .pg-cta .btn { width: 100%; }
}
