/* Moxie Lighting — design tokens & global styles */

:root {
  /* Brand */
  --moxie-yellow: #F2C94C;
  --moxie-yellow-deep: #E8B324;
  /* Real Moxie teal/blue — extracted from their Squarespace stylesheet
     where #10B3AA is used as the secondary brand accent. */
  --moxie-blue: #10B3AA;
  --moxie-blue-deep: #0C8B85;
  --moxie-blue-soft: #E0F5F3;
  --moxie-black: #0E0E0E;

  /* Light mode (default) */
  --bg: #FAFAF7;
  --bg-elev: #FFFFFF;
  --bg-sunk: #F2F1EC;
  --ink: #0E0E0E;
  --ink-2: #2A2A28;
  --ink-3: #6B6B66;
  --ink-4: #9C9C95;
  --line: #E6E5DE;
  --line-2: #D8D7CF;
  --accent: var(--moxie-yellow);
  --accent-ink: #1A1505;
  --link: var(--moxie-blue);
  --link-hover: var(--moxie-blue-deep);
  --shadow: 0 1px 2px rgba(14, 14, 14, .04), 0 8px 24px rgba(14, 14, 14, .06);
}

[data-theme="dark"] {
  --bg: #0B0B0A;
  --bg-elev: #141413;
  --bg-sunk: #191816;
  --ink: #F4F2EC;
  --ink-2: #DAD7CF;
  --ink-3: #8B8983;
  --ink-4: #5C5A55;
  --line: #2A2925;
  --line-2: #36342F;
  --accent: var(--moxie-yellow);
  --accent-ink: #1A1505;
  --moxie-blue-soft: #103734;
  --link: #2DD4CB;          /* lighter teal for dark backgrounds */
  --link-hover: #6EEEE7;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 32px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Inline anchor links inside body copy & footer pick up the Moxie blue.
   Buttons styled as anchors (.btn) opt out by setting their own color. */
footer a:not(.btn),
.surface a:not(.btn),
p a:not(.btn),
li a:not(.btn) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--link) 35%, transparent);
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
footer a:not(.btn):hover,
.surface a:not(.btn):hover,
p a:not(.btn):hover,
li a:not(.btn):hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

/* Text selection — Moxie blue tint */
::selection {
  background: color-mix(in oklab, var(--moxie-blue) 30%, transparent);
  color: var(--ink);
}
[data-theme="dark"] ::selection {
  background: color-mix(in oklab, var(--moxie-blue) 50%, transparent);
}

.serif { font-family: "Fraunces", "Tiempos Headline", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; }
.caps { text-transform: uppercase; letter-spacing: 0.12em; }

/* Color utility — blue secondary accent (paired with the yellow primary) */
.text-blue { color: var(--moxie-blue); }
[data-theme="dark"] .text-blue { color: var(--link); }
.bg-blue-soft { background: var(--moxie-blue-soft); }

.container {
  width: min(100% - 48px, 1360px);
  margin: 0 auto;
}
.container-wide {
  width: min(100% - 48px, 1560px);
  margin: 0 auto;
}

/* Typographic scale */
.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.h-display {
  font-family: "Anton", "Archivo Narrow", "Impact", sans-serif;
  font-weight: 400;
  font-size: clamp(56px, 11vw, 200px);
  line-height: 0.86;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.h1 {
  font-family: "Anton", "Archivo Narrow", "Impact", sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.h2 {
  font-family: "Anton", "Archivo Narrow", "Impact", sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 72px);
  line-height: 0.96;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.h2-serif {
  font-family: "Fraunces", "Tiempos Headline", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--moxie-yellow-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-elev);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .15s ease;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip-yellow.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* Cards / surfaces */
.surface {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
}

/* Logo placeholder tile — fallback when no logo image */
.logo-tile {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: all .2s ease;
  cursor: pointer;
}
[data-theme="dark"] .logo-tile {
  background: #F4F2EC;
  color: #0E0E0E;
}
.logo-tile:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.logo-tile-card:hover {
  border-color: var(--ink) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.logo-tile-card:hover .logo-bg { opacity: 1; }
.logo-tile-card:hover .logo-tile-ext { opacity: 1; }
.logo-tile-shortlist:hover:not([aria-label*="Remove"]) {
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
}
.logo-tile .logo-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, color-mix(in oklab, var(--accent) 18%, transparent) 100%);
  opacity: 0;
  transition: opacity .2s ease;
}
.logo-tile:hover .logo-bg { opacity: 1; }
.logo-tile .logo-text {
  position: relative;
  z-index: 1;
  word-break: break-word;
  hyphens: auto;
}
.logo-tile .logo-meta {
  position: absolute;
  top: 10px; right: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  text-transform: uppercase;
}

/* Marquee animation */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 80s linear infinite;
  gap: 64px;
}
.marquee-item {
  font-family: "Anton", "Archivo Narrow", Impact, sans-serif;
  font-size: clamp(56px, 8vw, 112px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
/* Alternate every 2nd marquee dot to Moxie blue for a subtle two-color rhythm */
.marquee-item .marquee-dot:nth-of-type(2n) { background: var(--moxie-blue); }

/* Hero light beam — twin sources blend yellow + teal for a 50/50 brand wash */
.beam-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.beam {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 60%;
  height: 130%;
  background:
    radial-gradient(ellipse at 35% 0%, color-mix(in oklab, var(--accent) 28%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 0%, color-mix(in oklab, var(--moxie-blue) 24%, transparent) 0%, transparent 55%);
  transform: translateX(-50%);
  filter: blur(20px);
}
[data-theme="dark"] .beam {
  background:
    radial-gradient(ellipse at 35% 0%, color-mix(in oklab, var(--accent) 38%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse at 65% 0%, color-mix(in oklab, var(--moxie-blue) 32%, transparent) 0%, transparent 60%);
}

/* Section dividers */
.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* Form controls */
.input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-elev);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  border-color: var(--moxie-blue);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--moxie-blue) 22%, transparent);
}

/* Utility */
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .gap-4 { gap: 32px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }

/* Logo lockup */
.moxie-logo .moxie-logo-light { display: block; }
.moxie-logo .moxie-logo-dark { display: none; }
[data-theme="dark"] .moxie-logo .moxie-logo-light { display: none; }
[data-theme="dark"] .moxie-logo .moxie-logo-dark { display: block; }

.moxie-mark {
  font-family: "Editorial New", "GT Sectra", Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.moxie-mark::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-bottom: 4px;
}

/* Scrollbar polish */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* Drawer */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  z-index: 50;
  animation: fadeIn .2s ease;
}
[data-theme="dark"] .drawer-backdrop { background: rgba(0,0,0,.65); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(540px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  z-index: 51;
  animation: slideIn .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}

/* Page transitions */
.page-fade {
  animation: pageFade .35s ease;
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────
   MOBILE RESPONSIVE
   Three breakpoints: tablet ≤960, mobile ≤640, small ≤420
   ───────────────────────────────────────────────────────── */

/* Helpers exposed to JSX inline styles via class names */
.grid-1-mobile { /* default desktop, overridden below */ }
.grid-2-mobile { }
.grid-1-tablet { }
.hide-mobile { }
.hide-desktop { display: none; }

@media (max-width: 960px) {
  .container, .container-wide { width: min(100% - 32px, 100%); }

  /* Cap section padding */
  body { font-size: 15.5px; }

  /* React renders camelCase JSX style props as kebab-case in the DOM,
     so attribute selectors must match the rendered form. */
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: 1.6fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  [style*="grid-template-columns: repeat(8"] {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Linecard sticky filter rail — stack */
  .linecard-rail {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .linecard-rail .linecard-filters {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .linecard-rail .linecard-filters::-webkit-scrollbar { display: none; }

  /* Hide desktop nav, show mobile menu button */
  .nav-desktop { display: none !important; }
  .nav-mobile-btn { display: flex !important; }

  /* Drawer goes nearly full-width on tablet */
  .drawer { width: min(540px, 100vw); }

  /* Buttons shrink */
  .btn { padding: 12px 18px; font-size: 13px; }

  /* List view in linecard collapses extra columns */
  .linecard-list-row {
    grid-template-columns: 1fr 24px !important;
    gap: 12px !important;
    padding: 14px 4px !important;
  }
  .linecard-list-row .linecard-list-blurb,
  .linecard-list-row .linecard-list-cats,
  .linecard-list-row .linecard-list-regions { display: none !important; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container, .container-wide { width: min(100% - 24px, 100%); }

  [style*="grid-template-columns: repeat(8"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce vertical paddings on mobile - only when explicit */
  .pad-mobile-tight { padding-top: 48px !important; padding-bottom: 48px !important; }

  /* Rein in inline-styled sections with very large vertical padding.
     React serializes inline styles to kebab-case without quotes. */
  [style*="padding: 120px"],
  [style*="padding: 96px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  [style*="padding: 80px 0"] { padding-top: 48px !important; padding-bottom: 32px !important; }
  [style*="padding: 72px"] { padding: 36px !important; }
  [style*="padding-bottom: 120"] { padding-bottom: 60px !important; }

  /* Footer stack */
  footer [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  footer .between {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }

  /* Type rein-in for big display text on small screens */
  .h-display { font-size: clamp(48px, 14vw, 96px); line-height: 0.92; }
  .h1 { font-size: clamp(40px, 11vw, 72px); }
  .h2 { font-size: clamp(28px, 8vw, 48px); }

  .marquee-item { font-size: clamp(40px, 14vw, 72px); gap: 32px; }
  .marquee-track { gap: 32px; }

  /* Tighter logo tiles */
  .logo-tile { padding: 10px; border-radius: 10px; }

  /* Drawer fills */
  .drawer { width: 100vw; border-left: none; }

  /* Sticky filter rail offset */
  .linecard-rail-sticky { top: 64px !important; }

  /* Line-type panel: collapse columns */
  .linecard-types-groups { grid-template-columns: repeat(2, 1fr) !important; }
  .linecard-types-checklist { column-count: 2 !important; }

  /* Inputs slightly smaller */
  .input { padding: 12px 14px; font-size: 14.5px; }

  /* Nav becomes 60 tall */
  .nav-bar { height: 60px !important; }

  /* Hide things marked hide-mobile */
  .hide-mobile { display: none !important; }
  .hide-desktop { display: revert; }
}

@media (max-width: 420px) {
  [style*="grid-template-columns: repeat(8"],
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .linecard-types-groups { grid-template-columns: 1fr !important; }
  .linecard-types-checklist { column-count: 1 !important; }
}

/* Mobile-menu sheet (slides down from top) */
.nav-mobile-sheet {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 40;
  padding: 80px 24px 32px;
  animation: sheetIn .25s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
@keyframes sheetIn {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.nav-mobile-sheet a {
  display: block;
  padding: 18px 4px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--line);
}
.nav-mobile-sheet a:last-of-type { border-bottom: none; }

/* Default: hide mobile menu button on desktop */
.nav-mobile-btn { display: none; }

/* Team filter card — labels align in a left rail; collapses on mobile */
.team-filter-card { border-radius: 14px; }
.team-filter-row:last-of-type { /* the last filter row sits above the footer; its borderBottom is the divider */ }
@media (max-width: 640px) {
  .team-filter-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .team-filter-row > span:first-child { letter-spacing: 0.18em !important; }
}

/* ─────────────────────────────────────────────────────────
   ADMIN — mobile-friendly tweaks for /admin (Site editor)
   ───────────────────────────────────────────────────────── */
.admin-page .container { width: min(100% - 32px, 1360px); }
@media (max-width: 720px) {
  .admin-page .container { width: min(100% - 20px, 100%); }
  .admin-page section:first-of-type .container { padding: 20px 0 12px !important; }
  .admin-page section + section.container { padding: 20px 0 64px !important; }
  /* Header + editor toolbar: stack vertically */
  .admin-page .between {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }
  .admin-page .between > div:last-child,
  .admin-page .between > .flex {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  /* Toolbar buttons + filter — make filter take whatever's left */
  .admin-page .input { width: 100% !important; min-height: 40px; }
  .admin-page .between input.input { flex: 1 1 140px; }
  /* Touch-friendly buttons */
  .admin-page .btn { min-height: 40px; padding: 10px 14px !important; }
  .admin-page .chip { min-height: 36px; padding: 0 14px !important; }
  /* Tabs — let them scroll horizontally instead of wrapping awkwardly */
  .admin-page section:first-of-type .flex[style*="gap"] {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px 4px;
  }
  .admin-page section:first-of-type .flex[style*="gap"] .chip { flex: 0 0 auto; }
  /* Headings */
  .admin-page h1.serif { font-size: 28px !important; }
  .admin-page h2.serif { font-size: 22px !important; }
  /* Row body grid → single column */
  .admin-page .surface > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
  }
  /* Banner editor preview text shouldn't overflow */
  .admin-page .surface div[style*="border-radius: 8"] { font-size: 12px !important; }
}

/* ─────────────────────────────────────────────────────────
   PRINT — clean linecard export when "Export → PDF" fires
   document.body.classList.add("printing-linecard") then window.print()
   ───────────────────────────────────────────────────────── */
@media print {
  /* Force light theme regardless of current toggle */
  :root, [data-theme="dark"] {
    --bg: #ffffff !important;
    --bg-elev: #ffffff !important;
    --bg-sunk: #f7f7f4 !important;
    --ink: #000000 !important;
    --ink-2: #1a1a1a !important;
    --ink-3: #555 !important;
    --ink-4: #888 !important;
    --line: #ddd !important;
    --line-2: #bbb !important;
  }
  body { background: #fff !important; color: #000 !important; }
  body.printing-linecard nav,
  body.printing-linecard footer,
  body.printing-linecard .linecard-rail-sticky,
  body.printing-linecard .nav-mobile-sheet,
  body.printing-linecard .drawer,
  body.printing-linecard .drawer-backdrop { display: none !important; }
  /* Hide the line-type panel + active filter chips + result toolbar */
  body.printing-linecard section[style*="background: var(--bg-sunk)"]:not(.print-keep),
  body.printing-linecard .linecard-rail,
  body.printing-linecard .linecard-types-checklist,
  body.printing-linecard .linecard-sort-view { display: none !important; }
  body.printing-linecard .marquee-track { display: none !important; }
  body.printing-linecard .page-fade { animation: none !important; }
  /* Tighter logo grid for print */
  body.printing-linecard [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }
  body.printing-linecard [style*="grid-template-columns: repeat(8"] {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 6px !important;
  }
  body.printing-linecard .logo-tile-card {
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: none !important;
    transform: none !important;
  }
  /* List-view export: keep blurb + region columns visible */
  body.printing-linecard .linecard-list-row .linecard-list-blurb,
  body.printing-linecard .linecard-list-row .linecard-list-cats,
  body.printing-linecard .linecard-list-row .linecard-list-regions { display: block !important; }
  body.printing-linecard .linecard-list-row { page-break-inside: avoid; break-inside: avoid; }
  /* Page setup */
  @page { margin: 12mm; }
  body.printing-linecard h1 { font-size: 24pt !important; }
}
