/* Hreflanova atlas stylesheet. Ivory paper, deep teal ink, terracotta accents. */
@font-face { font-family: "Atlas Serif"; src: url("../type/atlas-serif-roman.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atlas Serif"; src: url("../type/atlas-serif-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --ivory: #f3ede3;
  --paper: #fbf8ef;
  --sand: #eee3cf;
  --line: #ddd1bb;
  --line-soft: #e9e0cf;
  --ink: #12303a;
  --teal: #073949;
  --teal-2: #1d6a67;
  --sea: #d7e8e5;
  --terra: #b24d30;
  --terra-deep: #933c23;
  --gold: #b8862b;
  --muted: #4f5f63;
  --ok: #24704f;
  --warn: #8a5a00;
  --bad: #a3321f;
  --serif: "Atlas Serif", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 10px;
  --shadow: 0 1px 2px rgba(18, 48, 58, .06), 0 6px 18px rgba(18, 48, 58, .07);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1.0625rem/1.65 var(--serif); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--teal-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-deep); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--teal); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.35rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; left: 0; top: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--teal); color: #fff; padding: 10px 16px; z-index: 50; border-radius: 6px; font-family: var(--sans); }
.skip:focus { top: 10px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 860px; }
.ico { flex: none; vertical-align: -3px; }
.kicker, .eyebrow { font: 600 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--terra-deep); margin: 0 0 .55em; }
.eyebrow { color: var(--teal); letter-spacing: .22em; font-size: .8rem; }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .6em 1.25em; border-radius: 6px; font: 600 .95rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.button-terra { background: var(--terra); color: #fff; }
.button-terra:hover { background: var(--terra-deep); color: #fff; }
.button-ink { background: var(--teal); color: #fff; }
.button-ink:hover { background: #0b4c60; color: #fff; }
.button-line { background: var(--paper); color: var(--teal); border-color: #b9ad97; }
.button-line:hover { border-color: var(--teal); color: var(--teal); }
.button[disabled] { opacity: .55; cursor: not-allowed; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--teal); cursor: pointer; }
.iconbtn:hover { border-color: var(--line); background: var(--paper); }

/* top bar and masthead */
.topbar { background: var(--teal); color: #e7efee; font: 400 .8rem/1.3 var(--sans); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .55em; min-width: 0; }
.topbar .ico { width: 15px; height: 15px; }
.topbar .edition { border: 1px solid rgba(231, 239, 238, .45); border-radius: 99px; padding: 1px 9px; white-space: nowrap; }
.dot { opacity: .6; }
.masthead { background: rgba(251, 248, 239, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.masthead-in { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { flex: none; display: block; }
.brand img { width: 238px; height: auto; }
.mainnav { margin-left: auto; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.mainnav a { display: block; padding: 10px 11px; font: 500 .95rem/1.2 var(--sans); color: var(--ink); text-decoration: none; border-radius: 5px; }
.mainnav a:hover { color: var(--terra-deep); background: var(--sand); }
.mainnav a[aria-current="page"] { color: var(--terra-deep); box-shadow: inset 0 -2px 0 var(--terra); border-radius: 0; }
.masthead-tools { display: flex; align-items: center; gap: 8px; }
.menubtn { display: none; }
.searchpanel { border-top: 1px solid var(--line); background: var(--paper); padding: 18px 0 20px; }
.sitesearch label { font: 600 .85rem/1.3 var(--sans); color: var(--teal); display: block; margin-bottom: 8px; }
.sitesearch-row { display: flex; align-items: center; gap: 10px; border: 1px solid #b9ad97; border-radius: 8px; padding: 4px 4px 4px 14px; background: #fff; }
.sitesearch-row input { flex: 1; min-width: 0; border: 0; font: 400 1rem/1.4 var(--sans); padding: 10px 0; background: transparent; color: var(--ink); }
.sitesearch-row input:focus { outline: none; }
.sitesearch-row:focus-within { outline: 3px solid var(--terra); outline-offset: 2px; }
.sitesearch-hint { font: 400 .8rem/1.4 var(--sans); color: var(--muted); margin: 8px 0 0; }
.sitesearch-results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.sitesearch-results a { display: block; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 6px; background: #fff; text-decoration: none; color: var(--ink); font-family: var(--sans); }
.sitesearch-results a:hover, .sitesearch-results a:focus-visible { border-color: var(--terra); }
.sitesearch-results small { display: block; color: var(--muted); }

/* ---------- home: hero ---------- */
.hero { position: relative; background: radial-gradient(ellipse at 75% 30%, #e6efe9 0, rgba(230, 239, 233, 0) 55%), radial-gradient(ellipse at 10% 90%, #efe2cc 0, rgba(239, 226, 204, 0) 50%), var(--ivory); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.2fr); gap: 28px; align-items: center; padding-top: 44px; padding-bottom: 26px; }
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.3vw, 3.7rem); line-height: 1.07; margin-bottom: .45em; }
.hero h1 em { color: var(--terra); font-weight: 600; }
.hero .lede { font-size: 1.13rem; color: #2c4248; max-width: 34em; }
.hero-search { display: flex; align-items: center; gap: 10px; margin: 22px 0 14px; background: #fff; border: 1px solid #cfc3ad; border-radius: 8px; padding: 4px 4px 4px 14px; max-width: 540px; box-shadow: var(--shadow); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 11px 0; font: 400 1rem/1.3 var(--sans); background: transparent; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--terra); outline-offset: 2px; }
.hero-search .ico { color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; }
.chips a, .chip { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 13px; border: 1px solid #cfc3ad; border-radius: 99px; background: rgba(255, 255, 255, .7); font: 500 .84rem/1.2 var(--sans); color: var(--ink); text-decoration: none; }
.chips a:hover { border-color: var(--terra); color: var(--terra-deep); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-map { position: relative; min-width: 0; }
.hero-map .map-img { width: 100%; }
.compass { position: absolute; top: -6px; right: 0; width: 74px; opacity: .9; }
.pins { list-style: none; margin: 0; padding: 0; }
.pin { position: absolute; width: 168px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 9px 10px 8px; font-family: var(--sans); }
.pin-top { display: flex; gap: 8px; align-items: center; }
.pin img { width: 30px; height: 20px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.pin strong { display: block; font-size: .82rem; color: var(--teal); line-height: 1.2; }
.pin span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.35; }
.pin a { display: inline-block; margin-top: 4px; font-size: .68rem; letter-spacing: .1em; font-weight: 600; text-transform: uppercase; color: var(--terra-deep); text-decoration: none; }
.pin a:hover { text-decoration: underline; }
.pin-ca { left: 4%; top: 30%; }
.pin-gb { left: 36%; top: 1%; }
.pin-de { right: 2%; top: 14%; }
.pin-es { left: 47%; top: 46%; }
.stats { position: relative; margin: -42px 0 0 auto; width: min(100%, 470px); display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.stats div { padding: 12px 10px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line-soft); }
.stats strong { display: block; font: 600 1.7rem/1.1 var(--serif); color: var(--teal); }
.stats span { display: block; font: 400 .76rem/1.3 var(--sans); color: var(--muted); }
.hero-foot { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; font: 500 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-foot p { margin: 0; }

/* ---------- home sections ---------- */
.section { padding: 46px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.more { font: 600 .74rem/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--teal); text-decoration: none; display: inline-flex; gap: .5em; align-items: center; }
.more .ico { width: 15px; color: var(--terra); }
.more:hover { color: var(--terra-deep); }

.featured { display: grid; grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-main { position: relative; border-radius: var(--r); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; background: #2f6d78; }
.feature-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 33, 43, 0) 25%, rgba(7, 33, 43, .86) 100%); }
.feature-text { position: relative; z-index: 1; padding: 22px 24px; color: #fff; }
.feature-text h3 { color: #fff; font-size: 1.62rem; margin: 10px 0 8px; }
.feature-text h3 a { color: #fff; text-decoration: none; }
.feature-text h3 a::after { content: ""; position: absolute; inset: 0; }
.feature-text p { color: #edf3f2; font-size: .98rem; margin-bottom: .6em; }
.badge { display: inline-block; background: var(--terra); color: #fff; font: 700 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 3px; }
.feature-text .go { font: 600 .9rem/1.2 var(--sans); }
.fcard { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fcard-body { padding: 16px 16px 10px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.fcard-body .ico { width: 26px; height: 26px; color: var(--terra); }
.fcard h3 { font-size: 1.04rem; margin: 0 0 6px; }
.fcard h3 a { color: var(--teal); text-decoration: none; }
.fcard h3 a::after { content: ""; position: absolute; inset: 0; }
.fcard p { font-size: .9rem; color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.fcard .go { font: 600 .84rem/1.2 var(--sans); color: var(--terra-deep); display: inline-flex; gap: .4em; align-items: center; }
.fcard .go .ico { width: 15px; height: 15px; color: currentColor; }
.fcard img { margin-top: auto; width: 100%; aspect-ratio: 480 / 230; object-fit: cover; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 14px; }
.tile img { width: 84px; height: 84px; }
.tile h3 { margin: 2px 0 4px; font-size: 1.08rem; }
.tile h3 a { color: var(--teal); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile p { font-size: .88rem; color: var(--muted); line-height: 1.5; margin: 0 0 8px; }
.tile .go { font: 600 .84rem/1.2 var(--sans); color: var(--terra-deep); }
.tile:hover, .fcard:hover, .lens:hover, .snap:hover { border-color: #c4a98a; }

.lenses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.lens { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 14px; }
.lens-top { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.lens .ico { width: 30px; height: 30px; color: var(--terra); }
.lens h3 { font-size: .98rem; margin: 0; line-height: 1.25; }
.lens h3 a { color: var(--teal); text-decoration: none; }
.lens h3 a::after { content: ""; position: absolute; inset: 0; }
.lens p { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.5; }

.bench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); }
.bench-intro h2 { margin-bottom: .25em; }
.bench-intro .sub { font-size: 1.12rem; color: var(--teal-2); margin-bottom: .8em; }
.bench-intro p { color: #34494f; }
.demo-tag { display: inline-flex; gap: 6px; align-items: center; font: 700 .68rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--warn); background: #fbf0d9; border: 1px solid #ead2a0; border-radius: 4px; padding: 5px 8px; margin-bottom: 10px; }
.tabs { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tablist { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: #f6f2e8; scrollbar-width: thin; }
.tablist button { flex: none; border: 0; background: transparent; padding: 12px 16px; min-height: 44px; font: 500 .86rem/1.2 var(--sans); color: var(--muted); cursor: pointer; border-right: 1px solid var(--line-soft); }
.tablist button[aria-selected="true"] { background: #fff; color: var(--teal); font-weight: 650; box-shadow: inset 0 -2px 0 var(--terra); }
.tabpanel { padding: 16px 18px; min-width: 0; }
.rel-table { width: 100%; border-collapse: collapse; font: 400 .86rem/1.4 var(--sans); }
.rel-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
.rel-table td { padding: 8px; border-bottom: 1px solid #f0ebe1; vertical-align: top; }
.rel-table code { font-family: var(--mono); font-size: .82rem; color: var(--ink); word-break: break-all; }
.ldot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--teal-2); vertical-align: 1px; }
.ldot.c1 { background: #1f4e79; } .ldot.c2 { background: #b24d30; } .ldot.c3 { background: #c2802f; } .ldot.c4 { background: #24704f; } .ldot.c5 { background: #6a4c93; } .ldot.c0 { background: #2f6d8f; }
.status { display: inline-flex; gap: 4px; align-items: center; font: 600 .76rem/1.2 var(--sans); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.status .ico { width: 13px; height: 13px; }
.status.ok { color: var(--ok); background: #e3f1e9; }
.status.warn { color: var(--warn); background: #fbf0d9; }
.status.bad { color: var(--bad); background: #f8e2dc; }
.mapgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.legend { list-style: none; margin: 0; padding: 0; font: 400 .84rem/1.4 var(--sans); display: grid; gap: 6px; }
.codeblock { margin: 0; background: #0f2f3a; color: #e8f0ef; border-radius: 8px; padding: 14px; font: 400 .8rem/1.6 var(--mono); overflow-x: auto; white-space: pre; tab-size: 2; }
.notes { margin: 0; padding-left: 1.1em; font: 400 .88rem/1.5 var(--sans); }
.notes li { margin-bottom: 6px; }

.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.chain li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.chain li + li::before { content: ""; position: absolute; left: -18px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356656a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.chain .ico { width: 30px; height: 30px; color: var(--terra); }
.chain h3 { font-size: .96rem; margin: 0 0 4px; }
.chain h3 span { color: var(--terra-deep); font: 700 .74rem/1 var(--sans); margin-right: 6px; }
.chain p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.5; }

.snaps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.snap { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; }
.snap-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.snap-top img { width: 34px; height: 23px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.snap h3 { font-size: 1rem; margin: 0; }
.snap h3 a { color: var(--teal); text-decoration: none; }
.snap h3 a::after { content: ""; position: absolute; inset: 0; }
.snap .loc { display: block; font: 400 .78rem/1.3 var(--sans); color: var(--muted); }
.snap p { font-size: .88rem; color: #3b5056; line-height: 1.5; margin: 0 0 10px; }
.snap .pill { margin-top: auto; align-self: flex-start; font: 700 .66rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); background: var(--sea); border-radius: 3px; padding: 5px 8px; }

.latest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.latest li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; padding-bottom: 12px; }
.latest-art img { width: 100%; aspect-ratio: 480 / 250; object-fit: cover; }
.latest .kicker { margin: 10px 12px 4px; font-size: .68rem; }
.latest h3 { font-size: .97rem; margin: 0 12px 6px; line-height: 1.3; }
.latest h3 a { color: var(--teal); text-decoration: none; }
.latest h3 a::after { content: ""; position: absolute; inset: 0; }
.latest-date { margin: 0 12px; font: 400 .76rem/1.3 var(--sans); color: var(--muted); }
.latest li:hover { border-color: #c4a98a; }

/* contact band */
.band { margin-top: 54px; background: #0f3a49 url("../art/band-coast.svg") center / cover no-repeat; color: #fff; }
.band-in { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.band-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .75); }
.band-icon .ico { width: 30px; height: 30px; }
.band h2 { color: #fff; margin: 0 0 4px; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); }
.band p { margin: 0; color: #dce9e8; }
.band-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.band-mail { color: #fff; font: 500 .9rem/1.3 var(--sans); }
.band-mail:hover { color: #ffd7c4; }

/* footer */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding-top: 38px; font-family: var(--sans); }
.foot-in { display: grid; grid-template-columns: 1.7fr repeat(5, minmax(0, 1fr)) 1.1fr; gap: 22px; }
.fbrand p { font-size: .85rem; color: var(--muted); line-height: 1.55; margin: 12px 0 0; }
.fbrand-logo img { width: 210px; }
.fnote a { color: var(--teal-2); }
.fcol h2 { font: 650 .86rem/1.3 var(--sans); color: var(--teal); margin: 4px 0 10px; }
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin-bottom: 6px; }
.fcol a { color: #3b5056; text-decoration: none; font-size: .85rem; display: inline-block; padding: 2px 0; }
.fcol a:hover { color: var(--terra-deep); text-decoration: underline; }
.fmap img { width: 100%; max-width: 230px; opacity: .85; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 14px; padding-bottom: 22px; font-size: .78rem; color: var(--muted); }
.foot-base p { margin: 0; }
.foot-motto { letter-spacing: .14em; text-transform: uppercase; }

/* ---------- inner pages ---------- */
.crumbs { font: 400 .84rem/1.4 var(--sans); margin: 22px 0 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: #a99a80; }
.crumbs a { color: var(--teal-2); }
.crumbs [aria-current] { color: var(--muted); }
.page-head { padding: 4px 0 18px; max-width: 900px; }
.page-head h1 { margin-bottom: .35em; }
.lede { font-size: 1.16rem; color: #2f454b; line-height: 1.6; }
.byline { font: 400 .84rem/1.6 var(--sans); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 .55em; margin: 0 0 6px; }
.byline a { color: var(--teal-2); }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.article { min-width: 0; padding-bottom: 20px; }
.article-head { display: flex; gap: 22px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.market-shape { width: 120px; height: 120px; flex: none; }
.prose { max-width: 760px; }
.prose-wide .wrap > * { max-width: none; }
.prose h2 { margin-top: 1.9em; padding-top: .2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--terra); }
.prose blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 3px solid var(--terra); background: var(--paper); font-style: italic; color: #2f454b; }
.prose blockquote p:last-child { margin: 0; }
.prose blockquote cite { display: block; font: normal 400 .82rem/1.4 var(--sans); color: var(--muted); margin-top: 6px; }
.prose code, .rail code { font: 400 .88em/1.4 var(--mono); background: #efe7d8; padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.prose pre { background: #0f2f3a; color: #e8f0ef; border-radius: 8px; padding: 14px 16px; overflow-x: auto; font: 400 .84rem/1.6 var(--mono); }
.prose pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
.brief { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal-2); border-radius: 8px; padding: 16px 20px 6px; margin: 0 0 1.6em; }
.brief h2 { font: 650 .8rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-2); margin: 0 0 10px; padding: 0; }
.callout { background: #fbf0d9; border: 1px solid #ead2a0; border-radius: 8px; padding: 14px 18px; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--warn); }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.table-wrap:focus-visible { outline: 3px solid var(--terra); }
.prose table, .table-wrap table { width: 100%; border-collapse: collapse; font: 400 .9rem/1.5 var(--sans); min-width: 560px; }
.table-wrap caption { text-align: left; padding: 10px 14px; font: 600 .86rem/1.4 var(--sans); color: var(--teal); caption-side: top; }
.table-wrap th, .table-wrap td { text-align: left; padding: 9px 14px; border-top: 1px solid #efe8da; vertical-align: top; }
.table-wrap thead th { background: #f6f1e6; color: var(--teal); font-weight: 650; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 2px 0 2px 46px; margin-bottom: 14px !important; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font: 700 .9rem/1 var(--sans); }
.faq { margin-top: 2.2em; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line-soft); padding: 4px 0 6px; }
.qa h3 { font-size: 1.06rem; margin: 1em 0 .4em; }
.refs { font: 400 .86rem/1.55 var(--sans); color: #34494f; padding-left: 1.4em !important; }
.refs li { margin-bottom: .55em; }
.refs a { overflow-wrap: anywhere; }
.fixline { font: 400 .86rem/1.55 var(--sans); color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2em; }
.rail { position: sticky; top: 100px; display: grid; gap: 16px; padding-top: 22px; }
.rail-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-family: var(--sans); }
.rail-h { font: 650 .76rem/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .86rem; line-height: 1.45; }
.toc li { margin-bottom: 6px; }
.toc a { color: #34494f; text-decoration: none; }
.toc a:hover { color: var(--terra-deep); text-decoration: underline; }
.rel { list-style: none; margin: 0; padding: 0; }
.rel li { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.rel li:first-child { border-top: 0; padding-top: 0; }
.rel .kicker { display: block; font-size: .64rem; margin-bottom: 2px; }
.rel a { font: 500 .9rem/1.35 var(--serif); color: var(--teal); text-decoration: none; }
.rel a:hover { text-decoration: underline; }
.rail-tool p { font-size: .86rem; color: var(--muted); }
.rail-tool .button { width: 100%; }

/* cards (hubs, archive) */
.cards { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: #c4a98a; }
.card-art img { width: 100%; aspect-ratio: 480 / 220; object-fit: cover; }
.card-body { padding: 14px 16px 12px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.08rem; margin: 0 0 6px; }
.card h3 a { color: var(--teal); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { font-size: .92rem; color: #3b5056; line-height: 1.5; margin: 0 0 10px; }
.card-more { margin-top: auto !important; font: 600 .85rem/1.2 var(--sans); }
.card-more a { color: var(--terra-deep); text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.cards-short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-section { padding: 10px 0 18px; }
.hub-section > .wrap > h2 { margin-top: .6em; }
.hub-intro { max-width: 780px; }
.toolbox { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 6px 0 22px; }
.toolbox h2 { margin-top: 0; }

.filters { display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 18px; font-family: var(--sans); }
.filters label { font: 600 .85rem/1.3 var(--sans); color: var(--teal); display: block; margin-bottom: 6px; }
.filters input[type="search"] { width: 100%; border: 1px solid #b9ad97; border-radius: 6px; padding: 11px 12px; font: 400 1rem/1.3 var(--sans); background: #fff; color: var(--ink); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row .label { font: 600 .8rem/1.3 var(--sans); color: var(--muted); margin-right: 4px; }
.filter-row button { min-height: 38px; padding: 6px 14px; border-radius: 99px; border: 1px solid #b9ad97; background: #fff; color: var(--ink); font: 500 .85rem/1.2 var(--sans); cursor: pointer; }
.filter-row button[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.count { font: 500 .88rem/1.4 var(--sans); color: var(--muted); margin: 0 0 12px; }
.empty { background: #fff; border: 1px dashed #b9ad97; border-radius: 10px; padding: 18px; font-family: var(--sans); }

/* workbench page */
.wb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; align-items: start; margin-bottom: 26px; }
.wb-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; font-family: var(--sans); }
.wb-panel h2 { font-family: var(--serif); font-size: 1.3rem; }
.wb label { font: 600 .9rem/1.3 var(--sans); color: var(--teal); display: block; margin-bottom: 6px; }
.wb textarea { width: 100%; min-height: 220px; border: 1px solid #b9ad97; border-radius: 8px; padding: 12px; font: 400 .88rem/1.55 var(--mono); color: var(--ink); background: #fffdf8; resize: vertical; }
.wb .help { display: block; font-size: .82rem; color: var(--muted); margin: 6px 0 12px; line-height: 1.5; }
.wb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.wb-opts { display: grid; gap: 8px; margin: 12px 0; font-size: .88rem; }
.wb-opts label { font-weight: 500; color: var(--ink); display: flex; gap: 8px; align-items: center; margin: 0; }
.wb-opts input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--teal); }
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.issues { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: .88rem; line-height: 1.45; }
.issues li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; padding: 8px 10px; border-radius: 6px; background: #faf7f0; border: 1px solid #efe8da; }
.out-area { width: 100%; min-height: 180px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: 400 .8rem/1.6 var(--mono); background: #0f2f3a; color: #e8f0ef; resize: vertical; white-space: pre; overflow: auto; }
.copy-note { font-size: .82rem; color: var(--muted); min-height: 1.3em; margin: 6px 0 0; }
.tests { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tests th, .tests td { text-align: left; padding: 8px 10px; border-top: 1px solid #efe8da; vertical-align: top; }
.tests code { font: 400 .8rem/1.4 var(--mono); word-break: break-all; }

/* forms (contact) */
.letter { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; font-family: var(--sans); }
.letter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin: 0 0 14px; }
.field label { display: block; font: 600 .88rem/1.3 var(--sans); color: var(--teal); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { width: 100%; border: 1px solid #b9ad97; border-radius: 6px; padding: 11px 12px; font: 400 1rem/1.35 var(--sans); background: #fffdf8; color: var(--ink); }
.field textarea { resize: vertical; }
.help { display: block; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.tick { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.tick input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); }
.tick label { font-weight: 400; color: var(--ink); }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; font-family: var(--sans); }
.flash p:last-child { margin: 0; }
.flash.is-ok { background: #e3f1e9; border: 1px solid #b7d9c5; }
.flash.is-warn { background: #f8e2dc; border: 1px solid #e8b7aa; }
.flash.is-soon { background: #fbf0d9; border: 1px solid #ead2a0; }
.flash-h { font-weight: 700; color: var(--teal); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; font-family: var(--sans); font-size: .92rem; }
.side-card h2 { font-family: var(--serif); font-size: 1.15rem; margin-top: 0; }

dl.terms dt { font-weight: 650; color: var(--teal); margin-top: 1.2em; font-size: 1.06rem; }
dl.terms dd { margin: .3em 0 0; }
.az { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0 !important; font-family: var(--sans); }
.az a { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; }
.notfound { text-align: center; padding: 50px 0 20px; }
.notfound img { margin: 0 auto 18px; width: 120px; }
.notfound .hero-search { margin: 18px auto; }

/* ---------- responsive ---------- */
@media (max-width: 1220px) {
  .lenses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .latest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .latest li:nth-child(n+4) { display: none; }
  .foot-in { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); }
  .fmap { display: none; }
  .mainnav a { padding: 10px 8px; font-size: .9rem; }
  .brand img { width: 210px; }
}
@media (max-width: 1080px) {
  .hide-md { display: none !important; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-map { max-width: 760px; width: 100%; margin: 0 auto; }
  .featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-main { grid-column: 1 / -1; }
  .tiles, .snaps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chain li + li::before { display: none; }
  .bench { grid-template-columns: 1fr; }
  .article-wrap { grid-template-columns: 1fr; gap: 10px; }
  .rail { position: static; padding-top: 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .menubtn { display: inline-grid; }
  .masthead-tools { margin-left: auto; }
  .mainnav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; margin: 0; }
  .mainnav.is-open { display: block; }
  .mainnav ul { flex-direction: column; padding: 8px 20px 14px; gap: 0; }
  .mainnav a { padding: 13px 4px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .mainnav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--terra); padding-left: 12px; }
  html:not(.js) .mainnav { position: static; display: block; box-shadow: none; border: 0; }
  html:not(.js) .masthead-in { flex-wrap: wrap; }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fbrand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .hide-sm { display: none !important; }
  .masthead-in { min-height: 66px; gap: 10px; }
  .brand img { width: 180px; }
  .pins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
  .pin { position: static; width: auto; }
  .compass { width: 52px; }
  .stats { margin: 12px 0 0; width: 100%; }
  .hero-foot { flex-direction: column; gap: 4px; }
  .featured, .tiles, .snaps, .cards, .cards-short, .lenses { grid-template-columns: 1fr; }
  .feature-main { min-height: 280px; }
  .chain { grid-template-columns: 1fr; }
  .latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest li:nth-child(n+4) { display: block; }
  .latest li:nth-child(5) { display: none; }
  .band-in { grid-template-columns: 1fr; }
  .mapgrid { grid-template-columns: 1fr; }
  .article-head { flex-direction: column; gap: 10px; }
  .market-shape { width: 84px; height: 84px; }
  .letter-grid { grid-template-columns: 1fr; }
  .bench { padding: 18px; }
}
@media (max-width: 420px) {
  .brand img { width: 158px; }
  .pins { grid-template-columns: 1fr; }
  .latest { grid-template-columns: 1fr; }
  .stats strong { font-size: 1.4rem; }
  .foot-in { grid-template-columns: 1fr; }
  .tile { grid-template-columns: 64px 1fr; }
  .tile img { width: 64px; height: 64px; }
  .topbar-in { justify-content: flex-start; }
  .topbar-r { margin-left: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .masthead, .band, .foot, .rail, .skip { display: none !important; }
  body { background: #fff; }
}
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > *, .prose-wide .hub-intro { max-width: 820px; }
.wb-panel h2 + .summary, .wb-actions + h2 { margin-top: 18px; }
@media (max-width: 420px) {
  .topbar { font-size: .7rem; }
  .topbar p { gap: .4em; }
  .topbar-in { gap: 8px; }
  .topbar-l { min-width: 0; flex: 1 1 auto; }
  .topbar .edition { padding: 1px 7px; }
}
