/* ============================================================
   Strait Journal — CIVIC v1 (production)
   Ported from redesign-sandbox-6/assets/style.css ("Civic Modern").
   Friendly community-news layout. Mobile-first (390-414px).
   Zilla Slab card headlines + Fraunces article H1 + Source Sans 3 body.
   Cream canvas, off-black ink, rust accent, warm per-section pill tints.

   Scope of THIS stylesheet: the universal chrome (masthead, dateline
   strip, nav, footer) + the homepage + the article reading page. Other
   page types (category, rubric, tag, author, archive, about, ...) still
   ship on the legacy tokens/base/components/pages/article.v7 stack and
   are NOT styled here.
   ============================================================ */

:root{
  --cream:   #F5F1E8;   /* page canvas            */
  --card:    #FFFFFF;   /* card surface           */
  --ink:     #1A1A1A;   /* off-black text         */
  --rust:    #C65A2E;   /* primary accent         */
  --rust-dk: #A8461F;   /* hover/darker rust      */
  --muted:   #6B6256;   /* warm grey for meta     */
  --line:    #E4DDCD;   /* gentle separators      */
  --line-dk: #D6CCB8;
  --tint:    #FBF8F1;   /* faint warm fill        */
  --shadow:  0 1px 2px rgba(26,22,16,.05), 0 6px 18px rgba(26,22,16,.06);
  --shadow-h:0 2px 6px rgba(26,22,16,.07), 0 14px 30px rgba(26,22,16,.10);
  --r:   16px;          /* card radius            */
  --r-sm: 10px;
  --maxw: 1180px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:"Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

/* base_layout wraps the page in a top-level .sj-container that holds the
   nav, and renders <main id="main"> as a sibling. We want full-bleed
   chrome, so the wrapping .sj-container must NOT add its own gutter; the
   real horizontal rhythm comes from inner .wrap / .sj-container blocks. */
body > .sj-container{width:100%;max-width:none;margin:0;padding:0}

.wrap{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 18px}

/* Skip link — base_layout emits <a class="sj-skip">; mirror the sandbox .skip */
.sj-skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;
  padding:10px 16px;border-radius:0 0 8px 0;z-index:100}
.sj-skip:focus{left:0}

h1,h2,h3,h4{font-family:"Zilla Slab", Georgia, serif;font-weight:700;
  letter-spacing:-.01em;margin:0;color:var(--ink)}

/* ---------------------------------------------------- top strip */
.topstrip{background:var(--ink);color:#EDE7DA;font-size:13px}
.topstrip .wrap{display:flex;align-items:center;gap:12px;height:38px}
.topstrip .loc{font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  color:#fff}
.topstrip .loc::before{content:"";display:inline-block;width:7px;height:7px;
  border-radius:50%;background:var(--rust);margin-right:7px;vertical-align:middle}
.topstrip .strip-date{color:#B9B0A0}
.topstrip .strip-id{margin-left:auto;color:#C9C0B0;font-weight:600;white-space:nowrap;
  letter-spacing:.06em;text-transform:uppercase;font-size:11.5px;text-decoration:none}
.topstrip a.strip-id:hover{color:#fff}

/* ---------------------------------------------------- site header */
.site{background:var(--cream);border-bottom:1px solid var(--line)}
.site-in{display:flex;align-items:center;justify-content:space-between;
  padding-top:18px;padding-bottom:16px;gap:14px}
.site-id{display:flex;flex-direction:column;gap:3px;min-width:0}
.logo{display:inline-flex;align-items:baseline;font-family:"Fraunces",Georgia,serif;
  line-height:1}
.logo-strait{font-weight:600;font-size:34px;letter-spacing:-.01em;color:var(--ink);
  font-optical-sizing:auto}
.logo-dot{font-weight:700;font-size:34px;color:var(--rust);letter-spacing:-.01em;
  margin-left:.02em}
.site-tag{margin:0;font-family:"Fraunces",Georgia,serif;font-style:italic;
  font-optical-sizing:auto;font-size:13px;color:#7A5A3C;font-weight:500;
  letter-spacing:.02em;line-height:1.3}
.site-tag i{font-style:italic}
.ed-cta{border:1.5px solid var(--ink);border-radius:999px;padding:9px 18px;
  font-weight:700;font-size:14px;white-space:nowrap;transition:.15s;flex:none}
.ed-cta:hover{background:var(--ink);color:var(--cream)}

/* ---------------------------------------------------- nav (broadsheet-style) */
.topnav{position:sticky;top:0;z-index:50;background:var(--cream);
  border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(26,26,26,.06)}
.topnav .wrap{display:flex;align-items:center;gap:16px;min-height:46px}
.brandmark{font-family:"Fraunces",Georgia,serif;font-weight:700;font-size:24px;
  line-height:1;flex:0 0 auto;color:var(--ink)}
.brandmark .dotr{color:var(--rust)}
/* nav links + Subscribe spread evenly across the full remaining width */
.navlinks{display:flex;align-items:center;justify-content:space-between;
  flex:1 1 auto;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;
  scrollbar-width:none}
.navlinks::-webkit-scrollbar{display:none}
.navlinks a,
.navlinks .navsearch{font-family:"Source Sans 3",sans-serif;font-size:12.5px;
  font-weight:600;letter-spacing:.04em;color:var(--muted);padding:6px 4px;
  white-space:nowrap;border-radius:3px;flex:0 0 auto;background:none;border:0;
  cursor:pointer}
.navlinks a.on{color:var(--ink)}
.navlinks a.on::after{content:"";display:block;height:2px;background:var(--rust);
  margin-top:3px;border-radius:2px}
.navlinks a:hover,
.navlinks .navsearch:hover{color:var(--rust)}
/* search trigger is now an icon button: center the glyph (stroke=currentColor
   so it inherits the muted->rust hover color from the rule above) */
.navlinks .navsearch{display:inline-flex;align-items:center;justify-content:center;padding:6px 6px}
.navlinks .navsearch svg{display:block;width:17px;height:17px}
/* Subscribe = squared rust button (Broadsheet .subbtn), NOT a pill */
.navlinks a.subbtn{font-family:"Source Sans 3",sans-serif;font-size:11.5px;
  font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#fff;
  background:var(--rust);padding:8px 15px;border-radius:3px;
  transition:background .15s}
.navlinks a.subbtn:hover{background:var(--rust-dk);color:#fff}
.navlinks a.subbtn::after{display:none}

/* ---------------------------------------------------- welcome banner */
.welcome{background:var(--rust);color:#FBEFE6}
.welcome .wrap{padding-top:13px;padding-bottom:13px}
.welcome-line{margin:0;font-size:15.5px;line-height:1.5}
.welcome-line b{color:#fff;font-weight:700}

/* ---------------------------------------------------- pills + furniture */
.kicker{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.pill{display:inline-block;font-weight:700;font-size:11.5px;letter-spacing:.05em;
  text-transform:uppercase;padding:4px 11px;border-radius:999px;line-height:1.2}
.rubric{font-weight:600;font-size:11.5px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--muted)}
.by{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted);
  font-weight:500;margin-top:2px}
.ava{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;
  border-radius:50%;background:var(--rust);color:#fff;font-weight:700;font-size:12.5px;
  font-family:"Zilla Slab",serif;flex:none;overflow:hidden}
.ava img{width:100%;height:100%;object-fit:cover}
.dek{color:#403A30;font-size:15.5px;line-height:1.5;font-weight:400}

/* ---------------------------------------------------- cards (shared) */
.card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-h);border-color:var(--line-dk)}
.card-media{display:block;background:var(--line);overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.card:hover .card-media img{transform:scale(1.035)}
.card-body{display:flex;flex-direction:column;padding:16px 17px 18px}
.card-h{font-family:"Zilla Slab",serif;font-weight:700;letter-spacing:-.01em;
  color:var(--ink);line-height:1.15}
.card:hover .card-h{color:var(--rust-dk)}
.card .dek{margin-top:9px}
.card .by{margin-top:13px}

.h-xl{font-size:29px;line-height:1.1}
.h-md{font-size:21px}
.h-sm{font-size:19px}

.card-lg .card-media{aspect-ratio:16/9}
.card-md .card-media{aspect-ratio:16/10}
.card-grid .card-media{aspect-ratio:16/10}

/* ---------------------------------------------------- home hero block */
.home{padding-top:22px;padding-bottom:8px}
.hero-wrap{display:flex;flex-direction:column;gap:18px}
.hero-side{display:flex;flex-direction:column;gap:18px}

/* ---------------------------------------------------- most-read rail */
.rail{background:var(--tint);border:1px solid var(--line);border-radius:var(--r);
  padding:16px 16px 14px;align-self:start}
.rail-head{display:flex;align-items:center;gap:9px;font-family:"Zilla Slab",serif;
  font-weight:700;font-size:18px;color:var(--ink);padding-bottom:6px;margin-bottom:6px}
.rail-dot{width:9px;height:9px;border-radius:50%;background:var(--rust);flex:none}
.rail-list{display:flex;flex-direction:column}
.rail-item{display:grid;grid-template-columns:30px 1fr 64px;gap:11px;align-items:center;
  padding:13px 0;border-top:1px solid var(--line)}
.rail-item:hover .rail-h{color:var(--rust-dk)}
.rail-num{font-family:"Zilla Slab",serif;font-weight:700;font-size:24px;
  color:var(--rust);text-align:center;line-height:1}
.rail-txt{min-width:0}
.rail-h{font-family:"Zilla Slab",serif;font-weight:600;font-size:15.5px;line-height:1.2;
  color:var(--ink);display:block}
.rail-meta{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;
  font-weight:600;margin-top:3px;display:block}
.rail-thumb{width:64px;height:48px;border-radius:8px;overflow:hidden;background:var(--line);flex:none}
.rail-thumb img{width:100%;height:100%;object-fit:cover}
.rail-foot{display:block;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);
  font-weight:700;font-size:14px;color:var(--rust)}
.rail-foot:hover{color:var(--rust-dk)}

/* ---------------------------------------------------- section modules */
.sec{padding:26px 0 6px}
.sec-more-read{padding-top:14px}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;
  margin-bottom:16px}
.sec-title{display:flex;align-items:center;gap:11px;font-size:25px;font-weight:700}
.sec-tab{width:6px;height:24px;border-radius:3px;display:inline-block;flex:none}
.sec-more{font-weight:700;font-size:14.5px;color:var(--rust);white-space:nowrap}
.sec-more:hover{color:var(--rust-dk)}

.grid{display:grid;gap:18px}
.grid-3{grid-template-columns:1fr}

/* ---------------------------------------------------- newsletter signup */
.signup{margin:30px 0 8px}
.signup-in{background:var(--ink);color:var(--cream);border-radius:var(--r);
  padding:26px 22px;display:flex;flex-direction:column;gap:16px}
.signup-copy h2{color:#fff;font-size:25px;margin-bottom:6px}
.signup-copy p{margin:0;color:#CFC7B7;font-size:15.5px;line-height:1.5}
.signup-form{display:flex;flex-direction:column;gap:10px}
.signup-form input{padding:13px 15px;border-radius:10px;border:1.5px solid #4A4438;
  background:#262219;color:#fff;font-size:16px;font-family:inherit;width:100%}
.signup-form input::placeholder{color:#8E8678}
.signup-form input:focus{outline:none;border-color:var(--rust);background:#2C271D}
.signup-form button{padding:13px 18px;border-radius:10px;border:0;background:var(--rust);
  color:#fff;font-weight:700;font-size:16px;font-family:inherit;cursor:pointer;transition:.15s}
.signup-form button:hover{background:var(--rust-dk)}

/* ============================================================
   ARTICLE / READING PAGE
   ============================================================ */
.article{max-width:720px;margin:0 auto;padding-top:18px}
.crumbs{display:flex;align-items:center;gap:9px;font-size:13.5px;font-weight:600;
  color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:16px}
.crumbs a:hover{color:var(--rust)}
.crumb-sep{color:var(--line-dk)}

.art-head{margin-bottom:20px}
.art-title{font-family:"Fraunces",Georgia,serif;font-weight:600;
  font-optical-sizing:auto;font-size:36px;line-height:1.12;margin:6px 0 0;
  letter-spacing:-.015em}
.art-dek{font-size:19px;line-height:1.45;color:#403A30;font-weight:400;margin:14px 0 0;
  font-family:"Source Sans 3",sans-serif}
.art-by{display:flex;align-items:center;gap:12px;margin-top:20px;padding-top:18px;
  border-top:1px solid var(--line)}
.art-by-txt{display:flex;flex-direction:column;line-height:1.25}
.art-by-name{font-weight:700;font-size:15.5px;color:var(--ink)}
.art-by-name a{color:inherit}
.art-by-name a:hover{color:var(--rust)}
.art-by-sub{font-size:13.5px;color:var(--muted)}
.art-share{margin-left:auto}
.art-share button{border:1.5px solid var(--line-dk);background:var(--card);border-radius:999px;
  padding:8px 16px;font-weight:700;font-size:13.5px;font-family:inherit;color:var(--ink);
  cursor:pointer;transition:.15s}
.art-share button:hover{border-color:var(--ink);background:var(--ink);color:var(--cream)}

/* The hero figure carries `sj-photo` (position:relative) and the inner
   <img class="sj-photo__img"> is position:absolute/inset:0 from components.css,
   so the figure itself has no intrinsic height. Give it an explicit box
   (aspect-ratio + rounded clip) so the absolutely-positioned image actually
   shows — at every width, desktop included. */
.art-hero{margin:0 0 22px;aspect-ratio:16/9;border-radius:var(--r);overflow:hidden}
.art-hero .sj-photo__img{border-radius:var(--r)}
/* Plain <img> heroes (no sj-photo wrapper) keep the legacy in-flow sizing. */
.art-hero > img:not(.sj-photo__img){position:static;width:100%;height:auto;
  border-radius:var(--r);background:var(--line)}
/* When there's no photo, the figure shouldn't reserve a 16/9 void — let the
   "Photograph forthcoming" caption size it naturally. */
.art-hero:has(figcaption){aspect-ratio:auto}
.art-hero figcaption{position:relative;font-size:12.5px;color:var(--muted);
  margin-top:8px;padding-left:2px;line-height:1.4}

/* prose */
.prose{font-size:18.5px;line-height:1.72;color:#241F18}
.prose p{margin:0 0 1.15em}
.prose h2{font-size:24px;line-height:1.2;margin:1.6em 0 .5em}
.prose strong{font-weight:700}
.prose a.inline{color:var(--rust-dk);text-decoration:underline;text-decoration-thickness:1.5px;
  text-underline-offset:2px;font-weight:600}
.prose a.inline:hover{color:var(--rust)}
.prose blockquote{margin:1.5em 0;padding:4px 0 4px 20px;border-left:4px solid var(--rust);
  font-family:"Zilla Slab",serif;font-weight:500;font-size:22px;line-height:1.4;color:var(--ink)}

.art-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;
  flex-wrap:wrap;margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}
.art-back{font-weight:700;font-size:15px;color:var(--rust)}
.art-back:hover{color:var(--rust-dk)}

.sec-related{max-width:var(--maxw);margin:8px auto 0;padding-top:30px;
  border-top:1px solid var(--line)}
.sec-related .sec-head{margin-top:4px}
.empty{color:var(--muted);font-size:15px}

/* ============================================================
   AVATAR — reused production avatar_html() markup
   (.sj-avatar + .mono / .opening-text / img, tone-* backgrounds).
   Self-contained here so the byline headshot renders without the
   legacy components.css. Sized for the Civic byline + bio block.
   ============================================================ */
.sj-avatar{width:42px;height:42px;border-radius:9999px;background:var(--rust);
  display:inline-block;flex-shrink:0;overflow:hidden;position:relative}
.sj-avatar--lg{width:64px;height:64px}
.sj-avatar .mono,
.sj-avatar .opening-text{position:absolute;inset:0;display:flex;align-items:center;
  justify-content:center;font-family:"Fraunces","Zilla Slab",Georgia,serif;font-weight:600;
  color:#fff;letter-spacing:0;font-size:18px}
.sj-avatar--lg .mono,
.sj-avatar--lg .opening-text{font-size:26px}
.sj-avatar.tone-river{background:#3D5A66}
.sj-avatar.tone-offblack{background:var(--ink)}
.sj-avatar.tone-rust{background:var(--rust)}
.sj-avatar img{display:block;width:100%;height:100%;object-fit:cover}

/* ============================================================
   FOOTER MASTHEAD
   ============================================================ */
.foot{background:var(--ink);color:#CFC7B7;margin-top:36px}
.foot .wrap{padding-top:38px;padding-bottom:26px}
.foot-top{display:flex;flex-direction:column;gap:26px}
.foot-logo{margin-bottom:12px;font-family:"Fraunces",Georgia,serif}
.foot-logo .logo-strait{color:#fff;font-size:28px;font-weight:600}
.foot-logo .logo-dot{color:var(--rust);font-size:28px;font-weight:700}
.foot-mission{margin:0 0 14px;color:#B7AF9F;font-size:15px;line-height:1.55;max-width:34ch}
.foot-sub{font-weight:700;color:#F2C9B4;font-size:15px}
.foot-sub:hover{color:#fff}
.foot-cols{display:flex;gap:50px}
.foot-col h5{font-family:"Zilla Slab",serif;font-weight:700;font-size:13px;
  letter-spacing:.08em;text-transform:uppercase;color:#fff;margin:0 0 12px}
.foot-col a{display:block;color:#B7AF9F;font-size:15px;padding:4px 0;font-weight:500}
.foot-col a:hover{color:var(--rust)}
.foot-parent{margin:26px 0 0;font-size:14px;color:#9C9484}
.foot-parent a{color:#CFC7B7;font-weight:600;text-decoration:underline;
  text-decoration-thickness:1px;text-underline-offset:2px}
.foot-parent a:hover{color:var(--rust)}
.foot-bot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:22px;
  padding-top:20px;border-top:1px solid #34302A;font-size:13.5px;color:#8E8678}
.foot-bot .made{font-weight:700;color:#CFC7B7}
.foot-bot .made::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;
  background:var(--rust);margin-right:7px;vertical-align:middle}

/* centered footer layout */
.foot-centered .foot-top{align-items:center;text-align:center}
.foot-centered .foot-brand{display:flex;flex-direction:column;align-items:center}
.foot-centered .foot-mission{max-width:48ch}
.foot-centered .foot-cols{justify-content:center;flex-wrap:wrap}
.foot-centered .foot-parent{text-align:center}
.foot-centered .foot-bot{justify-content:center;text-align:center}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (min-width:680px){
  body{font-size:18px}
  .grid-3{grid-template-columns:1fr 1fr}
  .hero-side{flex-direction:row}
  .hero-side .card{flex:1 1 0;min-width:0}
  .h-xl{font-size:34px}
  .signup-in{flex-direction:row;align-items:center;justify-content:space-between;
    padding:30px 30px}
  .signup-copy{flex:1 1 auto;max-width:60ch}
  .signup-form{flex:none;flex-direction:row;width:auto;align-items:center}
  .signup-form input{width:280px}
  .art-title{font-size:42px}
}

/* ============================================================
   RESPONSIVE — desktop
   ============================================================ */
@media (min-width:1000px){
  .hero-wrap{
    display:grid;
    grid-template-columns:1.55fr 1fr;
    grid-template-areas:"main rail" "side rail";
    gap:22px 24px;
    align-items:start;
  }
  .hero-main{grid-area:main}
  .hero-side{grid-area:side;flex-direction:row}
  .rail{grid-area:rail;position:sticky;top:64px}
  .card-lg{height:100%}
  .card-lg .card-media{aspect-ratio:16/9}
  .h-xl{font-size:38px}
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .welcome-line{font-size:16px}
}

@media (min-width:1240px){
  .h-xl{font-size:42px}
}

/* ============================================================
   RESPONSIVE — phone (≤680px): keep the chrome on single clean
   lines and make the 9-item nav a horizontal scroller.
   ============================================================ */
@media (max-width:680px){
  /* (2) Dateline strip: shrink + tighten so "DETROIT, MI · <date> ·
     INDEPENDENT · READER-FUNDED" stays on one row. The right-hand
     "Independent · Reader-funded" is the first thing to go on the
     narrowest phones rather than wrap mid-phrase. */
  .topstrip{font-size:11.5px}
  .topstrip .wrap{gap:8px;height:34px}
  .topstrip .loc{letter-spacing:.02em;white-space:nowrap}
  .topstrip .strip-date{white-space:nowrap}
  .topstrip .strip-id{font-size:10.5px;letter-spacing:.04em}
}
@media (max-width:400px){
  /* Narrowest phones: drop the date, not the newsletter CTA, so the subscribe
     link in the top strip stays reachable. */
  .topstrip .strip-date{display:none}
}
@media (max-width:680px){
  /* (3) Wordmark: step "Strait Journal." down so it fits one line at
     ~390px next to the "Send a tip" button. Motto stays put. */
  .site-in{gap:10px}
  .logo-strait,.logo-dot{font-size:27px}
  .ed-cta{padding:8px 14px;font-size:13px}

  /* (4) Nav: 9 items don't fit, so flow them left-to-right and scroll
     horizontally instead of the desktop space-between distribution
     (which clips the tail). Brandmark pinned left, Subscribe reachable
     at the scroll end, scrollbar hidden, comfortable tap targets. */
  .topnav .wrap{gap:0}
  /* Home removed + Search is now an icon, so the 5 sections + Archive + the
     search glyph fit the full row WITHOUT scrolling: spread them edge to edge. */
  .navlinks{justify-content:space-between;gap:2px;flex:1 1 auto;min-width:0;
    overflow:visible;flex-wrap:nowrap}
  .navlinks a,
  .navlinks .navsearch{padding:11px 2px;font-size:12px;letter-spacing:0;white-space:nowrap}
  .navlinks .navsearch{padding-right:0}
  .navlinks .navsearch svg{width:18px;height:18px}
}

/* reduced motion */
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
  .card:hover{transform:none}
  .card:hover .card-media img{transform:none}
}

/* ============================================================
   CIVIC v1 — LISTING PAGES (category / rubric / tag / author /
   archive). They reuse the homepage card grid (.card / .grid
   grid-3) plus a shared Civic page header. The legacy hub markup
   wrapped everything in .sj-container; here it is restyled so the
   intro, featured block, list, filters, and Load-more button all
   read as Civic. Mobile stacks to one column at <=680px.
   ============================================================ */

/* page-level header used by every listing page */
.civic-head{padding:8px 0 22px;border-bottom:1px solid var(--line);margin-bottom:26px}
.civic-eyebrow{display:inline-flex;align-items:center;gap:8px;font-family:"Source Sans 3",sans-serif;
  font-weight:700;font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--rust);
  margin:0 0 12px}
.civic-eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--rust);display:inline-block}
.civic-title{font-family:"Fraunces",Georgia,serif;font-weight:600;font-optical-sizing:auto;
  font-size:34px;line-height:1.08;letter-spacing:-.015em;margin:0;color:var(--ink);max-width:18ch}
.civic-sub{margin:14px 0 0;font-size:16px;line-height:1.5;color:#403A30;max-width:60ch}
.civic-sub code{font-family:"Source Sans 3",sans-serif;color:var(--rust-dk);font-weight:600;
  background:var(--tint);padding:1px 6px;border-radius:6px}
.civic-head-meta{margin-top:10px;font-size:13.5px;color:var(--muted);font-weight:500}

/* author header: avatar + identity block */
.civic-author-head{display:flex;flex-direction:column;gap:18px;padding:10px 0 24px;
  border-bottom:1px solid var(--line);margin-bottom:28px}
.civic-author-id{display:flex;flex-direction:column;gap:4px}
.civic-author-id .civic-title{margin-top:6px}
.civic-author-role{font-family:"Zilla Slab",serif;font-weight:600;font-size:16px;color:var(--rust-dk);
  margin:0}
.civic-author-bio{margin:14px 0 0;color:#241F18;font-size:16.5px;line-height:1.62;max-width:64ch}
.civic-author-bio p{margin:0 0 .85em}
.civic-author-bio p:last-child{margin-bottom:0}
.civic-author-contact{margin-top:16px;font-weight:700;font-size:14.5px}
.civic-author-contact a{color:var(--rust-dk)}
.civic-author-contact a:hover{color:var(--rust)}
/* quick-hits box on the author page */
.civic-qh{margin:20px 0 0;padding:16px 18px;background:var(--tint);border:1px solid var(--line);
  border-radius:var(--r-sm);display:grid;gap:8px}
.civic-qh .civic-qh-label{font-family:"Source Sans 3",sans-serif;font-weight:700;font-size:11px;
  letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.civic-qh .row{display:flex;flex-wrap:wrap;gap:6px;font-size:14.5px;line-height:1.4}
.civic-qh dt{font-weight:700;color:var(--ink);margin:0}
.civic-qh dd{margin:0;color:#403A30}

/* listing featured (category lead) — a wide horizontal card */
.civic-featured{display:grid;grid-template-columns:1fr;gap:0;background:var(--card);
  border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow);
  margin-bottom:26px;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.civic-featured:hover{box-shadow:var(--shadow-h);border-color:var(--line-dk)}
.civic-featured .feat-media{display:block;background:var(--line);overflow:hidden;aspect-ratio:16/9}
.civic-featured .feat-media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.civic-featured:hover .feat-media img{transform:scale(1.03)}
.civic-featured .feat-media .ph-credit{display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;color:var(--muted);font-size:13px}
.civic-featured .feat-body{display:flex;flex-direction:column;padding:20px 20px 22px;
  justify-content:center}
.civic-featured .feat-h{font-family:"Zilla Slab",serif;font-weight:700;letter-spacing:-.01em;
  font-size:24px;line-height:1.13;color:var(--ink);margin:0}
.civic-featured:hover .feat-h{color:var(--rust-dk)}
.civic-featured .dek{margin-top:10px}
.civic-featured .by{margin-top:14px}

/* section heading reused above a list (e.g. author "Recent work") */
.civic-listhead{display:flex;align-items:baseline;justify-content:space-between;gap:14px;
  margin:0 0 18px}
.civic-listhead h2{font-family:"Zilla Slab",serif;font-weight:700;font-size:22px;color:var(--ink);
  display:flex;align-items:center;gap:11px}
.civic-listhead .sec-tab{width:6px;height:22px;border-radius:3px;background:var(--rust);flex:none}
.civic-listhead .note{font-size:12.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;
  font-weight:600}

/* a Civic list (archive / tag / rubric rows) — compact horizontal rows */
.civic-list{display:flex;flex-direction:column;gap:0;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow)}
.civic-row{display:grid;grid-template-columns:1fr 84px;gap:16px;align-items:center;
  padding:16px 18px;border-top:1px solid var(--line);transition:background .14s ease}
.civic-row:first-child{border-top:0}
.civic-row:hover{background:var(--tint)}
.civic-row-main{min-width:0}
.civic-row-h{font-family:"Zilla Slab",serif;font-weight:700;font-size:18px;line-height:1.2;
  color:var(--ink);margin:0}
.civic-row:hover .civic-row-h{color:var(--rust-dk)}
.civic-row .dek{margin:6px 0 0;font-size:14.5px;color:#403A30;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.civic-row .by{margin-top:9px;font-size:13px}
.civic-row-thumb{width:84px;height:64px;border-radius:10px;overflow:hidden;background:var(--line);
  flex:none}
.civic-row-thumb img{width:100%;height:100%;object-fit:cover}
.civic-row-thumb.sj-photo{position:relative}

/* legacy list markup (.sj-list / .sj-list-row) reused by archive.js,
   tag, and rubric pages — restyled to the Civic horizontal row. Keeps
   the data-category / data-rubric hooks archive.js depends on. */
.sj-list{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow)}
.sj-list-row{display:grid;grid-template-columns:120px 1fr 92px;gap:16px;align-items:center;
  padding:16px 18px;border-top:1px solid var(--line);transition:background .14s ease}
.sj-list-row:first-child{border-top:0}
.sj-list-row:hover{background:var(--tint)}
.sj-list-row .sj-rubric{align-self:start;padding-top:2px}
.sj-list-row__content{min-width:0;grid-column:2}
.sj-list-row__content h3{margin:0}
.sj-list-row__title{font-family:"Zilla Slab",serif;font-weight:700;font-size:18px;line-height:1.2;
  color:var(--ink)}
.sj-list-row:hover .sj-list-row__title{color:var(--rust-dk)}
.sj-list-row .deck{margin:6px 0 0;font-size:14.5px;color:#403A30;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sj-list-row .byline{display:block;margin-top:9px;font-family:"Source Sans 3",sans-serif;
  font-size:13px;color:var(--muted);font-weight:500}
.sj-list-row .byline a{color:var(--rust-dk);font-weight:600}
.sj-list-row .when{font-family:"Source Sans 3",sans-serif;font-size:12.5px;color:var(--muted);
  font-weight:600;text-align:right;align-self:start;padding-top:2px}
.sj-list-row__thumb{display:none}
.sj-list-empty{background:var(--tint);border:1px solid var(--line);border-radius:var(--r);
  padding:30px 26px;text-align:center;color:#403A30}
.sj-list-empty a,.sj-list-empty .link-button{color:var(--rust-dk);font-weight:700}

/* empty / fallback states on listing pages */
.civic-empty{background:var(--tint);border:1px solid var(--line);border-radius:var(--r);
  padding:30px 26px;margin-bottom:26px}
.civic-empty .label{font-family:"Source Sans 3",sans-serif;font-weight:700;font-size:11.5px;
  letter-spacing:.08em;text-transform:uppercase;color:var(--rust);margin-bottom:10px}
.civic-empty h2{font-family:"Zilla Slab",serif;font-weight:700;font-size:22px;color:var(--ink);
  margin:0 0 8px}
.civic-empty p{margin:0;color:#403A30;font-size:16px;line-height:1.5}
.civic-empty a{color:var(--rust-dk);font-weight:600;text-decoration:underline;
  text-decoration-thickness:1.5px;text-underline-offset:2px}
.civic-empty a:hover{color:var(--rust)}

/* archive filter chips */
.civic-filters{display:flex;flex-direction:column;gap:14px;margin:0 0 24px}
.civic-filters .group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.civic-filters .label{font-family:"Source Sans 3",sans-serif;font-weight:700;font-size:11px;
  letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-right:4px}
.chip{font-family:"Source Sans 3",sans-serif;font-weight:600;font-size:13px;color:var(--ink);
  background:var(--card);border:1.5px solid var(--line-dk);border-radius:999px;padding:6px 14px;
  cursor:pointer;transition:.14s;line-height:1.2}
.chip:hover{border-color:var(--rust);color:var(--rust-dk)}
.chip.on{background:var(--ink);border-color:var(--ink);color:var(--cream)}

/* archive pagination strip */
.civic-pag{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;justify-content:space-between;
  margin:24px 0;padding-top:18px;border-top:1px solid var(--line);font-size:14px;color:var(--muted);
  font-weight:600}
.civic-pag .nums{display:flex;flex-wrap:wrap;gap:6px}
.civic-pag .nums button{font:inherit;color:var(--muted);background:none;border:0;cursor:pointer;
  padding:2px 6px;border-radius:6px}
.civic-pag .nums button.on{color:var(--ink);background:var(--tint)}

/* shared link-button (clear filters, prev/next) */
.link-button{font:inherit;font-weight:700;color:var(--rust-dk);background:none;border:0;cursor:pointer;
  padding:0}
.link-button:hover{color:var(--rust)}
.link-button:disabled{color:var(--line-dk);cursor:default}

/* Load-more (category / author hubs) */
.sj-load-more{display:flex;justify-content:center;margin:28px 0 8px}
.sj-load-more__btn{font-family:"Source Sans 3",sans-serif;font-weight:700;font-size:14.5px;
  letter-spacing:.02em;color:var(--ink);background:var(--card);border:1.5px solid var(--ink);
  border-radius:999px;padding:11px 26px;cursor:pointer;transition:.15s}
.sj-load-more__btn:hover{background:var(--ink);color:var(--cream)}
.sj-load-more__end{font-family:"Source Sans 3",sans-serif;font-weight:700;font-size:12.5px;
  letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

/* pagination.js toggles this class; keep the rule local to civic.v1 */
.is-paginated-hidden{display:none!important}

/* a simple back-link used at the foot of tag/archive */
.civic-backlink{display:inline-block;margin:24px 0 8px;font-weight:700;font-size:14.5px;
  color:var(--rust-dk)}
.civic-backlink:hover{color:var(--rust)}

/* ============================================================
   CIVIC v1 — CONTENT PAGES (about / contact / masthead /
   subscribe / press / careers / search / 404 / thanks / rss).
   These keep their existing legacy .sj-* markup; this block
   re-skins those classes to the Civic system (cream canvas,
   Fraunces headings, Source Sans body, rust accent, comfortable
   centered measure). Forms, links, and structure are untouched.
   ============================================================ */

/* legacy token aliases — many inline styles reference var(--fg),
   var(--fg-muted), var(--rule), var(--off-black), var(--paper),
   var(--font-body). Map them onto the Civic palette so inline
   styles inherit the new look without editing the HTML. */
:root{
  --fg:#1A1A1A;
  --fg-muted:#6B6256;
  --off-black:#1A1A1A;
  --rule:#E4DDCD;
  --paper:#FBF8F1;
  --font-body:"Source Sans 3",system-ui,sans-serif;
  --font-display:"Fraunces",Georgia,serif;
}

/* generic content container: comfortable centered measure on a cream
   canvas. Most legacy pages open with <div class="sj-container"> as the
   page body (separate from the chrome wrapper of the same class, which
   the homepage CSS already neutralizes at body > .sj-container).
   Listing pages add .civic-page and opt OUT of the narrow measure so
   their card grids run the full maxw width. */
main > .sj-container:not(.civic-page){width:100%;max-width:860px;margin:0 auto;padding:34px 18px 8px}
main > .sj-container.civic-page{width:100%;max-width:var(--maxw);margin:0 auto;padding:30px 18px 8px}

.sj-display{font-family:"Fraunces",Georgia,serif;font-weight:600;font-optical-sizing:auto;
  font-size:36px;line-height:1.1;letter-spacing:-.015em;color:var(--ink)}
.sj-h2{font-family:"Zilla Slab",serif;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
main .sj-container h1{font-family:"Fraunces",Georgia,serif;font-weight:600;font-optical-sizing:auto;
  letter-spacing:-.015em;color:var(--ink);font-size:32px;line-height:1.12}
main .sj-container h2{font-family:"Zilla Slab",serif;font-weight:700;letter-spacing:-.01em;
  color:var(--ink);font-size:25px;line-height:1.18}
main .sj-container h3{font-family:"Zilla Slab",serif;font-weight:700;color:var(--ink);font-size:19px}
main .sj-container h4{font-family:"Zilla Slab",serif;font-weight:700;color:var(--ink);font-size:16px}

.sj-rubric{font-family:"Source Sans 3",sans-serif;font-weight:700;font-size:11.5px;
  letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

/* body / editorial prose */
.sj-body,.sj-editorial-body,.sj-meta{font-family:"Source Sans 3",sans-serif;color:#241F18}
.sj-editorial-body{font-size:17.5px;line-height:1.65}
.sj-editorial-body p{margin:0 0 1.05em}
.sj-editorial-body p:last-child{margin-bottom:0}
.sj-deck,.deck{font-family:"Source Sans 3",sans-serif;color:#403A30;font-size:17px;line-height:1.5}
main .sj-container a:not(.chip):not(.sj-load-more__btn):not(.big):not(.email):not(.submit){
  color:inherit}
main .sj-container p a,
main .sj-container li a,
main .sj-container dd a{color:var(--rust-dk);text-decoration:underline;
  text-decoration-thickness:1.5px;text-underline-offset:2px;font-weight:600;border-bottom:0!important}
main .sj-container p a:hover,
main .sj-container li a:hover,
main .sj-container dd a:hover{color:var(--rust)}

/* §-numbered labels used across about/contact/press/careers */
.sj-container .label,
.sj-about-section .label,
.sj-contact-col .label,
.sj-empty-state .label{font-family:"Source Sans 3",sans-serif;font-weight:700;font-size:11.5px;
  letter-spacing:.08em;text-transform:uppercase;color:var(--rust)}

/* section rhythm (about / press / careers two-column blocks) */
.sj-about-section{padding:34px 0;border-bottom:1px solid var(--line)}
.sj-about-grid{display:grid;grid-template-columns:1fr;gap:14px 40px}
.sj-about-grid > div:first-child h2{margin-top:8px}

/* intros */
.sj-topic-intro,.sj-masthead-intro,.sj-archive-intro{display:grid;grid-template-columns:1fr;gap:16px;
  padding:8px 0 26px!important;border-bottom:1px solid var(--line);margin-bottom:26px}
.sj-masthead-intro .meta,.sj-archive-intro [style*="font-size:13px"]{font-family:"Source Sans 3",sans-serif;
  font-size:13.5px;color:var(--muted);line-height:1.6}

/* ethics / quick-hit definition lists */
.sj-ethics-list{list-style:none;padding:0;margin:0;display:grid;gap:18px}
.sj-ethics-list li{display:grid;grid-template-columns:1fr;gap:4px}
.sj-ethics-list .k{font-family:"Zilla Slab",serif;font-weight:700;font-size:13px;letter-spacing:.04em;
  text-transform:uppercase;color:var(--rust-dk)}
.sj-ethics-list span:last-child{font-family:"Source Sans 3",sans-serif;font-size:16px;line-height:1.55;
  color:#241F18}

/* contact / careers section big mailto */
.big{display:inline-block;font-family:"Zilla Slab",serif;font-weight:700;font-size:22px;
  color:var(--rust-dk);margin:6px 0 12px;word-break:break-word}
.big:hover{color:var(--rust)}

/* masthead + author staff cards */
.sj-masthead-section{padding:30px 0;border-bottom:1px solid var(--line)}
.sj-masthead-section > h2{margin:0 0 22px}
.sj-staff-grid{display:grid;grid-template-columns:1fr;gap:18px}
.sj-staff,.sj-issue{display:flex;gap:14px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);padding:18px 18px;box-shadow:var(--shadow)}
.sj-staff h3{margin:0 0 2px;font-size:18px}
.sj-staff .role{font-family:"Source Sans 3",sans-serif;font-weight:600;font-size:13px;
  letter-spacing:.04em;text-transform:uppercase;color:var(--rust-dk);margin:0 0 8px}
.sj-staff p{margin:0 0 10px;font-family:"Source Sans 3",sans-serif;font-size:15px;line-height:1.5;
  color:#403A30}
.sj-staff .email{font-family:"Source Sans 3",sans-serif;font-weight:700;font-size:13.5px;
  color:var(--rust-dk)}
.sj-staff .email:hover{color:var(--rust)}
.sj-staff h3 a{border-bottom:0!important}

/* contact 3-up + form */
.sj-contact-grid{display:grid;grid-template-columns:1fr;gap:24px;padding:26px 0;
  border-top:1px solid var(--line);margin-top:8px}
.sj-contact-col{background:var(--card);border:1px solid var(--line);border-radius:var(--r);
  padding:20px 20px;box-shadow:var(--shadow)}
.sj-contact-col h3{margin:0 0 4px}
.sj-contact-col p{font-family:"Source Sans 3",sans-serif;font-size:15px;line-height:1.55;color:#403A30}
.sj-contact-form,.sj-subscribe form,.sj-contact-address{margin-top:8px}
.sj-contact-form{background:var(--tint);border:1px solid var(--line);border-radius:var(--r);
  padding:28px 24px;margin:26px 0}
.sj-contact-address{display:grid;grid-template-columns:1fr;gap:24px;padding:26px 0 8px;
  border-top:1px solid var(--line)}

/* forms (contact + subscribe) */
main .sj-container label{display:block;font-family:"Source Sans 3",sans-serif;font-weight:700;
  font-size:13px;color:var(--ink);margin:16px 0 6px}
main .sj-container label .opt{font-weight:500;color:var(--muted)}
main .sj-container label .req{color:var(--rust)}
main .sj-container input[type=text],
main .sj-container input[type=email],
main .sj-container input[type=tel],
main .sj-container textarea{width:100%;font-family:"Source Sans 3",sans-serif;font-size:16px;
  color:var(--ink);background:var(--card);border:1.5px solid var(--line-dk);border-radius:10px;
  padding:12px 14px}
main .sj-container input:focus,
main .sj-container textarea:focus{outline:none;border-color:var(--rust);background:#fff}
main .sj-container textarea{resize:vertical;line-height:1.5}
main .sj-container button[type=submit],
.sj-subscribe-form .submit,
.sj-contact-form button{margin-top:20px;font-family:"Source Sans 3",sans-serif;font-weight:700;
  font-size:15px;color:#fff;background:var(--rust);border:0;border-radius:10px;padding:13px 24px;
  cursor:pointer;transition:.15s}
main .sj-container button[type=submit]:hover,
.sj-subscribe-form .submit:hover,
.sj-contact-form button:hover{background:var(--rust-dk)}
.sj-email-fineprint,.opt{font-family:"Source Sans 3",sans-serif;font-size:13px;color:var(--muted)}

/* subscribe layout */
.sj-subscribe{display:grid;grid-template-columns:1fr;gap:34px;padding:8px 0}
.sj-subscribe .cadence{font-family:"Source Sans 3",sans-serif;font-weight:700;font-size:11.5px;
  letter-spacing:.1em;text-transform:uppercase;color:var(--rust);margin-bottom:14px}
.sj-issue-list{display:grid;gap:14px}
.sj-issue .thumb{width:64px;height:64px;border-radius:10px;background:var(--line);flex:none}
.sj-issue h4{margin:0 0 4px;font-size:16px}
.sj-issue p{margin:0 0 6px;font-family:"Source Sans 3",sans-serif;font-size:14px;color:#403A30;
  line-height:1.45}
.sj-issue .when{font-family:"Source Sans 3",sans-serif;font-size:12px;font-weight:600;
  letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}

/* press coverage list */
.sj-press-coverage li{padding:9px 0;border-top:1px solid var(--line)}
.sj-press-coverage li:first-child{border-top:0}
.sj-press-coverage a{font-family:"Zilla Slab",serif;font-weight:600;font-size:16px;color:var(--ink)}
.sj-press-coverage a:hover{color:var(--rust-dk)}

/* 404 */
.sj-404{text-align:center;padding:60px 0}
.sj-404 .num{font-family:"Fraunces",Georgia,serif;font-weight:600;font-size:84px;color:var(--rust);
  line-height:1}
.sj-404 h1{margin:8px 0 14px}
.sj-404 p{font-family:"Source Sans 3",sans-serif;font-size:17px;color:#403A30;line-height:1.55;
  max-width:48ch;margin:0 auto 24px}
.sj-404 .links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 16px}
.sj-404 .links a{font-family:"Source Sans 3",sans-serif;font-weight:700;font-size:14.5px;
  color:var(--rust-dk);border-bottom:0!important}
.sj-404 .links a:hover{color:var(--rust)}

/* search page */
.sj-search-page{padding:8px 0 40px}
.sj-search-page h1{margin:0 0 22px}

/* empty-state / thanks blocks */
.sj-empty-state{background:var(--tint);border:1px solid var(--line);border-radius:var(--r);
  padding:34px 28px}
.sj-empty-state h2{margin:8px 0}
.sj-empty-state p{font-family:"Source Sans 3",sans-serif;font-size:16.5px;line-height:1.6;color:#241F18}

/* author header (legacy hooks, in case the legacy markup is reused) */
.sj-author-header{display:grid;grid-template-columns:1fr;gap:18px;padding:8px 0 26px;
  border-bottom:1px solid var(--line);margin-bottom:28px}
.sj-author-header .role{font-family:"Zilla Slab",serif;font-weight:600;font-size:16px;
  color:var(--rust-dk);margin:6px 0 0}
.sj-author-header .bio{margin-top:14px;max-width:64ch}
.sj-author-recent{padding:8px 0 40px}
.sj-author-recent h3{margin:0 0 18px;font-size:22px}

/* avatar XL used on legacy author header */
.sj-avatar--xl{width:96px;height:96px}
.sj-avatar--xl .mono,.sj-avatar--xl .opening-text{font-size:38px}

/* ============================================================
   CIVIC v1 — listing + content responsive (>= 700px widens
   grids and intros to two/three columns to match the homepage).
   ============================================================ */
@media (min-width:700px){
  .civic-featured{grid-template-columns:1.2fr 1fr}
  .civic-featured .feat-media{aspect-ratio:auto;height:100%;min-height:240px}
  .civic-featured .feat-body{padding:26px 28px}
  .civic-featured .feat-h{font-size:28px}
  .sj-staff-grid{grid-template-columns:1fr 1fr}
  .sj-contact-grid{grid-template-columns:repeat(3,1fr)}
  .sj-contact-address{grid-template-columns:1fr 1fr}
  .sj-about-grid{grid-template-columns:0.8fr 1.4fr;gap:20px 56px}
  .sj-topic-intro,.sj-masthead-intro,.sj-archive-intro{grid-template-columns:1.6fr 1fr;
    align-items:end;gap:40px}
  .sj-subscribe{grid-template-columns:1.5fr 1fr;gap:56px}
  .sj-ethics-list li{grid-template-columns:160px 1fr;gap:16px}
  .civic-title,.sj-display{font-size:40px}
}
@media (min-width:1000px){
  main > .sj-container:not(.civic-page){max-width:1000px}
}

/* phone: force every listing grid + content grid to a single clean column */
@media (max-width:680px){
  .civic-title,.sj-display{font-size:28px}
  main .sj-container h1{font-size:27px}
  .civic-row{grid-template-columns:1fr 64px}
  .civic-row-thumb{width:64px;height:50px}
  .grid-3{grid-template-columns:1fr!important}
  .sj-grid,.sj-grid--3,.sj-topic-grid .sj-grid{display:grid;grid-template-columns:1fr;gap:18px}
  /* archive/tag/rubric rows: rubric chip above content, date drops below */
  .sj-list-row{grid-template-columns:1fr;gap:8px}
  .sj-list-row .sj-rubric,
  .sj-list-row__content,
  .sj-list-row .when{grid-column:1}
  .sj-list-row .when{text-align:left;padding-top:0}
}

/* ============================================================ search modal
   Civic-styled overlay (overrides components.css; civic loads last). Soft
   dimmed + blurred backdrop, rounded cream card, Fraunces title, rust focus.
   Pagefind is themed through its supported --pagefind-ui-* custom props plus a
   few higher-specificity touches that win over pagefind-ui.css. */
.sj-search-modal{position:fixed;inset:0;z-index:200;display:none;
  align-items:flex-start;justify-content:center;padding:11vh 20px 24px;
  background:rgba(26,26,26,.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.sj-search-modal.open{display:flex;animation:sjModalFade .18s ease}
@keyframes sjModalFade{from{opacity:0}to{opacity:1}}
.sj-search-modal__inner{position:relative;width:100%;max-width:600px;
  background:var(--cream);border:1px solid var(--rule);border-radius:14px;
  box-shadow:0 28px 64px -16px rgba(26,26,26,.5);
  padding:32px 34px 30px;animation:sjModalRise .22s cubic-bezier(.2,.7,.2,1)}
@keyframes sjModalRise{from{transform:translateY(-10px);opacity:0}to{transform:translateY(0);opacity:1}}
.sj-search-modal__close{position:absolute;top:15px;right:15px;width:34px;height:34px;
  display:flex;align-items:center;justify-content:center;font-family:var(--font-body);
  font-size:23px;line-height:1;color:var(--fg-muted);background:transparent;
  border:1px solid var(--rule);border-radius:50%;cursor:pointer;
  transition:background .15s,color .15s,border-color .15s}
.sj-search-modal__close:hover{background:var(--rust);color:#fff;border-color:var(--rust)}
.sj-search-modal__head{display:block;margin:0 0 20px;padding-right:42px}
.sj-search-modal__title{font-family:var(--font-display);font-weight:600;
  font-size:27px;line-height:1.04;letter-spacing:-.01em;color:var(--fg);margin:0 0 4px;
  font-variation-settings:"opsz" 40,"SOFT" 0,"WONK" 0}
.sj-search-modal__sub{font-family:var(--font-body);font-size:13.5px;
  color:var(--fg-muted);margin:0;letter-spacing:.005em}
.sj-search-modal .pagefind-ui{--pagefind-ui-primary:var(--rust);
  --pagefind-ui-text:var(--fg);--pagefind-ui-background:var(--cream);
  --pagefind-ui-border:var(--rule);--pagefind-ui-tag:var(--paper);
  --pagefind-ui-border-width:1.5px;--pagefind-ui-border-radius:10px;
  --pagefind-ui-image-border-radius:8px;--pagefind-ui-font:var(--font-body);
  --pagefind-ui-scale:.92}
.sj-search-modal .pagefind-ui__search-input{font-family:var(--font-body);
  font-weight:500;font-size:16px;background:#fff;color:var(--fg)}
.sj-search-modal .pagefind-ui__search-input:focus{outline:none;
  border-color:var(--rust);box-shadow:0 0 0 3px rgba(198,90,46,.16)}
.sj-search-modal .pagefind-ui__search-clear{color:var(--fg-muted);font-weight:600}
.sj-search-modal .pagefind-ui__result{border-top:1px solid var(--rule);padding-top:14px}
.sj-search-modal .pagefind-ui__result-link{font-family:var(--font-display);
  font-weight:600;color:var(--fg);font-variation-settings:"opsz" 32}
.sj-search-modal .pagefind-ui__result-link:hover{color:var(--rust)}
.sj-search-modal .pagefind-ui__result-excerpt{font-family:var(--font-body);
  font-size:13.5px;color:var(--fg-muted)}
.sj-search-modal .pagefind-ui__message{font-family:var(--font-body);color:var(--fg-muted)}
@media (max-width:640px){
  .sj-search-modal{padding:7vh 14px 20px}
  .sj-search-modal__inner{padding:26px 20px 22px;border-radius:12px}
  .sj-search-modal__title{font-size:23px}
}
