/* Athena website: subpage styles (privacy.html, support.html, 404.html), loaded after styles.css.
   Spec: docs/WEBSITE_DESIGN.md §8. Same tokens, header and footer as the home page. */

/* ============ HEAD BAND: a dawn strip, its small sun whole on the hills ============ */
.doc-band { position: relative; isolation: isolate; min-height: 200px; padding-bottom: 104px; overflow: hidden; background: linear-gradient(#FBEFE9, #F3E4E5); }
.doc-band-sky { position: absolute; inset: auto 0 0; z-index: -1; height: 96px; }
.doc-band-sky img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 100%; }
.doc-band-sky--flip img { transform: scaleX(-1); }
.doc-band-inner { padding-top: 34px; }
.doc-band h1 { font-size: min(44px, 8.6vw); line-height: 1.05; overflow-wrap: break-word; hyphens: auto; }
.doc-date, .doc-quick { margin-top: 8px; font-size: var(--fs-small); font-weight: 600; color: var(--muted-ink); }
.doc-quick .text-link { display: inline; min-height: 0; font-weight: 700; color: var(--ink); }   /* wraps as one run, one underline */
.doc-quick .arrow { display: inline; vertical-align: -.16em; }
@media (min-width: 600px) and (max-width: 1179px) and (min-height: 501px) {
  .doc-band { min-height: 250px; padding-bottom: 118px; } .doc-band-sky { height: 110px; } .doc-band-inner { padding-top: 44px; } .doc-band h1 { font-size: 56px; }
}
@media (min-width: 1180px) {
  .doc-band { min-height: 300px; padding-bottom: 128px; } .doc-band-sky { height: 120px; } .doc-band-inner { padding-top: 48px; } .doc-band h1 { font-size: 68px; }
}

/* ============ LAYOUT: contents list + a 68ch reading column ============ */
.doc-layout { padding-block: 32px var(--sp); }
.toc { display: none; }
.toc-details { margin-bottom: 32px; border-radius: 24px; background: var(--card); box-shadow: 0 10px 30px var(--shadow); }
.toc-details summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 20px; cursor: pointer; list-style: none; font-weight: 700; }
.toc-details summary::-webkit-details-marker { display: none; }
.toc-details[open] summary .chev { transform: rotate(180deg); }
.toc-details ol { padding: 0 20px 16px; }
.toc a, .toc-details a { display: flex; align-items: center; min-height: 40px; font-weight: 600; text-decoration: none; color: var(--ink); }
.toc a:hover, .toc-details a:hover { text-decoration: underline 2px var(--apricot); text-underline-offset: 5px; }
.toc a[aria-current="true"], .toc-details a[aria-current="true"] { color: var(--up-text); font-weight: 800; }
@media (min-width: 600px) and (max-width: 1179px) and (orientation: portrait) {
  .toc-details ol { columns: 2; column-gap: 24px; }
  .toc-details li { break-inside: avoid; }
}
@media (min-width: 600px) and (orientation: landscape) and (min-height: 501px), (min-width: 1180px) {
  .doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 56px; align-items: start; padding-top: 48px; }
  .toc { display: block; position: sticky; top: 88px; }
  .toc h2 { font-family: var(--ff); font-size: 15px; font-weight: 700; color: var(--wait-text); margin-bottom: 8px; }
  .toc a { min-height: 36px; padding-left: 14px; border-left: 2px solid var(--sky-deep); }
  .toc a[aria-current="true"] { border-left-color: var(--up-text); }
  .toc-details { display: none; }
}
@media (min-width: 1180px) { .doc-layout { grid-template-columns: 260px minmax(0, 1fr); column-gap: 72px; } }

/* ============ PROSE ============ */
.prose { max-width: 68ch; font-size: 17px; line-height: 1.6; }
.prose > * + *, .doc-card > * + * { margin-top: 16px; }
.prose h2 { margin-top: 56px; font-size: 30px; line-height: 1.12; }
.prose h2 + * { margin-top: 14px; }
.prose ul { display: grid; gap: 10px; padding-left: 22px; list-style: disc; }
.prose ul li::marker { color: var(--sun); }
.prose a { font-weight: 600; }
.prose code { font-size: .92em; padding: 1px 6px; border-radius: 6px; background: var(--warm); }
.doc-lead { font-size: var(--fs-lead); line-height: 1.5; font-weight: 500; }
@media (min-width: 600px) { .prose { font-size: 18px; line-height: 1.66; } .prose h2 { font-size: 34px; } }

.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 24px; background: var(--peach); line-height: 1.55; }
.callout .icon { stroke: var(--wait-text); }
.callout--mint { background: var(--mint); }
.callout--mint .icon { stroke: var(--up-text); }
.placeholder { text-decoration: underline dotted 2px var(--wait-text); text-underline-offset: 4px; color: var(--wait-text); font-weight: 600; }

.doc-short { margin-top: 32px; padding: 8px 24px 26px; border-radius: 24px; background: var(--mint); }
.doc-short h2 { margin-top: 18px; }
.checks { list-style: none !important; padding-left: 0 !important; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23276D43' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Tables: a real table from TP up; on M each row becomes a card, keeping table roles for screen readers */
.table-wrap { overflow-x: auto; border-radius: 20px; background: var(--card); box-shadow: 0 8px 24px rgb(127 169 204 / .22); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgb(167 208 238 / .5); }
.prose th { font-weight: 800; background: var(--sky); }
@media (max-width: 599px) {
  .table-wrap { background: none; box-shadow: none; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { display: block; margin-bottom: 12px; padding: 6px 4px; border-radius: 20px; background: var(--card); box-shadow: 0 6px 18px rgb(127 169 204 / .2); }
  .prose td { display: block; border: 0; padding: 6px 14px; }
  .prose td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 800; color: var(--wait-text); }
}

/* ============ SUPPORT: topic cards, FAQ details, contact ============ */
.doc-cards { display: grid; gap: 20px; margin-top: 32px; }
.doc-card { padding: 4px var(--pad-card) 20px; border-radius: 24px; background: var(--card); box-shadow: 0 12px 32px rgb(127 169 204 / .24); }
.doc-card h2 { margin-top: 20px; font-size: 28px; }
.doc-card--contact { background: var(--peach); }
.doc-faq details { border-top: 1px solid rgb(167 208 238 / .6); }
.doc-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 0; cursor: pointer; list-style: none; font-weight: 700; line-height: 1.4; }
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq details[open] > summary .chev { transform: rotate(180deg); }
.answer { padding-bottom: 16px; }
.answer > * + * { margin-top: 10px; }
.steps-list { list-style: decimal; padding-left: 22px; display: grid; gap: 8px; }
.contact-card { display: grid; gap: 14px; justify-items: start; margin-top: 12px; }
.contact-card b, .contact-card span { display: block; }
@media (min-width: 1180px) {
  .page-support .prose { max-width: none; }
  .page-support .doc-lead, .doc-card--wide > p, .doc-card--wide > ol, .doc-card--contact > p { max-width: 68ch; }
  .doc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .doc-card--wide, .doc-card--contact { grid-column: 1 / -1; }
}

/* The footer pause toggle has nothing to pause on the document pages (404 keeps it: its sky moves) */
body.page-doc .footer-motion { display: none; }

/* ============ 404: night sky, one cream card ============ */
.page-404 .site-header { background: rgb(255 249 241 / .9); }
.nf { position: relative; isolation: isolate; display: grid; place-items: center; min-height: calc(100vh - var(--hh)); min-height: calc(100svh - var(--hh)); padding: 48px var(--margin); overflow: hidden; }
.nf-sky { position: absolute; inset: 0; z-index: -1; }
.nf-sky picture, .nf-sky img, .nf-sky svg { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.nf-card { max-width: 520px; padding: 36px 28px; border-radius: 32px; background: rgb(255 249 241 / .94); text-align: center; box-shadow: 0 24px 60px rgb(20 30 40 / .35); }
.nf-card h1 { font-size: 44px; line-height: 1.06; }
.nf-card p { margin-top: 14px; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px !important; }
.btn--soft { background: var(--sky); color: var(--ink); }
.nf-nb { margin-top: 22px !important; font-size: 15px; font-weight: 700; color: var(--muted-ink); }
.btn--soft:hover { background: var(--sky-deep); color: var(--ink); }
@media (min-width: 600px) { .nf-card { padding: 48px 44px; } .nf-card h1 { font-size: 56px; } }
