/* ============================================================================
   Direktori Kode Pos — design system

   A geographic reference instrument. Identity comes from two things only: the
   archipelago itself, and the postal code as a physical-feeling object. Every
   other surface stays quiet so those two can carry the page.

   Mobile-first; a rule is the phone rule unless a media query says otherwise.
   No inline styles anywhere in the templates, so the production CSP can stay
   at style-src 'self' with no 'unsafe-inline'.
   ========================================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Navy carries the brand; it is the darkest thing on the page. */
  --navy-900: #0a1a3c;
  --navy-800: #102a5c;
  --navy-700: #16356f;

  /* Primary blue: confident, not electric. */
  --blue: #1d4ed8;
  --blue-dark: #1a3faf;
  --blue-300: #93b4fd;
  --blue-200: #c3d5fe;
  --blue-100: #dde8ff;
  --blue-50: #eff4ff;

  --red: #c0392f;

  --ink: #0f1b33;
  --ink-2: #435370;
  /* Muted text still has to clear 4.5:1 on white, --bg-2 and --bg-3, since it
     is used for breadcrumbs, stat labels, table headers and list meta on all
     three surfaces. This value measures 5.45 / 5.08 / 4.72. */
  --ink-3: #5c6a85;
  --ink-inv: #ffffff;

  --line: #e1e7f0;
  --line-2: #edf1f7;
  --line-navy: rgba(255, 255, 255, .14);

  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --bg-3: #eaeff7;

  --amber-bg: #fff8e8;
  --amber-line: #f5c451;
  --amber-ink: #8a5206;

  --r-sm: 5px;
  --r: 8px;
  --r-lg: 12px;

  --shell: 1140px;
  --gutter: 18px;

  /* A deliberate scale: big jumps between levels, nothing in between. */
  --t-micro: 0.6875rem;   /* 11px — eyebrows, stat labels */
  --t-meta: 0.8125rem;    /* 13px — meta, captions */
  --t-body: 0.9375rem;    /* 15px — body */
  --t-lead: 1.0625rem;    /* 17px — lede */
  --t-h3: 1.125rem;       /* 18px */
  --t-h2: 1.375rem;       /* 22px */
  --t-h1: 1.75rem;        /* 28px */
  --t-display: 2.125rem;  /* 34px — hero */

  --shadow-sm: 0 1px 2px rgba(10, 26, 60, .05);
  --shadow: 0 4px 16px -6px rgba(10, 26, 60, .14), 0 1px 3px rgba(10, 26, 60, .06);
  --shadow-lift: 0 14px 34px -14px rgba(3, 12, 33, .55);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Digits must align in every table, chip and code. */
table, .code, .postal__code, .stat__n, .num, .result__code, .cell__meta { font-variant-numeric: tabular-nums; }

h1, h2, h3 { line-height: 1.22; margin: 0 0 .5em; font-weight: 680; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: var(--t-h1); letter-spacing: -.024em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* An eyebrow is how a section announces itself without shouting. */
.eyebrow {
  display: block; font-size: var(--t-micro); font-weight: 650;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
  margin: 0 0 6px;
}
.eyebrow--inv { color: var(--blue-300); }

/* ------------------------------------------------------------------ header */

.masthead { background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead__in {
  display: flex; align-items: center; gap: 10px 18px;
  min-height: 60px; flex-wrap: wrap;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -.021em;
  color: var(--navy-900); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--navy-900); }
/* A solid navy tile gives the wordmark the presence a hairline outline never
   could; the red pin-dot is the one warm accent on the page. */
.brand__mark {
  width: 30px; height: 30px; flex: none; border-radius: 7px;
  background: var(--navy-900); color: #fff;
  display: grid; place-items: center;
}
.brand__mark svg { width: 17px; height: 17px; display: block; }

.masthead__nav { margin-left: 0; }
.nav { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.nav a {
  display: block; padding: 7px 11px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-size: var(--t-meta); font-weight: 550;
}
.nav a:hover { background: var(--bg-3); color: var(--navy-900); }
.nav a[aria-current='page'] { color: var(--blue); background: var(--blue-50); }

.masthead__search { flex: 1 0 100%; order: 3; padding-bottom: 12px; }
.masthead__search .search__field { background: var(--bg); }
.masthead__search .search input { padding: 9px 0; }

/* ------------------------------------------------------------------ search */

.search { position: relative; }
.search__field {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--bg); padding: 0 13px;
  transition: border-color .14s, box-shadow .14s;
}
.search__field:focus-within {
  border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100);
}
.search__icon { flex: none; color: var(--ink-3); }
.search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font: inherit; color: var(--ink); padding: 12px 0;
  /* 16px stops iOS Safari zooming the viewport on focus. */
  font-size: 1rem;
}
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search__clear {
  flex: none; border: 0; background: none; cursor: pointer; color: var(--ink-3);
  font-size: 1.2rem; line-height: 1; padding: 6px; border-radius: var(--r-sm);
}
.search__clear:hover { background: var(--bg-3); color: var(--ink); }

/* The hero search is the main visual object on the site: a bright, raised
   plate sitting on the dark band. */
.search--hero .search__field {
  border: 0; border-radius: var(--r-lg); padding: 4px 8px 4px 16px;
  box-shadow: var(--shadow-lift);
}
.search--hero .search__field:focus-within { box-shadow: var(--shadow-lift), 0 0 0 3px var(--blue-300); }
.search--hero .search__icon { color: var(--blue); }
.search--hero input { padding: 16px 0; font-size: 1.0625rem; }
.search--hero .search__clear { padding: 10px; }

.results {
  position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 8px);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lift);
  max-height: min(64vh, 460px); overflow-y: auto; overscroll-behavior: contain;
  padding: 5px; margin: 0; list-style: none; text-align: left;
}
.results:empty { display: none; }
.results li { margin: 0; }
.result {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 11px; border-radius: var(--r-sm);
  text-decoration: none; color: inherit; text-align: left; cursor: pointer;
}
.result:hover, .result[aria-selected='true'] { background: var(--blue-50); }
.result__body { min-width: 0; flex: 1; }
.result__name { font-weight: 620; display: block; color: var(--navy-900); }
.result__name mark { background: #fdeeb3; color: inherit; padding: 0 1px; border-radius: 2px; }
.result__where {
  display: block; font-size: var(--t-meta); color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.result__code {
  flex: none; font-weight: 700; font-size: var(--t-meta);
  color: var(--navy-900); background: var(--blue-100);
  border-radius: var(--r-sm); padding: 3px 8px; letter-spacing: .02em;
}
.result__kind {
  flex: none; font-size: .625rem; letter-spacing: .07em; text-transform: uppercase;
  font-weight: 650; color: var(--ink-3); background: var(--bg-3);
  border-radius: 3px; padding: 3px 7px;
}
.results__note { padding: 12px 13px; font-size: var(--t-meta); color: var(--ink-3); }
.results__note b { color: var(--ink-2); }

/* -------------------------------------------------------------------- hero
   Full-bleed navy band carrying the archipelago. This is the site's identity
   and the reason the homepage does not read as a generated directory. */

.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900); color: #fff;
  padding: 40px 0 76px;
}
/* The map is decorative and aria-hidden; it must never compete with the search
   plate, so it is kept low-contrast and anchored away from the text column. */
.hero__map {
  position: absolute; right: -28%; top: 50%; width: 165%;
  color: var(--blue-300); opacity: .13; pointer-events: none;
}
.hero__map svg { width: 100%; height: auto; display: block; }
.hero__in { position: relative; }
.hero h1 {
  color: #fff; font-size: var(--t-display); letter-spacing: -.03em;
  margin-bottom: 10px; max-width: 16ch;
}
.hero__sub {
  color: var(--blue-200); font-size: var(--t-lead); margin-bottom: 22px; max-width: 46ch;
}
.hero__search { max-width: 660px; }
.hero__examples {
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
  margin: 16px 0 0; font-size: var(--t-meta); color: var(--blue-300);
}
.hero__examples > span { margin-right: 2px; }
.chip {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-navy); background: rgba(255, 255, 255, .06);
  color: #fff; text-decoration: none; font-size: var(--t-meta); font-weight: 500;
}
.chip:hover { background: rgba(255, 255, 255, .15); border-color: var(--blue-300); color: #fff; }

/* -------------------------------------------------------------- stat strip
   Straddles the hero edge so the page gains a real seam instead of an
   uninterrupted white field, and so the numbers read as a headline rather
   than as rows of an admin table. */

.statbar { position: relative; z-index: 2; margin-top: -44px; }
/* Separators are each cell's own hairline shadow rather than a coloured grid
   background, so an odd number of stats leaves plain white at the end of the
   last row instead of a stray filled cell. Column count is left to auto-fit,
   which keeps the same rules correct for the 3-, 4- and 5-stat pages. */
/* Flex rather than grid: items on the final row grow to fill it, so the strip
   never ends in a hole regardless of how many stats a page has (3, 4 or 5) or
   how many fit per row at the current width. */
.stats {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
}
.stat {
  flex: 1 1 150px; min-width: 150px;
  padding: 14px 16px; background: var(--bg); box-shadow: 0 0 0 1px var(--line-2);
}
.stat__n {
  display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.028em;
  color: var(--navy-900); line-height: 1.15;
}
.stat__l {
  display: block; font-size: var(--t-micro); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 3px;
}

/* ------------------------------------------------------------- page layout */

/* The hero and page-head bands are full-bleed and live inside <main>, so the
   element itself carries no top padding; .page-body supplies it for the
   constrained content that follows. */
main { padding-block: 0 56px; }
.page-body { padding-top: 26px; }
.section { margin-top: 40px; }
.section:first-child { margin-top: 0; }

/* Section head: eyebrow + title + optional trailing link, closed by a rule. */
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px 18px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 2px solid var(--line);
}
.section__head h2 { margin: 0; }
.section__head > div { min-width: 0; }
.section__head p { margin: 0; font-size: var(--t-meta); color: var(--ink-3); }

/* A quiet band, used to break long white stretches. */
.band { background: var(--bg-2); border-block: 1px solid var(--line); padding-block: 36px; margin-top: 48px; }
.band .section { margin-top: 0; }

.page-head { margin-bottom: 22px; }
.page-head h1 { margin-bottom: 8px; }
.lede { color: var(--ink-2); font-size: var(--t-lead); max-width: 64ch; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* A light header band on inner pages: separates chrome from content without
   the weight of a second navy field. */
.pagehead-band {
  background: var(--bg-2); border-bottom: 1px solid var(--line); padding-block: 20px 24px;
}

/* ------------------------------------------------------------- breadcrumbs */

.crumbs { margin-bottom: 14px; font-size: var(--t-meta); }
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px;
  list-style: none; margin: 0; padding: 0;
}
.crumbs li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.crumbs li:not(:last-child)::after { content: '›'; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current='page'] { color: var(--navy-900); font-weight: 600; }

/* ------------------------------------------------------------ postal object
   The answer. On a village page this is the single heaviest element, and it
   deliberately echoes the hero so the site feels like one instrument. */

/* The answer block: code object and its administrative record, side by side on
   a wide screen so neither floats in empty space, stacked on a phone. */
.answer { display: grid; gap: 16px; margin-bottom: 24px; }
@media (min-width: 1024px) {
  .answer { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: stretch; }
  .answer .postal { margin-bottom: 0; }
}

.postal {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 8px;
  background: var(--navy-900); color: #fff;
  border-radius: var(--r-lg); padding: 22px; margin-bottom: 0;
  position: relative; overflow: hidden;
}
.postal__label {
  font-size: var(--t-micro); font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue-300);
}
.postal__code {
  font-size: 3rem; font-weight: 700; letter-spacing: .07em; line-height: 1.05; color: #fff;
}
.copy {
  margin-top: 6px; cursor: pointer;
  border: 1px solid var(--line-navy); background: rgba(255, 255, 255, .08); color: #fff;
  border-radius: var(--r); padding: 10px 16px; font: inherit; font-size: var(--t-meta);
  font-weight: 600; transition: background .14s, border-color .14s;
}
.copy:hover { background: rgba(255, 255, 255, .18); border-color: var(--blue-300); }
.copy:focus-visible { outline-color: var(--blue-300); }
.copy[data-copied='1'] { background: #0d7a45; border-color: #0d7a45; }

/* ---------------------------------------------------------------- fact list */

.facts { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.facts dl { margin: 0; display: grid; grid-template-columns: minmax(7.5rem, 36%) 1fr; }
.facts dt, .facts dd { margin: 0; padding: 11px 15px; border-top: 1px solid var(--line-2); min-width: 0; overflow-wrap: break-word; }
.facts dt {
  color: var(--ink-3); background: var(--bg-2);
  font-size: var(--t-micro); font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
}
.facts dd { font-weight: 550; color: var(--navy-900); }
.facts dt:first-of-type, .facts dl > dt:first-child + dd { border-top: 0; }

/* -------------------------------------------------------------------- table */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-body); }
caption { text-align: left; padding: 0 0 10px; color: var(--ink-3); font-size: var(--t-meta); }
th, td { padding: 11px 15px; text-align: left; border-top: 1px solid var(--line-2); }
thead th {
  border-top: 0; background: var(--bg-2); color: var(--ink-3);
  font-size: var(--t-micro); font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; position: sticky; top: 0;
}
tbody tr:hover { background: var(--blue-50); }
th.rowname { font-weight: 550; color: var(--navy-900); }
td.code, th.code { font-weight: 700; color: var(--navy-900); white-space: nowrap; width: 1%; }
td.kind { color: var(--ink-3); font-size: var(--t-meta); white-space: nowrap; width: 1%; }
.table-wrap table { min-width: 100%; }

/* ---------------------------------------------------------- directory lists
   One surface for every list of places on the site: a single bordered panel
   with hairline-divided rows. Using it everywhere removes the field of little
   rounded cards and makes regions, regencies, districts and siblings read as
   the same kind of object. */

.plist {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--bg);
}
.plist > li { border-top: 1px solid var(--line-2); min-width: 0; }
.plist > li:first-child { border-top: 0; }
.plist__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 11px 15px; text-decoration: none; color: inherit; height: 100%;
  transition: background .14s;
}
a.plist__item { cursor: pointer; }
a.plist__item:hover { background: var(--blue-50); }
.plist__name { font-weight: 560; min-width: 0; color: var(--navy-900); }
a.plist__item .plist__name { color: var(--blue); }
a.plist__item:hover .plist__name { color: var(--blue-dark); }
.plist__meta { flex: none; font-size: var(--t-meta); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.plist__item--plain { background: var(--bg-2); }
.plist__item--plain .plist__name { color: var(--ink-2); }

/* ------------------------------------------------------------ region panels
   Panels give the archipelago a legible structure, so the province directory
   reads as regions of a country rather than as rows of a spreadsheet. */

.regions { display: grid; gap: 14px; grid-template-columns: 1fr; }
.region {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg); overflow: hidden;
}
.region__head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.region__idx {
  flex: none; width: 26px; height: 26px; border-radius: var(--r-sm);
  background: var(--navy-900); color: #fff;
  display: grid; place-items: center;
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .02em;
}
.region__name {
  margin: 0; font-size: var(--t-h3); font-weight: 680; color: var(--navy-900);
  letter-spacing: -.015em; min-width: 0;
}
.region__meta { margin-left: auto; font-size: var(--t-meta); color: var(--ink-3); white-space: nowrap; }
/* Inside a panel the list supplies rows only; the panel already draws the box. */
.region .plist { border: 0; border-radius: 0; }

/* ------------------------------------------------------------------ notices */

.note {
  border: 1px solid var(--line); background: var(--bg-2);
  border-left: 3px solid var(--blue); border-radius: var(--r);
  padding: 13px 15px; font-size: var(--t-meta); color: var(--ink-2);
}
.note--warn { background: var(--amber-bg); border-color: var(--amber-line); border-left-color: var(--amber-line); color: var(--amber-ink); }
.note a { color: inherit; }

.badge {
  display: inline-block; font-size: .625rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 3px; vertical-align: 1px;
  background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-line);
}

/* ------------------------------------------------------------------- footer */

.foot {
  background: var(--navy-900); color: var(--blue-200);
  padding-block: 32px; margin-top: 56px;
}
.foot__in { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.foot__brand {
  display: flex; align-items: center; gap: 10px; color: #fff;
  font-weight: 680; letter-spacing: -.02em; margin-bottom: 12px;
}
.foot__brand svg { width: 16px; height: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--blue-200); text-decoration: none; font-size: var(--t-meta); }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot a:focus-visible { outline-color: var(--blue-300); }
.foot__note { font-size: var(--t-meta); color: #8ea6d4; max-width: 60ch; margin: 0; }

/* --------------------------------------------------------------------- 404 */

.center { text-align: center; padding-block: 52px; }
.center .search { max-width: 540px; margin: 24px auto 0; text-align: left; }
.center .lede { margin-inline: auto; }

/* WCAG 2.2 AA asks for 24x24 CSS px targets. Small navigational links —
   breadcrumbs, footer links, the name cell in a data table — are raised to
   that floor without inflating the layout the way a 44px minimum would.
   (Links inside running prose are exempt and stay inline.) */
.crumbs a, .crumbs [aria-current='page'], .foot a {
  display: inline-flex; align-items: center; min-height: 24px;
}
th.rowname a { display: block; padding-block: 3px; }
.facts dd a { display: inline-flex; align-items: center; min-height: 24px; }

.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;
}

.mt-3 { margin-top: 12px; }
.mt-5 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 20px; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 66ch; }

/* --------------------------------------------------------------- viewports */

@media (max-width: 559px) {
  table { font-size: var(--t-meta); }
  th, td { padding: 10px 9px; }
  caption { padding-bottom: 8px; }
}

/* Two per row on a phone; the flex basis above handles the rest. */
@media (max-width: 767px) {
  .stat { flex-basis: 40%; min-width: 40%; }

  /* Comfortable touch targets: nav links and example chips are small text, so
     they get an explicit minimum height rather than relying on line-box size. */
  .nav a, .chip {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .nav a { padding-inline: 12px; }
  .chip { padding-block: 0; padding-inline: 14px; }
  .search__clear { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

@media (min-width: 560px) {
  .plist--2, .plist--3, .plist--4 { grid-template-columns: repeat(2, 1fr); }
  .plist--2 > li:nth-child(2), .plist--3 > li:nth-child(2), .plist--4 > li:nth-child(2) { border-top: 0; }
  .plist--2 > li:nth-child(even), .plist--3 > li:nth-child(even), .plist--4 > li:nth-child(even) {
    border-left: 1px solid var(--line-2);
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 28px;
    --t-h1: 2.125rem;
    --t-h2: 1.5rem;
    --t-display: 3rem;
  }
  .hero { padding: 64px 0 92px; }
  .stat { padding: 16px 18px; }
  .stat__n { font-size: 1.75rem; }
  .postal { padding: 26px 28px; }
  .postal__code { font-size: 3.75rem; }
  /* Three-up lists re-stripe: the first row and the left column lose dividers. */
  .plist--3 { grid-template-columns: repeat(3, 1fr); }
  .plist--3 > li:nth-child(-n + 3) { border-top: 0; }
  .plist--3 > li { border-left: 1px solid var(--line-2); }
  .plist--3 > li:nth-child(3n + 1) { border-left: 0; }
  main { padding-block: 0 64px; }
  .page-body { padding-top: 32px; }
  .pagehead-band { padding-block: 26px 30px; }
}

@media (min-width: 1024px) {
  /* Search sits between the wordmark and the nav; the nav is pushed to the far
     right by an auto margin, which also keeps it right-aligned on the homepage
     where no header search is rendered. */
  .masthead__in { flex-wrap: nowrap; gap: 24px; }
  .masthead__search { order: 0; flex: 1 1 380px; max-width: 440px; padding-bottom: 0; }
  .masthead__nav { order: 1; margin-left: auto; flex: none; }
  .regions { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero__map { right: -4%; width: 66%; top: 34%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .masthead, .foot, .search, .copy, .crumbs, .hero__map { display: none; }
  .hero, .postal { background: #fff; color: #000; }
  .postal__code, .hero h1 { color: #000; }
  body { font-size: 11pt; }
}
