/* Fraunces and Inter: SIL Open Font License 1.1. See ../fonts/OFL-Fraunces.txt and ../fonts/OFL-Inter.txt */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  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; }
/* ============================================================
   Switchman Pen Co. — base styles
   Neutral, warm "stationery" chrome. Each ink's own color is the
   accent (passed in as --ink-accent via inline style), so the palette
   is driven by the catalog data, not hardcoded per page.
   ============================================================ */

:root {
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --ink: #1c1815;
  --ink-soft: #574f47;
  --line: #ddd5c8;
  --ink-accent: #8a2b3a;      /* default; overridden per-ink */
  --logo-fill: var(--ink);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }

a, a:visited { color: inherit; text-decoration: none; }
a:hover { color: var(--ink-accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 0;
  background: #1c1815;
  position: sticky; top: 0; z-index: 20;
}
.wordmark-blend { display: block; }
.masthead .row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; /* WEB-023: keep the .wrap side padding (logo was at x=0 at 375) */
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem; font-weight: 600; letter-spacing: .02em;
  display: flex; align-items: center; gap: 10px;
  color: #f7f4ee;
}
.brand:hover { color: #f7f4ee; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--ink-accent), #111 75%);
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.wordmark-img {
  display: block;
  width: 350px;
  height: auto;
  max-width: min(350px, 46vw);
  object-fit: contain;
}
.masthead .wordmark-img {
  filter: brightness(0.97) sepia(0.18);
  opacity: 0.92;
}
.wordmark-footer {
  width: 220px;
  max-width: 220px;
  height: auto;
  margin-bottom: 10px;
  filter: brightness(0.97) sepia(0.18);
  opacity: 0.88;
}
nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a,
nav.main a:visited {
  font-size: .95rem; letter-spacing: .01em; color: #cfc6ba;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
nav.main a:hover { color: #f7f4ee; border-color: rgba(247,244,238,.45); }

body.page-ink .masthead {
  background: var(--logo-fill);
  isolation: isolate;
}
body.page-ink .wordmark-blend { mix-blend-mode: overlay; }
body.page-ink .masthead .wordmark-img {
  filter: none;
  opacity: 0.62;
}
body.page-ink nav.main a,
body.page-ink nav.main a:visited {
  color: rgba(255,255,255,.62);
  mix-blend-mode: overlay;
}
body.page-ink nav.main a:hover {
  color: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.45);
}
body.page-ink .nav-toggle span {
  background: rgba(255,255,255,.62);
  mix-blend-mode: overlay;
}
body.page-ink.masthead-light .wordmark-blend { mix-blend-mode: multiply; }
body.page-ink.masthead-light .masthead .wordmark-img {
  filter: brightness(0);
  opacity: 0.58;
}
body.page-ink.masthead-light nav.main a,
body.page-ink.masthead-light nav.main a:visited {
  color: rgba(0,0,0,.58);
  mix-blend-mode: multiply;
}
body.page-ink.masthead-light nav.main a:hover {
  color: rgba(0,0,0,.88);
  border-color: rgba(0,0,0,.4);
}
body.page-ink.masthead-light .nav-toggle span {
  background: rgba(0,0,0,.58);
  mix-blend-mode: multiply;
}

/* ---------- homepage latest release ---------- */
.featured-release { padding: 8px 0 12px; }
.featured-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
}
.featured-grid.n1 { max-width: 520px; margin: 0 auto; }
.featured-card {
  display: block; color: inherit; text-decoration: none;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden;
}
.featured-card:hover { border-color: var(--ink-accent); }
.featured-intro, .featured-card .sw.fallback.featured-intro {
  aspect-ratio: 1 / 1; width: 100%; object-fit: cover; display: block;
  border-radius: 0;
}
.featured-card .body { padding: 14px 16px 18px; }
.featured-card h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 4px; }
.featured-card .hex { color: var(--ink-soft); font-size: .9rem; }

/* ---------- hero ---------- */
/* Eyebrow only: the tagline and blurb were removed (Lane, 2026-10-22); the page h1 is .sr-only. */
.hero { padding: 48px 0 4px; }
.hero .kicker {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-accent); margin: 0; font-weight: 600;
}

/* ---------- catalog ---------- */
.cat-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin: 20px 0 8px;
}
.cat-head .count { color: var(--ink-soft); font-size: .9rem; }

/* spectrum strip */
.spectrum {
  height: 14px; border-radius: 7px; margin: 10px 0 26px;
  background: var(--line);
  position: relative; overflow: hidden;
}
.spectrum .fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #d23c48, #e08a3c, #d9c24a, #7fae6a, #4f9a96, #4f7fb0, #7d63b0, #b0558a, #d23c48);
  opacity: .9;
}

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -18px rgba(28,24,21,.5); }
.card .sw {
  aspect-ratio: 1 / 1; width: 100%; object-fit: cover; display: block;
  border-bottom: 1px solid var(--line);
}
.card .sw.fallback { background-size: cover; background-position: center; }
.card .body { padding: 14px 16px 18px; }
.card h3 { margin: 0 0 8px; font-size: 1.22rem; }
.card h3 a:hover { color: var(--ink-accent); }
.ribbon {
  height: 10px; border-radius: 5px; margin-top: 10px;
  border: 1px solid rgba(0,0,0,.05);
}
.card .hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem; color: var(--ink-soft); margin-top: 6px;
  text-transform: uppercase; letter-spacing: .04em;
}
.card .status-tag {
  z-index: 2; /* WEB-012: above .sw-wrap (relative + isolation), which comes later in the card */
  position: absolute; margin: 10px; top: 0; left: 0;
  background: var(--ink); color: var(--paper);
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 5px; font-weight: 700;
}

/* ---------- ink detail ---------- */
.ink-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
  padding: 40px 0 10px;
}
.ink-head .sw {
  width: 100%; border-radius: 16px; border: 1px solid var(--line);
  aspect-ratio: 1 / 1; object-fit: cover; display: block;
}
.ink-head .sw.fallback { background-size: cover; }
.ink-head .name { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .2em; }

.ink-subline {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em .4em;
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.ink-subline .color-name {
  font-family: var(--serif); font-style: italic;
  font-size: 1.35rem; color: var(--ov-accent-text, var(--ink-accent)); /* WEB-022 */
  margin: 0;
}
.ink-subline .meta-dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  color: var(--ink-soft);
  vertical-align: middle;
  opacity: .55;
  flex: 0 0 auto;
}
.ink-subline .series-link,
.ink-subline .series-link:visited {
  color: var(--ink-soft); font-weight: 400;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .95rem;
  border-bottom: 0;
}
.ink-subline .series-link:hover { color: var(--ov-accent-text, var(--ink-accent)); } /* a-fix 5 */
.ink-idline { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; color: var(--ink-soft); }
.status-pill {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 8px;
}
.status-pill.pill-retired,
.chip-status.chip-retired[aria-pressed="true"] {
  background: #f5e6a8; border-color: #c9a227; color: #6b5408;
}
.status-pill.pill-discontinued,
.chip-status.chip-discontinued[aria-pressed="true"] {
  background: #f3d0d0; border-color: #b33; color: #7a1f1f;
}
.ink-card .status-pill {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: #fff;
}
.ink-card.catalog-extra { display: none; }
.listing-status { margin: 12px 0 18px; }
.chip-status.chip-retired { border-color: #c9a227; }
.chip-status.chip-discontinued { border-color: #b33; }

.factrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.fact {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px;
  background: #fff;
}
.fact .k { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.fact .v { font-weight: 600; font-size: 1.02rem; margin-top: 2px; }
.fact .v .swd { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(0,0,0,.12); }

/* small ID fact chip */
.fact.product-id .v {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem; letter-spacing: .03em;
}

.chromo { margin: 26px 0; }
.chromo .label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.chromo .bar {
  height: 46px; border-radius: 10px; border: 1px solid rgba(0,0,0,.06);
  display: flex; overflow: hidden;
}
.chromo .bar .seg {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer; position: relative;
  isolation: isolate;
}
.chromo .bar .seg span {
  font-size: .775rem; line-height: 1; font-family: ui-monospace, Menlo, monospace; /* WEB-005: 1.25x .62rem */
  text-transform: uppercase; letter-spacing: .04em;
  transition: opacity .22s ease;
}
.chromo .bar .seg:hover span { opacity: 0; }
.chromo .bar .seg.copied::after {
  content: "Copied";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .775rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; mix-blend-mode: overlay; opacity: .7; pointer-events: none;
}

.prose { max-width: none; }
.prose p { margin: 0 0 1.1em; text-align: justify; }
.prose a, .prose a:visited { color: var(--ink-accent); border-bottom: 1px solid currentColor; }

.ink-copy { margin-top: 34px; text-align: justify; }
.ink-copy p { text-align: justify; }

blockquote.pullquote {
  margin: 2em 0;
  padding: 1.4em 1.6em 1.2em;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: transparent;
}
blockquote.pullquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.45;
  text-align: center;
  margin: 0;
  quotes: "“" "”";
}
blockquote.pullquote p::before { content: open-quote; }
blockquote.pullquote p::after { content: close-quote; }
blockquote.pullquote cite {
  display: block;
  margin-top: .9em;
  font-style: normal;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* theme story section */
.theme-story {
  margin: 46px 0 0;
  border-top: 1px solid var(--line); padding-top: 30px;
}
.theme-story h2 {
  margin-bottom: .6em;
  font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-accent);
}
.theme-story h3 {
  font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-accent); margin: 1.6em 0 .5em;
}
.theme-story p { margin: 0 0 1.1em; color: var(--ink); text-align: justify; }

.where-to-buy { margin-top: 40px; }
.where-to-buy h2 {
  font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-accent); margin-bottom: 14px;
}
.retailer-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.retailer {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: inherit; font-size: .82rem; text-align: center; max-width: 120px;
}
.retailer img {
  width: 60px; height: 60px; object-fit: cover; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
}
.back-catalog a {
  font-weight: 600; border-bottom: 2px solid var(--ink-accent); padding-bottom: 2px;
}

/* ---------- journal / postlist ---------- */
.postlist { list-style: none; padding: 0; margin: 24px 0 0; }
.postlist li {
  border-bottom: 1px solid var(--line); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
}
.postlist .t { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.postlist .d { color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
.postlist a.t:hover { color: var(--ink-accent); }

/* ---------- footer ---------- */
footer.site-footer {
  background: #1c1815;
  color: #cfc6ba;
  margin-top: 70px;
  padding: 42px 0 56px;
  font-size: .9rem;
  border-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.footer-brand {
  display: flex; flex-direction: column; justify-content: center;
}
.footer-brand p { margin: 0; color: #cfc6ba; }
.footer-social {
  display: flex; flex-direction: column; justify-content: center;
}
.footer-buy {
  background: #241f1b;
  color: #cfc6ba;
  margin-top: 70px;
  padding: 28px 0 26px;
}
.footer-buy + .site-footer { margin-top: 0; }
.footer-buy .footer-label { margin-bottom: 16px; }
.footer-buy .retailer { color: #cfc6ba; }
.footer-buy .retailer img { border-color: #3a342e; }
.footer-label {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: #a3988c; margin-bottom: 12px; font-weight: 600;
}
.ig-link, .ig-link:visited {
  display: inline-flex; align-items: center; gap: 8px;
  color: #f7f4ee;
}
.ig-link:hover { color: var(--ink-accent); }
.site-footer .retailer { color: #cfc6ba; }
.site-footer .retailer img { border-color: #3a342e; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .masthead .wordmark-img { width: 220px; max-width: 70vw; }
  .wordmark-footer { width: 180px; }
}


/* ---------- series filter chips ---------- */
.filterbar {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 20px;
  align-items: center;
}
.filterbar .lbl { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-right: 4px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 20px;
  padding: 6px 14px; font-size: .82rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; user-select: none;
  font-family: var(--sans); color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- interactive color bar (replaces hue-family buttons) ---------- */
.colorbar-wrap { position: relative; margin: 16px 0 30px; }
.colorbar-hint {
  margin: 0 0 8px;
  font-size: .78rem; color: var(--ink-soft); letter-spacing: .02em;
}
.catalog-controls { margin-top: 16px; }
.catalog-controls[hidden] { display: none; }
/* (b): catalog empty state (was an inline style); shown by catalog.js via the hidden attribute. */
.nofam { color: var(--ink-soft); padding: 20px 0; }
.nofam[hidden] { display: none; }
.colorbar-label {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 4px 0 0;
}
.colorbar-label .lbl {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.primary-toggle {
  font-size: .82rem; color: var(--ink-soft); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; user-select: none;
}
.primary-toggle input { accent-color: var(--ink); }
.colorbar-reset {
  border: 1px solid var(--line); background: #fff; border-radius: 20px;
  padding: 4px 12px; font-size: .78rem; cursor: pointer; color: var(--ink);
  font-family: var(--sans);
}
.colorbar-reset:hover { background: var(--paper-2); }

.colorbar {
  height: 18px; border-radius: 9px; cursor: crosshair;
  background: linear-gradient(90deg, #d23c48, #e08a3c, #d9c24a, #7fae6a, #4f9a96, #4f7fb0, #7d63b0, #b0558a, #d23c48);
  position: relative;
}
.colorbar-ticks { position: absolute; inset: 0; pointer-events: none; }
.colorbar-tick {
  position: absolute; top: 20%; bottom: 20%; width: 2px;
  background: rgba(0,0,0,0.4); border-radius: 1px;
  transform: translateX(-1px);
}
.colorbar-tick.tick-retired { background: #e4b31a; width: 3px; }
.colorbar-tick.tick-discontinued { background: #c0392b; width: 3px; }
.colorbar-handle {
  position: absolute; top: -4px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transform: translateX(-50%); cursor: grab; display: none;
}
.colorbar-handle.active { display: block; }

/* ---------- series badges / tags ---------- */
.series-tag {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 2px 0 8px;
}
.series-badge {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px; font-weight: 600;
}
.series-badge a { color: var(--ink-accent, var(--ink-soft)); }

/* ---------- retired products ---------- */
.retired-card { opacity: .9; }
.retired-card .sw { filter: saturate(.85); }

@media (max-width: 720px) {
  .ink-head { grid-template-columns: 1fr; gap: 24px; }
  nav.main { gap: 16px; }
}



/* ============================================================
   Expansion styles: nav, filters, effects, events, exclusives,
   journal, image shapes, contact form, responsive.
   ============================================================ */

/* ---------- mobile nav toggle (hamburger) ---------- */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 12px 10px; margin: -10px 0; /* a-fix 1: 44x44 tap target; bars and row height unchanged */
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: #f7f4ee; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- sort chips (reuse .chip look) ---------- */
#sortbar { margin-top: -6px; }

/* ---------- advanced filters panel ---------- */
.advfilters { margin: 8px 0 24px; }
.advfilters-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; border-radius: 20px;
  padding: 8px 16px; font-size: .85rem; cursor: pointer; color: var(--ink);
  font-family: var(--sans); font-weight: 600;
}
.advfilters-toggle:hover { background: var(--paper-2); }
.advfilters-chev { transition: transform .2s ease; font-size: .8rem; }
.advfilters-toggle.open .advfilters-chev { transform: rotate(180deg); }
.advfilters-count {
  background: var(--ink-accent); color: #fff; border-radius: 20px;
  min-width: 20px; height: 20px; padding: 0 6px; font-size: .72rem;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.advfilters-panel {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 20px 22px; margin-top: 12px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px;
}
.advgroup-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.advgroup-head .lbl {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.advgroup-reset {
  border: none; background: none; color: var(--ink-accent); cursor: pointer;
  font-size: .76rem; font-family: var(--sans); text-decoration: underline;
}
.range-readout {
  font-size: .8rem; color: var(--ink); font-weight: 600;
  font-family: ui-monospace, Menlo, monospace;
}
.colorbar.minibar { height: 14px; }
.colorbar.minibar .colorbar-handle { width: 20px; height: 20px; top: -3px; }
.scentbar { margin: 4px 0 0; }

/* ---------- dual range slider ---------- */
.rangeslider { position: relative; height: 34px; }
.rangeslider input[type="range"] {
  position: absolute; left: 0; top: 12px; width: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.rangeslider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 5px;
  background: var(--line); border-radius: 3px;
}
.rangeslider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.rangeslider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); cursor: grab;
}

/* ---------- ink detail: badges, exclusivity, effects, discontinued ---------- */
.ink-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.badge {
  font-size: .72rem; letter-spacing: .06em; padding: 4px 11px; border-radius: 20px;
  font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
}
.badge-released { background: var(--paper-2); }
.badge-event { background: #efe7d8; color: var(--ink); border-color: #e0d3ba; }
.badge-event:hover { background: var(--ink-accent); color: #fff; border-color: var(--ink-accent); }
.badge-discontinued { background: #7a1f1f; color: #fff; border-color: #7a1f1f; }

.exclusive-note {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; margin: 4px 0 16px;
}
.exclusive-note .ex-label {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.exclusive-note .ex-link { font-weight: 700; color: var(--ink-accent); }
.exclusive-note .ex-home { font-size: .82rem; color: var(--ink-soft); border-bottom: 1px solid currentColor; }

.effects { margin: 20px 0 8px; max-width: 460px; }
.effects-label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.effect-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.effect-row .ek { flex: 0 0 90px; font-size: .85rem; color: var(--ink-soft); }
.effect-row .emeter { flex: 1; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.effect-row .efill { display: block; height: 100%; background: var(--ink-accent); border-radius: 4px; }
.effect-row .ev { flex: 0 0 auto; font-size: .8rem; font-weight: 600; font-family: ui-monospace, Menlo, monospace; }
.effect-row.scents { align-items: flex-start; }
.scent-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scent-chip {
  font-size: .74rem; padding: 3px 10px; border-radius: 20px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink);
}

.discontinued-notice {
  margin: 28px 0 0; padding: 16px 20px; border-radius: 12px;
  background: #f6ecec; border: 1px solid #e2c9c9; color: #5a2020;
}
.discontinued-notice .prose { color: #5a2020; }
.retired-notice {
  margin: 28px 0 0; padding: 16px 20px; border-radius: 12px;
  background: #f7f1d8; border: 1px solid #e2d59a; color: #6b5408;
}
.footer-note, .special-order-foot .footer-note {
  font-size: .92rem; color: var(--ink-soft); margin: 6px 0 14px; max-width: 46rem;
}
.special-order-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-special-order .footer-label { margin-bottom: 4px; }

/* ---------- events + exclusives pages ---------- */
.event-group, .merchant-group { margin: 34px 0 10px; }
.event-name, .merchant-name { border-bottom: 2px solid var(--ink-accent); display: inline-block; padding-bottom: 4px; }
.merchant-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.merchant-site { font-weight: 600; color: var(--ink-accent); }
.release-year {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink-accent); line-height: 1;
}
.color-sub { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: .95rem; margin: 2px 0 6px; }
.card.is-discontinued .sw { filter: saturate(.7) opacity(.92); }
.discontinued-tag { background: #7a1f1f !important; }
.exclusive-card .card-media { display: block; }
.exclusive-links { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.exclusive-links .buy-link { font-weight: 700; color: var(--ink-accent); }
.exclusive-links .home-link { font-size: .82rem; color: var(--ink-soft); }

/* ---------- journal enhancements ---------- */
.postlist li.postlist-item {
  display: block; position: relative;
}
.postlist-sub { color: var(--ink-soft); font-size: 1rem; margin: 4px 0 6px; font-family: var(--serif); font-style: italic; }
.postlist-meta { color: var(--ink-soft); font-size: .85rem; }
.postlist-meta .by { margin-left: 4px; }
.postlist-tags, .post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-chip {
  font-size: .72rem; padding: 3px 10px; border-radius: 20px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-soft);
}
.post-subtitle { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); margin: 6px 0 0; }
.acknowledgments { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.acknowledgments h2 { font-size: 1.2rem; }
.related-inks { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.related-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.related-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 24px; padding: 6px 14px 6px 8px; background: #fff;
}
.related-chip:hover { border-color: var(--ink-accent); }
.related-chip .rc-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.related-chip .rc-name { font-size: .9rem; font-weight: 600; }

/* auto-linked product references inside prose */
.product-link.ink-link {
  color: var(--ink-accent); border-bottom: 1px dotted var(--ink-accent); cursor: pointer;
}

/* ---------- product hover popup ---------- */
.product-popup {
  position: absolute; z-index: 60; width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 40px -16px rgba(28,24,21,.5);
  padding: 12px; display: flex; gap: 12px; align-items: center;
}
.product-popup .pp-swatch {
  width: 56px; height: 56px; border-radius: 8px; flex: 0 0 auto;
  background-size: cover; background-position: center; border: 1px solid var(--line);
}
.product-popup .pp-name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.product-popup .pp-color { font-style: italic; color: var(--ink-accent); font-size: .85rem; }
.product-popup .pp-series { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }

/* ---------- content figures (markdown {{img}}) ---------- */
.content-figure { margin: 24px 0; }
.content-figure img { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.content-figure figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 8px; font-style: italic; }
.content-figure.align-center { text-align: center; }
.content-figure.align-center img, .content-figure.align-center figcaption { margin-left: auto; margin-right: auto; }
.content-figure.align-left { float: left; margin: 6px 26px 16px 0; max-width: 48%; }
.content-figure.align-right { float: right; margin: 6px 0 16px 26px; max-width: 48%; }
.content-figure.align-full img { width: 100%; }
.content-figure.shape-rounded img { border-radius: 12px; }
.content-figure.shape-circle img { border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; }
.content-figure.shape-square img { border-radius: 0; }
.content-figure.shape-outline img { border-radius: 0; border: none; }
.prose::after { content: ""; display: block; clear: both; }

/* ---------- contact form ---------- */
.contact-form { margin: 20px 0; max-width: 520px; }
.contact-form .cf-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.contact-form label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-family: var(--sans); font-size: 1rem; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--ink-accent); outline-offset: 1px; }
.cf-submit {
  border: none; background: var(--ink); color: var(--paper); border-radius: 24px;
  padding: 11px 24px; font-size: .92rem; font-weight: 600; cursor: pointer; font-family: var(--sans);
}
.cf-submit:hover { background: var(--ink-accent); }
.cf-note { font-size: .78rem; color: var(--ink-soft); margin-top: 8px; }
.contact-form { position: relative; }
.cf-hp {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px;
  overflow: hidden;
}
.cf-row[hidden] { display: none; }

/* ---------- responsive breakpoints ---------- */
/* large desktop */
@media (min-width: 1280px) {
  .wrap { max-width: 1180px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
/* tablet landscape / small desktop */
@media (max-width: 1024px) {
  .wrap { padding: 0 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .ink-head { gap: 30px; }
}
/* tablet portrait & mobile: collapse nav to hamburger */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  nav.main {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #1c1815;
    border-bottom: 1px solid #3a342e; padding: 8px 24px 16px;
    display: none;
  }
  body.page-ink nav.main { background: var(--logo-fill); border-bottom-color: rgba(255,255,255,.18); }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav.main a:last-child { border-bottom: none; }
  /* WEB-005 menu fix: the open menu text is WCAG large text (bold, at least
     14pt = 56/3 px = 18.666px; 1.1667rem = 18.667px), so its contrast target
     is 3.0; the generator reads the cascade (src/menu_css.rs). */
  nav.main a, nav.main a:visited, nav.main .nav-search { font-size: 1.1667rem; font-weight: 700; }
  .masthead .row { position: relative; }
  .advfilters-panel { grid-template-columns: 1fr; gap: 20px; }
  .content-figure.align-left, .content-figure.align-right { float: none; max-width: 100%; margin: 20px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}
/* small phones */
@media (max-width: 375px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card .body { padding: 10px 12px 14px; }
  .card h3 { font-size: 1.05rem; }
  .filterbar { gap: 7px; }
  .chip { padding: 5px 11px; font-size: .78rem; }
}


/* ============================================================
   Feature styles: blur-up images, search, compare, export
   ============================================================ */

/* ---------- blur-up swatch wrapper (WebP pipeline) ---------- */
/* The blur file is set inline as the wrapper's background-image (resolved
   against the page, so {{ root }} paths work) and painted only by ::before. */
.sw-wrap { position: relative; display: block; overflow: hidden; line-height: 0; isolation: isolate;
  background-size: 0 0; background-repeat: no-repeat; }
.sw-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: inherit; background-size: cover; background-position: center;
  filter: blur(14px); transform: scale(1.12);
}
.sw-wrap img { position: relative; z-index: 1; }
.ink-head .sw-wrap { border-radius: 16px; overflow: hidden; }

/* ---------- masthead search trigger ---------- */
.nav-search {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #cfc6ba;
  border: 1px solid #3a342e; border-radius: 999px;
  padding: 6px 12px; cursor: pointer; font: inherit; font-size: .9rem;
  transition: border-color .15s, color .15s;
}
.nav-search:hover { color: #f7f4ee; border-color: rgba(247,244,238,.45); }
.nav-search svg { width: 16px; height: 16px; display: block; }
.search-hint {
  position: relative;
  display: inline-grid;
  min-width: 7.6em;
  text-align: left;
}
.search-hint-a, .search-hint-b {
  grid-area: 1 / 1;
}
.search-hint-a { animation: searchHintA 9s ease-in-out infinite; }
.search-hint-b { animation: searchHintB 9s ease-in-out infinite; }
/* web042: sequential (never simultaneous) cross-fade so "Search" and the
   shortcut never paint on top of each other at any width; one label is fully
   transparent before the other starts to appear. */
@keyframes searchHintA {
  0%, 38%, 93%, 100% { opacity: 1; }
  43%, 88% { opacity: 0; }
}
@keyframes searchHintB {
  0%, 43%, 88%, 100% { opacity: 0; }
  48%, 83% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .search-hint-a, .search-hint-b { animation: none; }
  .search-hint-b { opacity: 0; }
}
/* web042: touch / no-hover devices have no keyboard shortcut; show only "Search". */
@media (pointer: coarse), (hover: none) {
  .search-hint-a, .search-hint-b { animation: none; }
  .search-hint-a { opacity: 1; }
  .search-hint-b { opacity: 0; visibility: hidden; }
}
body.page-ink .nav-search {
  color: rgba(255,255,255,.62);
  border-color: rgba(255,255,255,.28);
  mix-blend-mode: overlay;
}
body.page-ink .nav-search:hover {
  color: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.5);
}
body.page-ink.masthead-light .nav-search {
  color: rgba(0,0,0,.58);
  border-color: rgba(0,0,0,.28);
  mix-blend-mode: multiply;
}
body.page-ink.masthead-light .nav-search:hover {
  color: rgba(0,0,0,.88);
  border-color: rgba(0,0,0,.45);
}

/* ---------- search overlay ---------- */
body.search-open { overflow: hidden; }
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28,24,21,.42); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 10vh 20px 20px;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: 100%; max-width: 620px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(28,24,21,.28); overflow: hidden;
  display: flex; flex-direction: column; max-height: 76vh;
}
.search-box {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.search-box svg { width: 20px; height: 20px; color: var(--ink-soft); flex: none; }
#searchInput {
  min-width: 0; /* a-fix 6 */
  flex: 1; border: none; background: transparent; outline: none;
  font: inherit; font-size: 1.1rem; color: var(--ink);
}
.search-close {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 7px;
  color: var(--ink-soft); font: inherit; font-size: .78rem; padding: 3px 9px; cursor: pointer;
}
.search-close:hover { color: var(--ink); border-color: var(--ink-accent); }
.search-results { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.search-result {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
}
.search-result.active, .search-result:hover { background: var(--paper-2); }
.sr-dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 1px solid rgba(28,24,21,.15); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.sr-dot-none { background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 4px, var(--line) 4px, var(--line) 8px); }
.sr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sr-title { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-badge {
  flex: none; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft);
}
.sr-badge.sr-ink { color: var(--ink-accent); border-color: var(--ink-accent); }
.search-empty { padding: 22px 18px; color: var(--ink-soft); text-align: center; }

/* ---------- compare toggle on cards ---------- */
.card { position: relative; }
.compare-toggle {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(247,244,238,.9);
  color: var(--ink-soft); font-size: 1.05rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .15s, color .15s, transform .1s;
}
.compare-toggle:hover { color: var(--ink); border-color: var(--ink-accent); }
.compare-toggle.on { background: var(--ink-accent); color: #fff; border-color: var(--ink-accent); }
.compare-toggle:active { transform: scale(.9); }
/* a-fix 1: 44px hit area around the 30px button (it is already position: absolute). */
.compare-toggle::after { content: ''; position: absolute; inset: -7px; }
/* WEB-013: the card is a div; its one link wraps the swatch and text, and the
   compare toggle is a sibling (no button inside a link, one tab stop each). */
.card-link { display: flex; flex-direction: column; flex: 1 1 auto; color: inherit; text-decoration: none; }
.card-link:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: 14px; }

/* ---------- compare bar (sticky) ---------- */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(247,244,238,.96); border-top: 1px solid var(--line);
  backdrop-filter: saturate(1.1) blur(8px); box-shadow: 0 -6px 24px rgba(28,24,21,.12);
}
.compare-bar[hidden] { display: none; }
.compare-bar .row {
  display: flex; align-items: center; gap: 16px; padding: 12px 0; flex-wrap: wrap;
}
.compare-bar-inks { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.compare-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 6px 4px 10px; font-size: .85rem;
}
.cc-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(28,24,21,.15); }
.cc-x {
  border: none; background: var(--paper-2); color: var(--ink-soft);
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: .95rem; line-height: 1;
}
.cc-x:hover { background: var(--ink-accent); color: #fff; }
.compare-bar-actions { display: flex; align-items: center; gap: 10px; }
.compare-clear {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); font: inherit; font-size: .85rem; padding: 7px 14px; cursor: pointer;
}
.compare-clear:hover { color: var(--ink); border-color: var(--ink-accent); }
.compare-go {
  background: var(--ink-accent); color: #fff; border-radius: 999px;
  padding: 8px 18px; font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.compare-go:hover { filter: brightness(1.08); }

/* ---------- compare page ---------- */
.compare-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 20px 0 26px;
}
.compare-modes, .compare-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.compare-mode.active { background: var(--ink-accent); color: #fff; border-color: var(--ink-accent); }
.compare-empty {
  border: 1px dashed var(--line); border-radius: 14px;
  padding: 40px 24px; text-align: center; color: var(--ink-soft); background: var(--paper-2);
}
.compare-empty[hidden] { display: none; }
.compare-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.compare-cards[hidden] { display: none; }
.compare-card {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: var(--paper); display: flex; flex-direction: column;
}
.cmp-remove {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(247,244,238,.9);
  color: var(--ink-soft); cursor: pointer; font-size: 1rem; line-height: 1;
}
.cmp-remove:hover { background: var(--ink-accent); color: #fff; }
.cmp-sw { aspect-ratio: 4 / 3; width: 100%; }
.cmp-sw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-sw-fallback { aspect-ratio: 4 / 3; width: 100%; }
.cmp-body { padding: 14px 16px 18px; }
.cmp-body h3 { margin: 0 0 4px; font-size: 1.15rem; }
.cmp-sub { color: var(--ink-soft); font-size: .88rem; margin-bottom: 10px; }
.cmp-chromo { display: flex; height: 22px; border-radius: 6px; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); }
.cmp-chromo span { flex: 1; }
.cmp-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .85rem; }
.cmp-facts dt { color: var(--ink-soft); }
.cmp-facts dd { margin: 0; color: var(--ink); }
.compare-slices { overflow-x: auto; }
.compare-slices[hidden] { display: none; }
#sliceCanvas { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }

/* ---------- palette export tools ---------- */
.export-tools { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.export-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.export-btn {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); font: inherit; font-size: .85rem; padding: 7px 15px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.export-btn:hover { color: var(--ink); border-color: var(--ink-accent); }
.export-preview {
  background: var(--ink); color: #f2ede4; border-radius: 10px;
  padding: 14px 16px; font-size: .8rem; line-height: 1.5; overflow-x: auto;
  white-space: pre; font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}
.export-preview[hidden] { display: none; }

/* ---------- feature mobile tweaks ---------- */
@media (max-width: 768px) {
  .nav-search { padding: 6px 10px; }
  .search-hint { min-width: 5.2em; }
  .compare-bar .row { gap: 10px; }
  .compare-controls { flex-direction: column; align-items: stretch; }
}

/* ---------- overlay labels (hex + swatch title) ---------- */
.overlay-text {
  color: rgba(255,255,255,0.62);
  mix-blend-mode: overlay;
}
.overlay-text.on-light {
  color: rgba(0,0,0,0.58);
  mix-blend-mode: multiply;
}

/* ---------- stacked ink layout ---------- */
.ink-head-stacked {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 17rem;
  gap: 18px 16px;
  align-items: stretch;
  padding: 40px 0 10px;
  width: 100%;
}
.ink-swatch-col { min-width: 0; }
.ink-head-stacked .sw,
.ink-head-stacked .sw.fallback {
  width: 100%; border-radius: 16px; border: 1px solid var(--line);
  aspect-ratio: 1 / 1; object-fit: cover; display: block;
}
.ink-head-stacked .sw-wrap { border-radius: 16px; overflow: hidden; height: 100%; }
.sw-title {
  position: absolute;
  top: 14px; left: 16px; z-index: 2;
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: calc(100% - 28px);
  pointer-events: none;
  transition: opacity .25s ease;
}
.sw-wrap:hover .sw-title { opacity: 0; }

.chromo-vert {
  margin: 0;
  height: 100%;
  min-height: 0;
}
.chromo-vert .bar {
  flex-direction: column;
  height: 100%;
  width: 56px;
  border-radius: 12px;
}
.chromo-vert .seg {
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 0;
}
.chromo-vert .seg span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .775rem;
  letter-spacing: .08em;
}
.chromo-vert.chromo-empty { width: 56px; }
/* WEB-005 (Tom, Oct 20): next to the 56px desktop bar 12.4px read too small;
   15px there (segments are >= ~190px tall with up to 4 stops). The 44px mobile
   bar keeps 12.4px so a label still fits a ~70px segment. Same selector weight
   as `.chromo .bar .seg span`, later, so it wins. Colour stays per segment. */
@media (min-width: 769px) {
  .chromo-vert .bar .seg span { font-size: .9375rem; letter-spacing: .06em; }
}

.ink-meta {
  width: 17rem;
  max-width: 17rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ink-meta .color-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ov-accent-text, var(--ink-accent)); /* WEB-022: darker only where the accent is short on the paper */
  margin: 0 0 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.ink-meta .meta-line,
.ink-meta .series-link,
.ink-meta .series-link:visited {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .95rem;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
  border: 0;
  display: block;
  margin: 0 0 6px;
}
.ink-meta .series-link:hover { color: var(--ov-accent-text, var(--ink-accent)); } /* a-fix 5 */

@media (max-width: 768px) {
  .ink-head-stacked {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .ink-meta {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    padding-top: 4px;
  }
  .chromo-vert .bar { width: 44px; }
}
/* ===== Keyboard access (WEB-010) ===== */
html { scroll-padding-top: 171px; }
@media (max-width: 720px) { html { scroll-padding-top: 121px; } }
.sr-only { 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; }
a.skip-link, a.skip-link:visited, a.skip-link:hover {
  position: absolute; left: 12px; top: -120px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: .95rem; line-height: 1.3;
}
a.skip-link:focus, a.skip-link:focus-visible { top: 12px; }
a.skip-link:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.masthead :focus-visible, .footer-buy :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }
body.page-ink .masthead :focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 2px var(--ink); mix-blend-mode: normal; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* B: */
.colorbar:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

/* ---------------------------------------------------------------
   Homepage showcase row (no JS): newest published inks as large
   art cards in a horizontal scroll-snap row. Swipe on touch, scroll
   sideways on desktop; the next card peeks in as the scroll hint.
   Caption text sits on a solid panel (never on the art); the builder
   picks panel/text colours for >= 4.5:1 contrast.
   --------------------------------------------------------------- */
.showcase { padding: 8px 0 18px; }
.showcase-row {
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 14px; margin: 0 -4px;
  border-radius: 16px;
}
.showcase-row:focus { outline: none; }
.showcase-row:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.showcase-list { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.showcase-item { flex: 0 0 86%; scroll-snap-align: start; min-width: 0; }
.showcase-single .showcase-item { flex-basis: 100%; }
.showcase-card {
  display: grid; grid-template-columns: 1fr; grid-template-rows: 220px auto;
  height: 100%; border-radius: 16px; overflow: hidden;
  color: var(--sc-fg); background: var(--sc-bg); text-decoration: none;
  border: 1px solid var(--line);
  transition: transform .12s ease, box-shadow .12s ease;
}
.showcase-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(28,24,21,.5); }
.showcase-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.showcase-art { position: relative; min-height: 220px; background: var(--paper-2); }
.showcase-art img { display: block; width: 100%; height: 100%; }
.showcase-art img { position: absolute; inset: 0; object-fit: cover; }
.showcase-panel {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 24px 20px;
  background: var(--sc-bg); color: var(--sc-fg);
}
.showcase-date {
  margin: 0; font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.showcase-name { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.8rem; line-height: 1.12; color: var(--sc-fg); }
.showcase-color { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.showcase-chip {
  flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; background: var(--ink-accent);
}
.showcase-theme { margin: auto 0 0; padding-top: 4px; font-size: .9rem; letter-spacing: .04em; } /* a-fix A6: last text line pinned to the panel foot */
.showcase-theme + .showcase-go { margin-top: 0; }
.showcase-go { margin-top: auto; padding-top: 12px; font-size: 1.25rem; transition: transform .12s ease; }
.showcase-card:hover .showcase-go { transform: translateX(4px); }
@media (min-width: 700px) {
  .showcase-card { grid-template-columns: 3fr 2fr; grid-template-rows: none; min-height: 360px; }
  .showcase-art { min-height: 360px; }
  .showcase-name { font-size: 2.2rem; }
}
@media (min-width: 900px) {
  .showcase-item { flex-basis: 78%; }
  .showcase-single .showcase-item { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-row { scroll-behavior: auto; }
  .showcase-card, .showcase-go { transition: none; }
  .showcase-card:hover, .showcase-card:hover .showcase-go { transform: none; }
}

/* ---------------------------------------------------------------
   SP-T2: home-page spotlight (Variant A). Enhances the showcase row
   above when spotlight.js runs, and only at min-width 700px; phones
   keep the swipe row. At >= 700px the row is pre-sized to one full
   card per slide (story line included) so switching the spotlight on
   moves nothing (no layout shift). Controls sit in the section head.
   --------------------------------------------------------------- */
.showcase-story { display: none; }
.spot-controls { display: flex; align-items: center; gap: 6px; margin-left: auto; align-self: center; }
.spot-controls[hidden] { display: none; }
.spot-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; min-width: 36px; padding: 0 12px;
  font: 600 .85rem/1 var(--sans); letter-spacing: .02em;
  color: var(--ink); background: var(--paper); border: 1px solid var(--ink-soft);
  border-radius: 999px; cursor: pointer;
}
.spot-btn:hover { background: var(--paper-2); }
.spot-prev, .spot-next { padding: 0; font-size: 1.05rem; }
.spot-pause { min-width: 68px; }
.spot-pause[hidden] { display: none; }
.spot-dots { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.spot-dot {
  position: relative; width: 24px; height: 24px; padding: 0; margin: 0;
  border: 0; background: transparent; cursor: pointer; border-radius: 50%;
}
.spot-dot::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 2px solid var(--ink-soft); background: transparent;
}
.spot-dot[aria-current="true"]::before { background: var(--ink); border-color: var(--ink); }
.spot-dot:hover::before { border-color: var(--ink); }
.spot-count {
  min-width: 4.6ch; text-align: center; color: var(--ink-soft);
  font: 600 .85rem/1 var(--sans); font-variant-numeric: tabular-nums;
}
@media (min-width: 700px) {
  .spot .cat-head { justify-content: flex-start; }
  .spot .showcase-item { flex-basis: 100%; }
  .spot .showcase-row { scrollbar-width: none; }
  .spot .showcase-row::-webkit-scrollbar { display: none; }
  .spot .showcase-story { display: block; margin: 6px 0 0; max-width: 40ch; font-size: 1rem; line-height: 1.5; }
  .spot .showcase-story + .showcase-theme { display: none; }
  .spot .showcase-story + .showcase-theme + .showcase-go { margin-top: auto; } /* a-fix A6: theme hidden, arrow stays pinned */
  .spot .showcase-date { color: var(--sc-soft, var(--sc-fg)); }
  .spot.spot-on .showcase-row { overflow: hidden; scroll-snap-type: none; }
  .spot.spot-on .showcase-list { display: grid; grid-template-columns: minmax(0, 1fr); }
  .spot.spot-on .showcase-item { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
  .spot.spot-on .showcase-item.is-current { visibility: visible; opacity: 1; }
  .spot.spot-anim .showcase-item { transition: opacity .45s ease, visibility 0s linear .45s; }
  .spot.spot-anim .showcase-item.is-current { transition: opacity .45s ease, visibility 0s; }
  /* WEB-043: outgoing text disappears immediately; incoming text waits half a fade.
     Panel backgrounds and artwork retain the parent crossfade, even on rapid navigation. */
  .spot.spot-on .showcase-panel > * { opacity: 0; visibility: hidden; transition: none; }
  .spot.spot-on .showcase-item.is-current .showcase-panel > * { opacity: 1; visibility: visible; }
  .spot.spot-anim .showcase-item.is-current .showcase-panel > * { transition: opacity .225s ease .225s, visibility 0s linear .225s; }
}
@media (prefers-reduced-motion: reduce) {
  .spot.spot-anim .showcase-item, .spot.spot-anim .showcase-item.is-current { transition: none; }
  .spot.spot-anim .showcase-item.is-current .showcase-panel > * { transition: none; }
}
/* ---------------------------------------------------------------
   SP-T4: "Retired" banner across the top of a catalog card (markup
   from SP-V8). Existing retired colours; #6b5408 on #f5e6a8 is 5.8:1.
   --------------------------------------------------------------- */
.card-banner {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding: 5px 10px; text-align: center;
  font: 700 .72rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.card-banner-retired { background: #f5e6a8; color: #6b5408; border-bottom: 1px solid #c9a227; }
.card-banner ~ .compare-toggle { top: 34px; }
.card-banner ~ .status-pill { display: none; }

/* ---------------------------------------------------------------
   SP-T6: accessibility pass. The card focus ring (3px, offset 3px)
   was clipped by the row's overflow; the row has 4px padding, so
   offset 1px keeps the whole ring visible on the page paper (16:1)
   without moving anything. Snapping leaves room for the ring too.
   --------------------------------------------------------------- */
.showcase-row { scroll-padding-inline: 4px; }
.showcase-row .showcase-card:focus-visible { outline-offset: 1px; }
/* The row's end padding does not count as scroll room, so the last card's
   ring was cut at the right edge. A 1px end spacer adds 4px of
   scroll room after the last card (gap 16px - 13px + 1px). Swipe row only. */
.showcase:not(.spot-on) .showcase-list::after { content: ""; flex: 0 0 1px; margin-inline-start: -13px; }

/* ===== WEB-005 (option A): solid computed overlay colours =====
   body.ov ink pages carry --ov-* colours computed by the generator: the colour
   the old blend (white overlay .62 / black multiply .58) painted over the ACTUAL
   background behind each element, shifted in lightness only as far as needed
   for contrast (logo 3.0, text 4.5). Solid colours: no blend modes, no
   transparency, no underlines. Ink colours (--ink-accent, --logo-fill, stops,
   swatches) are never changed. Pages without --ov-* keep the rules above. */
body.page-ink.ov nav.main a,
body.page-ink.ov nav.main a:visited { color: var(--ov-nav); mix-blend-mode: normal; }
body.page-ink.ov nav.main a:hover { color: var(--ov-nav-hover); border-color: transparent; }
body.page-ink.ov .nav-search { color: var(--ov-nav); border-color: var(--ov-nav-line); mix-blend-mode: normal; }
body.page-ink.ov .nav-search:hover { color: var(--ov-nav-hover); border-color: var(--ov-nav-hover); }
body.page-ink.ov .nav-toggle span { background: var(--ov-burger); mix-blend-mode: normal; }
@media (max-width: 768px) {
  body.page-ink.ov nav.main a,
  body.page-ink.ov nav.main a:visited { color: var(--ov-menu); }
  body.page-ink.ov nav.main a:hover { color: var(--ov-menu-hover); border-bottom-color: var(--line); }
  body.page-ink.ov .nav-search { color: var(--ov-menu); border-color: var(--ov-menu-line); }
  body.page-ink.ov .nav-search:hover { color: var(--ov-menu-hover); border-color: var(--ov-menu-hover); }
}
/* Logo: an inline SVG paints the solid colour through the white wordmark PNG,
   used as the image of an SVG <mask>. A CSS mask-image is a CORS fetch, which
   Chromium refuses for pages opened from disk (a Preview opened from disk showed no
   logo); an SVG <image> loads like a normal <img>. The PNG keeps the layout
   box and is hidden only on pages that carry the SVG (body.ov). */
body.page-ink.ov .masthead .wordmark-blend { position: relative; mix-blend-mode: normal; }
body.page-ink.ov .masthead .wordmark-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; color: var(--ov-logo); pointer-events: none;
}
body.page-ink.ov .masthead .wordmark-blend .wordmark-img { opacity: 0; filter: none; }
body.page-ink.ov .sw-title { color: var(--ov-title); mix-blend-mode: normal; }
body.page-ink.ov .chromo .bar .seg span { color: var(--ov-seg); mix-blend-mode: normal; }
body.page-ink.ov .chromo .bar .seg.copied::after { color: var(--ov-seg); mix-blend-mode: normal; opacity: 1; }
/* WEB-005 (Lane's approved plan): no phone menu veil and no title band; the
   computed colours sit directly on the unchanged ink gradient and swatch. */
/* WEB-005 step 3: hover cue that is neither a colour change nor an underline,
   the same on every ink. A small dot in the link's own contrast-checked colour
   fades in beside the hovered or keyboard-focused link; where the hover colour
   equals the resting one (pure white), the dot is the cue. */
body.page-ink.ov nav.main a { position: relative; }
body.page-ink.ov nav.main a::before {
  content: "";
  position: absolute; left: -11px; top: calc(50% - 2px);
  width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0; transform: scale(.4);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
body.page-ink.ov nav.main a:hover::before,
body.page-ink.ov nav.main a:focus-visible::before { opacity: 1; transform: scale(1); }
@media (max-width: 768px) {
  body.page-ink.ov nav.main a::before { left: -13px; top: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-ink.ov nav.main a::before { transition: none; }
}

/* ===== a-fix A3 (Tom): 44px tap targets at 390, visual sizes unchanged =====
   Invisible ::after hit areas on the small controls (the element is the
   positioned parent); the 30px compare toggle's own rule is above. */
.cc-x { position: relative; }
.cc-x::after { content: ''; position: absolute; inset: -12px; }
.cmp-remove::after { content: ''; position: absolute; inset: -8px; }
.chip { position: relative; }
.chip::after { content: ''; position: absolute; inset: -7px 0; }
/* Colour bar: 18px tall; a 44px hit band (clicks on ::after hit the bar). */
.colorbar::after { content: ''; position: absolute; inset: -13px 0; }
/* ===== a-fix 2 + A7 (Tom): focus rings =====
   Whole-card ring while the card link has keyboard focus (existing focus
   colour), a cream halo between the compare toggle and its ring, and an
   explicit ink ring on light-ground retailer links. Footer links keep the
   paper ring: var(--ink) there would be 1:1 against the #1c1815 footer. */
.card:has(.card-link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.compare-toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 2px var(--paper); }
.special-order-foot .retailer:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* ===== a-fix A4 (Tom): story measure and meta alignment ===== */
.ink-copy { max-width: none; } /* Lane 2026-11-10: full width of the head above (was d-fix P3 34em) */
.ink-meta { justify-content: center; } /* Lane 2026-11-10: centred beside the swatch and bar */

/* ===== a-fix A2 (Tom): colour-bar segments are copy buttons =====
   Button reset so a <button class="seg"> renders as the old <div> did (the
   segment colour still comes from its own background). The bar clips its
   children, so the focus ring sits inside the segment: an ink ring with a
   paper halo inside it reads on light and dark segments alike. */
.chromo .bar .seg {
  -webkit-appearance: none; appearance: none;
  border: 0; border-radius: 0; margin: 0; min-width: 0;
  font: inherit; color: inherit; text-align: center;
}
.chromo .bar .seg:focus-visible {
  outline: 3px solid var(--ink); outline-offset: -3px;
  box-shadow: inset 0 0 0 5px var(--paper);
}
/* a-fix P3b: '+' on a selected compare toggle: black where it out-contrasts white on the ink accent (>= 4.5 either way). */
.glyph-dark .compare-toggle.on { color: #000; }

/* ===== piece (c): the /search/ page (rows reuse the overlay's .search-result / .sr-*) ===== */
.search-page-box { display: flex; margin-top: 18px; max-width: 40rem; }
.search-page-input {
  flex: 1; min-width: 0; min-height: 44px;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
}
.search-page-results { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
.search-page-results[hidden] { display: none; }
.search-page-results a.search-result { color: inherit; text-decoration: none; }
.search-page-results a.search-result:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.search-page-note { color: var(--ink-soft); padding: 12px 0; }
.search-page-note[hidden] { display: none; }
/* c-fix (Tom): the overlay's "See all results" row: a quiet footer, not a result. */
.search-all { list-style: none; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.search-all-link {
  display: block; padding: 10px 12px; border-radius: 10px;
  font-size: .85rem; color: var(--ink-soft); text-decoration: none;
}
.search-all.active .search-all-link, .search-all-link:hover { color: var(--ink); background: var(--paper-2); }
/* ===== WEB-016 (Lane): sticky-bar name swap on ink pages =====
   js/ink.js toggles two classes on header.masthead only:
   .bar-swap-theme  the theme title (or the colour name) is behind the bar:
                    the logo fades out and the theme name fades in;
   .bar-swap-color  the colour name is behind the bar too: it fades in under
                    the theme name, which moves up.
   The names box is absolutely positioned, so the bar height never changes.
   Its colour is --ov-bar-text (#1c1815 or #fff, measured as 4.5:1 text in the
   contrast pass) with a 4px --ov-bar-shadow halo only where a band still falls
   short; the logo colour where an ink has no overlay vars. Plain crossfade; no motion under reduced motion. */
body.page-ink .masthead .row { position: relative; }
.bar-names {
  position: absolute; top: 0; bottom: 0; left: 24px; width: min(350px, 46vw);
  display: grid; grid-template-rows: auto auto; align-content: center; justify-items: center;
  pointer-events: none; text-align: center; line-height: 1.2;
  color: var(--ov-bar-text, var(--ov-logo, #f7f4ee)); text-shadow: var(--ov-bar-shadow, none);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
body.page-ink.masthead-light:not(.ov) .bar-names { color: #1c1815; }
.bar-theme, .bar-color {
  max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.bar-theme {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  transform: translateY(.5rem); transition: transform .25s ease;
}
.bar-color {
  font-family: var(--serif); font-style: italic; font-size: .85rem;
  opacity: 0; transition: opacity .25s ease;
}
.masthead.bar-swap-theme .bar-names { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.masthead.bar-swap-color .bar-theme { transform: translateY(0); }
.masthead.bar-swap-color .bar-color { opacity: 1; }
.masthead .brand { transition: opacity .25s ease, visibility 0s linear 0s; }
.masthead.bar-swap-theme .brand { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
@media (max-width: 768px) {
  /* Clear of the menu toggle (44px + row padding) at 390; d-fix P3: right 64px
     (60 overlapped the toggle by 4px). */
  .bar-names { left: 60px; right: 64px; width: auto; }
  .bar-theme { font-size: 1rem; transform: translateY(.45rem); }
  .bar-color { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bar-names, .bar-theme, .bar-color, .masthead .brand,
  .masthead.bar-swap-theme .bar-names, .masthead.bar-swap-theme .brand { transition: none; }
}

/* ===== d-fix P2: tap targets at least 44px (Tom's site-d review) =====
   Buttons grow to a 44px box. Inline links get 44px of hit height from
   padding offset by an equal negative margin, so the layout does not move
   and no two targets overlap (their neighbours are text, not targets). */
.compare-clear, .compare-go {
  min-height: 44px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
}
.search-close {
  min-width: 44px; min-height: 44px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
}
.chromo .bar .seg { min-width: 44px; }
.cmp-body h3 a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.ink-subline .series-link { display: inline-block; padding-block: 10px; margin-block: -10px; }
.ink-meta .series-link { padding-block: 10px; margin: -10px 0 -4px; }
.search-all-link { min-height: 44px; box-sizing: border-box; display: flex; align-items: center; }