/* ==========================================================================
   luxurybrands.llc — style.css
   B4 FRONT-END. Hand-written; copied into site/css/ verbatim by mklux.py.

   REDESIGN, 28 September 2026 — the family edition.

   The owner: "it should be redesigned to look like a derivative of the other
   review sites as well as labs". The ink/gold/ivory register with its three
   display faces, the grain and the vignette is retired (the delivered file is
   kept at work/style.before-redesign.css). This is the review sites' grammar,
   in luxurybrands' own colour:
     · paper white by default and a dark edition behind the header switch,
       exactly the review sites' pattern (js/edition.js sets
       <html data-lb-ed> before the first paint; paper needs nothing);
     · one face, DM Sans, self-hosted — font-src stays 'self';
     · the sticky blurred 64px masthead: square app-icon mark, a tracked
       wordmark, a mono host line, pill links and the edition switch;
     · eyebrows with an accent rule, light display headings, pills, a 16px
       stats panel, cards with a 3px accent top, mono figures;
     · the accent is the maison burgundy #8A1C3A (9.1:1 on paper) and, in the
       dark edition, #F28BA8 (8.3:1 on #0E0B0D) — none of the ten review
       sites uses it, so the register reads as a sibling, not a copy.

   What is KEPT from the delivered file, because audits depend on it:
     · a :focus-visible ring on every control, drawn inside cards  (§8.2#2)
     · [hidden] beats flex/grid/table-row — /maisons/ toggles hidden
     · the skip link off-screen at rest, on-screen on focus    (audit 30)
     · a link inside a sentence is visibly a link: links underline by
       default here, and only whole-row / whole-tile links drop it (audit 31)
     · every class the output emits has a reachable rule       (audit 29)
     · the 12px floor on every size, reduced motion, print
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. THE FACE — DM Sans, SIL Open Font License 1.1
   © 2014 The DM Sans Project Authors                  /fonts/OFL-dm-sans.txt
   One variable file per subset, weights 200–700. latin covers every character
   the register sets (the eight accented maison names and the degree sign in
   N°5 all sit in U+0000–00FF); latin-ext stands behind it so a parent or a
   country name with a Central-European diacritic never draws tofu.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. TOKENS — paper is the default; the dark edition only swaps colours.
   Contrast, sRGB, measured against the ground each is used on:
     ink        #1D1719 on #FFFFFF  17.4:1    on #0E0B0D (dark: #FFF) 19.3:1
     ink-77     paper 9.0:1                   dark 11.0:1
     ink-64     paper 5.3:1 (on tint 5.1:1)   dark 7.7:1   ← the smallest text
     accent     #8A1C3A paper 9.1:1           #F28BA8 dark 8.3:1
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --lb-ink: #1D1719;
  --lb-ink-77: rgba(29, 23, 25, .77);
  --lb-ink-64: rgba(29, 23, 25, .64);
  --lb-ground: #FFFFFF;
  --lb-tint: #FAF8F8;
  --lb-card: #FFFFFF;
  --lb-rule: rgba(29, 23, 25, .12);
  --lb-rule-soft: rgba(29, 23, 25, .07);
  --lb-accent: #8A1C3A;
  --lb-on-accent: #FFFFFF;
  --lb-accent-wash: rgba(138, 28, 58, .07);
  --lb-accent-line: rgba(138, 28, 58, .38);
  --lb-shadow: 0 14px 34px rgba(29, 23, 25, .08);

  --lb-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lb-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --lb-measure: 1265px;
  --lb-measure-wide: 1480px;
  --lb-gutter: clamp(20px, 5vw, 56px);
  --lb-band: clamp(56px, 6.4vw, 96px);
  --lb-sec: clamp(44px, 5vw, 76px);
  --lb-text: 44em;

  /* the six-swatch strip under the masthead: the delivered site's palette,
     kept as a 4px rule — ink, Rolex green, gold, Tiffany, Cartier red, ivory */
  --lb-p1: #1D1719;
  --lb-p2: #1E4A3C;
  --lb-p3: #C9A962;
  --lb-p4: #7EC8C3;
  --lb-p5: #9B1B30;
  --lb-p6: #E9E2D3;
}
:root[data-lb-ed="dark"] {
  color-scheme: dark;
  --lb-ink: #FFFFFF;
  --lb-ink-77: rgba(255, 255, 255, .74);
  --lb-ink-64: rgba(255, 255, 255, .62);
  --lb-ground: #0E0B0D;
  --lb-tint: #141013;
  --lb-card: #19141A;
  --lb-rule: rgba(255, 255, 255, .16);
  --lb-rule-soft: rgba(255, 255, 255, .08);
  --lb-accent: #F28BA8;
  --lb-on-accent: #0E0B0D;
  --lb-accent-wash: rgba(242, 139, 168, .10);
  --lb-accent-line: rgba(242, 139, 168, .45);
  --lb-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  --lb-p1: #3A3036;
}

/* --------------------------------------------------------------------------
   3. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--lb-ground);
  color: var(--lb-ink);
  font-family: var(--lb-sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
/* Links underline by default — a link inside a sentence has nothing but its
   look to say it is a link (audit 31). The nav, the cards, the breadcrumb, the
   pills and the footer columns are whole rows or whole tiles and take the
   underline off below, one rule each. */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--lb-accent-line);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
a:hover { text-decoration-color: var(--lb-accent); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
/* figures in this register are read down a column: every numeral is tabular */
table, .num, .fig, .kpi-n, .checked, .cite-asof, .chip-n { font-variant-numeric: tabular-nums; }

.sr-head {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.wrap { width: min(100% - (2 * var(--lb-gutter)), var(--lb-measure)); margin-inline: auto; }
/* the country atlas is a five-column table; it gets the wider rail */
.wrap-wide { width: min(100% - (2 * var(--lb-gutter)), var(--lb-measure-wide)); margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. FOCUS — never delete. The ring is the accent at 2px, 8.3:1 or better.
   -------------------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--lb-accent); outline-offset: 3px; border-radius: 4px; }
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) { outline: none; }
/* inside a bordered card the ring is drawn inside, so it never lies across the
   neighbour's border; the link is what takes focus, not the <li> */
.maison-card > a:focus-visible,
.atelier-card > a:focus-visible { outline-offset: -4px; border-radius: 10px; }
/* <main tabindex="-1"> is the skip link's target, not a control */
main[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lb-ink);
  color: var(--lb-ground);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   5. MASTHEAD — the review sites' bar: icon + wordmark + host, pill links,
   the edition switch. Collapses to a Menu button at 980px.
   -------------------------------------------------------------------------- */
.palette { display: flex; height: 4px; width: 100%; }
.palette span { flex: 1; }
.p1 { background: var(--lb-p1); }
.p2 { background: var(--lb-p2); }
.p3 { background: var(--lb-p3); }
.p4 { background: var(--lb-p4); }
.p5 { background: var(--lb-p5); }
.p6 { background: var(--lb-p6); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--lb-ground);
  background: color-mix(in srgb, var(--lb-ground) 93%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lb-rule);
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--lb-rule-soft), 0 8px 24px rgba(0, 0, 0, .04); }
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-icon { width: 28px; height: 28px; flex: none; }
.brand-icon rect { fill: var(--lb-accent); }
.brand-gem { fill: var(--lb-on-accent); }
.brand-gem-line { fill: none; stroke: var(--lb-accent); stroke-width: 1; stroke-linejoin: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-mark .word { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.brand-tag { font-family: var(--lb-mono); font-size: .72rem; color: var(--lb-ink-64); white-space: nowrap; }
.brand-tag .tld { color: var(--lb-accent); }

.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .88rem;
  color: var(--lb-ink-77);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-links a.active { color: var(--lb-ink); background: var(--lb-accent-wash); }
.nav-links a[aria-current="page"] { font-weight: 600; }

.menu-btn {
  display: none;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--lb-rule);
  border-radius: 999px;
  background: var(--lb-card);
  color: var(--lb-ink);
  font-size: .82rem;
  font-weight: 600;
}
.menu-btn[aria-expanded="true"] { background: var(--lb-ink); color: var(--lb-ground); border-color: var(--lb-ink); }

/* edition.js marks <html data-lb-js> in the head, so the switch shows the moment it is parsed; without the file it
   stays hidden, because it would do nothing */
html[data-lb-js] .ed-switch[hidden] { display: inline-flex !important; }
.ed-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--lb-rule); border-radius: 999px; flex: none; }
.ed-btn {
  appearance: none;
  display: grid;
  place-items: center;
  width: 32px; height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lb-ink-64);
}
.ed-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ed-btn[data-lb-set="dark"] svg { fill: currentColor; stroke: none; }
.ed-btn:hover { color: var(--lb-ink); }
.ed-btn[aria-pressed="true"] { background: var(--lb-ink); color: var(--lb-ground); }

.breadcrumb { padding: 18px 0 0; font-size: .8rem; color: var(--lb-ink-64); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--lb-rule); }
.breadcrumb a { color: var(--lb-ink-77); text-decoration: none; }
.breadcrumb a:hover { color: var(--lb-ink); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--lb-ink-64); }

/* --------------------------------------------------------------------------
   6. SHARED TYPE — eyebrow, display, lede, pills
   -------------------------------------------------------------------------- */
.kicker, .eyebrow {
  margin: 0 0 18px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--lb-ink-64);
}
.kicker::before, .eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--lb-accent);
}
.kicker a { color: var(--lb-ink); }

.lede { max-width: 36em; font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.5; color: var(--lb-ink-77); }
.lede p + p { margin-top: 12px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--lb-ink);
  border-radius: 999px;
  background: var(--lb-ink);
  color: var(--lb-ground);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}
.pill:hover { background: var(--lb-accent); border-color: var(--lb-accent); color: var(--lb-on-accent); }
.pill.pill-ghost { background: transparent; color: var(--lb-ink); border-color: var(--lb-rule); }
.pill.pill-ghost:hover { background: var(--lb-accent-wash); border-color: var(--lb-accent-line); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--lb-rule);
  padding-bottom: 3px;
}
.more::after { content: "→"; color: var(--lb-accent); }
.more:hover { border-bottom-color: var(--lb-accent); }

/* --------------------------------------------------------------------------
   7. SECTIONS — the vertical rhythm. A maison page nests <section class="cite">
   and <section class="placement"> inside a section, so only main's own
   children take the band padding.
   -------------------------------------------------------------------------- */
main { display: block; }
main > section { padding: var(--lb-sec) 0; }
main > section + section { padding-top: 0; }
main > div.wrap + section { padding-top: 36px; }
main > section section { padding: 0; }
/* the Markdown pages are one <article class="wrap prose"> under the page hero */
main > article.prose { padding: 36px 0 var(--lb-sec); }
/* the grid under the filter band on /maisons/ */
main > .index-tools + section { padding-top: 28px; }
main h2 { margin: 0 0 14px; font-size: clamp(1.6rem, 3.2vw, 2.35rem); letter-spacing: -.04em; line-height: 1.12; }
main h3 { font-size: 1.2rem; letter-spacing: -.02em; }
main h2.sr-head { margin: -1px; }
.section-lede { max-width: 42em; margin-bottom: 26px; color: var(--lb-ink-77); }
.section-lede p + p { margin-top: 12px; }
.section-lede h3, .section-lede h4 { margin: 0 0 8px; font-size: 1.15rem; color: var(--lb-ink); }

.band-head { max-width: 52em; margin-bottom: 26px; }
.band-head .section-lede { margin-bottom: 0; }
.band-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 26px; }
.band { position: relative; }
.band-reviews { padding-block: var(--lb-band); background: var(--lb-tint); border-block: 1px solid var(--lb-rule-soft); }
main > .band-reviews + section { padding-top: var(--lb-band); }

.page-hero { padding: clamp(32px, 4.4vw, 64px) 0 28px; border-bottom: 1px solid var(--lb-rule); }
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.08; }
.page-hero .lede { margin-top: 18px; }
/* a hero stat (the rooms page carries one) sits at its own width, not stretched across the rail */
.page-hero .kpi-row { display: flex; flex-wrap: wrap; margin-top: 28px; }
.page-hero .kpi-row > li { flex: 0 1 auto; min-width: 170px; }

.closing { color: var(--lb-ink-77); }
.closing p { max-width: var(--lb-text); }
.closing p + p { margin-top: 12px; }

/* --------------------------------------------------------------------------
   8. HOME — the hero grid and its panel, then the reviews band
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 5vw, 80px) var(--lb-band); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: end; }
.hero-copy { min-width: 0; }
.hero h1 { margin: 0 0 20px; font-size: clamp(2.6rem, 7.4vw, 5.8rem); font-weight: 200; letter-spacing: -.035em; line-height: 1.04; }
.h1-line { color: var(--lb-accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.panel { overflow: hidden; border: 1px solid var(--lb-rule); border-radius: 16px; background: var(--lb-card); }
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lb-rule-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--lb-ink-64);
}
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lb-accent); }
.panel .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; }
.panel .kpi-row > li { border: 0; border-radius: 0; border-bottom: 1px solid var(--lb-rule-soft); background: none; padding: 14px 16px; }
.panel .kpi-row > li:nth-child(odd) { border-right: 1px solid var(--lb-rule-soft); }
.panel .kpi-n { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.panel-foot { padding: 12px 16px 14px; font-size: .86rem; color: var(--lb-ink-64); }
.panel-foot a { color: var(--lb-ink); }

.shelf-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; list-style: none; }
.shelf-row .chip {
  margin: 0;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--lb-card);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--lb-ink-77);
}
.chip-n { margin-left: 6px; font-family: var(--lb-mono); font-weight: 500; color: var(--lb-accent); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
  gap: 14px;
  list-style: none;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  border: 1px solid var(--lb-rule);
  border-top: 3px solid var(--lb-accent);
  border-radius: 6px 6px 14px 14px;
  background: var(--lb-card);
}
.review-card .mname { margin: 0; font-size: 1.25rem; }
.review-card .mname a { text-decoration: none; }
.review-card .mname a::after { content: " ↗"; font-weight: 400; color: var(--lb-accent); }
.review-card .mname a:hover { text-decoration: underline; text-decoration-color: var(--lb-accent); }
.verdict { font-size: .95rem; line-height: 1.5; color: var(--lb-ink-77); }
.review-card .meta { margin-top: auto; padding-top: 6px; }

/* --------------------------------------------------------------------------
   9. CARDS — .maison-card is an <li> holding one <a>; the <a> is the column.
   -------------------------------------------------------------------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.maison-grid, .atelier-grid, .room-grid { list-style: none; }
.maison-card {
  position: relative;
  border: 1px solid var(--lb-rule);
  border-top: 3px solid var(--lb-accent);
  border-radius: 6px 6px 14px 14px;
  background: var(--lb-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.maison-card:hover,
.maison-card:focus-within { transform: translateY(-2px); box-shadow: var(--lb-shadow); border-color: var(--lb-accent-line); border-top-color: var(--lb-accent); }
.maison-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 196px;
  padding: 14px 16px 16px;
  text-decoration: none;
}
.rank { font-family: var(--lb-mono); font-size: .76rem; color: var(--lb-ink-64); }
.mname { display: block; margin: 6px 0 4px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.meta { font-size: .8rem; color: var(--lb-ink-64); }
.chip {
  display: inline-block;
  align-self: flex-start;
  margin-top: 12px;
  padding: 3px 10px;
  border: 1px solid var(--lb-rule);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--lb-ink-77);
}
/* the card's last written line, pushed to the foot of the column */
.sig { margin-top: auto; padding-top: 14px; font-size: .88rem; line-height: 1.45; color: var(--lb-ink-77); }
.maison-card > a > .chip + .sig { margin-top: 12px; }
.fig { margin-top: 8px; font-family: var(--lb-mono); font-size: .75rem; line-height: 1.5; color: var(--lb-ink-64); }
.sig:empty, .fig:empty { display: none; }

.atelier-card {
  position: relative;
  border: 1px solid var(--lb-rule);
  border-top: 3px solid var(--lb-accent);
  border-radius: 6px 6px 14px 14px;
  background: var(--lb-card);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
/* one maison colour per room — the delivered site's seven gradients, as rules */
.atelier-card:nth-child(1) { border-top-color: #1E4A3C; }
.atelier-card:nth-child(2) { border-top-color: #9B1B30; }
.atelier-card:nth-child(3) { border-top-color: #0D6E68; }
.atelier-card:nth-child(4) { border-top-color: #9A7A2E; }
.atelier-card:nth-child(5) { border-top-color: #1F5A78; }
.atelier-card:nth-child(6) { border-top-color: #5B2A6E; }
.atelier-card:nth-child(7) { border-top-color: #2F6B3F; }
.atelier-card:hover { box-shadow: var(--lb-shadow); border-color: var(--lb-accent-line); }
.atelier-card > a { display: flex; flex-direction: column; min-height: 168px; padding: 16px 18px 18px; text-decoration: none; }
.atelier-card .rank {
  position: absolute;
  right: 16px; bottom: 8px;
  font-size: 2.8rem;
  font-weight: 200;
  line-height: 1;
  color: var(--lb-ink-64);
}
.atelier-card .mname { margin-top: 0; font-size: 1.3rem; }
.atelier-card .meta { margin-top: 6px; max-width: 22em; }
.atelier-card .sig { padding-right: 64px; }

.room-card {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  border: 1px solid var(--lb-rule);
  border-top: 3px solid var(--lb-accent);
  border-radius: 6px 6px 14px 14px;
  background: var(--lb-card);
}
.room-card .room { font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--lb-accent); }
.room-card h3 { margin: 8px 0; font-size: 1.2rem; }
.room-card h3 a:hover { text-decoration-color: var(--lb-accent); }
.room-card .note { font-size: .92rem; color: var(--lb-ink-77); }
.checked { margin-top: auto; padding-top: 14px; font-family: var(--lb-mono); font-size: .74rem; color: var(--lb-ink-64); }

/* --------------------------------------------------------------------------
   10. TOOLBAR, FILTERS, SEARCH — the review sites' filter chips
   -------------------------------------------------------------------------- */
.index-tools { padding: 24px 0 18px; border-bottom: 1px solid var(--lb-rule-soft); background: var(--lb-tint); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  appearance: none;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--lb-rule);
  border-radius: 999px;
  background: var(--lb-card);
  color: var(--lb-ink-77);
  font-size: .8rem;
  font-weight: 600;
}
.filter-btn:hover { border-color: var(--lb-accent-line); color: var(--lb-ink); }
/* maisons.js keeps .active and aria-pressed in step; both are styled so the
   two can never disagree */
.filter-btn.active,
.filter-btn[aria-pressed="true"] { background: var(--lb-accent); border-color: var(--lb-accent); color: var(--lb-on-accent); }
.search-field { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search-field label { font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--lb-ink-64); }
.search {
  min-width: 260px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--lb-rule);
  border-radius: 999px;
  background: var(--lb-card);
  color: var(--lb-ink);
  font-size: .95rem;
}
.search:hover { border-color: var(--lb-accent-line); }
.search::placeholder { color: var(--lb-ink-64); opacity: 1; }
.count-line { margin-top: 14px; font-family: var(--lb-mono); font-size: .78rem; color: var(--lb-ink-64); }
.no-results { margin-top: 14px; padding: 20px; border: 1px dashed var(--lb-rule); border-radius: 12px; color: var(--lb-ink-77); }

/* --------------------------------------------------------------------------
   11. TABLES — the atlas; a caption carrying the source and the as-of date
   -------------------------------------------------------------------------- */
.table-scroll { overflow: auto; border: 1px solid var(--lb-rule); border-radius: 12px; background: var(--lb-card); }
.atlas-table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.atlas-table caption {
  caption-side: top;
  position: sticky;
  left: 0;
  width: min(78ch, calc(100vw - var(--lb-gutter) * 2));
  padding: 14px 14px 12px;
  text-align: left;
  font-size: .86rem;
  color: var(--lb-ink-64);
}
.atlas-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--lb-rule);
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lb-ink-64);
  white-space: nowrap;
  background: var(--lb-tint);
}
.atlas-table td { padding: 10px 14px; border-bottom: 1px solid var(--lb-rule-soft); vertical-align: top; }
.atlas-table tr:hover td { background: var(--lb-accent-wash); }
.atlas-table th[scope="row"] {
  padding-top: 10px;
  border-bottom: 1px solid var(--lb-rule-soft);
  vertical-align: top;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--lb-ink);
  white-space: normal;
  background: none;
}
.num { text-align: right; white-space: nowrap; font-family: var(--lb-mono); font-size: .84rem; color: var(--lb-ink-77); }
.none { color: var(--lb-ink-64); }
/* a country that hosts a maison carries a dot; the caption says what it means */
.atlas-table tr.hosts th[scope="row"]::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--lb-accent);
}
.atlas-table tr:target td,
.atlas-table tr:target th { background: var(--lb-accent-wash); }
.unranked { margin-top: 24px; }
.unranked > p { max-width: var(--lb-text); margin-bottom: 18px; color: var(--lb-ink-77); }

/* --------------------------------------------------------------------------
   12. PROSE — /dossier/, /methode/, /corrections/, /reviews/ and the seven
   atelier essays come out of Markdown. Text runs to a measure; a table in
   the text takes the whole rail and scrolls on its own.
   -------------------------------------------------------------------------- */
.essay { max-width: 36em; font-size: 1.12rem; line-height: 1.72; }
.essay a:hover { text-decoration-color: var(--lb-accent); }
.prose, .essay-block { font-size: 1.0625rem; line-height: 1.72; }
.prose > :not(.table-scroll), .essay-block > :not(.table-scroll) { max-width: var(--lb-text); }
.prose > :first-child, .essay-block > :first-child { margin-top: 0; }
.prose p, .essay-block p { margin-top: 16px; }
.prose h2, .essay-block h2 { margin: 56px 0 14px; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.prose h3, .essay-block h3 { margin: 48px 0 10px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -.03em; }
.prose h4, .essay-block h4 {
  margin: 34px 0 6px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--lb-accent);
}
.prose ul, .prose ol, .essay-block ul, .essay-block ol { margin: 16px 0 16px 1.3em; }
.prose li + li, .essay-block li + li { margin-top: 8px; }
.prose hr, .essay-block hr { margin: 44px 0; border: 0; border-top: 1px solid var(--lb-rule); }
.prose blockquote, .essay-block blockquote {
  margin: 28px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--lb-accent);
  border-radius: 0 12px 12px 0;
  background: var(--lb-tint);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--lb-ink-77);
}
.prose blockquote p:first-child, .essay-block blockquote p:first-child { margin-top: 0; }
.prose code, .essay-block code {
  padding: .06em .34em;
  border-radius: 5px;
  background: var(--lb-accent-wash);
  font-family: var(--lb-mono);
  font-size: .82em;
  overflow-wrap: anywhere;
}
.prose .table-scroll, .essay-block .table-scroll { margin: 24px 0; }
.prose table, .essay-block table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.prose th, .essay-block th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--lb-rule);
  background: var(--lb-tint);
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lb-ink-64);
  white-space: nowrap;
}
.prose td, .essay-block td { padding: 10px 14px; border-bottom: 1px solid var(--lb-rule-soft); vertical-align: top; }
.prose tr:last-child td, .essay-block tr:last-child td { border-bottom: 0; }
/* the corrections ledger's retired strings — data/banned.txt's contract */
.was { color: var(--lb-ink-64); text-decoration: line-through; text-decoration-color: var(--lb-accent); text-decoration-thickness: 1px; }

/* --------------------------------------------------------------------------
   13. STATS AND PANELS
   -------------------------------------------------------------------------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; list-style: none; }
.kpi-row > li { padding: 14px 16px; border: 1px solid var(--lb-rule); border-radius: 12px; background: var(--lb-card); }
.kpi-n { display: block; font-family: var(--lb-mono); font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.kpi-l { display: block; margin-top: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--lb-ink-64); }
.kpi-row.stats { margin-top: 24px; }
.reading-block .section-lede { max-width: var(--lb-text); }

.note-panel {
  max-width: 52em;
  padding: 20px 24px;
  border: 1px solid var(--lb-rule);
  border-left: 3px solid var(--lb-accent);
  border-radius: 0 12px 12px 0;
  background: var(--lb-tint);
  color: var(--lb-ink-77);
}
.note-panel p + p { margin-top: 12px; }
.note-panel h2, .note-panel h3 { margin-bottom: 10px; font-size: 1.15rem; color: var(--lb-ink); }

/* --------------------------------------------------------------------------
   14. A MAISON PAGE — the reading, the house card, the figure, the placement
   -------------------------------------------------------------------------- */
.maison-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.reading { min-width: 0; }
.house-card { position: sticky; top: 88px; overflow: hidden; border: 1px solid var(--lb-rule); border-radius: 16px; background: var(--lb-card); }
.house-card h2 {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lb-rule-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--lb-ink-64);
}
.house-card dl { display: grid; grid-template-columns: minmax(92px, 104px) 1fr; gap: 12px 14px; padding: 16px; }
.house-card dt { padding-top: 2px; font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--lb-ink-64); }
.house-card dd { font-size: .94rem; line-height: 1.5; }
.house-card dd .note { display: block; margin-top: 3px; font-size: .8rem; color: var(--lb-ink-64); }
.note.watch { color: var(--lb-accent); }

.cite {
  max-width: 52em;
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 1px solid var(--lb-rule);
  border-left: 3px solid var(--lb-accent);
  border-radius: 0 12px 12px 0;
  background: var(--lb-tint);
}
.cite h2, .placement h2, .neighbours h2, .also h2 {
  margin: 0 0 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--lb-ink-64);
}
.cite-line { font-size: 1.2rem; font-weight: 500; line-height: 1.45; letter-spacing: -.01em; }
.cite-src { margin-top: 10px; font-size: .86rem; color: var(--lb-ink-77); }
.cite-asof { margin-top: 6px; font-family: var(--lb-mono); font-size: .75rem; color: var(--lb-ink-64); }
.cite-note { margin-top: 6px; font-size: .86rem; color: var(--lb-ink-64); }
.cite.cut { border-left-color: var(--lb-rule); }
.cite.cut p { color: var(--lb-ink-77); }
.placement { max-width: 52em; font-size: 1rem; line-height: 1.72; color: var(--lb-ink-77); }

.neighbours { border-block: 1px solid var(--lb-rule); }
main > .neighbours { padding: 22px 0 24px; margin-bottom: var(--lb-sec); }
.pair { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.nb { font-size: .9rem; font-weight: 600; }
a.nb {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--lb-rule);
  border-radius: 999px;
  text-decoration: none;
}
a.nb:hover { background: var(--lb-accent-wash); border-color: var(--lb-accent-line); }
.nb.prev::before { content: "← "; color: var(--lb-accent); white-space: pre; }
.nb.next::after { content: " →"; color: var(--lb-accent); white-space: pre; }
.nb-end { color: var(--lb-ink-64); font-weight: 400; }

.also { padding-top: 0; }
.also > p { margin-top: 14px; font-size: .92rem; color: var(--lb-ink-77); }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.link-row a {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--lb-rule);
  border-radius: 999px;
  background: var(--lb-card);
  font-size: .84rem;
  font-weight: 600;
  color: var(--lb-ink-77);
  text-decoration: none;
}
.link-row a:hover { color: var(--lb-ink); background: var(--lb-accent-wash); border-color: var(--lb-accent-line); }
.link-row.tight { gap: 5px; }
.link-row.tight a { padding: 2px 9px; font-size: .78rem; font-weight: 500; }

.inline-link { text-decoration: underline; text-decoration-color: var(--lb-accent-line); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.inline-link:hover { text-decoration-color: var(--lb-accent); text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------------
   15. FOOTER — the tint band, four columns, the legal line
   -------------------------------------------------------------------------- */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--lb-rule-soft); background: var(--lb-tint); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px 28px; margin-bottom: 36px; }
.foot-h { margin: 0 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; color: var(--lb-ink-64); }
.site-footer p { font-size: .92rem; color: var(--lb-ink-77); }
.site-footer p + p { margin-top: 8px; }
/* the column entries are whole rows; a link inside a sentence (.inline-link)
   keeps its underline — audit 31 measures exactly that one */
.site-footer a:not(.inline-link) { text-decoration: none; }
.site-footer a:not(.inline-link):hover { color: var(--lb-ink); text-decoration: underline; text-decoration-color: var(--lb-accent); }
.site-footer .brand-mark { margin-bottom: 14px; }
.foot-blurb { max-width: 40ch; line-height: 1.55; }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--lb-rule);
  font-size: .8rem;
  color: var(--lb-ink-64);
}
.legal span:last-child { max-width: 72ch; }

/* --------------------------------------------------------------------------
   16. BREAKPOINTS — 1100 (the bar), 980 (the grids and the menu), 640.
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .brand-tag { display: none; }
  .nav-links a { padding: 7px 10px; }
  .maison-body { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
}
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .maison-body { grid-template-columns: minmax(0, 1fr); }
  .house-card { position: static; }
  .brand-tag { display: block; }
  .menu-btn { display: block; order: 3; }
  .ed-switch { order: 2; }
  .nav-links { display: none; }
  .nav-links.open {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--lb-rule);
    border-radius: 0 0 16px 16px;
    background: var(--lb-ground);
    box-shadow: var(--lb-shadow);
  }
  .nav-links.open a { display: block; padding: 10px 14px; font-size: 1rem; }
  .toolbar { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .brand-tag { display: none; }
  .house-card dl { grid-template-columns: 1fr; gap: 2px 0; }
  .house-card dd { margin-bottom: 10px; }
  .search { min-width: 0; width: 100%; }
  .search-field { width: 100%; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .legal { flex-direction: column; }
  .prose table { font-size: .82rem; }
  .pair { flex-direction: column; align-items: stretch; }
  .site-header { position: static; }
  /* the header scrolls away here, so a fragment jump needs no room kept for it */
  html { scroll-padding-top: 12px; }
}
/* the floor: at 320 the one-row bar (mark, wordmark, switch, Menu) measured 353px wide — every part tightens
   here so the row fits a 320 screen with its 16px gutters, and nothing wraps */
@media (max-width: 400px) {
  :root { --lb-gutter: 16px; }
  .nav { gap: 8px; }
  .brand-mark { gap: 8px; }
  .brand-icon { width: 24px; height: 24px; }
  .brand-mark .word { font-size: .74rem; letter-spacing: .1em; }
  .ed-switch { padding: 2px; }
  .ed-btn { width: 26px; height: 26px; }
  .menu-btn { padding: 6px 11px; }
}

/* --------------------------------------------------------------------------
   17. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .maison-card:hover,
  .maison-card:focus-within { transform: none; }
  .skip-link { transition: none; }
}

/* --------------------------------------------------------------------------
   18. PRINT — a register is a thing people print: ink on paper, whichever
   edition the reader was in.
   -------------------------------------------------------------------------- */
@media print {
  :root, :root[data-lb-ed="dark"] {
    --lb-ink: #000; --lb-ink-77: #222; --lb-ink-64: #444;
    --lb-ground: #fff; --lb-tint: #fff; --lb-card: #fff;
    --lb-rule: #999; --lb-rule-soft: #ccc; --lb-accent: #000;
    --lb-on-accent: #fff; --lb-accent-wash: transparent; --lb-accent-line: #999;
    color-scheme: light;
  }
  .site-header, .palette, .index-tools, .skip-link, .neighbours, .menu-btn, .ed-switch, .hero-actions { display: none; }
  .maison-body, .hero-inner { grid-template-columns: 1fr; }
  .house-card { position: static; }
  .maison-card, .atelier-card, .room-card, .review-card { break-inside: avoid; box-shadow: none; transform: none; }
}
