/* Chapter Two Books — follows the old site's structure and colours:
   white header with logo, navy navigation bar, blue accents and prices,
   serif headings over a sans-serif body. No web fonts, no JavaScript. */

:root {
  --navy: #0f2b44;
  --navy-2: #173c5c;
  --blue: #1f6fbf;        /* links: 5.2:1 on white */
  --blue-bright: #4a9ff5; /* decorative accents, icon discs */
  --blue-tint: #eaf3fd;
  --ink: #222;
  --muted: #5f6368;
  --rule: #e3e6ea;
  --panel: #f4f5f7;
  --green: #2e7d32;
  --red: #b3261e;
  --radius: 4px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1rem/1.6 var(--sans); color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.25; color: #2b2b2b; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); margin: .25rem 0 .75rem; }
h2 { font-size: 1.35rem; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 8px; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Header ------------------------------------------------------------------ */
.header-inner { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1rem; }
/* The logo shrinks to make room; the contact block keeps its natural width. */
.brand { flex: 0 1 44rem; min-width: 0; }
.brand img { width: 100%; }
.header-contact { flex: none; margin: 0; display: flex; flex-direction: column; align-items: flex-end; font-size: .9375rem; white-space: nowrap; }
.header-contact a { color: var(--ink); text-decoration: none; }
.header-contact a:first-child { font-weight: 600; font-size: 1.0625rem; }
@media (max-width: 47.99rem) { .header-contact { display: none; } }

/* Navigation -------------------------------------------------------------- */
.site-nav { background: var(--navy); }
.nav-top { list-style: none; margin: 0 auto; display: flex; gap: 0 .25rem; }
.nav-top > li { position: relative; }
.nav-top a { display: block; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.0625rem; padding: .7rem .75rem; white-space: nowrap; }
.nav-top > li > a:hover, .nav-top > li:focus-within > a, .nav-top a[aria-current="page"] { background: var(--navy-2); color: #fff; }
.nav-top a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--blue-bright); }
.has-children > a::after { content: ""; display: inline-block; margin-left: .4rem; border: 4px solid transparent; border-top-color: #9fb6cc; vertical-align: 2px; }
.nav-sub { list-style: none; margin: 0; padding: .4rem 0; display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 16rem; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--blue-bright); box-shadow: 0 8px 24px rgba(15, 43, 68, .15); }
.nav-sub a { color: var(--ink); font-family: var(--sans); font-size: .9375rem; padding: .35rem 1rem; white-space: normal; }
.nav-sub a:hover { background: var(--blue-tint); color: var(--navy); }
/* Phones: one scrolling row, no dropdowns (subcategories are on category pages). */
@media (max-width: 59.99rem) {
  .nav-top { overflow-x: auto; scrollbar-width: none; padding-inline: 8px; }
  .nav-top::-webkit-scrollbar { display: none; }
  .has-children > a::after { display: none; }
}
@media (min-width: 60rem) {
  .nav-top { flex-wrap: wrap; }
  .nav-top > li:hover > .nav-sub, .nav-top > li:focus-within > .nav-sub { display: block; }
}

/* Ordering notice --------------------------------------------------------- */
.order-notice { background: var(--blue-tint); border-bottom: 1px solid #cfe2f7; }
.order-notice p { margin: 0 auto; padding-block: .65rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1rem; font-size: .9375rem; }
.order-notice strong { color: var(--navy); font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; }
.notice-more { margin-left: auto; font-weight: 600; }

/* Page layouts ------------------------------------------------------------ */
main { padding-block: .5rem 3rem; }
.with-sidebar, .with-left-sidebar { display: grid; gap: 2.5rem; }
.content, .listing { min-width: 0; }
@media (min-width: 60rem) {
  .with-sidebar { grid-template-columns: minmax(0, 1fr) 17rem; }
  .with-left-sidebar { grid-template-columns: 14rem minmax(0, 1fr); }
  .with-left-sidebar > .listing:only-child { grid-column: 1 / -1; }
}

.breadcrumb { font-size: .8125rem; margin: 1rem 0 .5rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumb li + li::before { content: "›"; color: #9aa0a6; margin-right: .35rem; }
.breadcrumb a { color: var(--ink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--muted); }

/* Sidebar ----------------------------------------------------------------- */
.side-box + .side-box { margin-top: 2rem; }
.side-box h2, .category-sidebar h2 { font-size: 1.25rem; margin: .5rem 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { min-height: 2.5rem; padding: .45rem 0 .45rem 3.25rem; margin-bottom: .6rem; position: relative; font-size: .9375rem; line-height: 1.45; }
.ci::before { content: ""; position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--blue-bright) center / 1.35rem no-repeat; }
.ci-clock::before { background-image: url(/img/icons/clock.svg); }
.ci-phone::before { background-image: url(/img/icons/phone.svg); }
.ci-mail::before { background-image: url(/img/icons/mail.svg); }
.ci-pin::before { background-image: url(/img/icons/pin.svg); }
.ci-phone a { font-weight: 600; color: var(--ink); text-decoration: none; }
.chevron-list { list-style: none; margin: 0; padding: 0; }
.chevron-list li { padding: .2rem 0 .2rem 1rem; position: relative; }
.chevron-list li::before { content: "›"; position: absolute; left: 0; color: var(--muted); }
.chevron-list a { text-decoration: none; }
.chevron-list a:hover { text-decoration: underline; }

.category-sidebar h2 a { color: inherit; text-decoration: none; }
.category-sidebar ul { list-style: none; margin: 0; padding: 0; }
.category-sidebar li a { display: block; padding: .45rem .75rem; margin-bottom: 2px; background: var(--panel); color: var(--ink); text-decoration: none; font-size: .875rem; border-left: 3px solid transparent; }
.category-sidebar li a:hover { background: var(--blue-tint); }
.category-sidebar li a[aria-current] { border-left-color: var(--blue-bright); background: var(--blue-tint); font-weight: 600; }
@media (max-width: 59.99rem) {
  .category-sidebar ul { display: flex; flex-wrap: wrap; gap: .4rem; }
  .category-sidebar li a { border-radius: 999px; border-left: 0; padding: .3rem .8rem; margin: 0; }
}

/* Buttons, prices, badges ------------------------------------------------- */
.button { display: inline-block; padding: .7rem 1.25rem; border-radius: var(--radius); background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--navy); line-height: 1.2; }
.button:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.button-outline { background: #fff; color: var(--navy); }
.button-outline:hover { background: var(--blue-tint); color: var(--navy); }
.button-outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.button-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.price { color: var(--blue); font-weight: 700; }
.was-price { color: var(--muted); font-weight: 400; }
.price-on-request { color: var(--muted); font-weight: 600; }
.badge { position: absolute; top: 0; left: 0; background: var(--blue-bright); color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; z-index: 1; }

/* Product cards ----------------------------------------------------------- */
.cards { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
@media (min-width: 36rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.5rem; } }
.card { display: flex; flex-direction: column; gap: .2rem; font-size: .9375rem; }
.card-link { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: .6rem; }
.card-media { position: relative; aspect-ratio: 2 / 3; display: flex; align-items: flex-end; justify-content: center; }
.card-media img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .15s ease, box-shadow .15s ease; }
.card-link:hover img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.card-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.card-link:hover .card-title { color: var(--blue); text-decoration: underline; }
.card-author { color: var(--muted); font-size: .8125rem; }

/* Listing ----------------------------------------------------------------- */
.toolbar { margin: .5rem 0 0; padding: .6rem 0; border-block: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; }
.pager ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.pager a, .pager span { display: inline-block; min-width: 2.25rem; padding: .35rem .6rem; text-align: center; border-radius: var(--radius); background: var(--panel); text-decoration: none; color: var(--ink); }
.pager a:hover { background: var(--blue-tint); }
.pager [aria-current] { background: var(--navy); color: #fff; }

/* Product page ------------------------------------------------------------ */
.product-top { display: grid; gap: 1.5rem 2.5rem; margin-top: .5rem; }
@media (min-width: 44rem) { .product-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.product-media .cover { margin-inline: auto; max-height: 34rem; width: auto; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.gallery { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.gallery img { height: 5rem; width: auto; border: 1px solid var(--rule); }
.gallery a:hover img { border-color: var(--blue-bright); }
/* Image popup: the dialog shrinks to the image, so clicks outside it land on the backdrop. */
.lightbox { padding: 0; border: 0; background: transparent; overflow: visible; max-width: calc(100vw - 2rem); max-height: calc(100vh - 2rem); }
.lightbox::backdrop { background: rgba(15, 43, 68, .85); }
.lightbox img { display: block; max-width: calc(100vw - 2rem); max-height: calc(100vh - 2rem); width: auto; height: auto; background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.lightbox-close { position: absolute; top: .5rem; right: .5rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.lightbox-close:hover { background: var(--navy-2); }
.product-summary h1 { margin-top: 0; }
.byline { margin: -.25rem 0 .75rem; color: var(--muted); font-size: 1.0625rem; }
.status { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: baseline; margin: 0; padding-bottom: .75rem; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.order-code-inline { color: var(--muted); }
.order-code-inline strong { color: var(--ink); }
.product-price { font-size: 1.9rem; margin: .5rem 0 1rem; }
.order-box { margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--panel); border-top: 3px solid var(--navy); border-radius: 0 0 var(--radius) var(--radius); }
.order-box h2 { font-size: 1.2rem; margin: 0 0 .25rem; }
.order-box p { margin: .25rem 0; }
.order-code { font-size: 1.125rem; letter-spacing: .02em; }
.order-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 !important; }
.hours { color: var(--muted); font-size: .875rem; }
.variants { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .9375rem; }
.variants caption { text-align: left; font-family: var(--serif); font-size: 1.1rem; padding-bottom: .4rem; }
.variants th, .variants td { text-align: left; padding: .45rem .5rem .45rem 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.variants thead th { color: var(--muted); font-weight: 600; font-size: .8125rem; }
.variant-thumb { width: 2rem; display: inline-block; vertical-align: middle; margin-right: .4rem; }
.product-section { margin-top: 2.5rem; }
.product-section > h2 { margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--rule); }
.spec { border-collapse: collapse; width: 100%; max-width: 40rem; font-size: .9375rem; }
.spec th, .spec td { text-align: left; padding: .5rem .75rem; vertical-align: top; }
.spec tr:nth-child(odd) { background: var(--panel); }
.spec th { width: 40%; font-weight: 600; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-block; padding: .3rem .85rem; border-radius: 999px; background: var(--panel); text-decoration: none; font-size: .875rem; }
.chips a:hover { background: var(--blue-tint); }

/* Sanitised description HTML ---------------------------------------------- */
.prose { max-width: 44rem; }
.prose h2, .prose h3, .prose h4 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.prose blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: #444; }
.prose table { border-collapse: collapse; margin: 1rem 0; display: block; max-width: 100%; overflow-x: auto; font-size: .9375rem; }
.prose th, .prose td { border: 1px solid var(--rule); padding: .4rem .6rem; text-align: left; vertical-align: top; }
.prose sup, .prose sub { line-height: 0; }

/* Home -------------------------------------------------------------------- */
.hero { margin-top: 1.5rem; padding: clamp(1.5rem, 4vw, 3rem); color: #fff; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15,43,68,.97), rgba(23,60,92,.92)), repeating-linear-gradient(90deg, #1b4668 0 14px, #12324f 14px 22px, #20507a 22px 40px, #173c5c 40px 48px); }
.hero h1 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); max-width: 32ch; margin: 0 0 .75rem; }
.hero-verse { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #d7e6f5; margin: 0 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.hero .button:not(.button-outline-light) { background: var(--blue-bright); border-color: var(--blue-bright); color: #08213a; }
.hero .button:not(.button-outline-light):hover { background: #fff; border-color: #fff; }
.home-section { margin-top: 2.75rem; }
.home-section > h2 { font-size: 1.6rem; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--rule); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 44rem) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
.feature { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.feature-media img { box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.feature h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.feature h3 a { color: var(--ink); text-decoration: none; }
.feature h3 a:hover { color: var(--blue); text-decoration: underline; }
.feature p { margin: 0 0 .4rem; font-size: .9375rem; color: #444; }
.category-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem; }
.category-tiles a { display: flex; flex-direction: column; height: 100%; padding: .9rem 1rem; background: var(--panel); border-left: 4px solid var(--blue-bright); border-radius: 0 var(--radius) var(--radius) 0; text-decoration: none; color: var(--ink); }
.category-tiles a:hover { background: var(--blue-tint); }
.tile-title { font-family: var(--serif); font-size: 1.1rem; }
.tile-count { color: var(--muted); font-size: .8125rem; }
.about p { max-width: 44rem; }

/* Info pages -------------------------------------------------------------- */
.contact { margin-top: 1.5rem; padding: 1.25rem; background: var(--panel); border-radius: var(--radius); max-width: 36rem; }
.contact h2 { margin-top: 0; }
/* Phones: label above value; side by side only where there is room. */
.contact dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 .75rem; }
.contact dt { color: var(--muted); font-size: .875rem; }
.contact dt:not(:first-child) { margin-top: .6rem; }
.contact dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 36rem) {
  .contact dl { grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.25rem; }
  .contact dt { font-size: inherit; }
  .contact dt:not(:first-child) { margin-top: 0; }
}
.contact p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--panel); margin-top: 2rem; }
.footer-cols { display: grid; gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 48rem) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-footer h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.site-footer p { font-size: .9375rem; }
.scripture { font-family: var(--serif); font-style: italic; }
.footer-bar { background: #0b0b0b; color: #cfcfcf; font-size: .8125rem; }

/* Bookshop ---------------------------------------------------------------- */
.shop-photo { margin: 0 0 1.5rem; }
.shop-photo img { border-radius: var(--radius); width: 100%; }
.shop-details { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 40rem) { .shop-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shop-card { background: var(--panel); border-top: 3px solid var(--blue-bright); border-radius: 0 0 var(--radius) var(--radius); padding: 1rem 1.25rem; }
.shop-card h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.shop-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .5rem 0 0; }
.shop-card dt { color: var(--muted); }
.shop-card dd { margin: 0; }
.shop-card dd a { font-weight: 600; color: var(--ink); text-decoration: none; }
.shop-address { font-size: 1.0625rem; margin: 0; }
.hours-table { border-collapse: collapse; width: 100%; }
.hours-table th, .hours-table td { text-align: left; vertical-align: top; padding: .3rem 0; }
.hours-table th { padding-right: 1rem; font-weight: 600; white-space: nowrap; }
.shop-teaser-inner { display: grid; gap: 1rem 1.5rem; align-items: start; }
@media (min-width: 40rem) { .shop-teaser-inner { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.shop-teaser img { border-radius: var(--radius); }
.shop-teaser p { margin: 0 0 .75rem; }

/* Info pages: downloads, links, photos ------------------------------------- */
.download-box { background: var(--blue-tint); border-left: 4px solid var(--blue-bright); padding: .75rem 1.25rem; margin: 0 0 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; }
.download-box h2 { font-size: 1.2rem; margin: 0 0 .25rem; }
.download-box p { margin: 0 0 .5rem; }
.download-box ul { margin: 0; padding-left: 1.1rem; }
.download { font-weight: 600; }
.download-meta { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.info-body.has-photos { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .info-body.has-photos { grid-template-columns: minmax(0, 1fr) 14rem; } }
.photos { display: flex; flex-wrap: wrap; gap: .75rem; align-content: start; }
.photos img { border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
@media (max-width: 47.99rem) { .photos img { width: calc(33% - .5rem); } }
.download-group, .link-group { margin-top: 2.5rem; }
.download-group > h2, .link-group > h2 { margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--rule); }
.download-table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.download-table th, .download-table td { text-align: left; vertical-align: top; padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--rule); }
.download-table thead th { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.download-table td:last-child { white-space: nowrap; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem 2rem; }
@media (min-width: 48rem) { .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-list a { font-weight: 600; font-family: var(--serif); font-size: 1.0625rem; }
.link-list p { margin: .15rem 0 0; font-size: .9375rem; color: #444; }

.review-note { background: #fff6e0; border-left: 4px solid #e0a800; padding: .6rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; max-width: 44rem; }
.legal-doc .prose > ol { padding-left: 1.5rem; }
.legal-doc .prose ol ol { list-style-type: upper-alpha; }
.legal-doc .prose li > h3 { margin-top: 1.5rem; }
.footer-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; }
.footer-bar-inner p { margin: 0; padding: 0; }
.footer-bar-inner ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bar a { color: #e6e6e6; text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; color: #fff; }

/* Taxonomies --------------------------------------------------------------- */
.eyebrow { margin: 1rem 0 0; color: var(--muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }
.term-list { list-style: none; margin: 1rem 0; padding: 0; columns: 16rem auto; column-gap: 2rem; }
.term-list li { break-inside: avoid; padding: .2rem 0; }
.term-list a { text-decoration: none; }
.term-list a:hover { text-decoration: underline; }
.term-count { color: var(--muted); font-size: .8125rem; }
.byline a { color: inherit; }

/* Search ------------------------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header-search { flex: 0 1 22rem; display: flex; min-width: 12rem; }
.header-search input { flex: 1; min-width: 0; font: inherit; font-size: .9375rem; padding: .5rem .75rem; border: 1px solid #c9ced6; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.header-search button { font: inherit; font-size: .9375rem; font-weight: 600; padding: .5rem .9rem; border: 0; background: var(--navy); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.header-search button:hover { background: var(--navy-2); }
@media (max-width: 47.99rem) {
  .header-inner { flex-wrap: wrap; gap: .75rem; }
  .header-search { flex: 1 1 100%; }
}
.search-hint { color: var(--muted); }
.search-form { display: flex; max-width: 40rem; margin: 1rem 0 1.5rem; }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: .65rem .85rem; border: 1px solid #c9ced6; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.search-form button { font: inherit; font-weight: 600; padding: .65rem 1.1rem; border: 0; background: var(--navy); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.search-layout { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 60rem) { .search-layout { grid-template-columns: 15rem minmax(0, 1fr); } .search-filters[hidden] + .search-main { grid-column: 1 / -1; } }
.search-filters h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.filter-group { border-top: 1px solid var(--rule); padding: .5rem 0; }
.filter-group summary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.filter-group ul { list-style: none; margin: .25rem 0; padding: 0; }
.filter-group label { display: flex; align-items: baseline; gap: .45rem; padding: .15rem 0; font-size: .9rem; cursor: pointer; }
.filter-group label span:first-of-type { flex: 1; }
.filter-more { font: inherit; font-size: .85rem; background: none; border: 0; padding: .25rem 0; color: var(--blue); cursor: pointer; text-decoration: underline; }
.search-status { margin: 0 0 .75rem; color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 0; }
.result { border-bottom: 1px solid var(--rule); }
.result-link { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; color: var(--ink); text-decoration: none; }
.result-media img { width: 4rem; height: auto; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.result-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.result-title { font-family: var(--serif); font-size: 1.15rem; color: var(--blue); }
.result-link:hover .result-title { text-decoration: underline; }
.result-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; font-size: .875rem; }
.result-code { color: var(--muted); }
.tag { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: var(--blue-tint); color: var(--navy); font-size: .75rem; font-weight: 600; }
.result-excerpt { font-size: .9rem; color: #444; }
.result-excerpt mark { background: #fff2b3; color: inherit; }
