/* ===========================================================================
   IL SARTORIALE — house style.

   The rules behind the rules:
   · Colour identifies, it does not decorate. Each section of the site owns an
     accent (green tailoring, tobacco materials, oxblood craft, navy shirts and
     countries) and that accent appears as a hairline, an eyebrow and a link —
     never as a filled panel behind a paragraph.
   · Boxes are rules. Panels, tables, notes and figures are separated by 1px
     hairlines on the paper, not by bordered cards floating on it.
   · Three families, three jobs. Bodoni Moda sets display type at large sizes
     only; EB Garamond carries everything that is read; Jost handles the
     interface — navigation, labels, table headers, chips.
   =========================================================================== */
@import url("/static/fonts/fonts.css");

:root {
  --paper:      #FBF7EF;   /* warm ivory ground */
  --paper-2:    #F4EEE2;   /* recessed bands */
  --paper-3:    #FFFDF8;   /* raised sheets: images, tables */
  --ink:        #211E19;   /* warm charcoal */
  --ink-2:      #4A443B;
  --ink-3:      #776E61;
  --rule:       #DED4C1;
  --rule-2:     #C8BCA3;

  --green:      #24503E;   /* tailoring */
  --green-soft: #E4EBE4;
  --oxblood:    #6E2233;   /* craft, history */
  --oxblood-soft:#F2E3E3;
  --tobacco:    #8A5323;   /* materials, cloth */
  --tobacco-soft:#F3E7D6;
  --navy:       #23384F;   /* shirts, countries */
  --navy-soft:  #E2E7EC;
  --brass:      #9A7B33;   /* highlight, prices */
  --charcoal:   #35322C;

  --accent:     var(--green);
  --accent-soft: var(--green-soft);

  --maxw: 1200px;
  --prose: 40rem;
  --shadow: 0 1px 2px rgba(33,30,25,.06);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper:      #16150F;
  --paper-2:    #1D1B14;
  --paper-3:    #221F18;
  --ink:        #EDE6D8;
  --ink-2:      #C6BDAB;
  --ink-3:      #9A9084;
  --rule:       #35312A;
  --rule-2:     #4A443A;
  --green:      #8FBFA3;
  --green-soft: #1F2C25;
  --oxblood:    #D89AA4;
  --oxblood-soft:#2C1E22;
  --tobacco:    #D7A469;
  --tobacco-soft:#2B2118;
  --navy:       #9DB6CE;
  --navy-soft:  #1B222B;
  --brass:      #D3B067;
  --charcoal:   #CFC7B8;
  --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.62 "EB Garamond", Georgia, "Times New Roman", serif;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--rule-2); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 1px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* ---------------------------------------------------------------- headings */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.16; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-family: "Bodoni Moda", "EB Garamond", Georgia, serif; font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.72rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.05em; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); font-style: italic; }
strong, b { font-weight: 600; }

/* Jost handles anything that labels rather than reads. */
.eyebrow, .label, .chip, .crumbs, .mainnav, .tablehead, th, .fineprint, .btn,
.oc-link, .kicker, .metaline, .pill, .stat-k, .tabs a, .facet, .tag {
  font-family: Jost, "Helvetica Neue", Arial, sans-serif;
}
.eyebrow {
  font-size: .72rem; letter-spacing: .17em; text-transform: uppercase;
  font-weight: 600; color: var(--accent); margin: 0 0 .55rem;
}
.kicker { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.fineprint { font-size: .8rem; line-height: 1.5; color: var(--ink-3); }
/* Skip link (inline style in base.html puts it at left:-9999px). Leftward overflow
   is scrollable in a right-to-left document, so that offset made every Arabic page
   10,000px wide and it opened on blank space. Clip it in place instead; it still
   appears on keyboard focus. */
a.fineprint[href="#main"] { left: 0 !important; top: 0; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; }
a.fineprint[href="#main"]:focus { width: auto; height: auto; clip: auto; clip-path: none;
  padding: .45rem .7rem; background: var(--paper-3); border: 1px solid var(--rule); z-index: 100; }
.metaline { font-size: .82rem; color: var(--ink-3); letter-spacing: .01em; }

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: .85rem;
  padding: .5rem clamp(.8rem, 3vw, 1.6rem);
  background: var(--paper); border-bottom: 1px solid var(--rule);
  min-height: 62px;
}
.topbar::after {           /* the second, lighter rule: a printed masthead device */
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--rule); opacity: .5;
}
.brandmark { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: 0 0 auto; min-width: auto; }
.wordmark {
  font-family: "Bodoni Moda", Georgia, serif; font-weight: 700;
  font-size: 1.32rem; letter-spacing: .1em; line-height: 1; text-transform: uppercase;
  display: flex; flex-direction: column; gap: .18rem;
}
.wordmark .sub {
  font-family: Jost, sans-serif; font-size: .58rem; font-weight: 500;
  letter-spacing: .21em; color: var(--ink-3); text-transform: uppercase;
}
.mainnav { display: flex; align-items: center; gap: .1rem; margin-inline-start: auto; }
.mainnav > a, .ddbtn {
  display: block; padding: .5rem .58rem; font-size: .82rem; font-weight: 500;
  letter-spacing: .055em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-2); white-space: nowrap; border-radius: 2px;
}
.mainnav > a:hover, .ddbtn:hover { color: var(--ink); background: var(--paper-2); }
.dd { position: relative; }
.ddmenu {
  display: none; position: absolute; top: calc(100% + 6px); inset-inline-start: 0;
  min-width: 15rem; background: var(--paper-3); border: 1px solid var(--rule);
  box-shadow: 0 12px 30px rgba(33,30,25,.13); padding: .45rem; z-index: 70;
}
.ddmenu.open { display: block; }
.ddmenu a {
  display: block; padding: .42rem .6rem; font-size: .88rem; text-decoration: none;
  color: var(--ink-2); font-family: Jost, sans-serif; letter-spacing: .01em;
}
.ddmenu a:hover { background: var(--paper-2); color: var(--ink); }
.ddmenu .sep { height: 1px; background: var(--rule); margin: .4rem .35rem; }
.ddmenu .gh { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); padding: .5rem .6rem .2rem; font-family: Jost, sans-serif; font-weight: 600; }

.searchwrap { position: relative; flex: 0 1 15rem; min-width: 0; }
#searchBox {
  width: 100%; min-width: 0; padding: .42rem .6rem; font-size: .88rem;
  font-family: Jost, sans-serif; color: var(--ink);
  background: var(--paper-3); border: 1px solid var(--rule); border-radius: 2px;
}
#searchBox::placeholder { color: var(--ink-3); }
.searchresults {
  display: none; position: absolute; top: calc(100% + 5px); inset-inline: 0;
  background: var(--paper-3); border: 1px solid var(--rule); max-height: 70vh;
  overflow: auto; z-index: 80; box-shadow: 0 12px 30px rgba(33,30,25,.15);
}
.searchresults.open { display: block; }
.sr-group { font-family: Jost, sans-serif; font-size: .66rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-3); padding: .5rem .7rem .15rem; }
.sr-item { display: block; padding: .4rem .7rem; text-decoration: none; color: var(--ink); border: 0; }
.sr-item small { display: block; color: var(--ink-3); font-size: .78rem; }
.sr-item:hover, .sr-item.sel { background: var(--accent-soft); }
.iconbtn {
  background: none; border: 1px solid transparent; color: var(--ink-2);
  font-size: 1rem; cursor: pointer; padding: .35rem .45rem; line-height: 1; border-radius: 2px;
}
.iconbtn:hover { background: var(--paper-2); color: var(--ink); }
.savebtn { position: relative; text-decoration: none; }
.favbadge {
  position: absolute; top: -2px; inset-inline-end: -4px; background: var(--oxblood);
  color: #fff; font-family: Jost, sans-serif; font-size: .6rem; font-weight: 600;
  border-radius: 999px; padding: .05rem .28rem; line-height: 1.4;
}
:root[data-theme="dark"] .favbadge { color: #1a1410; }
.burger { display: none; }

/* --------------------------------------------------------------- offcanvas */
.offcanvas {
  position: fixed; top: 0; bottom: 0; width: min(20rem, 86vw); background: var(--paper-3);
  z-index: 110; padding: 1rem; overflow-y: auto; transition: transform .22s ease;
  border-inline-end: 1px solid var(--rule);
}
.offcanvas.left { inset-inline-start: 0; transform: translateX(-102%); }
.offcanvas.right { inset-inline-end: 0; inset-inline-start: auto; transform: translateX(102%);
  border-inline: 1px solid var(--rule) none; }
html[dir="rtl"] .offcanvas.left { transform: translateX(102%); }
html[dir="rtl"] .offcanvas.right { transform: translateX(-102%); }
.offcanvas.open { transform: none !important; }
.oc-head { display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--rule); padding-bottom: .6rem; margin-bottom: .6rem; }
.oc-close { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink-2); }
.offcanvas a { display: block; padding: .4rem 0; text-decoration: none; color: var(--ink-2);
  font-family: Jost, sans-serif; font-size: .92rem; }
.offcanvas a:hover { color: var(--ink); }
.offcanvas details { border-top: 1px solid var(--rule); padding: .35rem 0; }
.offcanvas summary { cursor: pointer; font-family: Jost, sans-serif; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: .35rem 0; }
.offcanvas details a { padding-inline-start: .6rem; }
.oc-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  border-top: 1px solid var(--rule); padding: .7rem 0; font-family: Jost, sans-serif; font-size: .88rem; }
.oc-note { border-top: 1px solid var(--rule); padding-top: .7rem; margin-top: .5rem; font-size: .92rem; color: var(--ink-2); }
.oc-backdrop { position: fixed; inset: 0; background: rgba(20,18,14,.42); z-index: 100; display: none; }
.oc-backdrop.open { display: block; }

/* ------------------------------------------------------------------ layout */
.page { max-width: var(--maxw); margin: 0 auto; padding: 1.6rem clamp(.9rem, 3vw, 1.6rem) 4rem; }
.page.wide { max-width: 1400px; }
.prose { max-width: var(--prose); }
.prose h2 { margin-top: 2.1rem; }
.prose h3 { margin-top: 1.5rem; }
.crumbs { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1.1rem; }
.crumbs a { text-decoration: none; color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 .4rem; opacity: .55; }

/* Section accents. Applied on <main> or a section: sets --accent for children. */
.a-green   { --accent: var(--green);   --accent-soft: var(--green-soft); }
.a-oxblood { --accent: var(--oxblood); --accent-soft: var(--oxblood-soft); }
.a-tobacco { --accent: var(--tobacco); --accent-soft: var(--tobacco-soft); }
.a-navy    { --accent: var(--navy);    --accent-soft: var(--navy-soft); }
.a-charcoal{ --accent: var(--charcoal);--accent-soft: var(--paper-2); }

/* ------------------------------------------------------------ page headers */
.pagehead { border-bottom: 2px solid var(--ink); padding-bottom: 1.1rem; margin-bottom: 1.6rem; }
.pagehead h1 { margin-bottom: .35rem; }
.pagehead .lede { max-width: 46rem; }
.pagehead .metaline { margin-top: .7rem; }
.rule-accent { border-bottom: 2px solid var(--accent); }

.entityhead { display: grid; grid-template-columns: minmax(0,1fr) 20rem; gap: 2rem; align-items: start;
  border-bottom: 2px solid var(--ink); padding-bottom: 1.3rem; margin-bottom: 1.6rem; }
.entityhead.nofig { grid-template-columns: minmax(0,1fr); }
.entityhead h1 { margin-bottom: .3rem; }
.pron { font-size: .9rem; color: var(--ink-3); font-style: italic; margin-bottom: .5rem; }
.pron b { font-style: normal; font-family: Jost, sans-serif; font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

/* -------------------------------------------------------------- quick facts */
.facts { border-top: 1px solid var(--ink); margin: 1.4rem 0 1.8rem; }
.facts .row {
  display: grid; grid-template-columns: 12.5rem minmax(0,1fr); gap: .8rem;
  padding: .58rem 0; border-bottom: 1px solid var(--rule);
}
.facts .k { font-family: Jost, sans-serif; font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding-top: .12rem; }
.facts .v { min-width: 0; }
.facts .v .note, .facts .v .src { display: block; font-size: .78rem; color: var(--ink-3);
  font-family: Jost, sans-serif; margin-top: .12rem; }
.facts .v.missing { color: var(--ink-3); font-style: italic; }

/* ------------------------------------------------------------------ tables */
.tablewrap { overflow-x: auto; margin: 1.2rem 0; position: relative; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; background: none; }
table.data th {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-3); text-align: right; padding: .5rem .55rem; white-space: nowrap;
  border-bottom: 1px solid var(--ink);
}
table.data td { padding: .55rem; text-align: right; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data th.name, table.data td.name { text-align: left; }   /* never rely on :first-child */
table.data td.name { font-weight: 500; min-width: 11rem; }
table.data td.name a { text-decoration: none; }
table.data td.name a:hover { text-decoration: underline; }
table.data td.name small { display: block; color: var(--ink-3); font-size: .78rem;
  font-family: Jost, sans-serif; font-weight: 400; }
table.data tbody tr:hover { background: var(--paper-2); }
table.data td.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
table.data .rank { color: var(--ink-3); font-family: Jost, sans-serif; font-size: .8rem; width: 2.2rem; text-align: right; }
table.data caption { caption-side: bottom; text-align: left; padding-top: .7rem;
  font-size: .8rem; color: var(--ink-3); font-family: Jost, sans-serif; }

/* Two-column comparison table: the one place a tinted column earns its keep,
   because the tint IS the reading aid that keeps a long column pair aligned. */
table.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.cmp th, table.cmp td { padding: .62rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.cmp thead th { border-bottom: 1px solid var(--ink); font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
table.cmp thead th:first-child { width: 11rem; }
table.cmp th.rowlab { text-align: left; font-family: Jost, sans-serif; font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
table.cmp td.diff { background: var(--paper-2); }

/* ------------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.6rem 1.5rem; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }
.grid > * { min-width: 0; }

.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0; }
.card .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2);
  border: 1px solid var(--rule); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.card:hover .ph img { transform: scale(1.035); }
.card h3 { font-family: "Bodoni Moda", Georgia, serif; font-size: 1.12rem; margin: .65rem 0 .2rem; font-weight: 600; }
.card:hover h3 { color: var(--accent); }
.card p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.card .kicker { margin-bottom: .1rem; }
.card.flat { border-top: 1px solid var(--ink); padding-top: .7rem; }
.card.flat h3 { margin-top: 0; }

/* A card with no photograph of its own is a plate, never a borrowed picture: the
   name in Bodoni over a woven ground drawn with gradients (no image file, so
   nothing on the page repeats), a large initial set faintly behind it, the
   section label above and the date or place below. */
.ph.plate {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4/3; padding: .9rem 1rem; overflow: hidden; border: 1px solid var(--rule);
}
.ph.plate > * { position: relative; }
.plate-k, .plate-meta { display: block; font-family: Jost, sans-serif; font-size: .64rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-3); }
.plate-k { margin-bottom: .15rem; }
.plate-meta { margin-top: .35rem; }
.card .ph.plate h3 { margin: 0; color: var(--accent); font-size: clamp(1.02rem, 1.45vw, 1.24rem);
  line-height: 1.12; overflow-wrap: anywhere; }
.card:hover .ph.plate h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.card .ph.plate + p { margin-top: .6rem; }

/* Picture credits: one collapsed list at the foot of each page. */
.picture-credits { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: .7rem;
  font-size: .82rem; color: var(--ink-3); }
.picture-credits summary { cursor: pointer; font-family: Jost, sans-serif; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; }
.picture-credits summary span { color: var(--brass); margin-inline-start: .3rem; }
.picture-credits ol { margin: .8rem 0 .4rem; padding-inline-start: 1.3rem; }
.picture-credits li { margin-bottom: .35rem; overflow-wrap: anywhere; }
.picture-credits a { color: inherit; }


/* Headings sit on the photograph, in white over a dark gradient: the picture
   carries the card and the name is read against it, not beneath it. */
.card .ph.over::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14,12,9,.88) 0%, rgba(14,12,9,.58) 32%,
                              rgba(14,12,9,.08) 66%, rgba(14,12,9,0) 100%); }
.card .ph-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: .8rem .9rem; }
.card .ph-cap::before { content: ""; display: block; width: 1.7rem; height: 2px;
  background: var(--brass); margin-bottom: .45rem; }
.card .ph-k { display: block; font-family: Jost, sans-serif; font-size: .64rem; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(255,255,255,.86); margin-bottom: .2rem; overflow-wrap: anywhere; }
.card .ph-cap h3 { color: #fff; margin: 0; font-size: clamp(1.02rem, 1.45vw, 1.24rem); line-height: 1.12;
  text-shadow: 0 1px 3px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.card:hover .ph-cap h3 { color: #fff; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .18em; }
.card .ph.over + p { margin-top: .6rem; }
.card-meta { display: block; margin-top: .45rem; font-family: Jost, sans-serif; font-size: .7rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* Start Here, as numbered photographs; comparisons, as both subjects side by side. */
.startgrid { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.6rem 1.5rem; }
.startgrid > li { min-width: 0; }
.ph.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2px;
  background: var(--paper-3); }
.ph.split .half { position: relative; overflow: hidden; background: var(--charcoal); min-width: 0; }

/* Three cities, three coats: a photographic strip, headings on the pictures. */
.citystrip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); margin: 2rem 0 2.8rem; }
.citystrip a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: #fff;
  text-decoration: none; background: var(--charcoal); }
.citystrip img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.citystrip a:hover img { transform: scale(1.04); }
.citystrip a::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14,12,9,.92) 0%, rgba(14,12,9,.55) 40%, rgba(14,12,9,.04) 74%); }
.citystrip .cs-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.1rem 1.25rem 1.25rem; }
.citystrip .cs-cap::before { content: ""; display: block; width: 2.2rem; height: 2px; background: var(--brass); margin-bottom: .6rem; }
.citystrip .cs-k { font-family: Jost, sans-serif; font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.85); }
.citystrip h3 { font-family: "Bodoni Moda", Georgia, serif; font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  color: #fff; margin: .25rem 0 .4rem; line-height: 1.05; }
.citystrip p { font-size: .98rem; line-height: 1.4; color: rgba(255,255,255,.92); margin: 0; }

/* Find a maker and the maker indexes: the full table on request. */
.tabledetails { margin-top: 2.6rem; border-top: 1px solid var(--ink); }
.tabledetails > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: baseline; gap: 1rem; padding: .9rem 0; font-family: Jost, sans-serif; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; }
.tabledetails > summary::-webkit-details-marker { display: none; }
.tabledetails > summary > span:first-child::before { content: "+"; display: inline-block; width: 1.1rem;
  color: var(--accent); font-weight: 600; }
.tabledetails[open] > summary > span:first-child::before { content: "\2212"; }
.tabledetails > summary:hover { color: var(--accent); }

/* Find a maker: the map of where the results are. */
.findmap { margin: 2.8rem 0; }
.fm-sea { fill: var(--paper-3); }
.fm-land { fill: var(--paper-2); stroke: var(--rule-2); }
.fm-world, .fm-eu { margin: 0; border: 1px solid var(--rule); background: var(--paper-3); }
.fm-world svg, .fm-eu svg { display: block; width: 100%; height: auto; }
.fm-world { margin-bottom: 1rem; }
.fm-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.fm-pin circle { fill: var(--accent); fill-opacity: .9; stroke: var(--paper-3); }
a.fm-pin:hover circle, a.fm-pin:focus circle { fill: var(--brass); }
.fm-pin text { font-family: Jost, sans-serif; fill: var(--ink); paint-order: stroke; stroke: var(--paper-3);
  stroke-linejoin: round; }
.fm-pin .fm-n { fill: var(--brass); font-weight: 600; }
.fm-eubox { fill: none; stroke: var(--accent); stroke-dasharray: 5 4; }
.fm-eulabel { font-family: Jost, sans-serif; fill: var(--accent); letter-spacing: .06em; }
.fm-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.fm-list li { border-bottom: 1px solid var(--rule); }
.fm-list a, .fm-list .nolink { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .48rem 0; text-decoration: none; color: inherit; }
.fm-list a:hover b { color: var(--accent); }
.fm-list b { font-weight: 600; font-size: 1.04rem; }
.fm-list em { font-style: normal; font-family: Jost, sans-serif; font-size: .8rem; color: var(--brass); font-weight: 600; }

/* The Start Here path is ordered, so it is set as a numbered list rather than a
   grid of identical cards. */
.pathlist { list-style: none; margin: 0; padding: 0; column-count: 2; column-gap: 2.4rem; }
.pathlist li { break-inside: avoid; border-top: 1px solid var(--rule); }
.pathlist a { display: flex; gap: .9rem; align-items: baseline; padding: .7rem 0;
  text-decoration: none; }
.pathlist .n { font-family: Jost, sans-serif; font-size: .78rem; letter-spacing: .1em;
  color: var(--accent); font-weight: 600; flex: 0 0 auto; }
.pathlist .t { min-width: 0; }
.pathlist .t b { display: block; font-family: "Bodoni Moda", Georgia, serif; font-weight: 600;
  font-size: 1.06rem; line-height: 1.25; }
.pathlist a:hover .t b { color: var(--accent); }
.pathlist .t span { display: block; font-size: .9rem; color: var(--ink-2); margin-top: .15rem; }
@media (max-width: 780px) { .pathlist { column-count: 1; } }

/* ------------------------------------------------------------------ chips */
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0; }
.chip, .tag {
  display: inline-block; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  padding: .18rem .48rem; border: 1px solid var(--rule-2); color: var(--ink-2);
  text-decoration: none; border-radius: 2px; white-space: nowrap;
}
.chip:hover, .tag:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--paper-3); }
:root[data-theme="dark"] .chip.on { color: #16150F; }

/* ------------------------------------------------------------------ pieces */
.btn {
  display: inline-block; padding: .5rem .95rem; font-size: .82rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 2px;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.quiet { background: none; color: var(--ink-2); border-color: var(--rule-2); }
.btn.quiet:hover { color: var(--accent); border-color: var(--accent); background: none; }
.btn.sm { padding: .34rem .7rem; font-size: .74rem; }

.note {
  border-inline-start: 2px solid var(--accent); padding: .1rem 0 .1rem .95rem;
  margin: 1.3rem 0; color: var(--ink-2); font-size: .96rem;
}
.note b { color: var(--ink); }
.pull {
  font-family: "Bodoni Moda", Georgia, serif; font-size: 1.35rem; line-height: 1.35;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 1rem 0; margin: 1.8rem 0; color: var(--ink);
}
.stat-strip { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--ink); margin: 1.3rem 0; }
.stat { flex: 1 1 8rem; min-width: 0; padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--rule); }
.stat-k { display: block; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.stat-v { display: block; font-family: "Bodoni Moda", Georgia, serif; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.stat-n { display: block; font-size: .76rem; color: var(--ink-3); font-family: Jost, sans-serif; }

/* -------------------------------------------------------------- depth tabs */
/* "In 30 seconds / The essentials / Deep dive" — the three reading depths. */
.depths { margin: 1.6rem 0; }
.depth-nav { display: flex; gap: 0; border-bottom: 1px solid var(--ink); margin-bottom: 1.2rem; flex-wrap: wrap; }
.depth-nav button {
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  font-family: Jost, sans-serif; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); padding: .55rem .9rem; margin-bottom: -1px; font-weight: 500;
}
.depth-nav button.on { color: var(--ink); border-bottom-color: var(--accent); }
.depth-pane { display: none; }
.depth-pane.on { display: block; }
.simple { font-size: 1.06rem; }
/* Guided view surfaces the plain-language summary inline everywhere. */
.guided-only { display: none; }
:root[data-view="guided"] .guided-only { display: block; }
:root[data-view="guided"] .expert-only { display: none; }

/* --------------------------------------------------------------- diagrams */
/* Drawings are SVG; every word is HTML, so labels keep a real text size at any
   width and wrap in any language. See _diagrams.html for the reasoning. */
.diagram { margin: 1.8rem 0; }
.dia-wrap { width: 100%; border: 1px solid var(--rule); background: var(--paper-3); padding: 1.1rem 1.2rem 1rem; }
.dia-wrap svg { display: block; height: auto; }
.dia-grid { display: grid; gap: 1.1rem 1.4rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dia-grid.dia-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dia-grid.dia-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dia-grid.dia-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Each panel is a subgrid of the row it sits in, so headings, drawings and
   notes line up across panels even when one heading wraps. */
.dia-panel { min-width: 0; display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start;
  padding: .5rem .55rem .55rem; margin: -.5rem -.55rem -.55rem; border-radius: 2px; }
.dia-panel .dia-h { margin-bottom: .15rem; }
.dia-2 .dia-panel, .dia-3 .dia-panel { grid-row: span 4; }
.dia-4 .dia-panel { grid-row: span 5; }
.dia-5 .dia-panel { grid-row: span 3; }
.dia-panel.is-on { background: var(--green-soft); }
.dia-panel.is-on .dia-h { color: var(--green); }
.dia-panel svg { width: 100%; max-width: var(--dia-svgw, 200px); margin: .6rem 0 .5rem; align-self: start; }
.dia-h { font-family: Jost, sans-serif; font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.25; letter-spacing: .01em; }
.dia-s { font-family: Jost, sans-serif; font-size: .84rem; color: var(--ink-2); line-height: 1.4; }
.dia-n { font-family: Jost, sans-serif; font-size: .82rem; color: var(--ink-3); font-style: italic; line-height: 1.4; }
.dia-n + .dia-s { margin-top: .3rem; }
.dia-key { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; margin-top: 1.1rem; padding-top: .65rem; border-top: 1px solid var(--rule);
  font-family: Jost, sans-serif; font-size: .8rem; color: var(--ink-2); }
.dia-key span { display: inline-flex; align-items: center; gap: .45rem; }
.dia-key svg { width: 20px; height: 13px; flex: none; }
/* numbered coat + list */
.dia-fit { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 1rem 2.2rem; align-items: center; }
.dia-fit svg { width: 100%; max-width: 280px; }
.dia-num { font-family: Jost, sans-serif; font-size: 12px; font-weight: 600; fill: var(--paper-3); text-anchor: middle; }
:root[data-theme="dark"] .dia-num { fill: #16150F; }
.dia-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.dia-legend li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .65rem; align-items: start; }
.dia-badge { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--green); color: var(--paper-3);
  font-family: Jost, sans-serif; font-size: .8rem; font-weight: 600; line-height: 1.5rem; text-align: center; }
:root[data-theme="dark"] .dia-badge { color: #16150F; }
/* process rows */
.dia-flow { display: grid; gap: .9rem; }
.dia-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .35rem 1.4rem; align-items: start;
  padding-bottom: .9rem; border-bottom: 1px solid var(--rule); }
.dia-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dia-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .4rem; }
.dia-steps li { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; }
.dia-steps li > span { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--rule-2); padding: .35rem .6rem;
  font-family: Jost, sans-serif; font-size: .84rem; color: var(--ink-2); line-height: 1.3; }
.dia-steps li + li::before { content: "\2192"; color: var(--ink-3); font-family: Jost, sans-serif; }
[dir="rtl"] .dia-steps li + li::before { content: "\2190"; }
.dia-row.is-on .dia-steps li > span { border-color: var(--green); color: var(--ink); }
.dia-steps li.dia-loop > span { border-style: dashed; }
.dia-steps li.dia-loop svg { width: 14px; height: 14px; color: var(--green); }
@media (max-width: 760px) {
  .dia-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1rem; }
  .dia-grid.dia-3, .dia-grid.dia-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem .6rem; }
  .dia-grid.dia-3 .dia-h, .dia-grid.dia-5 .dia-h { font-size: .86rem; }
  .dia-grid.dia-3 .dia-s, .dia-grid.dia-3 .dia-n, .dia-grid.dia-5 .dia-s { font-size: .76rem; }
  .dia-fit { grid-template-columns: 1fr; gap: .8rem; }
  .dia-fit svg { max-width: 200px; }
  .dia-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dia-wrap { padding: .85rem .8rem .75rem; }
}
/* ----------------------------------------------------------------- figures */
figure { margin: 1.5rem 0; }
figure img { display: block; width: 100%; border: 1px solid var(--rule); background: var(--paper-2); }
figcaption { font-size: .82rem; color: var(--ink-3); font-family: Jost, sans-serif;
  line-height: 1.45; margin-top: .45rem; }
figcaption .cred { display: block; color: var(--ink-3); opacity: .85; font-size: .74rem; margin-top: .15rem; }
figcaption a { color: inherit; }
.figside { float: inline-end; width: 20rem; margin: .3rem 0 1.2rem 1.6rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; }

/* ------------------------------------------------------------------- hero */
.hero { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.hero-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.6rem,4vw,3rem) clamp(.9rem,3vw,1.6rem);
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.06; }
.hero .lede { font-size: clamp(1.05rem,1.6vw,1.24rem); }
.hero figure { margin: 0; }
.hero-fig img { aspect-ratio: 5/4; object-fit: cover; }

/* --------------------------------------------------------------- citations */
.cite { font-size: .68em; vertical-align: super; line-height: 0; text-decoration: none;
  color: var(--accent); font-family: Jost, sans-serif; padding: 0 .08em; }
.cite:hover { text-decoration: underline; }
.sources { border-top: 1px solid var(--ink); margin-top: 2.4rem; padding-top: 1rem; }
.sources ol { padding-inline-start: 1.3rem; margin: 0; }
.sources li { font-size: .88rem; color: var(--ink-2); margin-bottom: .5rem; }
.sources li .pub { color: var(--ink-3); font-style: italic; }
.sources li:target { background: var(--accent-soft); }

/* --------------------------------------------------------- verification */
.verify { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: baseline;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: .6rem 0; margin: 1.4rem 0; font-family: Jost, sans-serif; font-size: .78rem; color: var(--ink-3); }
.verify b { color: var(--ink-2); font-weight: 500; }
.stalemark { color: var(--oxblood); font-weight: 500; }

/* ------------------------------------------------------------------ facets */
.facets { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .9rem;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 1rem 0; margin-bottom: 1.4rem; }
.facets > * { min-width: 0; }
.facet label { display: block; font-family: Jost, sans-serif; font-size: .68rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .28rem; }
.facet select, .facet input {
  width: 100%; min-width: 0; padding: .4rem .5rem; font-family: Jost, sans-serif; font-size: .88rem;
  background: var(--paper-3); color: var(--ink); border: 1px solid var(--rule); border-radius: 2px;
}
.facetbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }

/* ------------------------------------------------------------------- star */
.fav { background: none; border: 0; cursor: pointer; color: var(--rule-2); font-size: 1rem;
  padding: 0 .2rem; line-height: 1; }
.fav.on { color: var(--brass); }
.fav:hover { color: var(--brass); }

/* ------------------------------------------------------------------- misc */
.trust { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; padding: .6rem 0;
  border-bottom: 1px solid var(--rule); font-family: Jost, sans-serif; font-size: .76rem;
  color: var(--ink-3); letter-spacing: .04em; }
.trust b { color: var(--ink-2); font-weight: 600; }
.trust .strip-in { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(.9rem,3vw,1.6rem);
  display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; width: 100%; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid var(--ink); padding-bottom: .5rem; margin: 2.6rem 0 1.3rem; }
.sechead h2 { margin: 0; }
.sechead a { font-family: Jost, sans-serif; font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; color: var(--accent); white-space: nowrap; }
.linklist { column-count: 3; column-gap: 2rem; }
.linklist a { display: block; padding: .22rem 0; text-decoration: none; break-inside: avoid; font-size: .95rem; }
.linklist a:hover { color: var(--accent); text-decoration: underline; }
.related { border-top: 1px solid var(--ink); margin-top: 2.4rem; padding-top: 1.2rem; }
.relgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem,1fr)); gap: .9rem 1.4rem; }
.relgrid a { display: block; text-decoration: none; border-top: 1px solid var(--rule); padding-top: .5rem; }
.relgrid .kicker { display: block; font-size: .66rem; }
.relgrid b { font-weight: 500; }
.relgrid a:hover b { color: var(--accent); }

/* ------------------------------------------------------------------- map */
.mapwrap { position: relative; border: 1px solid var(--rule); background: var(--paper-3); }
.mapwrap svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.mp { cursor: pointer; }
.mp circle { transition: r .15s ease; }
.mapcard { position: absolute; background: var(--paper-3); border: 1px solid var(--ink);
  padding: .6rem .75rem; font-size: .86rem; max-width: 15rem; box-shadow: 0 8px 24px rgba(0,0,0,.16);
  pointer-events: none; z-index: 5; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 2px solid var(--ink); background: var(--paper-2); margin-top: 3rem; }
.footer-in { max-width: var(--maxw); margin: 0 auto; padding: 2.2rem clamp(.9rem,3vw,1.6rem) 2.4rem; }
.fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.6rem; }
.fcol b { display: block; font-family: Jost, sans-serif; font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: .55rem; font-weight: 600; }
.fcol a { display: block; padding: .18rem 0; font-size: .92rem; text-decoration: none; color: var(--ink-2); }
.fcol a:hover { color: var(--accent); }
.fsub { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  border-top: 1px solid var(--rule); margin-top: 1.8rem; padding-top: 1.3rem; }
.fsub input { flex: 1 1 15rem; min-width: 0; padding: .5rem .6rem; font-family: Jost, sans-serif;
  font-size: .9rem; background: var(--paper-3); color: var(--ink); border: 1px solid var(--rule); }
.flegal { border-top: 1px solid var(--rule); margin-top: 1.6rem; padding-top: 1.2rem;
  font-size: .77rem; line-height: 1.55; color: var(--ink-3); }
.flegal p { margin-bottom: .8rem; max-width: 62rem; }
.flegal b { color: var(--ink-2); }
.fbottom { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule); margin-top: 1rem; padding-top: 1rem;
  font-family: Jost, sans-serif; font-size: .78rem; color: var(--ink-3); }
.fbottom .row { display: flex; gap: .8rem; align-items: center; }
.fbottom a { color: var(--ink-3); }
.lang-sel { font-family: Jost, sans-serif; font-size: .82rem; padding: .3rem .4rem; min-width: 0;
  background: var(--paper-3); color: var(--ink); border: 1px solid var(--rule); border-radius: 2px; }
.f-family { border-top: 1px solid var(--rule); margin-top: 1.4rem; padding-top: 1rem;
  font-family: Jost, sans-serif; font-size: .82rem; color: var(--ink-3); }
.f-family a { color: var(--ink-2); text-decoration: none; }
.f-family a:hover { color: var(--accent); }

/* --------------------------------------------------------------- lightbox */
.lb { display: none; position: fixed; inset: 0; background: rgba(15,13,10,.94); z-index: 200;
  place-items: center; padding: 2rem; }
.lb.open { display: grid; }
.lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lb .cap { color: #d9d2c4; font-family: Jost, sans-serif; font-size: .84rem; margin-top: .8rem;
  max-width: 46rem; text-align: center; }
.lb .x { position: absolute; top: 1rem; inset-inline-end: 1.2rem; background: none; border: 0;
  color: #d9d2c4; font-size: 2rem; cursor: pointer; }

/* ------------------------------------------------------------------ print */
@media print {
  .topbar, .footer, .offcanvas, .oc-backdrop, .depth-nav, .fav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .depth-pane { display: block !important; }
}

/* ================================================================= tablet */
@media (max-width: 1080px) {
  .mainnav > a, .ddbtn { padding: .5rem .42rem; font-size: .76rem; letter-spacing: .04em; }
  .searchwrap { flex-basis: 11rem; }
  .entityhead { grid-template-columns: minmax(0,1fr) 16rem; }
  .linklist { column-count: 2; }
}
@media (max-width: 920px) {
  .burger { display: block; }
  .mainnav { display: none; }
  .searchwrap { flex: 1 1 auto; margin-inline-start: auto; }
  .hero-in { grid-template-columns: minmax(0,1fr); }
  .entityhead { grid-template-columns: minmax(0,1fr); }
  .figside { float: none; width: auto; margin: 1.3rem 0; }
}

/* ================================================================== phone */
@media (max-width: 640px) {
  .startgrid { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.4rem 1rem; }
  .findmap svg text { display: none; }
  .fm-row { grid-template-columns: minmax(0,1fr); }
  .citystrip { grid-template-columns: minmax(0,1fr); }
  .citystrip a { aspect-ratio: 16 / 10; }

  body { font-size: 17px; }
  .page { padding-top: 1.1rem; }
  .wordmark { font-size: 1.05rem; letter-spacing: .07em; }
  .wordmark .sub { display: none; }
  .facts .row { grid-template-columns: minmax(0,1fr); gap: .1rem; padding: .5rem 0; }
  .facts .k { padding-top: 0; }
  .linklist { column-count: 1; }
  .grid { gap: 1.4rem 1rem; }
  .g3, .g4 { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
  .g2 { grid-template-columns: minmax(0,1fr); }
  .pull { font-size: 1.16rem; }
  .stat { flex: 1 1 45%; }
  .sechead { flex-wrap: wrap; gap: .3rem; }
  .depth-nav button { padding: .5rem .55rem; font-size: .72rem; }

  /* Wide tables: pin the name column and shadow both scroll edges so it is
     obvious there is more to the right. */
  .tablewrap.pin { overflow-x: auto; }
  .tablewrap.pin table.data td.name, .tablewrap.pin table.data th.name {
    position: sticky; inset-inline-start: 0; background: var(--paper);
    box-shadow: 1px 0 0 var(--rule); z-index: 2; min-width: 9.5rem;
  }
  .tablewrap.pin table.data tbody tr:hover td.name { background: var(--paper-2); }
  .hide-sm { display: none !important; }
  table.data { font-size: .88rem; }
  table.cmp thead th:first-child { width: 7rem; }
  table.cmp th, table.cmp td { padding: .5rem .4rem; font-size: .88rem; }


  /* iOS zooms any field under 16px. The real selectors have to be named — a
     bare `input,select` loses to `#searchBox` and `.facet select`. */
  input, select, textarea, #searchBox, .facet select, .facet input,
  .lang-sel, .fsub input, .askbox textarea {
    font-size: 16px !important;
  }
}

/* 19 Sep 2026 (Mark): no count strip under the header on any page. */
.trust { display: none !important; }

/* 19 Sep 2026: section headings wrap on a phone instead of widening the page. */
@media (max-width: 600px) { .sechead { flex-wrap: wrap; row-gap: .25rem; } .sechead > * { min-width: 0; } .sechead a { white-space: normal; } }

/* 19 Sep 2026: phone header. The search box was squeezed to a sliver; the wordmark shrinks a touch, the theme
   switch steps aside on phones and the search box keeps a usable width. */
@media (max-width: 560px) {
  .topbar { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .topbar .wordmark { font-size: 14px; }
  .topbar .theme-toggle { display: none; }
  .topbar .searchwrap { flex: 1 1 90px; min-width: 90px; }
  .topbar .searchwrap input, #searchBox { width: 100%; min-width: 0; }
}

/* 19 Sep 2026: the example questions on Ask wrap on a phone instead of running off the screen. */
@media (max-width: 560px) { .chips { flex-wrap: wrap; } .chips .chip { white-space: normal; text-align: left; line-height: 1.35; max-width: 100%; } }

/* 19 Sep 2026: long addresses in the copyable agent prompts break onto the next line on a phone instead of
   widening the page. */
pre, code, .prompt-text, .prompt-box, .prompt-card { overflow-wrap: anywhere; word-break: break-word; }
pre { max-width: 100%; white-space: pre-wrap; }

/* 19 Sep 2026: pale flannel paper with a cooler ink, so the cloth site has its own colour */
:root{ --paper:#EFF1F2; --paper-2:#E5E8EA; --paper-3:#FAFBFC; --rule:#D7DCDF; --rule-2:#C0C7CB;
       --ink:#1E2124; --ink-2:#464C51; --ink-3:#6C737A; }

/* 19 Sep 2026: plainer display face (Laurence: basic fonts beat the cursive ones) */
h1 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.wordmark { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.card h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.ph.plate .plate-initial { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.citystrip h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.pathlist .t b { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.pull { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.stat-v { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }

/* ---- 21 Sep 2026: card and city names sit under the photograph, not on it ---- */
.card .ph.over { aspect-ratio: auto !important; height: auto !important; overflow: visible !important; }
.card .ph.over::after { display: none !important; }
.card .ph.over > img { display: block; width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; }
.card .ph-cap { position: static !important; padding: .7rem 0 0 !important; }
.card .ph-cap h3, .card:hover .ph-cap h3 { color: var(--ink) !important; text-shadow: none !important; }
.card .ph-k { color: var(--ink-3) !important; }
.citystrip a { aspect-ratio: auto !important; overflow: visible !important; background: var(--paper-3) !important;
               color: var(--ink) !important; }
.citystrip a::after { display: none !important; }
.citystrip img { height: auto !important; aspect-ratio: 3 / 4; }
.citystrip .cs-cap { position: static !important; padding: .8rem 1rem 1rem !important; }
.citystrip .cs-cap, .citystrip .cs-cap * { color: var(--ink) !important; text-shadow: none !important; }
.citystrip .cs-cap small, .citystrip .cs-cap span { color: var(--ink-3) !important; }

/* 22 Sep 2026 (design review): the letter tiles on picture-less cards were inconsistent (lowercase, stray letters); the woven plate stands alone. */
.plate-initial{display:none !important}

/* =====================================================================
   7 Oct 2026 — the design pass (Mark: "generally needs more work"; the
   reviews: "no grids of plain text boxes").

   The problem on the page was not colour or type but EMPTINESS: a card
   with no photograph was a pale 4:3 rectangle with a weave drawn so faintly
   it read as a loading placeholder, and whole index pages were nothing but
   those rectangles. Three devices replace them.

   1. THE SWATCH. A card with no picture is a cloth swatch — a chalk stripe,
      a herringbone, a glen check, a birdseye, a donegal — drawn in CSS at
      the contrast real cloth has, with the name on a paper label pinned to
      it the way a bunch label is. It is honest (there is no borrowed
      photograph), it is on subject, and a wall of them reads as a tailor's
      bunch book rather than as wireframes.
   2. THE LEDGER. Long lists of makers are set as a two-column ledger — a
      small swatch, the name in the display face, city and date in small
      caps, one line of lede, a hairline between rows — which is how a
      printed directory looks, and is denser and calmer than a grid.
   3. THE VERSUS CARD. A comparison is two names set large either side of
      an italic "vs", not a pink box.

   Everything here is appended on purpose: the file's history of dated
   overrides is its changelog, and the earlier rules still describe the
   photograph cards, which are unchanged.
   ===================================================================== */

:root {
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

/* ---------------------------------------------------------- the weaves */
/* Every weave is drawn from three tokens that follow the section accent:
   a light ground, a thread colour, and a dark ground for the cloths that
   are dark with a light stripe (chalk stripe, pinstripe, flannel). */
.weave {
  --wg:  color-mix(in srgb, var(--accent) 13%, var(--paper-2));   /* light ground */
  --wt:  color-mix(in srgb, var(--accent) 58%, var(--ink-3));     /* thread */
  --wt2: color-mix(in srgb, var(--accent) 34%, transparent);      /* second thread */
  --wd:  color-mix(in srgb, var(--accent) 46%, #2B2F34);          /* dark ground */
  --wl:  rgba(255,255,255,.62);                                   /* light thread on dark */
  background-color: var(--wg);
  background-repeat: repeat;
}
:root[data-theme="dark"] .weave {
  --wg:  color-mix(in srgb, var(--accent) 16%, var(--paper-2));
  --wt:  color-mix(in srgb, var(--accent) 70%, var(--ink-3));
  --wd:  color-mix(in srgb, var(--accent) 30%, #0E0F10);
  --wl:  rgba(255,255,255,.42);
}
.weave.w-chalk { background-color: var(--wd); background-image:
  repeating-linear-gradient(90deg, transparent 0 26px, var(--wl) 26px 27.5px),
  repeating-linear-gradient(135deg, transparent 0 3px, rgba(255,255,255,.045) 3px 4px); }
.weave.w-pin { background-color: var(--wd); background-image:
  repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.46) 10px 11px); }
.weave.w-flannel { background-color: var(--wd); background-image:
  repeating-linear-gradient(135deg, transparent 0 2px, rgba(255,255,255,.05) 2px 3px),
  repeating-linear-gradient(45deg, transparent 0 2px, rgba(0,0,0,.06) 2px 3px); }
.weave.w-window { background-image:
  repeating-linear-gradient(90deg, transparent 0 46px, var(--wt) 46px 47.5px),
  repeating-linear-gradient(0deg,  transparent 0 46px, var(--wt) 46px 47.5px),
  repeating-linear-gradient(90deg, transparent 0 49px, var(--wt2) 49px 50px),
  repeating-linear-gradient(0deg,  transparent 0 49px, var(--wt2) 49px 50px); }
.weave.w-glen { background-image:
  repeating-linear-gradient(90deg, var(--wt2) 0 3px, transparent 3px 8px, var(--wt2) 8px 11px, transparent 11px 30px),
  repeating-linear-gradient(0deg,  var(--wt2) 0 3px, transparent 3px 8px, var(--wt2) 8px 11px, transparent 11px 30px),
  repeating-linear-gradient(90deg, transparent 0 58px, var(--wt) 58px 59.5px),
  repeating-linear-gradient(0deg,  transparent 0 58px, var(--wt) 58px 59.5px); }
.weave.w-hound { background-image:
  linear-gradient(45deg, var(--wt) 25%, transparent 25%, transparent 75%, var(--wt) 75%),
  linear-gradient(45deg, var(--wt) 25%, transparent 25%, transparent 75%, var(--wt) 75%);
  background-size: 22px 22px; background-position: 0 0, 11px 11px; }
.weave.w-herring { background-image:
  linear-gradient(135deg, var(--wt2) 25%, transparent 25%),
  linear-gradient(225deg, var(--wt2) 25%, transparent 25%),
  linear-gradient(315deg, var(--wt2) 25%, transparent 25%),
  linear-gradient(45deg,  var(--wt2) 25%, transparent 25%);
  background-size: 18px 18px; background-position: -9px 0, -9px 0, 0 0, 0 0; }
.weave.w-birdseye { background-image:
  radial-gradient(var(--wt) 1.1px, transparent 1.7px),
  radial-gradient(var(--wt) 1.1px, transparent 1.7px);
  background-size: 9px 9px; background-position: 0 0, 4.5px 4.5px; }
.weave.w-bengal { background-image:
  repeating-linear-gradient(90deg, var(--wt2) 0 7px, transparent 7px 14px); }
.weave.w-gingham { background-image:
  repeating-linear-gradient(90deg, var(--wt2) 0 12px, transparent 12px 24px),
  repeating-linear-gradient(0deg,  var(--wt2) 0 12px, transparent 12px 24px); }
.weave.w-twill { background-image:
  repeating-linear-gradient(45deg, transparent 0 4px, var(--wt2) 4px 5.5px); }
.weave.w-donegal { background-image:
  radial-gradient(color-mix(in srgb, var(--ink) 70%, transparent) 1.4px, transparent 2px),
  radial-gradient(color-mix(in srgb, var(--oxblood) 75%, transparent) 1.2px, transparent 1.8px),
  radial-gradient(color-mix(in srgb, var(--brass) 80%, transparent) 1.3px, transparent 1.9px),
  radial-gradient(rgba(255,255,255,.7) 1px, transparent 1.6px),
  repeating-linear-gradient(135deg, transparent 0 2px, var(--wt2) 2px 3px);
  background-size: 53px 47px, 71px 61px, 67px 83px, 59px 73px, auto;
  background-position: 7px 11px, 29px 5px, 13px 31px, 41px 23px, 0 0; }
.weave.w-grain { background-image:
  radial-gradient(color-mix(in srgb, var(--ink) 22%, transparent) 2.2px, transparent 3px),
  radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1.6px, transparent 2.4px);
  background-size: 13px 11px, 17px 13px; background-position: 0 0, 6px 5px;
  background-color: color-mix(in srgb, var(--tobacco) 28%, var(--paper-2)); }
.weave.w-brogue { background-color: color-mix(in srgb, var(--tobacco) 36%, var(--paper-2)); background-image:
  radial-gradient(color-mix(in srgb, var(--ink) 55%, transparent) 2.6px, transparent 3.4px),
  radial-gradient(color-mix(in srgb, var(--ink) 40%, transparent) 1.3px, transparent 2px),
  linear-gradient(135deg, transparent 49.4%, color-mix(in srgb, var(--ink) 35%, transparent) 49.4% 50.6%, transparent 50.6%);
  background-size: 22px 22px, 22px 22px, 100% 100%; background-position: 0 0, 11px 11px, 0 0; }

/* ---------------------------------------------------------- the swatch */
.ph.plate { padding: 0; display: block; aspect-ratio: 4 / 3; border: 1px solid var(--rule-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.ph.plate::before { display: none; }                   /* no fade: the cloth is the picture */
.ph.plate .plate-cap {                                  /* the bunch label, pinned bottom-left */
  position: absolute; left: .75rem; bottom: .75rem; max-width: calc(100% - 1.5rem);
  background: var(--paper-3); color: var(--ink); border: 1px solid var(--rule-2);
  padding: .5rem .7rem .55rem .95rem; box-shadow: 0 1px 2px rgba(20,18,14,.12), 0 6px 14px rgba(20,18,14,.08);
}
.ph.plate .plate-cap::before {                          /* the label's eyelet */
  content: ""; position: absolute; left: .3rem; top: .62rem; width: 5px; height: 5px;
  border-radius: 50%; border: 1px solid var(--brass); background: var(--paper); display: block; margin: 0;
}
.card .ph.plate .plate-cap h3, .ph.plate .plate-cap h3 { margin: 0; color: var(--ink); font-size: 1.02rem;
  line-height: 1.15; font-family: var(--display); font-weight: 600; overflow-wrap: anywhere; }
.card:hover .ph.plate .plate-cap h3 { color: var(--accent); text-decoration: none; }
.ph.plate .plate-k, .ph.plate .plate-meta { color: var(--ink-3); font-size: .6rem; letter-spacing: .14em; }
.ph.plate .plate-k { margin-bottom: .18rem; }
.ph.plate .plate-meta { margin-top: .28rem; }
:root[data-theme="dark"] .ph.plate .plate-cap { box-shadow: none; }

/* ---------------------------------------------------------- the ledger */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); column-gap: 2.6rem; }
.ledger > li { min-width: 0; border-bottom: 1px solid var(--rule); }
.ledger a { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 0 1rem; align-items: start;
  padding: .85rem 0 .9rem; text-decoration: none; color: inherit; }
.ledger .sw { aspect-ratio: 1; border: 1px solid var(--rule-2); margin-top: .15rem; }
.ledger .sw.photo { overflow: hidden; }
.ledger .sw.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ledger b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.14rem; line-height: 1.2; }
.ledger a:hover b { color: var(--accent); }
.ledger .lm { display: block; font-family: Jost, sans-serif; font-size: .66rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); margin: .12rem 0 .3rem; }
.ledger .lm em { font-style: normal; color: var(--accent); }
.ledger p { font-size: .93rem; line-height: 1.45; color: var(--ink-2); margin: 0; }
.ledger .fav { position: relative; z-index: 1; }
@media (max-width: 639px) {
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger a { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 0 .8rem; }
}

/* ----------------------------------------------------- the versus card */
.vsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0 2.4rem;
  border-top: 1px solid var(--ink); }
.vs { display: block; text-decoration: none; color: inherit; border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0 1.2rem; min-width: 0; }
.vs .vs-k { font-family: Jost, sans-serif; font-size: .64rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); display: block; margin-bottom: .55rem; }
.vs .vs-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: .7rem; min-height: 5.6rem; }
.vs .vs-a, .vs .vs-b { font-family: var(--display); font-weight: 600; line-height: 1.08;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem); overflow-wrap: anywhere; }
.vs .vs-b { text-align: end; }
.vs .vs-o { font-family: "EB Garamond", Georgia, serif; font-style: italic; color: var(--accent); font-size: 1.05rem;
  display: grid; justify-items: center; gap: .3rem; }
.vs .vs-o::before, .vs .vs-o::after { content: ""; display: block; width: 1px; height: 1.1rem; background: var(--rule-2); }
.vs .vs-bar { height: 4px; margin: .75rem 0 .7rem; background:
  linear-gradient(90deg, var(--accent) 0 50%, var(--ink-3) 50% 100%); opacity: .75; }
.vs:hover .vs-a, .vs:hover .vs-b { color: var(--accent); }
.vs p { font-size: .93rem; color: var(--ink-2); line-height: 1.45; margin: 0; }
.vs .ph.split { margin-bottom: .75rem; }

/* ------------------------------------------------------- the numbered path */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.4rem; }
.steps > li { min-width: 0; border-bottom: 1px solid var(--rule); }
.steps a { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: 0 .6rem; padding: 1rem 0 1.05rem;
  text-decoration: none; color: inherit; align-items: start; }
.steps .n { font-family: var(--display); font-size: 2.3rem; line-height: .95; color: var(--accent);
  letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.steps b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.22; }
.steps a:hover b { color: var(--accent); }
.steps span.l { display: block; font-size: .92rem; line-height: 1.45; color: var(--ink-2); margin-top: .3rem; }
.pathsec { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.4rem 3rem; align-items: start; }
.pathsec figure { margin: 0; }
.pathsec figure img { aspect-ratio: 4 / 5; object-fit: cover; }
.pathsec .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 920px) { .pathsec { grid-template-columns: minmax(0, 1fr); } .pathsec figure { max-width: 26rem; } }
@media (max-width: 760px) { .steps, .pathsec .steps { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------- the contents page (/start-here) */
.contents { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
.contents .steps { grid-template-columns: minmax(0, 1fr); }
.contents .steps .n { font-size: 2.8rem; }
.contents .plates { display: grid; gap: 1.4rem; }
.contents .plates a { display: block; text-decoration: none; color: inherit; }
.contents .plates img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
.contents .plates .cap { font-family: Jost, sans-serif; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-top: .45rem; }
.contents .plates .cap b { color: var(--ink); font-weight: 500; }
@media (max-width: 920px) { .contents { grid-template-columns: minmax(0, 1fr); } .contents .plates { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------------------------------------------------- questions people ask */
.questions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); column-count: 2; column-gap: 3rem; }
.questions li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.questions a { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .5rem; padding: .7rem 0;
  text-decoration: none; color: inherit; font-size: 1.04rem; line-height: 1.35; }
.questions a::before { content: "¶"; font-family: var(--display); color: var(--accent); font-size: 1rem; }
.questions a:hover { color: var(--accent); }
@media (max-width: 639px) { .questions { column-count: 1; } }

/* ---------------------------------------------------- hero and headings */
.hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.55rem); line-height: 1.04; letter-spacing: -.012em; max-width: 14ch; }
.hero .lede { max-width: 36rem; }
.hero-fig img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; outline: 0; border: 0; }
.hero-fig figcaption { margin-top: .9rem; }
.hero .eyebrow::before { content: ""; display: inline-block; width: 2.2rem; height: 1px; background: var(--accent);
  vertical-align: middle; margin-inline-end: .6rem; }
@media (max-width: 920px) { .hero h1 { max-width: none; } .hero-fig { max-width: 30rem; } }

.sechead { align-items: baseline; border-bottom: 1px solid var(--ink); margin-top: 3.2rem; }
.sechead h2 { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.9rem); letter-spacing: -.005em; }
.pagehead { border-bottom-width: 1px; }
.pagehead h1 { max-width: 22ch; }
.pagehead .lede { font-size: 1.14rem; }
.entityhead { border-bottom-width: 1px; }

/* The topbar as a masthead: the second rule sits a little lower and is solid. */
.topbar::after { bottom: -4px; opacity: 1; background: var(--rule-2); height: 1px; }

/* Photograph cards: a printed-plate frame, and the name beneath as before. */
.card .ph.over > img { outline: 0; }  /* 8 Oct: no frames */
.card .ph.over .ph-cap::before { background: var(--accent); }

/* Feature row: the pictured entries of a section, above its ledger. */
.featurerow { margin-bottom: 1.8rem; }

/* The three-school strip on /tailors: drawn shoulders, not borrowed city views. */
.schoolstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); margin: 2rem 0 2.8rem; }
.schoolstrip a { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: center;
  padding: 1.2rem 1.25rem; background: var(--paper-3); text-decoration: none; color: inherit; min-width: 0; }
.schoolstrip .ss-fig svg { display: block; width: 100%; height: auto; }
.schoolstrip .cs-k { font-family: Jost, sans-serif; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.schoolstrip h3 { font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); margin: .2rem 0 .25rem; line-height: 1.1; }
.schoolstrip a:hover h3 { color: var(--accent); }
.schoolstrip .ss-sh { display: block; font-family: Jost, sans-serif; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .4rem; }
.schoolstrip p { font-size: .92rem; line-height: 1.4; color: var(--ink-2); margin: 0; }
@media (max-width: 920px) { .schoolstrip { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .schoolstrip a { grid-template-columns: 5.5rem minmax(0, 1fr); } }

/* Phone: the hero picture runs full width and landscape, the headline steps down a size. */
@media (max-width: 639px) {
  .hero h1 { font-size: 2.05rem; }
  .hero-fig { max-width: none; }
  .hero-fig img { aspect-ratio: 5 / 4; }
  .hero .eyebrow::before { display: none; }
  .steps .n { font-size: 1.9rem; }
  .vs .vs-pair { min-height: 0; }
}
/* The two-column hero rule above is unconditional and was beating the tablet rule; restate it here. */
@media (max-width: 920px) { .hero-in { grid-template-columns: minmax(0, 1fr); } .hero-fig { max-width: none; } }

/* /style and /techniques: the site's own drawing set on the swatch. */
.ph.plate.schoolplate .sh, .ph.plate.drawnplate .sh { position: absolute; inset: 4% 5% 4% auto; width: 46%; display: flex; justify-content: flex-end; align-items: center; }
.ph.plate.schoolplate .sh svg, .ph.plate.drawnplate .sh svg { max-height: 100%; width: auto; max-width: 100%; display: block; }
.ph.plate.schoolplate .plate-cap, .ph.plate.drawnplate .plate-cap { max-width: 58%; }

/* Galleries: captions clamp to three lines (the full record is in the credits
   at the foot of the page), and phones get two columns rather than a dozen
   full-width pictures in a row. */
.gallery figcaption { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 639px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .gallery figcaption { font-size: .74rem; -webkit-line-clamp: 2; } }

/* 8 Oct 2026: entity heads. The picture is landscape and the plain-English
   summary sits beside it, so the headline column is never a block of nothing. */
.entityhead { grid-template-columns: minmax(0, 1fr) 30rem; align-items: start; gap: 2.4rem; }
.entityhead .hero-fig img { aspect-ratio: 4 / 3; object-fit: cover; }
.headsum { font-size: 1.08rem; line-height: 1.55; max-width: 40rem; margin: .9rem 0 0; color: var(--ink); }
.secnote { font-size: 1.02rem; color: var(--ink-2); max-width: 46rem; margin: -.4rem 0 1.2rem; }
@media (max-width: 1080px) { .entityhead { grid-template-columns: minmax(0, 1fr) 22rem; } }
@media (max-width: 920px) { .entityhead { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  /* phone, 8 Oct 2026: the lede already says it in plain words; the picture should come next, not a second paragraph */
  .entityhead .headsum { display: none; } }


/* ---- 8 Oct 2026, evening: the homepage doors as an editorial mosaic (Laurence: "boxy") ---- */
.doorsec .sechead { margin-bottom: 1.4rem; }
.doors { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 9.2rem;
  gap: .9rem; }
.door { position: relative; display: block; overflow: hidden; text-decoration: none; color: #fff;
  background: var(--ink); isolation: isolate; }
.door img, .door .door-weave { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 1.2s cubic-bezier(.2,.6,.2,1), filter 1.2s ease; }
.door:hover img { transform: scale(1.045); }
.door::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12,11,9,.82) 0%, rgba(12,11,9,.46) 28%, rgba(12,11,9,.04) 58%, rgba(12,11,9,0) 100%);
  transition: opacity .6s ease; }
.door-n { position: absolute; top: .9rem; left: 1rem; z-index: 2; font-family: Jost, sans-serif;
  font-size: .66rem; letter-spacing: .22em; color: #fff; background: rgba(12,11,9,.55);
  padding: .32rem .55rem .26rem .62rem; backdrop-filter: blur(3px); }
.door-t { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.1rem 1.1rem 1.05rem; }
.door-t h3 { margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500; font-size: clamp(1.25rem, 1.9vw, 1.9rem); line-height: 1.05; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.door-t p { margin: .4rem 0 0; font-size: .93rem; line-height: 1.4; color: rgba(255,255,255,.84); max-width: 30rem; }
.door:hover .door-t h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.door.d1 { grid-column: span 7; grid-row: span 3; }
.door.d2 { grid-column: span 5; grid-row: span 3; }
.door.d3 { grid-column: span 3; grid-row: span 2; }
.door.d4 { grid-column: span 4; grid-row: span 2; }
.door.d5 { grid-column: span 5; grid-row: span 2; }
.door.d6 { grid-column: span 3; grid-row: span 3; }
.door.d7 { grid-column: span 4; grid-row: span 3; }
.door.d8 { grid-column: span 5; grid-row: span 3; }
.door.d1 .door-t, .door.d8 .door-t { padding: 1.4rem 1.5rem 1.35rem; }
.door.d1 .door-t h3, .door.d8 .door-t h3 { font-size: clamp(1.5rem, 2.6vw, 2.5rem); }
.door.d3 .door-t p, .door.d6 .door-t p { font-size: .86rem; }
@media (max-width: 920px) {
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 7.4rem; gap: .6rem; }
  .door, .door.d2, .door.d3, .door.d4, .door.d5, .door.d6, .door.d7 { grid-column: span 1; grid-row: span 2; }
  .door.d1, .door.d8 { grid-column: span 2; grid-row: span 3; }
  .door-t { padding: .8rem .85rem .75rem; }
  .door-t p { display: none; }
  .door.d1 .door-t p, .door.d8 .door-t p { display: block; font-size: .9rem; }
}

/* generic tiles (m.tiles): spans are inline, phones flatten them to a two-up */
.door-weave { position: absolute; inset: 0; }
.door .door-weave + .door-n, .door .door-weave ~ .door-t h3, .door .door-weave ~ .door-t p { color: var(--ink); }
.door .door-weave ~ .door-t h3 { text-shadow: none; }
.door:has(.door-weave)::after { background: linear-gradient(to top, rgba(255,255,255,.55), rgba(255,255,255,0) 60%); }
.door:has(.door-weave) .door-n { background: rgba(255,255,255,.6); }
.door-k { display: block; font-family: Jost, sans-serif; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-bottom: .3rem; }
@media (max-width: 920px) {
  .doors.tiles .door { grid-column: span 1 !important; grid-row: span 2 !important; }
  .doors.tiles .door:first-child { grid-column: span 2 !important; }
  .doors.tiles .door:first-child .door-t p { display: block; }
}

/* ---- 8 Oct 2026, evening: comparisons as a fixture list, not six identical cells ---- */
.vsgrid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.vs { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 3rem; row-gap: 0;
  grid-template-areas: "pair lede" "bar lede"; align-items: center; padding: 1.35rem 0 1.4rem; }
.vs .vs-k { display: none; }
.vs .ph.split { display: none; }
.vs .vs-pair { grid-area: pair; min-height: 0; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; }
.vs .vs-a, .vs .vs-b { font-size: clamp(1.45rem, 2.3vw, 2.25rem); font-weight: 500; letter-spacing: -.01em; }
.vs .vs-o { font-size: 1.15rem; }
.vs .vs-bar { grid-area: bar; margin: .7rem 0 0; height: 3px; align-self: start; }
.vs p { grid-area: lede; font-size: .98rem; line-height: 1.5; max-width: 34rem; }
.vs:hover .vs-bar { opacity: 1; }
@media (max-width: 920px) {
  .vs { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pair" "bar" "lede"; column-gap: 0; padding: 1.1rem 0 1.15rem; }
  .vs p { margin-top: .7rem; }
}

.doors.tiles + .ledger { margin-top: 1.5rem; }

/* 8 Oct evening: the style strip is three drawings on the page, not three cells in a box */
.schoolstrip { gap: 0 2.6rem; background: transparent; border: 0; border-top: 1px solid var(--ink); padding-top: 1.4rem; }
.schoolstrip a { background: transparent; border: 0; padding: 0; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.schoolstrip .ss-fig { margin-top: -.4rem; }
.schoolstrip h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 500; }
.schoolstrip .ss-sh { margin-bottom: .45rem; }
@media (max-width: 920px) { .schoolstrip { gap: 1.2rem 0; } .schoolstrip a { border-bottom: 1px solid var(--rule); padding-bottom: 1.1rem; }
  .schoolstrip a:last-child { border-bottom: 0; } }

/* ---- 8 Oct evening, run 1: maker head. One rule, not two; offers as a line of words, not pills;
   the four facts as large figures on a four-column rule. ---- */
.entityhead { border-bottom: 0; padding-bottom: .2rem; margin-bottom: 1rem; }
.entityhead .chips { gap: .2rem 0; margin: 1rem 0 0; }
.entityhead .chips .chip { border: 0; background: transparent; padding: 0; border-radius: 0;
  font-family: Jost, sans-serif; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.entityhead .chips .chip.on { color: var(--accent); font-weight: 600; }
.entityhead .chips .chip + .chip::before { content: "\00b7"; margin: 0 .6rem; color: var(--rule-2); font-weight: 400; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2rem; border-top: 1px solid var(--ink); margin: 1.4rem 0 2rem; }
.stat { padding: 1rem 0 1.1rem; }
.stat-k { margin-bottom: .25rem; }
.stat-v { font-size: 2.15rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.stat-v.words { font-size: 1.3rem; line-height: 1.2; }
.stat-n { margin-top: .35rem; }
@media (max-width: 920px) { .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; } .stat-v { font-size: 1.8rem; } }

/* ---- 8 Oct evening, run 2: Learn. The vocabulary as a running line of words, not a cloud of pills. ---- */
.chips.vocab { gap: .35rem 0; margin: .4rem 0 0; }
.chips.vocab .chip { border: 0; background: transparent; padding: 0; border-radius: 0;
  font-family: var(--display); font-size: 1.12rem; color: var(--ink); line-height: 1.5; }
.chips.vocab .chip:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.chips.vocab .chip + .chip::before { content: "\00b7"; margin: 0 .65rem; color: var(--rule-2); }

/* ---- 8 Oct evening, run 2: the footer as a colophon. A large masthead line, hairline newsletter
   field instead of a boxed one, the legal text set small in two columns. ---- */
.footer { border-top: 1px solid var(--ink); background: var(--paper); }
.fmast { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule); padding-bottom: 1.4rem; margin-bottom: 2rem; }
.fmast-w { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.015em; line-height: 1; color: var(--ink); }
.fmast-t { font-family: Jost, sans-serif; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.fcol b { color: var(--ink); }
.fsub { margin: 2.4rem 0 2.2rem; align-items: flex-end; }
.fsub input { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: .55rem 0;
  font-family: var(--display); font-size: 1.2rem; color: var(--ink); box-shadow: none; }
.fsub input:focus { outline: 0; border-bottom-color: var(--accent); }
.fsub input::placeholder { color: var(--ink-3); font-style: italic; }
.fsub .btn.sm { border-radius: 0; }
.flegal { columns: 2; column-gap: 3rem; font-size: .78rem; line-height: 1.5; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.flegal p { margin: 0 0 .7rem; break-inside: avoid; }
.flegal b { color: var(--ink-2); }
@media (max-width: 920px) { .flegal { columns: 1; } .fmast { padding-bottom: 1rem; margin-bottom: 1.4rem; } }

/* ---- 8 Oct evening, run 3: the picture gallery on entity pages as a mosaic, not a grid of equal tiles ---- */
.gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem 1rem; align-items: start; }
.gallery figure { grid-column: span 4; }
.gallery figure:nth-child(5n+1) { grid-column: span 7; }
.gallery figure:nth-child(5n+2) { grid-column: span 5; }
.gallery figure:nth-child(5n+1) img { aspect-ratio: 3 / 2; }
.gallery figure:nth-child(5n+2) img { aspect-ratio: 5 / 4.4; }
.gallery img { outline: 0; border: 0; }
.gallery figcaption { font-size: .8rem; margin-top: .45rem; }
@media (max-width: 920px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .gallery figure, .gallery figure:nth-child(5n+2) { grid-column: span 1; }
  .gallery figure:nth-child(5n+1) { grid-column: span 2; }
}

/* ---- 8 Oct evening (Laurence: "Why does it have to be italics?"): running text is upright.
   The lede is the regular face, a size up and in full ink; nothing a reader has to read is slanted. ---- */
.lede, .pron, .facts .v.missing, .dia-n, .sources li .pub, .fsub input::placeholder { font-style: normal; }
.lede { color: var(--ink); font-size: 1.22rem; line-height: 1.55; }
.pagehead .lede { font-size: 1.18rem; }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.26rem); }
