/* BridgePharmacist — public page shell (try, support, legal, instructor), 2026-10-14.
   Sits on top of /styles.css, a byte-identical copy of app/styles.css (the app's files are behind sign-in, so the public
   pages get their own copy; worker/test/ui-presentation-2026-10-14.test.mjs keeps the two identical). Tokens, buttons,
   cards, disclosures, status chips and the shared result layout all come from that file; this one only adds the page
   frame: a slim header, one readable column, prose rhythm and the footer. */
body.site { background: var(--canvas); line-height: 1.65; }
body.site main.page { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }
@media (min-width: 1000px) { body.site main.page { max-width: 760px; padding: 36px 24px 72px; } }
body.site main.page.wide { max-width: 1100px; }

/* header: deep navy with the gold hairline, brand left, one way back */
.site-head { background: linear-gradient(180deg, var(--navy-deep), #0B1F31); color: #fff; border-bottom: 2px solid var(--gold); }
.site-head .in { max-width: 760px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-head.wide .in { max-width: 1100px; }
.site-head .brand { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #fff; text-decoration: none; letter-spacing: .01em; }
.site-head .brand b { color: #E8C989; font-weight: 600; }
.site-head .brand small { font-family: var(--sans); font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.78); margin-left: 8px; letter-spacing: .02em; }
.site-head a.back { color: #E8C989; font-size: .86rem; text-decoration: none; font-weight: 600; }
.site-head a.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-head a:focus-visible { outline-color: #E8C989; }

/* page titles and prose: one column of about 70 characters */
.page-title { font-family: var(--serif); font-size: var(--fs-2xl); font-weight: 600; line-height: 1.2; margin: 6px 0 10px; }
.page-lead { font-size: 1.02rem; color: var(--ink-2); max-width: 68ch; margin-bottom: 18px; }
.prose { max-width: 70ch; }
.prose h1 { font-family: var(--serif); font-size: var(--fs-2xl); font-weight: 600; line-height: 1.2; margin: 44px 0 10px; padding-top: 18px; border-top: 2px solid var(--gold); scroll-margin-top: 72px; }
.prose h1:first-of-type { margin-top: 18px; }
.prose h2 { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 600; margin: 26px 0 6px; }
.prose p, .prose li { font-size: 1rem; color: var(--ink-2); line-height: 1.7; }
.prose p { margin: 10px 0; }
.prose ul { padding-left: 22px; margin: 8px 0 12px; }
.prose li { margin: 6px 0; }
.prose b { color: var(--ink); }
.updated { font-size: var(--fs-sm); color: var(--muted); }

/* a card for one block of content (the contact box, a form) */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 0 0 16px; box-shadow: var(--shadow); }
.panel.tint-gold { background: var(--gold-soft); border-color: var(--gold-line); box-shadow: none; }
.panel > .kicker:first-child { margin-bottom: 6px; }

/* help entries: the FAQ's <details> share the look of the app's disclosures (details.disc) */
.faq > details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); margin: 0 0 8px; }
.faq > details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 48px; font-weight: 600; font-size: .98rem; color: var(--navy-deep); }
.faq > details > summary::-webkit-details-marker { display: none; }
.faq > details > summary::before { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.faq > details[open] > summary::before { transform: rotate(45deg); }
.faq > details > :not(summary) { margin: 0 14px; }
.faq > details > :not(summary):last-child { margin-bottom: 14px; }
.faq > details > p, .faq > details li { font-size: .96rem; color: var(--ink-2); line-height: 1.7; max-width: 68ch; }
.faq > details > p + p { margin-top: 8px; }
.faq > details > ul { padding-left: 20px; margin-top: 6px; margin-bottom: 6px; }
.faq > details li { margin-top: 4px; }
.faq > details h2.sub { font-family: var(--sans); font-size: .9rem; font-weight: 700; color: var(--ink); margin-top: 14px; margin-bottom: 4px; }
.faq > details:target { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

/* in-page navigation (legal sections) */
.page-nav { position: sticky; top: 0; z-index: 10; background: linear-gradient(180deg, var(--canvas) 85%, rgba(250,249,246,0)); padding: 10px 0 12px; margin: 0 0 4px; }

/* forms on public pages */
.field { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font: inherit; font-size: .95rem; background: var(--card); color: var(--ink); min-height: 44px; min-width: 0; }
.field:focus { border-color: var(--gold-deep); }

/* tables that may be wider than a phone scroll inside their own box, never the page */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: .86rem; background: var(--card); }
table.data th { text-align: left; padding: 9px 10px; background: var(--navy-deep); color: #fff; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.muted { color: var(--muted); font-size: var(--fs-sm); }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 26px 16px 40px; font-size: .8rem; color: var(--muted); text-align: center; }
.site-foot p + p { margin-top: 6px; }
.site-foot a { color: var(--gold-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.faq details.method { border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--sand-soft); margin: 12px 14px 14px 0; }
.faq details.method > summary { cursor: pointer; padding: 10px 12px; font-weight: 600; font-size: .9rem; color: var(--navy-deep); min-height: 44px; display: flex; align-items: center; }
.faq details.method > :not(summary) { margin: 0 12px 10px; font-size: .9rem; color: var(--ink-2); }
.faq details.method > ul { padding-left: 20px; }
