/* The sub-pages (join, police, features, civilian, rules, FAQ): written by website/tools/build_pages.py.
   Same tokens as site.css; the bar is always shown here (no menu at the top to scroll past). */
.page .bar { transform: none; visibility: visible; transition: none; }
.page main { padding-top: 104px; }
.bar-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--sky); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--sky-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line); }

.page-head { max-width: 860px; }
.page-head h1 { font-size: clamp(44px, 5.4vw, 76px); color: var(--navy); }
.page-lead { font-size: 20px; color: var(--muted); margin-top: 18px; max-width: 62ch; }

.sec { margin-top: 64px; }
.sec > h2 { font-size: clamp(32px, 3.4vw, 46px); color: var(--navy); margin-bottom: 18px; }
.prose { max-width: 70ch; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--sky-ink); font-weight: 600; }
.prose code, .rules-list code { font: 600 0.92em ui-monospace, 'Cascadia Code', Consolas, monospace; background: #fff; border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 22px 22px 20px; box-shadow: var(--shadow); }
.tile h3 { font-size: 26px; color: var(--navy); margin-bottom: 8px; }
.tile p { color: var(--muted); }
.tile p + p { margin-top: 10px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; align-items: start; }
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px; box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: #30353c; }
.shot.tall img { aspect-ratio: 4 / 5; object-position: 50% 0; background: #444648; }
.shot.fit img { object-fit: contain; padding: 14px; }
.shot figcaption { padding: 12px 12px 8px; }
.shot figcaption b { display: block; font: 700 italic 22px/1.1 var(--display); text-transform: uppercase; color: var(--navy); }
.shot figcaption span { display: block; color: var(--muted); margin-top: 4px; }

.steps-list { list-style: none; counter-reset: s; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; max-width: 760px; }
.steps-list li { counter-increment: s; position: relative; padding: 18px 20px 18px 70px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-tile); }
.steps-list li::before { content: counter(s); position: absolute; left: 20px; top: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--navy); color: #fff; font: 700 italic 20px/1 var(--display); }
.steps-list li > b { display: block; font: 700 italic 22px/1.1 var(--display); text-transform: uppercase; color: var(--navy); }
.steps-list p { color: var(--muted); margin-top: 4px; }

.faq { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-tile); padding: 0 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 700 italic 22px/1.15 var(--display); text-transform: uppercase; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-style: normal; color: var(--sky-ink); }
.faq details[open] summary::after { content: "-"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }
.faq details > div a { color: var(--sky-ink); font-weight: 600; }

.rules-sec + .rules-sec { margin-top: 40px; }
.rules-sec h2 { font-size: clamp(30px, 3vw, 40px); color: var(--navy); }
.rules-sec > p { color: var(--muted); margin-top: 6px; }
.rules-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; max-width: 900px; }
.rules-list li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-tile); padding: 16px 18px; }
.rules-list .n { font: 700 italic 22px/1.1 var(--display); color: var(--sky-ink); }
.rules-list b { display: block; font-weight: 700; color: var(--ink); }
.rules-list p { color: var(--muted); margin-top: 2px; }
.rules-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rules-toc a { font: 600 15px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.rules-toc a:hover { border-color: var(--navy); }

.cta-band { margin-top: 72px; background: var(--navy); color: #fff; border-radius: var(--r-card); padding: 34px 32px; display: grid; gap: 18px; }
.cta-band h2 { font-size: clamp(32px, 3.4vw, 46px); }
.cta-band p { color: #c9d7e6; max-width: 62ch; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.next-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.next-links a { font: 600 17px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--sky); padding-bottom: 3px; }

@media (max-width: 1100px) {
    .cols-5, .cols-4, .cols { grid-template-columns: repeat(2, 1fr); }
    .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .cols-5, .cols-4, .cols, .shots { grid-template-columns: 1fr; }
    .page main { padding-top: 92px; }
    .rules-list li { grid-template-columns: 1fr; gap: 4px; }
    .cta-band { padding: 26px 20px; }
}
.sec-after { margin-top: 18px; }

/* the supporters page: names on rules in columns (serve.cjs fills them from the store) */
.names { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.names li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--ink); overflow-wrap: anywhere; }
.names-patrons li { font: 600 22px/1.25 var(--display, inherit); color: var(--navy); }
.names .names-empty { grid-column: 1 / -1; color: var(--muted); font: inherit; font-size: 17px; }
.supporters-note { color: var(--muted); margin: -8px 0 16px; }
.supporters-store { margin-top: 36px; color: var(--muted); max-width: 70ch; }
.supporters-store a { color: var(--navy); font-weight: 600; }

/* the footer's links wrap so the note keeps a column of its own (the Supporters link made the row too long) */
@media (min-width: 1081px) { .foot-in { grid-template-columns: auto minmax(0, 1fr) minmax(280px, 400px); } }
