:root {
  --page: #fbfaf7;
  --ink: #20251f;
  --muted: #596354;
  --line: #d9ddd2;
  --surface: #fff;
  --wash: #f1f2e9;
  --brand: #193cb9;
  --brand-dark: #102a91;
  --gold: #d9ac52;
  --focus: #254ddb;
  --sans: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --gutter: clamp(1rem, 4vw, 3rem);
}
* { box-sizing: border-box; }
html { background: var(--page); color: var(--ink); font: 100%/1.55 var(--sans); scroll-padding-top: 1rem; }
body { margin: 0; }
[hidden] { display: none !important; }
:is(h1,h2,h3,h4,p,ul) { margin: 0; }
:is(h1,h2,h3,h4) { font-weight: 660; line-height: 1.14; letter-spacing: -.035em; text-wrap: pretty; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.65rem); }
h2 { font-size: clamp(1.65rem, 2.4vw, 2.12rem); }
h3 { font-size: 1.35rem; }
p { overflow-wrap: break-word; }
p + p { margin-top: .8rem; }
a { color: var(--brand); text-underline-offset: .19em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { color: var(--brand-dark); }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { max-width: 100%; display: block; }
button,input,textarea,select { font: inherit; color: inherit; }
button,summary,select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
::selection { color: #172449; background: #ede1ba; }
.shell { width: min(calc(100% - 2 * var(--gutter)), 77.5rem); margin-inline: auto; }
.visually-hidden,.trap,.skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 4; top: .4rem; left: .4rem; background: #fff; padding: .55rem .9rem; }
.icon { width: 1.35rem; height: 1.35rem; flex: none; }
.eyebrow,.count,.review-score,.list-meta { color: var(--muted); font-size: .76rem; font-weight: 720; line-height: 1.45; letter-spacing: .085em; text-transform: uppercase; }
.eyebrow { margin-bottom: .7rem; }

/* Identity and navigation */
header { border-bottom: 1px solid var(--line); background: var(--page); }
.nav-wrap { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand,.wordmark { display: inline-flex; align-items: center; }
.brand { text-decoration: none; }
.wordmark { color: var(--brand); gap: .48rem; font-size: clamp(1.42rem, 2.15vw, 1.95rem); font-weight: 760; letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
.wordmark i { font-family: var(--display); font-weight: 500; }
.brand-mark { width: 2.65rem; height: 2.65rem; flex: none; }
.brand-mark path[fill] { fill: var(--gold); }
.nav-wrap ul { display: flex; align-items: center; gap: clamp(.8rem, 2.2vw, 2.2rem); list-style: none; padding: 0; }
.nav-wrap nav a { display: block; padding: .5rem .1rem; color: var(--ink); text-decoration: none; font-size: .91rem; font-weight: 625; }
.nav-wrap nav a:hover,.nav-wrap nav a[aria-current] { color: var(--brand); text-decoration: underline; }
.nav-wrap li:last-child a { padding-inline: 1.15rem; border: 1px solid #bfc5b8; border-radius: 999px; }
footer { margin-top: 1.8rem; background: #fff; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.7fr repeat(3,1fr); gap: 2.2rem; padding-block: 2.7rem; }
.foot-grid p { font-size: .9rem; color: var(--muted); max-width: 22rem; margin-top: 1rem; }
.foot-grid nav > b,.foot-grid nav > a { display: block; width: fit-content; font-size: .88rem; }
.foot-grid nav > b { margin-bottom: .7rem; }
.foot-grid nav > a { margin-top: .45rem; color: var(--muted); text-decoration: none; }
.foot-grid nav > a:hover { text-decoration: underline; }
.foot-legal { display: flex; justify-content: space-between; gap: 1rem; padding-block: .95rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

/* Directory home */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(2.4rem, 4.4vw, 4.25rem); }
.stamp { display: flex; align-items: center; gap: .6rem; }
.stamp span { width: 1.3rem; height: .23rem; background: var(--gold); }
.hero h1 { font-size: clamp(3.15rem, 5.3vw, 5rem); font-weight: 725; line-height: 1.02; letter-spacing: -.065em; margin: 1.05rem 0 1.3rem; }
.hero h1 em { color: var(--brand); font: italic 400 1em/1.06 var(--display); letter-spacing: -.058em; }
.hero-lead,.lead { max-width: 46rem; color: var(--muted); line-height: 1.65; font-size: 1.05rem; }
.hero-lead { max-width: 32rem; }
.find-panel {
  min-width: 0; padding: .75rem; background: #fff; border: 1px solid #d4d9d0;
  border-top: 5px solid #e4b863; border-radius: 1rem; box-shadow: .42rem .45rem 0 #e8e9df;
}
.hero-photo { height: clamp(8rem, 15vw, 13rem); overflow: hidden; border-radius: .55rem; background: var(--wash); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.find-tools { padding: 1rem .7rem .45rem; }
.search { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #aeb7a8; border-radius: .5rem; padding: .32rem .36rem .32rem .85rem; min-width: 0; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px #193cb91a; }
.search .icon { width: 1.1rem; color: var(--muted); }
.search input { min-width: 0; width: 100%; flex: 1; padding: .48rem 0; font-size: 1rem; border: 0; background: transparent; }
.search input:focus { outline: none; }
.search button,.solid { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.78rem; max-width: 100%; padding: .68rem 1.22rem; border: 1px solid transparent; border-radius: .38rem; background: var(--brand); color: white; line-height: 1.35; font-size: .95rem; font-weight: 650; text-align: center; text-decoration: none; }
.search button:hover,.solid:hover { background: var(--brand-dark); color: #fff; }
.hero-browse { display: inline-block; margin-top: .75rem; font-size: .86rem; font-weight: 570; }
.home-section { padding-block: clamp(1.9rem, 3.3vw, 3.05rem); }
.hero + .home-section { position: relative; isolation: isolate; }
.hero + .home-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--wash); box-shadow: 0 0 0 100vmax var(--wash); clip-path: inset(0 -100vmax);
}
.section-title { display: flex; justify-content: space-between; gap: .8rem; align-items: end; margin-bottom: 1.2rem; }
.section-title .eyebrow { margin: 0 0 .35rem; }
.section-title > a,.count { font-size: .85rem; }
.count { text-transform: none; letter-spacing: 0; }
.category-list,.picks,.catalog { display: grid; gap: .75rem; grid-template-columns: repeat(4,minmax(0,1fr)); }
.catalog { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.category-row,.company-row { min-width: 0; display: flex; align-items: center; gap: .85rem; padding: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); text-decoration: none; }
.category-row { padding: .85rem; background: #fcfdf9; }
.category-row:hover,.company-row:hover { color: var(--brand); border-color: #9baace; box-shadow: 0 4px 15px #172b580a; }
.category-icon { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: .4rem; background: #eef1e7; color: #506547; }
.category-icon .icon { width: 1.12rem; height: 1.12rem; }
.category-row strong,.company-row strong { display: block; font-size: 1.04rem; font-weight: 660; line-height: 1.25; letter-spacing: -.02em; }
.category-row strong { font-size: .93rem; font-weight: 560; }
.category-row small,.company-row small { display: block; margin-top: .27rem; color: var(--muted); font-size: .79rem; line-height: 1.4; }
.logo { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: .6rem; background: white; border: 1px solid #dce2d8; color: #314665; font-weight: 700; }
.logo img { width: 75%; height: 75%; object-fit: contain; }
.editor-note { display: flex; align-items: center; gap: 1.2rem; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: .7rem; padding: clamp(1.1rem, 2vw, 1.8rem); margin-bottom: 3.5rem; background: #f1f3ea; }
.editor-note > .icon { color: #65754b; align-self: start; margin-top: .3rem; }
.editor-note > div { flex: 1; }
.editor-note h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.editor-note p { max-width: 51rem; color: var(--muted); font-size: .95rem; }
.editor-note > a { font-size: .88rem; font-weight: 620; }

/* Browse, editorial and feedback screens */
.interior,.company { padding-block: clamp(1.55rem, 3.2vw, 3rem) 3.5rem; }
.heading { margin-bottom: 1.65rem; max-width: 55rem; }
.heading h1 { margin-bottom: .75rem; }
.search-tools { display: flex; align-items: end; gap: 1rem; }
.search-tools .search { flex: 1; }
.select-filter,.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; font-size: .9rem; font-weight: 600; }
.select-filter select,.field input,.field select,.field textarea { min-width: 0; max-width: 100%; padding: .68rem .75rem; border: 1px solid #adb7a8; border-radius: .4rem; background: white; font-size: 1rem; font-weight: 400; }
.select-filter select { min-height: 3.42rem; }
.list-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); padding-block: 1.05rem; font-size: .91rem; letter-spacing: 0; text-transform: none; }
.list-meta button,.admin-actions button,.moderation button { padding: .45rem .7rem; margin: .2rem; background: #fff; border: 1px solid var(--line); border-radius: .35rem; }
.article-layout,.company-body { display: grid; grid-template-columns: minmax(0,2.6fr) minmax(13rem,1fr); gap: clamp(1.4rem, 3.5vw, 3.4rem); align-items: start; }
.article-layout { border-top: 1px solid var(--line); padding-top: 2rem; }
.paper-side,.side-index { min-width: 0; padding: 1.35rem; border: 1px solid var(--line); border-radius: .7rem; background: #f3f5ec; }
.paper-side h2,.side-index h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.paper-side h3 { margin-block: .9rem .5rem; }
.paper-side p,.side-index p { font-size: .92rem; }
.paper-side > a,.side-index nav a { display: block; padding-block: .4rem; font-size: .93rem; }
.side-index > div { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.side-index > div > a { display: inline-block; margin-top: .7rem; font-size: .9rem; }
.prose section,.chapter { margin-bottom: 2.15rem; }
.prose h2,.article-layout section > h2,.chapter > h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); margin-bottom: .8rem; }
.prose p,.article-layout section > p,.chapter > p { max-width: 72ch; margin-bottom: .85rem; }
.prose p { line-height: 1.72; }
.chapter ul { padding-left: 1.25rem; margin: 1rem 0; }
.chapter li + li { margin-top: .4rem; }
.entry,.write-review form { max-width: 49rem; }
.field { margin-bottom: .9rem; }
.field textarea { resize: vertical; }
.two-fields,.admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.admin-grid { margin-block: 2rem; }
.check { display: flex; align-items: flex-start; gap: .55rem; margin: 1rem 0; font-size: .88rem; }
.check input { width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--brand); }
.form-status:not(:empty) { margin: .75rem 0; font-weight: 600; }
.error { color: #962c20; }
.entry .fine,.review .fine { margin: .6rem 0; }
.office-contact a { display: block; }
.login { max-width: 27rem; }
.review,.moderation,.write-review { background: #fff; border: 1px solid var(--line); border-radius: .65rem; padding: 1rem; margin: .8rem 0; }
.review h3 { margin: .45rem 0; }
.review > a,.write-review > p { font-size: .9rem; }
.write-review summary { color: var(--brand); font-weight: 625; }
.write-review[open] summary,.write-review > p { margin-bottom: .9rem; }

/* Published company contacts */
body:has(.company) { --ink: #182c55; --muted: #536781; --line: #d6e0ed; --brand: #2b54cf; --brand-dark: #1b3d9e; background: #f5f7fc; color: var(--ink); }
body:has(.company) header { background: #fff; }
.company { font-family: Arial, "Helvetica Neue", sans-serif; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-bottom: 1.45rem; color: var(--muted); font-size: .87rem; }
.crumb a { color: inherit; }
.company-title { margin-bottom: 1.5rem; }
.company-title h1 { font-size: clamp(2rem, 3.25vw, 3.08rem); color: var(--ink); }
.company-title .eyebrow { margin-bottom: .42rem; font-size: .69rem; color: #566d91; }
.ticket { display: grid; grid-template-columns: minmax(8.5rem, .38fr) minmax(0,1.62fr); gap: 1.5rem 2.2rem; padding: clamp(1.35rem, 2.7vw, 2.5rem); background: #fff; border: 1px solid #cddaf0; border-radius: 1.1rem; box-shadow: 0 3px 14px #182c5504; }
.ticket-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; gap: 1.1rem; border-right: 1px solid #e1e8f1; padding-right: 1.7rem; min-width: 0; }
.large.logo { width: clamp(4.4rem, 8vw, 6.7rem); height: clamp(4.4rem, 8vw, 6.7rem); font-size: 1.8rem; border-radius: .95rem; border-color: #dce4f2; }
.domain-line { display: grid; gap: .25rem; text-align: center; font-size: .87rem; color: var(--muted); }
.domain-line a { font-weight: 600; }
.ticket-main { min-width: 0; }
.ticket-main .eyebrow { font-size: clamp(1.04rem, 1.55vw, 1.45rem); letter-spacing: -.015em; line-height: 1.3; text-transform: none; color: #536989; font-weight: 530; margin-bottom: .62rem; }
.ticket-main h2 { color: #384d6b; font-size: clamp(1.08rem, 1.45vw, 1.35rem); font-weight: 580; letter-spacing: -.015em; line-height: 1.35; }
.ticket-main > p:not(.eyebrow) { margin-block: .8rem; color: var(--muted); }
.ticket .number { display: block; width: fit-content; max-width: 100%; margin: .45rem 0 .85rem; font-size: clamp(2.2rem, 5.5vw, 5.2rem); font-weight: 740; letter-spacing: -.057em; line-height: 1.12; color: #182c55; text-decoration: none; font-variant-numeric: lining-nums; }
.ticket .number:hover { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; }
.number-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.number-meta span + span { border-left: 1px solid #d8e2ec; padding-left: 1rem; }
.ticket .call { margin-top: 1.15rem; min-height: 3.1rem; font-size: 1.02rem; border-radius: .48rem; padding: .75rem 1.35rem; }
.ticket-stub { grid-column: 1 / -1; padding: 1rem 1.2rem; border-radius: .55rem; background: #eff3fc; color: #435b80; }
.ticket-stub h3 { margin-bottom: .32rem; font-size: 1rem; letter-spacing: 0; }
.ticket-stub p { font-size: .89rem; }
.ticket-stub p.fine { margin-top: .4rem; font-size: .77rem; }
.source-note { display: flex; flex-wrap: wrap; gap: .22rem .9rem; margin-top: .6rem; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.company-body { margin-top: 2.3rem; }
.company-body > article,.article-layout > :is(article,section) { min-width: 0; }
.company .side-index { background: #f0f4fb; }
.channel,.specialists article { background: white; border: 1px solid var(--line); border-radius: .7rem; padding: 1.05rem 1.2rem; }
.channel { display: grid; grid-template-columns: minmax(0,1fr) minmax(5rem,max-content); gap: .95rem; align-items: center; margin-bottom: .65rem; }
.channel > div { min-width: 0; }
.channel .eyebrow,.specialists .eyebrow { margin-bottom: .2rem; font-size: .68rem; }
.channel h3,.specialists h3 { font-size: 1.09rem; margin-bottom: .3rem; line-height: 1.3; }
.fine,.quiet,.channel p,.specialists p { font-size: .89rem; color: var(--muted); }
.channel-link,.route-link { font-size: .88rem; }
.small-number { font-size: 1.02rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.route-list { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: .85rem; }
.route-link { display: block; padding: .43rem .72rem; border: 1px solid #c5d4e9; border-radius: .45rem; background: #fff; text-decoration: none; }
.route-link:hover { border-color: var(--brand); }
.specialists { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.specialists p { margin-block: .4rem; }
.sources a { overflow-wrap: anywhere; font-size: .88rem; }

@media (max-width: 58rem) {
  .hero { gap: 1.7rem; }
  .category-list,.picks,.catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-layout,.company-body { gap: 1.5rem; }
  .channel { grid-template-columns: 1fr; gap: .5rem; }
  .ticket { gap: 1.2rem; }
}
@media (max-width: 42rem) {
  .nav-wrap { min-height: auto; gap: .4rem; padding-block: .8rem .5rem; flex-wrap: wrap; }
  .nav-wrap .brand { flex-basis: 100%; }
  .nav-wrap nav { width: 100%; }
  .nav-wrap ul { justify-content: space-between; flex-wrap: wrap; gap: .15rem .45rem; }
  .nav-wrap nav a { font-size: .85rem; white-space: nowrap; }
  .nav-wrap li:last-child a { padding: .23rem .7rem; }
  .brand-mark { width: 2.15rem; height: 2.15rem; }
  .hero { display: block; padding-block: 1.8rem; }
  .hero h1 { font-size: clamp(2.85rem, 11vw, 4.2rem); margin: .65rem 0 .8rem; }
  .hero-lead,.lead { font-size: 1rem; }
  .find-panel { display: flex; flex-direction: column; margin-top: 1.15rem; padding: .55rem; }
  .hero-photo { height: clamp(7rem, 26vw, 10rem); }
  .find-tools { padding: .7rem .2rem .32rem; }
  .search-tools,.editor-note { display: block; }
  .select-filter { margin-top: .7rem; }
  .catalog { grid-template-columns: 1fr; }
  .section-title { align-items: center; }
  .picks .company-row,.category-row { padding: .75rem; gap: .55rem; }
  .editor-note > .icon { display: none; }
  .editor-note > a { display: inline-block; margin-top: .6rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.3rem; }
  .foot-grid > div { grid-column: 1/-1; }
  .foot-legal { flex-wrap: wrap; }
  .interior,.company { padding-top: 1.25rem; }
  .crumb { margin-bottom: 1rem; }
  .company-title { margin-bottom: 1.1rem; }
  .ticket { padding: 1.05rem; border-radius: .8rem; display: flex; flex-direction: column; gap: 1rem; }
  .ticket-main { order: 0; }
  .ticket-brand { order: 1; flex-direction: row; justify-content: flex-start; border: 0; border-top: 1px solid var(--line); padding: .85rem 0 0; gap: .75rem; }
  .large.logo { width: 2.9rem; height: 2.9rem; border-radius: .48rem; font-size: 1rem; }
  .domain-line { text-align: left; font-size: .79rem; gap: .05rem; }
  .ticket .number { font-size: clamp(1.9rem, 8.7vw, 3.65rem); margin: .5rem 0 .7rem; }
  .number-meta { gap: .2rem .65rem; font-size: .8rem; }
  .number-meta span + span { padding-left: .65rem; }
  .ticket .call { width: 100%; margin-top: .85rem; }
  .ticket-stub { order: 2; padding: .85rem; }
  .article-layout,.company-body,.specialists { grid-template-columns: 1fr; }
  .company-body { margin-top: 1.65rem; }
  .two-fields,.admin-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 30rem) {
  .category-list,.picks { grid-template-columns: 1fr; }
  .category-list { gap: .5rem; }
  .hero-browse { font-size: .82rem; }
  .search button { padding-inline: .82rem; }
}
@media (max-width: 23.95rem) {
  .nav-wrap ul { column-gap: .38rem; }
  .nav-wrap nav a { font-size: .75rem; font-weight: 600; padding-inline: 0; }
  .nav-wrap li:last-child a { padding-inline: .45rem; }
  .search { display: grid; grid-template-columns: minmax(0,1fr); padding: .3rem; }
  .search input { padding: .55rem .48rem; }
  .search .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
