/*
  Brand stylesheet — a print-shop canvas: paper, ink, and two spot
  colors borrowed from registration marks (magenta, cyan), plus a trace
  of yellow used only as a mark, never a fill. Shared by the homepage
  and the branded inner pages (taxonomy term pages, and later the marks
  archive/single) — see gli_is_branded_view() in inc/enqueue.php. The
  base-tag resets below are scoped to body.gli-branded, a class added by
  that same function, since WordPress only adds body_class('home') on
  the front page itself.
*/

:root{
  --paper:#ffffff;
  --canvas:#f6f4ee;
  --ink:#15130f;
  --ink-soft:#6e6a60;
  --ink-faint:#79736a;
  --line:#e6e1d3;
  --magenta:#e5136b;
  --cyan:#0b96b0;
  --yellow:#f0b400;
  --radius-sm:2px;
  --maxw:1280px;
  --ease:cubic-bezier(.16,.84,.32,1);
}

html:has(body.gli-branded){ background:var(--ink); overscroll-behavior-y:none; }
body.gli-branded{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Manrope',ui-sans-serif,system-ui,sans-serif;
  font-size:16px;
  line-height:1.5;
  overflow-x:hidden;
  overscroll-behavior-y:none;
  -webkit-font-smoothing:antialiased;
}
body.gli-branded h1, body.gli-branded h2, body.gli-branded h3{
  font-family:'Bricolage Grotesque',ui-sans-serif,system-ui,sans-serif;
  font-weight:700;
  margin:0;
  text-wrap:balance;
  letter-spacing:-0.01em;
}
body.gli-branded p{ margin:0; }
body.gli-branded a{ color:inherit; text-decoration:none; }
/* max-width/object-fit belong to real <img> content only — applying
   them to every <svg> too (as this rule once did) collapses any small
   UI icon svg (nav icons, carousel arrows, modal close buttons, etc.)
   sitting in an auto-sized flex/grid container down to a sliver,
   since percentage max-width has nothing definite to resolve against
   there. Icon svgs are sized by their own width/height attribute or
   explicit CSS instead. */
body.gli-branded img, body.gli-branded svg{ display:block; }
/* No object-fit default here on purpose — every context that puts an
   <img> in a box with its own width/height (cards, the mark modal,
   post hero visuals, term images, the submit-logo preview, etc.) sets
   object-fit itself, deliberately choosing cover or contain for that
   specific case. A blanket !important default here (as this rule once
   had) silently overrides every one of those regardless of specificity,
   which is exactly what was forcing every image site-wide into contain
   even where cover was clearly what that component wanted. */
body.gli-branded img{ max-width:100%; border:none !important; }
body.gli-branded button{ font-family:inherit; cursor:pointer; background:none; border:none; color:inherit; }
body.gli-branded ::selection{ background:var(--magenta); color:#fff; }

.mono{ font-family:'IBM Plex Mono',ui-monospace,monospace; letter-spacing:0.01em; }
.eyebrow{
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:12px; font-weight:500; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--ink-soft);
  display:inline-flex; align-items:center; gap:8px;
}
.eyebrow::before{ content:""; width:6px; height:6px; background:var(--magenta); display:inline-block; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding-inline:clamp(20px,5vw,56px); }
/* Full-width ("container-fluid") variant: same side gutters, no max width. */
.wrap-fluid{ max-width:none; }
.tabular{ font-variant-numeric:tabular-nums; }

/* Breadcrumb — used on taxonomy term pages and static pages alike. */
.crumbs{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:12px; color:var(--ink-faint);
}
.crumbs a{ transition:color .2s ease; }
.crumbs a:hover{ color:var(--ink); }
.crumbs .sep{ color:var(--line); }
.crumbs .crumb-current{ color:var(--ink-soft); }

/* Generated placeholder tile (see gli_fallback_tile() in inc/template-tags.php) */
.gli-fallback-tile{
  width:100%; height:100%; display:grid; place-items:center;
  border:1px solid var(--line);
}
.gli-fallback-tile svg{ width:36%; height:36%; }

@media (prefers-reduced-motion: reduce){
  body.gli-branded *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* Smooth-scroll rig: #scroll-fill holds the real page height so the
   browser draws a native scrollbar; #scroll-content is fixed and
   lerped by JS. The nav is a sibling outside it on purpose — a
   transformed ancestor becomes the containing block for anything
   position:fixed inside it, which would break a fixed navbar.
   #scroll-content only becomes fixed once front.js has switched the rig
   on (html.has-smooth). Fixed from the first paint, it took the page
   out of flow before the script had sized #scroll-fill, leaving <body>
   0px tall — so the dark html background showed for a moment on every
   load, and the page couldn't scroll at all without JavaScript. */
#scroll-fill{ width:1px; }
.has-smooth #scroll-content{ position:fixed; top:0; left:0; width:100%; will-change:transform; }

/* Nav */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:18px 0;
  transition:transform .5s var(--ease), background-color .4s ease, border-color .4s ease, padding .3s ease;
  border-bottom:1px solid transparent;
}
.nav.solid{
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(14px) saturate(1.4);
  -webkit-backdrop-filter:blur(14px) saturate(1.4);
  border-bottom:1px solid var(--line);
  padding:12px 0;
}
.nav.hide{ transform:translateY(-102%); }
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{
  font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:20px; letter-spacing:-0.02em;
  display:flex; align-items:center; gap:9px;
}
.brand-logo{ height:48px !important; width:auto; display:block; }
.brand-logo--light{ filter:brightness(0) invert(1); }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-link{ position:relative; font-size:14.5px; font-weight:600; padding:4px 0; }
.nav-link::after{ content:""; position:absolute; left:0; right:100%; bottom:0; height:1.5px; background:var(--ink); transition:right .35s var(--ease); }
.nav-link:hover::after{ right:0; }
.nav-cta-group{ display:flex; align-items:center; gap:18px; }
.icon-btn{
  width:36px; height:36px; display:grid; place-items:center;
  border:1px solid var(--line); border-radius:var(--radius-sm);
  transition:border-color .25s ease, background .25s ease, transform .25s ease;
}
.icon-btn:hover{ border-color:var(--ink); transform:translateY(-1px); }

/* Mobile menu toggle — three bars that morph into an X, so the icon
   itself communicates open/closed instead of staying static. */
.menu-toggle{ display:none; flex-direction:column; align-items:center; justify-content:center; gap:4px; }
.menu-toggle-bar{ width:16px; height:1.5px; background:currentColor; transition:transform .3s var(--ease), opacity .25s ease; }
.menu-toggle.is-open .menu-toggle-bar:nth-child(1){ transform:translateY(5.5px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle-bar:nth-child(2){ opacity:0; }
.menu-toggle.is-open .menu-toggle-bar:nth-child(3){ transform:translateY(-5.5px) rotate(-45deg); }

.btn{
  display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:700;
  padding:11px 20px; border:1px solid var(--ink); border-radius:var(--radius-sm);
  position:relative; overflow:hidden; isolation:isolate;
}
.btn span{ position:relative; z-index:1; transition:color .35s var(--ease); }
.btn::before{ content:""; position:absolute; inset:0; z-index:0; background:var(--ink); transform:translateY(101%); transition:transform .4s var(--ease); }
.btn:hover::before{ transform:translateY(0); }
.btn:hover span{ color:var(--paper); }
.btn.ghost{ border-color:var(--line); }
.btn.ghost::before{ background:var(--canvas); }
.btn.ghost:hover span{ color:var(--ink); }

/* Hero */
.hero{
  position:relative; padding:120px 0 90px;
  background-image:radial-gradient(var(--line) 1px, transparent 1px);
  background-size:26px 26px; background-position:-6px -6px;
}
.hero-grid{ position:relative; z-index:2; display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:40px; align-items:start; }
.hero-spec{ display:inline-flex; align-items:center; gap:10px; font-size:11px; color:var(--ink-faint); padding:6px 10px; border:1px solid var(--line); margin-bottom:26px; flex-wrap:wrap; }
.hero-spec b{ color:var(--ink-soft); font-weight:500; }
.hero h1{ font-size:clamp(40px,6vw,74px); line-height:0.98; }
.hero h1 em{ font-style:italic; font-family:'Bricolage Grotesque',sans-serif; color:var(--magenta); }
.hero-sub{ margin-top:26px; max-width:46ch; font-size:17px; color:var(--ink-soft); line-height:1.65; }

.filterbar{ margin-top:38px; display:flex; flex-wrap:wrap; border:1px solid var(--ink); max-width:640px; }
.filterbar .f{ flex:1 1 108px; padding:14px 16px; border-right:1px solid var(--line); display:flex; flex-direction:column; gap:3px; min-width:0; }
.filterbar .f:last-of-type{ border-right:none; }
.filterbar .f label{ font-family:'IBM Plex Mono',monospace; font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-faint); }
.filterbar select{
  font-family:'Manrope',sans-serif; font-weight:700; font-size:14px;
  border:none; background:none; padding:0 16px 0 0; color:var(--ink);
  appearance:none; -webkit-appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2315130f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right center; background-size:10px 6px;
}
.filterbar .go{
  flex:0 0 auto; background:var(--ink); color:#fff; display:flex; align-items:center; gap:8px;
  padding:0 22px; font-weight:700; font-size:14px; transition:background .25s ease;
}
.filterbar .go:hover{ background:var(--magenta); }

.hero-canvas{ position:relative; height:440px; }
.float-tile{
  position:absolute; width:104px; height:104px; display:grid; place-items:center;
  border:1px solid var(--line); animation:bob 7s ease-in-out infinite; transition:transform .4s var(--ease);
}
.float-tile:hover{ transform:scale(1.08) rotate(0deg) !important; z-index:5; border-color:var(--ink); }
.float-tile svg{ width:38px; height:38px; }
.float-tile.letter{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:38px; }
@keyframes bob{ 0%,100%{ transform:translateY(0) rotate(var(--r,0deg)); } 50%{ transform:translateY(-14px) rotate(var(--r,0deg)); } }

/* Stats */
.stats{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stats .wrap{ display:grid; grid-template-columns:repeat(4,1fr); }
.stat{ padding:26px 22px; border-right:1px solid var(--line); }
.stat:last-child{ border-right:none; }
.stat .n{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:clamp(26px,3vw,38px); }
.stat .l{ margin-top:4px; font-size:12.5px; color:var(--ink-soft); }

/* Section scaffolding */
section.block{ padding:96px 0; }
section.block.tint{ background:var(--canvas); }
.block-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:48px; flex-wrap:wrap; }
.block-head h2{ font-size:clamp(28px,3.4vw,42px); max-width:20ch; }
.block-head p{ color:var(--ink-soft); max-width:50ch; font-size:15px; }

.reveal{ opacity:0; transform:translateY(28px); transition:opacity .8s var(--ease), transform .8s var(--ease); transition-delay:var(--d,0s); }
.reveal.on{ opacity:1; transform:translateY(0); }

/* Explore tabs */
.tabs{
  display:flex; gap:6px; flex-wrap:nowrap; border-bottom:1px solid var(--line); position:relative; margin-bottom:34px;
  overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.tabs::-webkit-scrollbar{ display:none; }
.tab-btn{ flex:none; padding:12px 4px; margin-right:26px; font-size:14.5px; font-weight:700; color:var(--ink-faint); position:relative; white-space:nowrap; transition:color .25s ease; }
.tab-btn.active{ color:var(--ink); }
.tab-indicator{ position:absolute; bottom:-1px; height:2px; background:var(--magenta); transition:left .4s var(--ease), width .4s var(--ease); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }
.chip-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px; }
.chip-grid-more{ margin-top:24px; text-align:center; }
.chip{
  position:relative; border:1px solid var(--line); padding:20px 18px;
  display:flex; flex-direction:column; gap:20px; justify-content:space-between; min-height:96px;
  transition:border-color .3s ease, background .3s ease, transform .3s var(--ease);
}
.chip:hover{ border-color:var(--ink); transform:translateY(-3px); }
.chip .name{ font-weight:700; font-size:15px; }
.chip .count{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--ink-faint); }
.chip::before,.chip::after{ content:""; position:absolute; width:9px; height:9px; opacity:0; transition:opacity .3s ease; }
.chip::before{ top:-1px; left:-1px; border-top:2px solid var(--magenta); border-left:2px solid var(--magenta); }
.chip::after{ bottom:-1px; right:-1px; border-bottom:2px solid var(--magenta); border-right:2px solid var(--magenta); }
.chip:hover::before,.chip:hover::after{ opacity:1; }

/* Trending carousel */
.carousel-head{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:34px; gap:20px; flex-wrap:wrap; }
.carousel-nav{ display:flex; gap:8px; }
.car-btn{ width:42px; height:42px; border:1px solid var(--ink); display:grid; place-items:center; transition:background .25s ease; }
.car-btn:hover{ background:var(--ink); }
.car-btn:hover svg{ stroke:#fff; }
.car-btn svg{ width:16px; height:16px; stroke:var(--ink); transition:stroke .25s ease; }

.track{ display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x proximity; padding-bottom:8px; cursor:grab; scrollbar-width:none; }
.track::-webkit-scrollbar{ display:none; }
.track.dragging{ cursor:grabbing; scroll-snap-type:none; }
/* Unsplash-style card: just the image, rounded, with the title and the
   share/save icons appearing only on hover instead of a permanent
   footer bar. Fixed 252/1:1 here is the pre-JS/no-JS fallback (a plain
   uniform grid) — front.js's masonry layout overrides width/height
   per card from its real image ratio (see .mark-grid and .track
   below), using data-ratio, already known at render time. */
.mcard{
  flex:0 0 auto; width:252px; aspect-ratio:1/1; scroll-snap-align:start;
  border:1px solid var(--line); border-radius:12px; position:relative; overflow:hidden;
}
.mcard-face{ position:absolute; inset:0; display:grid; place-items:center; transition:transform .55s var(--ease); }
/* Every real image sits on its own accent-color canvas (background
   set inline per mark — see gli_mark_card()) and is always shown
   complete via object-fit:contain below — a logo's own meaningful
   content (icon, wordmark) must never get cropped by the masonry box,
   which is sized to a *clamped* ratio for layout sanity and so can
   legitimately be narrower/shorter than the source file's real
   proportions. Only a PNG (almost always a transparent-background
   export) gets inset padding on top of that; any other real image
   (JPG/WEBP/GIF) fills the box right to its edge — no padding — with
   the accent color only showing through in whatever sliver contain
   naturally leaves when the image's own ratio doesn't exactly match
   the box's. The fallback tile keeps neither: it already fills its
   box full-bleed with its own color, so it's left alone. */
.mcard-face--image{ padding:14%; box-sizing:border-box; }
.mcard-face--photo{ padding:0; }
.mcard:hover .mcard-face{ transform:scale(1.06); }
.mcard-face svg{ width:64px; height:64px; }
.mcard-face.letter{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:66px; }
.mcard-face img.gli-mark-image{ width:100%; height:100%; object-fit:contain; }

/* Opens the mark's detail modal on a plain click (front.js); a real
   <a href> underneath so middle-click/right-click "open in new tab"
   still works and lands on single-gli_logo.php. Sits above the face
   image, below the save button and hover overlay. */
.mcard-link{ position:absolute; inset:0; z-index:1; cursor:pointer; }

/* Bottom title scrim — hidden until hover */
.mcard-overlay{
  position:absolute; left:0; right:0; bottom:0; z-index:2; padding:28px 14px 12px;
  background:linear-gradient(180deg, rgba(21,19,15,0) 0%, rgba(21,19,15,.68) 100%);
  opacity:0; transform:translateY(6px); transition:opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events:none;
  display:flex; justify-content:space-between;
}
.mcard:hover .mcard-overlay{ opacity:1; transform:translateY(0); }
.mcard-title{
  display:block; color:#fff; font-family:'Manrope',sans-serif; font-weight:700; font-size:13.5px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.mcard-author{
  display:flex; align-items:center; gap:6px; margin-top:0px; min-width:0;
}
.mcard-author-avatar{
  width:18px; height:18px; border-radius:50%; flex:none; display:block;
  border:1px solid rgba(255,255,255,.5);
}
.mcard-author-name{
  color:rgba(255,255,255,.78); font-family:'Manrope',sans-serif; font-weight:700; font-size:13.5px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* Top-right save quick-action — hidden until hover by default, but a
   mark the visitor has already saved (see front.js's cookie-backed
   .is-saved toggle) stays visible and highlighted at all times, so
   it's obvious at a glance which marks are saved without hovering.
   The class name deliberately doesn't use the word "save" — see the
   comment in gli_mark_card() for why. */
.mcard-actions{
  position:absolute; top:10px; right:10px; z-index:3; display:flex; gap:8px;
}
.mcard-actions .mcard-icon-btn{
  width:32px; height:32px; aspect-ratio:1/1; box-sizing:border-box;
  padding:0; margin:0; border:0; appearance:none; -webkit-appearance:none;
  border-radius:50%; background:rgba(255,255,255,.96); color:var(--ink);
  display:flex; align-items:center; justify-content:center; flex:none;
  box-shadow:0 3px 10px rgba(21,19,15,.2);
  opacity:0; transform:translateY(-6px);
  transition:background .2s ease, color .2s ease, transform .2s ease, opacity .25s var(--ease);
}
.mcard:hover .mcard-actions .mcard-icon-btn,
.mcard:focus-within .mcard-actions .mcard-icon-btn,
.mcard-actions .mcard-icon-btn.is-saved{
  opacity:1; transform:translateY(0);
}
.mcard-actions .mcard-icon-btn:hover{ transform:scale(1.08); }
.mcard-actions .mcard-icon-btn i{
  font-size:13px; line-height:1; display:block; width:1em; height:1em;
  text-align:center; flex:none;
}
.mcard-actions .mcard-act-b:hover,
.mcard-actions .mcard-act-b.is-saved{ background:var(--magenta); color:#fff; }

/* Bottom-right confirmation toast for the save/share quick actions. */
.gli-toast{
  position:fixed; right:20px; bottom:20px; z-index:200;
  display:flex; align-items:center; gap:9px;
  background:var(--ink); color:#fff; font-family:'Manrope',sans-serif; font-weight:600; font-size:13.5px;
  padding:13px 20px; border-radius:999px; box-shadow:0 16px 34px -12px rgba(21,19,15,.4);
  opacity:0; transform:translateY(12px) scale(.97); pointer-events:none;
  transition:opacity .25s var(--ease), transform .25s var(--ease);
}
.gli-toast.is-visible{ opacity:1; transform:translateY(0) scale(1); }
.gli-toast i{ font-size:13px; color:var(--yellow); }
@media (max-width:480px){
  .gli-toast{ left:16px; right:16px; bottom:16px; justify-content:center; }
}

/* Mark grid — a mcard wall arranged as a grid instead of the homepage's
   horizontal .track, used on taxonomy pages, the marks archive, and
   the Explore page. */
/* Masonry wall: a fine-grained row unit (grid-auto-rows) plus a
   per-card grid-row-end: span N, set by front.js from each card's
   real image ratio, is what actually produces the Unsplash-style
   "different heights, still aligned into clean columns, no gaps"
   layout — plain CSS Grid/columns can't do that on its own. The 252px
   height here is only the pre-JS/no-JS fallback (a uniform grid) — the
   1px rows switch on with html.has-masonry, which front.js adds just
   before it gives each card its span; with 1px rows and no spans yet,
   every card would pile onto the same rows. */
.mark-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;
}
.has-masonry .mark-grid{ grid-auto-rows:1px; }
.mark-grid .mcard{ width:auto; height:252px; aspect-ratio:auto; }

/* Mark detail modal — opened over the wall on a card click (front.js),
   or already open on load when the URL is a mark's own permalink (see
   single-gli_logo.php). A sibling of #scroll-content, not a child of
   it — see the note in footer-front.php on why. */
.mark-modal{
  position:fixed; inset:0; z-index:300;
  display:flex; align-items:center; justify-content:center; padding:32px;
  opacity:0; visibility:hidden; transition:opacity .3s var(--ease), visibility 0s linear .3s;
}
.mark-modal.is-open{ opacity:1; visibility:visible; transition:opacity .3s var(--ease), visibility 0s linear 0s; }
.mark-modal-backdrop{
  position:absolute; inset:0; background:rgba(21,19,15,.72); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px);
}
.mark-modal-panel{
  position:relative; z-index:1; width:100%; max-width:1140px; max-height:86vh;
  background:var(--paper); border-radius:14px; overflow:hidden;
  box-shadow:0 40px 80px -24px rgba(0,0,0,.5);
  transform:translateY(18px) scale(.98); transition:transform .35s var(--ease);
}
.mark-modal.is-open .mark-modal-panel{ transform:translateY(0) scale(1); }
.mark-modal-body{ display:flex; width:100%; height:100%; max-height:86vh; }

.mark-modal-image{
  flex:0 0 70%; min-width:0; background:var(--canvas);
  display:flex; align-items:center; justify-content:center; padding:56px;
}
.mark-modal-img{ max-width:100%; max-height:70vh; width:auto; height:auto; object-fit:contain; }
/* A non-PNG real image (see inc/mark-modal.php) has no accent canvas
   behind it and no padding — full-bleed and shown complete (never
   cropped), same as the card (see .mcard-face--photo). The base
   .mark-modal-image rule above still sets one for the PNG case. */
.mark-modal-image--photo{ padding:0; background:none; }
.mark-modal-image .gli-fallback-tile{ width:min(100%,360px); aspect-ratio:1/1; }
.mark-modal-image .gli-fallback-tile svg{ width:40%; height:40%; }

/* Right column: a fixed toolbar up top (always reachable, never
   scrolls away), then a scrolling body underneath it — the image
   stays put and only this content scrolls if it runs long. */
.mark-modal-details{
  flex:0 0 30%; min-width:0; display:flex; flex-direction:column;
  border-left:1px solid var(--line);
}

.mark-modal-toolbar{
  flex:none; display:flex; align-items:center; justify-content:flex-end; gap:8px;
  padding:18px 20px; border-bottom:1px solid var(--line);
}
.mark-modal-toolbar-divider{ width:1px; height:22px; background:var(--line); margin:0 2px; flex:none; }
.mark-modal-toolbar-btn{
  position:relative; flex:none; width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:50%; color:var(--ink-soft); background:none;
  transition:border-color .2s ease, color .2s ease, background .2s ease, transform .2s var(--ease);
}
.mark-modal-toolbar-btn:hover{ border-color:var(--ink); color:var(--ink); background:var(--canvas); transform:translateY(-1px); }
.mark-modal-toolbar-btn:active{ transform:translateY(0) scale(.94); }
.mark-modal-toolbar-btn svg{ width:15px; height:15px; display:block; flex:none; }
.mark-modal-close:hover{ background:var(--ink); border-color:var(--ink); color:#fff; }
.mark-modal-save.is-saved{ border-color:var(--magenta); background:var(--magenta); color:#fff; }
.mark-modal-save.is-saved:hover{ border-color:var(--magenta); background:var(--magenta); color:#fff; transform:translateY(-1px); }
.mark-modal-tooltip{
  position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%) translateY(-4px);
  background:var(--ink); color:#fff; font-family:'IBM Plex Mono',monospace; font-size:11px; white-space:nowrap;
  padding:5px 9px; border-radius:4px; opacity:0; pointer-events:none; z-index:1;
  transition:opacity .2s ease, transform .2s ease;
}
.mark-modal-toolbar-btn:hover .mark-modal-tooltip{ opacity:1; transform:translateX(-50%) translateY(0); }

.mark-modal-scroll{
  flex:1 1 auto; min-height:0; overflow-y:auto; padding:26px 32px 36px;
  display:flex; flex-direction:column; gap:22px;
  scrollbar-width:thin; scrollbar-color:var(--line) transparent;
}
.mark-modal-scroll::-webkit-scrollbar{ width:6px; }
.mark-modal-scroll::-webkit-scrollbar-track{ background:transparent; }
.mark-modal-scroll::-webkit-scrollbar-thumb{ background:var(--line); border-radius:999px; }
.mark-modal-scroll::-webkit-scrollbar-thumb:hover{ background:var(--ink-faint); }

.mark-modal-head{ display:flex; flex-direction:column; gap:6px; min-width:0; }
body.gli-branded .mark-modal-title{
  display:block; max-width:100%; font-size:22px; line-height:1.25; text-wrap:nowrap;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mark-modal-by{ font-size:13.5px; color:var(--ink-soft); }
.mark-modal-desc{ font-size:14.5px; line-height:1.7; color:var(--ink-soft); }
.mark-modal-desc p + p{ margin-top:12px; }

/* Full-width spec rows instead of a cramped 2-up grid — label on the
   left, pills on the right, hairline between each, same "spec sheet"
   pattern as .swatch-row elsewhere on the site. */
.mark-modal-tax-grid{ display:flex; flex-direction:column; border-top:1px solid var(--line); }
.mark-modal-tax-col{
  display:flex; align-items:flex-start; gap:16px; padding:14px 0; border-bottom:1px solid var(--line);
}
.mark-modal-tax-label{
  flex:0 0 108px; padding-top:5px; font-family:'IBM Plex Mono',monospace; font-size:10.5px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; color:var(--ink-faint);
}
.mark-modal-tax-value{ flex:1; min-width:0; display:flex; flex-wrap:wrap; gap:6px; }
.mark-modal-tax-value a{
  font-size:12.5px; font-weight:600; color:var(--ink); padding:5px 10px;
  background:var(--canvas); border-radius:999px; transition:background .2s ease, color .2s ease;
}
.mark-modal-tax-value a:hover{ background:var(--ink); color:#fff; }

@media (max-width:900px){
  .mark-modal{ padding:0; }
  .mark-modal-panel{ max-width:none; max-height:100vh; height:100%; border-radius:0; }
  /* Stacked layout — one column, scrolled as a whole; the toolbar
     sticks to the top of that scroll instead of scrolling away, so
     save/original/close stay reachable without scrolling back up. */
  .mark-modal-body{ flex-direction:column; max-height:100vh; overflow-y:auto; }
  .mark-modal-image{ flex:0 0 auto; padding:28px; }
  .mark-modal-image--photo{ padding:0; }
  .mark-modal-img{ max-height:38vh; }
  .mark-modal-details{ flex:1 1 auto; border-left:none; }
  .mark-modal-toolbar{ position:sticky; top:0; z-index:2; background:var(--paper); padding:14px 16px; }
  .mark-modal-toolbar-divider{ margin-left:auto; }
  .mark-modal-scroll{ overflow-y:visible; padding:22px 20px 32px; }
}
@media (max-width:480px){
  .mark-modal-tax-label{ flex-basis:88px; font-size:10px; }
}

/* Brand-styled pagination (overrides the plain rounded style in style.css) */
.gli-branded .pagination{
  margin-top:44px; display:flex; justify-content:center; gap:8px; flex-wrap:wrap;
}
.gli-branded .pagination .page-numbers{
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:13px;
  border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:9px 14px; color:var(--ink-soft); transition:border-color .2s ease, color .2s ease;
}
.gli-branded .pagination .page-numbers:hover{ border-color:var(--ink); color:var(--ink); }
.gli-branded .pagination .page-numbers.current{ background:var(--ink); border-color:var(--ink); color:#fff; }
.gli-branded .pagination .page-numbers.dots{ border-color:transparent; }

/* Color explorer */
.color-wrap{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:52px; align-items:center; }
.swatch-list{ display:flex; flex-direction:column; }
.swatch-row{ display:flex; align-items:center; gap:16px; padding:13px 4px; border-bottom:1px solid var(--line); transition:padding-left .3s var(--ease), color .3s ease; }
.swatch-row:hover{ padding-left:14px; }
.swatch-row:hover .swname{ color:var(--magenta); }
.swatch-dot{ width:22px; height:22px; border:1px solid rgba(0,0,0,.06); flex:none; }
.swname{ font-weight:700; font-size:15px; transition:color .3s ease; }
.swcount{ margin-left:auto; font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--ink-faint); }
.color-preview{ border:1px solid var(--line); aspect-ratio:1/0.82; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; transition:background .4s ease; }
.color-preview .cell{ display:grid; place-items:center; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.color-preview .cell:nth-child(2n){ border-right:none; }
.color-preview .cell:nth-child(n+3){ border-bottom:none; }
.color-preview svg{ width:44px; height:44px; }

/* How it works */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.step{ background:var(--paper); padding:36px 30px 40px; }
.step .idx{ font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--magenta); }
.step h3{ font-size:21px; margin-top:16px; margin-bottom:12px; }
.step p{ color:var(--ink-soft); font-size:14.5px; line-height:1.65; }

/* Journal */
/* Borders live on the cards (overlapping by 1px so shared edges stay
   single-width), so a row with fewer than four cards leaves blank space
   rather than a block of grid background. */
.journal-grid{ display:grid; grid-template-columns:repeat(4,1fr); padding:1px 0 0 1px; }
.jcard{ border:1px solid var(--line); margin:-1px 0 0 -1px; background:var(--paper); padding:26px 22px 28px; display:flex; flex-direction:column; gap:16px; min-height:280px; position:relative; margin-top:0px;}
.jcat{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--cyan); text-transform:uppercase; letter-spacing:.08em; }
.jcard h2{ font-size:18px; line-height:1.28; font-weight:700; font-family:'Manrope',sans-serif; flex:1; transition:color .25s ease; }
/* Hover / keyboard focus: the title turns magenta (it's an h2 — this
   once targeted h3 and never matched), the card warms and picks up an
   ink border, raised so the shared 1px edges show on every side. */
.jcard{ transition:background-color .3s ease, border-color .3s ease; }
.jcard:hover, .jcard:has(.jcard-link:focus-visible){ z-index:1; background:var(--canvas); border-color:var(--ink); }
.jcard:hover h2, .jcard:has(.jcard-link:focus-visible) h2{ color:var(--magenta); }
.jmeta span:last-child{ transition:transform .3s var(--ease), color .3s ease; }
.jcard:hover .jmeta span:last-child{ transform:translateX(-4px); color:var(--ink); }
.jcard-link:focus-visible{ outline:none; }
.jmeta{ display:flex; justify-content:space-between; font-size:12px; color:var(--ink-faint); font-family:'IBM Plex Mono',monospace; }
.jcard-link{ position:absolute; inset:0; }
.journal-empty{ border:1px solid var(--line); padding:40px; color:var(--ink-soft); }

/* Journal cards with a thumbnail (homepage journal, related guides):
   separate rounded cards with the blog's picture on top. Plain .jcard
   (the posts archive) is unchanged. */
.journal-grid--thumbs{ gap:22px; padding:0; }
.journal-grid--3{ grid-template-columns:repeat(3,1fr); }
.jcard--thumb{ margin:0; padding:0; gap:0; min-height:0; overflow:hidden; border-radius:18px; background:var(--paper);
  transition:transform .35s var(--ease), box-shadow .35s ease, border-color .3s ease; }
.jcard--thumb:hover, .jcard--thumb:has(.jcard-link:focus-visible){ background:var(--paper); transform:translateY(-4px); box-shadow:0 18px 40px rgba(21,19,15,.10); }
.jcard--thumb:has(.jcard-link:focus-visible){ outline:2px solid var(--magenta); outline-offset:3px; }
.jcard-media{ aspect-ratio:16/9; overflow:hidden; background:var(--canvas); border-bottom:1px solid var(--line); }
.jcard-media img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.jcard--thumb:hover .jcard-media img{ transform:scale(1.04); }
.jcard-body{ flex:1; display:flex; flex-direction:column; gap:12px; padding:20px 20px 18px; }
.jcard--thumb .jcat{ align-self:flex-start; padding:4px 10px; border-radius:999px; background:#fde7f0; color:var(--magenta); font-size:10.5px; }
.jcard--thumb .jcard-title{ flex:1; font-size:18px; line-height:1.3; font-weight:700; font-family:'Manrope',sans-serif; transition:color .25s ease; }
.jcard--thumb:hover .jcard-title, .jcard--thumb:has(.jcard-link:focus-visible) .jcard-title{ color:var(--magenta); }
.jcard--thumb .jmeta{ align-items:center; padding-top:14px; border-top:1px dashed var(--line); }
.jcard--thumb .jcard-go{ display:inline-flex; gap:6px; color:var(--ink); font-weight:500; }
.jcard--thumb .jmeta span:last-child{ transform:none; }
.jcard-arrow{ display:inline-block; transition:transform .3s var(--ease); }
.jcard--thumb:hover .jcard-arrow{ transform:translateX(4px); color:var(--magenta); }

/* Related guides at the end of each blog. */
.gli-related{ padding:80px 0 96px; border-top:1px solid var(--line); background:var(--canvas); }
.gli-related-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:34px; }
.gli-related-head > div{ display:flex; flex-direction:column; gap:12px; }
.gli-related h2{ font-family:'Bricolage Grotesque',sans-serif; font-size:clamp(28px,3.4vw,42px); line-height:1.1; letter-spacing:-.02em; }
.gli-related-all{ flex:none; padding:10px 16px; border:1px solid var(--ink); border-radius:999px; font-size:14px; font-weight:600; color:var(--ink); text-decoration:none; transition:background-color .25s ease, color .25s ease; }
.gli-related-all:hover{ background:var(--ink); color:#fff; }

/* Blog cards (static blogs — see gli_static_blog_grid()): the newest as
   a large featured card, the rest three to a row. The title link is
   stretched over the whole card. */
/* Two cards per row, each half the width, with a gap between them. */
.bgrid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; }
/* Cards are <article>s: undo style.css's 'article + article' post-list spacing,
   which otherwise pushed every card after the first down 48px. */
.bgrid > .bcard{ margin:0; padding:0; }
.bcard{
  position:relative; display:flex; flex-direction:column; min-width:0;
  background:var(--paper); border:1px solid var(--line); border-radius:14px; overflow:hidden;
  transition:border-color .3s ease, box-shadow .3s ease, transform .3s var(--ease);
}
.bcard:hover{ border-color:var(--ink); box-shadow:0 22px 44px -28px rgba(21,19,15,.4); transform:translateY(-3px); }
/* Card thumbnail (16:9 — the shape blog thumbnails are made at). */
.bcard-media{ position:relative; aspect-ratio:16/9; overflow:hidden; background:var(--canvas); border-bottom:1px solid var(--line); }
.bcard-media img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.bcard:hover .bcard-media img{ transform:scale(1.03); }
.bcard-body{ display:flex; flex-direction:column; gap:12px; flex:1; padding:22px 24px 22px; }
.bcard-meta{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-faint); }
.bcard-topic{ color:var(--magenta); display:inline-flex; align-items:center; gap:7px; }
.bcard-topic::before{ content:""; width:6px; height:6px; background:var(--magenta); }
.bcard-meta > span + span::before{ content:"·"; margin-right:10px; color:var(--line); }
body.gli-branded .bcard-title{ font-size:21px; line-height:1.25; }
.bcard-title a{ color:var(--ink); transition:color .25s ease; }
.bcard-title a::after{ content:""; position:absolute; inset:0; z-index:1; }
.bcard:hover .bcard-title a{ color:var(--magenta); }
.bcard-title a:focus-visible{ outline:none; }
.bcard:has(.bcard-title a:focus-visible){ outline:3px solid var(--magenta); outline-offset:3px; }
body.gli-branded .bcard-summary{ font-size:14.5px; line-height:1.65; color:var(--ink-soft); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.bcard-foot{ margin-top:auto; padding-top:14px; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:12px; font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--ink-faint); }
.bcard-cta{ font-family:'Manrope',sans-serif; font-weight:700; font-size:13px; color:var(--ink); }
.bcard-arrow{ display:inline-block; transition:transform .3s var(--ease); }
.bcard:hover .bcard-arrow{ transform:translateX(4px); }

/* Featured: one full-width card — the whole share image on top (never
   cropped: it carries its own text), a single roomy text panel below. */
.bcard--featured{ grid-column:1 / -1; }
.bcard--featured .bcard-body{ padding:36px 44px 32px; gap:16px; }
body.gli-branded .bcard--featured .bcard-title{ font-size:clamp(28px,3vw,42px); line-height:1.1; max-width:26ch; }
body.gli-branded .bcard--featured .bcard-summary{ font-size:17px; line-height:1.7; max-width:68ch; -webkit-line-clamp:4; }
.bcard--featured .bcard-foot{ margin-top:12px; padding-top:18px; }
.bcard--featured .bcard-cta{ font-size:14px; }

/* Blog page pagination (gli_static_blog_pagination()): a status line,
   then Previous · page numbers · Next on one ruled bar. */
.blog-pager{ margin-top:56px; padding-top:28px; border-top:1px solid var(--line); }
.blog-pager-status{ margin:0 0 18px; text-align:center; font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint); }
.blog-pager-status strong{ font-weight:500; color:var(--ink); }
.blog-pager-bar{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.blog-pager-step{
  display:inline-flex; align-items:center; gap:10px; min-width:140px; justify-content:center;
  padding:13px 20px; border:1px solid var(--ink); border-radius:8px;
  font-family:'Manrope',sans-serif; font-size:14px; font-weight:700; color:var(--ink); text-decoration:none;
  transition:background-color .25s ease, color .25s ease, border-color .25s ease, transform .3s var(--ease);
}
a.blog-pager-step:hover{ background:var(--ink); color:#fff; }
a.blog-pager-prev:hover{ transform:translateX(-3px); }
a.blog-pager-next:hover{ transform:translateX(3px); }
.blog-pager-step.is-disabled{ border-color:var(--line); color:var(--ink-faint); opacity:.55; cursor:default; }
.blog-pager-numbers{ list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:8px; }
.blog-pager-numbers li{ margin:0; padding:0; }
.blog-pager-numbers .page-numbers{
  display:grid; place-items:center; min-width:46px; height:46px; padding:0 12px;
  border:1px solid var(--line); border-radius:8px; background:var(--paper);
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:14px; color:var(--ink-soft); text-decoration:none;
  transition:border-color .2s ease, color .2s ease, background-color .2s ease;
}
.blog-pager-numbers a.page-numbers:hover{ border-color:var(--magenta); color:var(--magenta); }
.blog-pager-numbers .page-numbers.current{ background:var(--ink); border-color:var(--ink); color:#fff; }
.blog-pager-numbers .page-numbers.dots{ border-color:transparent; background:none; min-width:24px; padding:0; }
.blog-pager a:focus-visible{ outline:3px solid var(--magenta); outline-offset:3px; }
@media (max-width:640px){
  .blog-pager{ margin-top:40px; }
  .blog-pager-bar{ gap:8px; }
  .blog-pager-step{ min-width:0; padding:12px 14px; }
  .blog-pager-step{ font-size:13px; }
  .blog-pager-numbers{ gap:6px; }
  .blog-pager-numbers .page-numbers{ min-width:40px; height:40px; font-size:13px; }
}
@media (max-width:420px){
  .blog-pager-step{ font-size:0; gap:0; min-width:44px; height:44px; padding:0; }
  .blog-pager-step span{ font-size:16px; }
}


/* Newsletter */
.news{ padding:100px 0; background:var(--canvas); }
.news-form{ margin-top:0; max-width:460px; display:flex; border-bottom:1.5px solid var(--ink); padding-bottom:10px; margin:0 auto;}
.news-form input{ flex:1; border:none; outline:none; font-size:16px; font-family:'Manrope',sans-serif; background:none; color:var(--ink); }
.news-form input::placeholder{ color:var(--ink-faint); }
.news-form button{ font-weight:700; font-size:14px; display:flex; align-items:center; gap:6px; }
.news-note{ margin-top:14px; font-size:12px; color:var(--ink-faint); font-family:'IBM Plex Mono',monospace; text-align: center; transition:color .2s ease;}
.news-note.is-success{ color:var(--cyan); font-weight:600; }
.news-note.is-error{ color:var(--magenta); font-weight:600; }
.news-form.is-sending{ opacity:.7; pointer-events:none; }

/* Footer — a masthead row (brand + Studio) sits above a full-width
   row of taxonomy category columns, each divided by a hairline for a
   clean, premium three-tier stack down to the legal row. */
footer{ background:var(--ink); color:var(--paper); padding-top:80px; }
.foot-top{
  display:flex; justify-content:space-between; align-items:flex-start; gap:48px;
  padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.14);
}
.foot-brand{ flex:1 1 420px; max-width:420px; }
.foot-top .foot-col{ flex:0 0 auto; min-width:160px; }
/* Column count is set inline per-request (footer-front.php) to however
   many categories actually have terms, so the row always spans full
   width evenly rather than leaving a gap where an empty one would
   have been — the media queries below override it with !important
   since an inline style otherwise always wins over a stylesheet rule. */
.foot-categories{
  display:grid; gap:32px; padding:44px 0 56px; border-bottom:1px solid rgba(255,255,255,.14);
}
.foot-brand p{ color:rgba(255,255,255,.55); font-size:14px; max-width:32ch; margin-top:14px; line-height:1.6; }
.foot-col h4{ font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.4); margin-bottom:16px; font-weight:500; }
.foot-col a{ display:block; font-size:14.5px; color:rgba(255,255,255,.82); padding:6px 0; width:fit-content; position:relative; }
.foot-col a::after{ content:""; position:absolute; left:0; right:100%; bottom:4px; height:1px; background:#fff; transition:right .3s var(--ease); }
.foot-col a:hover::after{ right:0; }
/* Extra footer links (e.g. Business types past the first 15) stay in
   the markup so "Load more" is instant, no request round-trip — kept
   out of layout until then. Scoped past .foot-col a's own specificity
   so the hide actually wins instead of being silently overridden. */
.foot-col a.foot-extra-link{ display:none; }
.foot-col a.foot-extra-link.is-visible{ display:block; }
.foot-load-more{
	background:none; border:none; cursor:pointer; padding:6px 0; margin-top:2px;
	font-family:inherit; font-size:13px; color:rgba(255,255,255,.5); text-decoration:underline; text-underline-offset:3px;
}
.foot-load-more:hover{ color:#fff; }
.foot-social{ display:flex; gap:10px; margin-top:18px; }
.foot-social a{ width:34px; height:34px; border:1px solid rgba(255,255,255,.22); display:grid; place-items:center; transition:background .25s, border-color .25s; }
.foot-social a:hover{ background:var(--magenta); border-color:var(--magenta); }
.foot-social svg{ width:14px; height:14px; stroke:#fff; }

.foot-word{
  font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:clamp(58px,13vw,168px);
  line-height:1; letter-spacing:-0.03em; text-align:center; padding:44px 0 26px;
  color:transparent; -webkit-text-stroke:1px rgba(255,255,255,.5);
  transition:color .5s var(--ease), -webkit-text-stroke .5s ease, letter-spacing .5s var(--ease);
  cursor:default; user-select:none; white-space:nowrap;
}
.foot-word:hover{ color:var(--magenta); -webkit-text-stroke:1px var(--magenta); letter-spacing:0.01em; }

.foot-bottom{
  display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:12px 24px;
  padding:22px 0 30px; border-top:1px solid rgba(255,255,255,.14);
  font-size:12.5px; color:rgba(255,255,255,.5); font-family:'IBM Plex Mono',monospace;
}
.foot-legal{ display:flex; flex-direction:column; gap:6px; max-width:56ch; }
.foot-legal p{ margin:0; line-height:1.5; }
.foot-bottom .legal{ display:flex; gap:20px; flex:none; }
.foot-bottom a:hover{ color:#fff; }

@keyframes gliNavIn{ from{ opacity:0; transform:translateY(-8px); } to{ opacity:1; transform:translateY(0); } }

/* Responsive */
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-canvas{ height:280px; }
  .stats .wrap{ grid-template-columns:repeat(2,1fr); }
  .stat:nth-child(2){ border-right:none; }
  .color-wrap{ grid-template-columns:1fr; gap:30px; }
  .steps{ grid-template-columns:1fr; }
  .journal-grid{ grid-template-columns:1fr 1fr; }
  .journal-grid--3 > .jcard:nth-child(3){ display:none; }
  .bgrid{ gap:24px; }
  .bcard--featured .bcard-body{ padding:28px; }
  .foot-categories{ grid-template-columns:1fr 1fr !important; row-gap:36px; }
}
@media (max-width:680px){
  .nav-cta-group .btn.ghost{ display:none; }
  .menu-toggle{ display:flex; width:38px; height:38px; border:1px solid var(--line); }

  /* Mobile dropdown panel — a floating card under the nav instead of
     the desktop's inline flex row, with each link as a full-width,
     left-aligned row separated by a hairline. */
  .nav-links{ display:none; }
  .nav-links.is-open{
    display:flex; flex-direction:column; align-items:stretch; gap:0;
    position:fixed; top:70px; left:16px; right:16px; z-index:99;
    background:var(--paper); border:1px solid var(--line); border-radius:10px;
    padding:4px 20px; box-shadow:0 24px 48px -20px rgba(21,19,15,.28);
    animation:gliNavIn .25s var(--ease) both;
  }
  .nav-links.is-open .nav-link{
    padding:16px 0; border-bottom:1px solid var(--line);
    width:100%; text-align:left;
  }
  .nav-links.is-open .nav-link:last-child{ border-bottom:none; }
  .nav-links.is-open .nav-link::after{ display:none; }
  .filterbar{ flex-direction:column; }
  .filterbar .f{ border-right:none; border-bottom:1px solid var(--line); }
  .journal-grid{ grid-template-columns:1fr; }
  .journal-grid--3 > .jcard:nth-child(3){ display:flex; }
  .gli-related{ padding:56px 0 64px; }
  .gli-related-head{ flex-direction:column; align-items:flex-start; }
  .bgrid{ grid-template-columns:1fr; gap:18px; }
  .bcard-body, .bcard--featured .bcard-body{ padding:20px; }
  /* flex-basis (set on .foot-brand for the row layout) applies to
     height once the axis flips to column — reset it here or the brand
     block gets stretched to its old 420px width as a height instead. */
  .foot-top{ flex-direction:column; gap:28px; }
  .foot-brand{ flex-basis:auto; max-width:none; }
  .foot-categories{ grid-template-columns:1fr !important; row-gap:30px; padding:36px 0 48px; }
  section.block{ padding:66px 0; }
  .hero{ padding:126px 0 60px; }
  .news{ padding:72px 0; }
  .news-form{ flex-direction:column; align-items:stretch; border-bottom:none; gap:14px; padding-bottom:0; }
  .news-form input{ border:1px solid var(--line); padding:14px 16px; }
  .news-form button{ justify-content:center; border:1px solid var(--ink); padding:13px 16px; }
  .foot-bottom{ flex-direction:column; align-items:flex-start; }
}

/* Designer avatars: initials on a soft tile when there's no photo
   (gli_designer_avatar(), inc/designers.php). */
.gli-avatar--initials{ display:grid !important; place-items:center; font-family:'Bricolage Grotesque',sans-serif; font-weight:800; color:var(--ink); letter-spacing:-.02em; }
