/* ==========================================================================
   GARUDA3D's KNOWLEDGE CENTER
   Shared stylesheet for the blog hub + article pages.
   Design system: industrial reference-library aesthetic.
   Type:  Barlow Condensed (display/labels) Â· Barlow (body) Â· DM Mono (data)
   Accent: Garuda orange on charcoal + white.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #ffffff;
  --paper:      #f7f6f4;
  --paper-2:    #efedea;
  --line:       #e2ded8;
  --line-2:     #d4d0ca;
  --ink:        #1a1a1a;   /* charcoal */
  --ink-2:      #3a3632;
  --ink-3:      #6b655e;
  --ink-4:      #928c84;
  --accent:     #e8470a;   /* garuda orange */
  --accent-2:   #e05c2a;
  --accent-dk:  #c94317;
  --accent-wash:#fdf0eb;

  --font-cond: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  --wrap: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* Shared label / eyebrow ------------------------------------------------- */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

h1, h2, h3, h4 { font-family: var(--font-cond); font-weight: 600; line-height: 1.02; letter-spacing: .01em; }

/* ==========================================================================
   NAV  (preview-only's replaced by header.php on the live site)
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: 1360px; margin: 0 auto; height: 66px;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; background: var(--ink);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center;
}
.brand-mark span { color: var(--white); font-family: var(--font-cond); font-weight: 700; font-size: 15px; }
.brand-name { font-family: var(--font-cond); font-weight: 700; font-size: 21px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.brand-name b { color: var(--accent); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  font-family: var(--font-cond); font-weight: 500; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  text-decoration: none; padding: 6px 0; position: relative;
}
.nav-links a.is-active { color: var(--accent); }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  font-family: var(--font-cond); font-weight: 600; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--white);
  padding: 11px 20px; border-radius: var(--radius); text-decoration: none;
  transition: background .2s var(--ease);
}
.nav-cta:hover { background: var(--accent); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-cond); font-weight: 600; font-size: 15px;
  letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  padding: 14px 24px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all .2s var(--ease);
}
.btn .arw { transition: transform .2s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn-solid:hover { background: var(--accent); color: var(--white); }
.btn-solid { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

/* ==========================================================================
   HERO  (hub)
   ========================================================================== */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}
.hero::before { /* faint blueprint grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 100% at 80% 0%, #000 30%, transparent 78%);
}
.hero-in { position: relative; padding: 78px 40px 60px; max-width: var(--wrap); margin: 0 auto; }
.hero h1 {
  font-size: clamp(46px, 7vw, 92px);
  letter-spacing: .005em; text-transform: uppercase; margin: 20px 0 0;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  max-width: 640px; margin: 20px 0 0;
  font-size: 18px; color: rgba(255,255,255,.72); line-height: 1.6;
}
.hero .eyebrow { color: var(--accent); }

/* search */
.searchbar {
  margin-top: 36px; max-width: 680px;
  display: flex; align-items: stretch;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
  background: rgba(255,255,255,.04);
}
.searchbar svg { width: 20px; height: 20px; stroke: var(--ink-4); margin: 0 0 0 18px; align-self: center; }
.searchbar input {
  flex: 1; background: transparent; border: 0; outline: none; color: var(--white);
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .02em;
  padding: 17px 14px;
}
.searchbar input::placeholder { color: var(--ink-4); }
.searchbar button {
  font-family: var(--font-cond); font-weight: 600; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; background: var(--accent); color: var(--white);
  border: 0; padding: 0 26px; cursor: pointer; border-radius: 0 1px 1px 0;
  transition: background .2s var(--ease);
}
.searchbar button:hover { background: var(--accent-dk); }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip {
  font-family: var(--font-cond); font-weight: 500; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.8);
  padding: 8px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  background: transparent; cursor: pointer; transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--white); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* hero stat rail */
.hero-rail {
  display: flex; gap: 46px; margin-top: 44px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap;
}
.hero-rail .stat .n {
  font-family: var(--font-cond); font-weight: 700; font-size: 34px; line-height: 1;
  color: var(--white);
}
.hero-rail .stat .n b { color: var(--accent); }
.hero-rail .stat .l {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-4); margin-top: 6px;
}

/* ==========================================================================
   SECTION SCAFFOLD
   ========================================================================== */
section { position: relative; }
.sec { padding: 40px 0; }
.sec-paper { background: var(--paper); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.sec-head h2 {

  font-size: clamp(32px, 4vw, 46px); text-transform: uppercase; letter-spacing: .01em;
  margin-top: 12px;
}
.sec-head .see-all {
  font-family: var(--font-cond); font-weight: 600; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  display: inline-flex; gap: 8px; align-items: center; padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
}
.sec-head .see-all:hover { color: var(--accent); }

/* ==========================================================================
   FEATURED  (1 lead + 2 secondary)
   ========================================================================== */
.featured {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px;
}
.feat-card {
  position: relative; display: block; text-decoration: none; color: var(--white);
  border-radius: var(--radius); overflow: hidden; background: var(--ink);
  min-height: 300px;
}
.feat-card .ph { position: absolute; inset: 0; }
.feat-card .ph img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: transform .6s var(--ease), opacity .3s; }
.feat-card:hover .ph img { transform: scale(1.05); opacity: .7; }
.feat-card .grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.15) 0%, rgba(20,18,16,.86) 100%); }
.feat-card .body { position: relative; z-index: 2; padding: 26px; display: flex; flex-direction: column; height: 100%; justify-content: flex-end; }
.feat-lead { grid-row: span 2; }
.feat-lead .body { padding: 34px; }
.feat-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--white); background: var(--accent);
  padding: 5px 11px; border-radius: 1px; margin-bottom: auto;
}
.feat-card h3 { text-transform: uppercase; margin: 16px 0 0; }
.feat-lead h3 { font-size: clamp(30px, 3.6vw, 46px); max-width: 15ch; }
.feat-card:not(.feat-lead) h3 { font-size: 26px; }
.feat-meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.72);
  margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; text-transform: uppercase;
}

/* ==========================================================================
   ARTICLE CARD GRID
   ========================================================================== */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 14px 34px -22px rgba(26,22,18,.4); }
.card .ph { aspect-ratio: 16/10; background: var(--paper-2); overflow: hidden; position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .ph img { transform: scale(1.045); }
.card .ph .cat {
  position: absolute; left: 12px; top: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--white); color: var(--ink); padding: 5px 9px; border-radius: 1px;
}
.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 {
  font-family: var(--font-cond); font-weight: 600; font-size: 23px; line-height: 1.08;
  text-transform: uppercase; letter-spacing: .01em; margin-bottom: 9px;
  transition: color .2s var(--ease);
}
.card:hover h3 { color: var(--accent); }
.card .excerpt { font-size: 14.5px; color: var(--ink-3); line-height: 1.55; }
.card .foot {
  margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
}
.card .foot .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-4); text-transform: uppercase; }
.card .foot .more {
  font-family: var(--font-cond); font-weight: 600; font-size: 13px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; gap: 6px; align-items: center;
}
.card .foot .more .arw { transition: transform .2s var(--ease); }
.card:hover .foot .more .arw { transform: translateX(4px); }

/* difficulty signal bars */
.diff { display: inline-flex; align-items: center; gap: 7px; }
.diff .bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.diff .bars i { width: 3px; background: var(--line-2); border-radius: .5px; }
.diff .bars i:nth-child(1){ height: 6px; } .diff .bars i:nth-child(2){ height: 9px; } .diff .bars i:nth-child(3){ height: 12px; }
.diff[data-lv="1"] .bars i:nth-child(1),
.diff[data-lv="2"] .bars i:nth-child(-n+2),
.diff[data-lv="3"] .bars i { background: var(--accent); }
.diff .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }

/* filtered-out state */
.card.hide, .feat-card.hide { display: none; }
.no-results { display: none; padding: 40px 0; font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); }
.no-results.show { display: block; }

/* ==========================================================================
   CATEGORY GRID
   ========================================================================== */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat-tile {
  padding: 26px 20px; text-decoration: none; color: var(--ink); background: var(--white);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; min-height: 158px;
  transition: background .2s var(--ease);
}
.cat-tile:hover { background: var(--paper); }
.cat-tile svg { width: 30px; height: 30px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.cat-tile:hover svg { stroke: var(--accent); }
.cat-tile .code { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-4); }
.cat-tile .nm { font-family: var(--font-cond); font-weight: 600; font-size: 20px; text-transform: uppercase; line-height: 1.05; margin-top: auto; }
.cat-tile .ct { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-4); text-transform: uppercase; }

/* ==========================================================================
   TOPIC CLUSTERS
   ========================================================================== */
.clusters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cluster { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 24px; background: var(--white); }
.cluster .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cluster .top .code { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.cluster h3 { font-size: 28px; text-transform: uppercase; margin-top: 8px; }
.cluster ul { list-style: none; margin-top: 6px; }
.cluster li { border-top: 1px solid var(--line); }
.cluster li a {
  display: flex; align-items: baseline; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--ink-2);
  font-size: 15.5px; transition: color .18s var(--ease), padding .18s var(--ease);
}
.cluster li a:hover { color: var(--accent); padding-left: 6px; }
.cluster li a .idx { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); min-width: 24px; }
.cluster li a .txt { flex: 1; }
.cluster li a .arw { color: var(--accent); opacity: 0; transition: opacity .18s var(--ease); }
.cluster li a:hover .arw { opacity: 1; }

/* ==========================================================================
   LEAD-GEN CTA BAND
   ========================================================================== */
.leadband { background: var(--ink); color: var(--white); border-top: 3px solid var(--accent); }
.leadband-in {
  max-width: var(--wrap); margin: 0 auto; padding: 52px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.lead-panel {
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.lead-panel .eyebrow { color: var(--accent); }
.lead-panel h3 { font-size: 30px; text-transform: uppercase; color: var(--white); max-width: 18ch; }
.lead-panel p { color: rgba(255,255,255,.66); font-size: 15px; }
.lead-panel .btn { align-self: flex-start; margin-top: 6px; }

/* ==========================================================================
   TAGS CLOUD
   ========================================================================== */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 15px; text-decoration: none;
  transition: all .18s var(--ease);
}
.tag::before { content: "#"; color: var(--ink-4); margin-right: 3px; }
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.news { background: var(--paper); border-top: 1px solid var(--line); }
.news-in {
  max-width: var(--wrap); margin: 0 auto; padding: 60px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.news h3 { font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; }
.news p { color: var(--ink-3); margin-top: 12px; max-width: 44ch; }
.news form { display: flex; gap: 10px; flex-wrap: wrap; }
.news input {
  flex: 1; min-width: 220px; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 15px 16px; font-family: var(--font-mono); font-size: 14px; background: var(--white); color: var(--ink);
}
.news input:focus { outline: none; border-color: var(--accent); }
.news .ok { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-top: 12px; display: none; }
.news .ok.show { display: block; }
.news .fineprint { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); margin-top: 12px; }

/* ==========================================================================
   FOOTER  (preview-only's replaced by footer.php on the live site)
   ========================================================================== */
.foot { background: var(--ink); color: rgba(255,255,255,.7); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 60px 40px 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot .brand-name { color: var(--white); }
.foot p.blurb { margin-top: 16px; font-size: 14.5px; max-width: 34ch; line-height: 1.6; }
.foot h4 { font-family: var(--font-cond); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.foot ul { list-style: none; }
.foot ul li { margin-bottom: 9px; }
.foot a { color: rgba(255,255,255,.66); text-decoration: none; font-size: 14.5px; transition: color .18s var(--ease); }
.foot a:hover { color: var(--accent); }
.foot .contact { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.72); }
.foot-bar {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-4);
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.crumb { border-bottom: 1px solid var(--line); background: var(--white); }
.crumb-in {
  max-width: var(--wrap); margin: 0 auto; padding: 16px 40px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-4);
  display: flex; gap: 8px; flex-wrap: wrap; text-transform: uppercase;
}
.crumb-in a { color: var(--ink-3); text-decoration: none; }
.crumb-in a:hover { color: var(--accent); }
.crumb-in .sep { color: var(--line-2); }
.crumb-in .here { color: var(--accent); }

/* ==========================================================================
   READING PROGRESS BAR (article pages)
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 300; transition: width .05s linear; }

/* ==========================================================================
   ARTICLE HEADER + LAYOUT
   ========================================================================== */
.ah { background: var(--paper); border-bottom: 1px solid var(--line); }
.ah-in { max-width: 900px; margin: 0 auto; padding: 54px 40px 44px; }
.ah .tagrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ah .catcode { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--white); background: var(--accent); padding: 5px 11px; border-radius: 1px; }
.ah h1 { font-size: clamp(38px, 5.6vw, 66px); text-transform: uppercase; letter-spacing: .005em; }
.ah .standfirst { font-size: 20px; color: var(--ink-2); line-height: 1.55; margin-top: 20px; max-width: 60ch; }
.ah .byrow {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4);
}
.ah .byrow b { color: var(--ink-2); font-weight: 500; }

.ah-hero { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.ah-hero .frame { position: relative; margin-top: -0px; aspect-ratio: 21/9; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ah-hero .frame img { width: 100%; height: 100%; object-fit: cover; }
.ah-hero .cap { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); margin-top: 10px; letter-spacing: .03em; }

/* two-column article layout */
.layout {
  max-width: 1160px; margin: 0 auto; padding: 56px 40px 20px;
  display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 56px; align-items: start;
}
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 34px; text-transform: uppercase; margin-top: 44px; padding-top: 22px; border-top: 2px solid var(--ink); letter-spacing: .01em; }
.prose h2 .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); display: block; margin-bottom: 6px; letter-spacing: .1em; }

.prose h3 { font-size: 24px; text-transform: uppercase; margin-top: 30px; color: var(--ink); }
.prose p { font-size: 17.5px; line-height: 1.72; color: var(--ink-2); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 700; }

.pullquote {
  border-left: 3px solid var(--accent); padding: 6px 0 6px 24px; margin: 34px 0;
  font-family: var(--font-cond); font-weight: 500; font-size: 27px; line-height: 1.2;
  text-transform: uppercase; color: var(--ink);
}

/* spec/callout box */
.callout {
  box-sizing: border-box; width: 100%; max-width: 68ch;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 22px 24px; margin: 30px 0;
}
.callout .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.callout p { margin: 0; font-size: 16px; color: var(--ink-2); }
.callout ul { margin: 8px 0 0; padding-left: 20px; }

/* Keep explanatory notes within the article flow instead of separate cards. */
.callout.callout-inline {
  width: auto; max-width: none; padding: 0; margin: 30px 0;
  background: transparent; border: 0; border-radius: 0;
}
.callout.callout-inline .k {
  font-family: var(--font-cond); font-size: 21px; font-weight: 600;
  letter-spacing: .02em; color: var(--ink); margin-bottom: 6px;
}
.callout.callout-inline p { font-size: 17.5px; line-height: 1.72; }

/* data table */
.spectable { width: 100%; border-collapse: collapse; margin: 26px 0; border: 1px solid var(--line); }
.spectable th, .spectable td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spectable th { font-family: var(--font-cond); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--paper); font-size: 14px; }
.spectable td { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-2); }
.spectable tr:last-child td { border-bottom: 0; }

/* inline CTA inside prose */
.inline-cta {
  background: var(--ink); color: var(--white); border-radius: var(--radius);
  padding: 28px 30px; margin: 40px 0; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  border-left: 3px solid var(--accent);
}
.inline-cta .t { }
.inline-cta .eyebrow { color: var(--accent); }
.inline-cta h4 { font-family: var(--font-cond); font-weight: 600; font-size: 25px; text-transform: uppercase; color: var(--white); margin-top: 8px; max-width: 24ch; }

/* tags + share at article foot */
.article-foot { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 26px; }

/* author block */
.author {
  display: flex; gap: 18px; align-items: center; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 30px;
}
.author .av {
  width: 54px; height: 54px; background: var(--ink); flex: 0 0 54px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center; color: var(--white); font-family: var(--font-cond); font-weight: 700; font-size: 18px;
}
.author .nm { font-family: var(--font-cond); font-weight: 600; font-size: 20px; text-transform: uppercase; }
.author .ds { font-size: 14px; color: var(--ink-3); margin-top: 2px; }

/* ==========================================================================
   ARTICLE SIDEBAR
   ========================================================================== */
.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 26px; }
.widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white); }
.widget h4 { font-family: var(--font-cond); font-weight: 600; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.widget .sside { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius); }
.widget .sside input { flex: 1; border: 0; outline: none; padding: 10px 12px; font-family: var(--font-mono); font-size: 13px; background: transparent; color: var(--ink); }
.widget .sside button { border: 0; background: var(--ink); color: var(--white); padding: 0 12px; cursor: pointer; }
.widget .catlist { list-style: none; }
.widget .catlist li a { display: flex; justify-content: space-between; padding: 8px 0; text-decoration: none; color: var(--ink-2); font-family: var(--font-cond); font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; border-bottom: 1px solid var(--line); }
.widget .catlist li:last-child a { border-bottom: 0; }
.widget .catlist li a:hover { color: var(--accent); }
.widget .catlist li a span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }
.widget .pop { list-style: none; }
.widget .pop li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.widget .pop li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget .pop li a { text-decoration: none; color: var(--ink); }
.widget .pop li .m { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.widget .pop li .h { display: block; font-family: var(--font-cond); font-weight: 600; font-size: 17px; text-transform: uppercase; line-height: 1.06; margin-top: 4px; }
.widget .pop li a:hover .h { color: var(--accent); }
.widget.dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.widget.dark h4 { color: var(--white); border-color: rgba(255,255,255,.14); }
.widget.dark p { font-size: 14px; color: rgba(255,255,255,.66); }
.widget.dark .btn { width: 100%; justify-content: center; margin-top: 14px; }
.widget .dl { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }
.widget .dl:last-child { border-bottom: 0; }
.widget .dl svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.6; flex: 0 0 22px; }
.widget .dl .h { font-family: var(--font-cond); font-weight: 600; font-size: 15px; text-transform: uppercase; }
.widget .dl .s { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .06em; }
.widget .dl:hover .h { color: var(--accent); }

/* ==========================================================================
   RELATED
   ========================================================================== */
.related { background: var(--paper); border-top: 1px solid var(--line); }
.related-in { max-width: var(--wrap); margin: 0 auto; padding: 68px 40px; }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .featured { grid-template-columns: 1fr; }
  .feat-lead { grid-row: auto; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .clusters { grid-template-columns: 1fr; }
  .leadband-in { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .side { position: static; }
  .news-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 620px) {
  .wrap, .nav-in, .hero-in, .foot-in, .layout, .ah-in, .ah-hero, .leadband-in, .news-in, .related-in, .crumb-in { padding-left: 22px; padding-right: 22px; }
  body { font-size: 16px; }
  .grid-cards { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .searchbar { flex-wrap: wrap; }
  .searchbar button { width: 100%; padding: 12px; }
  .sec { padding: 40px 0; }
  .hero-in { padding-top: 54px; }
  .prose h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ==========================================================================
   IMAGE PLACEHOLDER PLATES  (SWAP for real per-article photography)
   ========================================================================== */
.plate {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background:
    linear-gradient(135deg, #232120 0%, #171514 100%);
  overflow: hidden;
}
.plate::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(120% 120% at 20% 20%, #000 20%, transparent 72%);
}
.plate .glyph { position: absolute; right: -14px; bottom: -24px; width: 190px; height: 190px; stroke: rgba(232,71,10,.5); fill: none; stroke-width: 1.4; opacity: .9; }
.plate .stamp {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.plate .stamp b { color: var(--accent); font-weight: 400; }
/* on featured dark cards, dim the plate a touch so text stays readable */
.feat-card .plate { background: linear-gradient(135deg, #262322 0%, #141210 100%); }

/* ---- single-file view router ---- */
.view[hidden]{display:none!important}
.view{display:block}
