/* Threat Owl: styles for the inner pages built by tools/build_pages.py.
   Loaded after styles.css and reuses its tokens (--ink, --eye, --rule ...) and classes
   (.btn, .steps, .proof, .about__in, .foot). Nothing here applies to the home page. */

/* Breadcrumb */
.crumbs { padding-top: 22px; font: 600 .92rem/1.4 var(--display); color: var(--ink-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #8d9196; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--eye); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* Page head */
.pg__head { padding: 18px 0 48px; }
.pg__head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05; max-width: 22em; margin-top: 10px; }
.pg__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); margin: 20px 0 26px; max-width: 36em; }
.pg__updated { font: 700 .95rem/1.4 var(--display); color: var(--ink-2); margin: -10px 0 22px; }
.pg__note { max-width: 40em; background: var(--due-bg); border-left: 5px solid var(--due); border-radius: 6px; padding: 12px 16px; margin: 0 0 24px; }
.pg__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; margin: 0; }
.pg__cta .panel__link { margin-left: 18px; }

/* Sections: heading on the left, text on the right, like the home page's service list */
.pg__sec { padding: 44px 0; border-top: 1px solid var(--rule); scroll-margin-top: 72px; }
.pg__cols { display: grid; grid-template-columns: 280px 1fr; gap: 24px 32px; }
.pg__sec h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.pg__text > * { max-width: 40em; }
.pg__text p:last-child { margin-bottom: 0; }
.pg__intro { color: var(--ink-2); margin: 10px 0 20px; max-width: 40em; }
.pg__h3 { margin: 26px 0 10px; font-size: 1.1rem; }
.pg__list { margin: 0 0 1em; padding-left: 1.1em; }
.pg__list li { margin-bottom: 6px; }
.pg__list--muted { color: var(--ink-2); font-size: .98rem; }
.pg__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pg__links a { font: 700 1rem/1.3 var(--display); }
@media (max-width: 760px) {
  .pg__head { padding-bottom: 36px; }
  .pg__head .btn { width: 100%; }
  .pg__cta .panel__link { margin: 4px 0 0; }
  .pg__sec { padding: 36px 0; }
  .pg__cols { grid-template-columns: 1fr; gap: 12px; }
}

/* How working together goes (reuses .steps from styles.css, with fewer than five steps) */
.pg__how { background: var(--card); }
.pg__how h2 { margin-bottom: 30px; }
.pg__how .steps { margin-bottom: 0; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps--3, .steps--4 { grid-template-columns: 1fr; } }

/* FAQ */
.faq__item + .faq__item { margin-top: 22px; }
.faq__item h3 { font-size: 1.12rem; margin-bottom: 6px; }
.faq__item p { margin: 0; }

/* Testimonial band sits between sections */
.pg__sec + .proof { margin-top: 0; }

/* Closing quote band */
.pg__end { background: var(--ink); color: #c9cccf; padding: 64px 0; }
.pg__end h2 { color: #fff; margin-bottom: 14px; }
.pg__end p { max-width: 38em; font-size: 1.1rem; }
.pg__end-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 26px 0 0; }
.pg__end-link { color: #fff; font: 700 1rem/1.3 var(--display); }
.pg__end-link:hover { color: #ffb08f; }
@media (max-width: 560px) { .pg__end .btn { width: 100%; } }

/* About page photo block inside a section */
.pg__sec .about__in { align-items: start; }
.pg__sec .about__in h2 { margin-bottom: 14px; }
.pg__sec .about__in p { max-width: 38em; }

/* Plan status: counts */
.tally { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 26px; max-width: 900px; }
.tally__item { background: var(--card); border: 1px solid var(--rule); border-left: 6px solid var(--feather); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.tally__item dt { font: 600 .9rem/1.3 var(--display); color: var(--ink-2); }
.tally__item dd { margin: 0 0 4px; font: 900 1.9rem/1 var(--display); }
.tally__item--expired { border-left-color: var(--eye); }
.tally__item--due { border-left-color: var(--due); }
.tally__item--review { border-left-color: var(--review); }
.tally__item--ok { border-left-color: var(--ok); }
@media (max-width: 760px) { .tally { grid-template-columns: 1fr 1fr; } }

/* Status definitions */
.defs { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; max-width: 46em; }
.defs dt { font: 800 1rem/1.5 var(--display); }
.defs dd { margin: 0; }
@media (max-width: 560px) { .defs { grid-template-columns: 1fr; gap: 2px; } .defs dd { margin-bottom: 10px; } }

/* Tables. The wrapper scrolls sideways on a phone so the page itself never does. */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.tbl-wrap:focus-visible { outline-offset: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .96rem; line-height: 1.4; }
.tbl caption { text-align: left; padding: 14px 16px 12px; color: var(--ink-2); font-size: .95rem; caption-side: top; }
.tbl th, .tbl td { padding: 9px 12px; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tbl thead th { font: 800 .9rem/1.3 var(--display); background: var(--paper); white-space: nowrap; }
.tbl tbody th { font: 700 1rem/1.35 var(--display); }
.tbl tfoot th, .tbl tfoot td { font-weight: 700; background: var(--paper); }
.tbl td time { white-space: nowrap; }
.tbl--counts td { text-align: right; font-variant-numeric: tabular-nums; }
.tbl--counts thead th:not(:first-child) { text-align: right; white-space: normal; }
.tbl--towns { min-width: 860px; }
.tbl--towns td:nth-child(3) { max-width: 26em; color: var(--ink-2); font-size: .92rem; }
.tbl tbody tr:target { background: var(--due-bg); }
.tbl tbody tr { scroll-margin-top: 80px; }

/* Sort buttons that table-sort.js puts in the column headings */
.tbl .sort { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.tbl .sort::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; vertical-align: middle; opacity: .35; border-top-color: currentColor; transform: translateY(3px); }
.tbl th[aria-sort] .sort::after { opacity: 1; }
.tbl th[aria-sort="descending"] .sort::after { border-top-color: transparent; border-bottom-color: currentColor; transform: translateY(-3px); }

/* Status in words */
.st { display: inline-block; font: 700 .86rem/1.25 var(--display); padding: 3px 8px 2px; border-radius: 4px; border: 1.5px solid currentColor; }
.st--expired { color: var(--eye); background: var(--expired-bg); }
.st--due { color: var(--due); background: var(--due-bg); }
.st--review { color: var(--review); background: var(--review-bg); }
.st--ok { color: var(--ok); background: var(--ok-bg); }
.st--none { color: var(--ink-2); background: var(--paper); }

/* Footer nav */
.foot__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #3a3d40; }
.foot__h { font: 800 .95rem/1.2 var(--display); color: #fff; margin: 0 0 10px; }
.foot__nav ul { list-style: none; margin: 0; padding: 0; }
.foot__nav li { margin-bottom: 6px; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 760px) { .foot__nav { grid-template-columns: 1fr 1fr; } }
