/* ============================================================
   ATLAS HOME PRO — shared tokens & base
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---- Tokens ---- */
:root {
  /* FT-inspired warm paper with high-contrast ink across the entire site */
  --bg:        #FFF4E3;
  --bg-alt:    #F7E9CE;
  --ink:       #0A0A0A;
  --ink-soft:  #1F1F1D;
  --muted:     #4F4F4B;
  --muted-2:   #7A7A75;
  --rule:      #D6CBB3;
  --rule-soft: #E6DBC2;
  --accent:    #8B5A2B;
  --accent-ink:#6E4520;

  --serif:  'Newsreader', 'Times New Roman', Georgia, serif;
  --sans:   'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --maxw: 1360px;
  --pad-x: clamp(20px, 4vw, 56px);

  --tick: 1px solid var(--rule);
  --tick-soft: 1px solid var(--rule-soft);

  --h-display: clamp(56px, 10vw, 168px);
  --h-hero:    clamp(40px, 7.2vw, 112px);
  --h-section: clamp(32px, 4.6vw, 68px);
  --h-title:   clamp(24px, 2.6vw, 40px);
  --h-card:    clamp(20px, 1.6vw, 26px);

  --eyebrow:   11px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01","ss02","cv01";
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--bg); }

/* ---- Utilities ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.rule { height: 1px; background: var(--rule); width: 100%; }
.rule-thick { height: 2px; background: var(--ink); width: 100%; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-ink { color: var(--ink); }
.eyebrow-muted { color: var(--muted); }

.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.small { font-size: 13px; color: var(--muted); }

.link-u {
  position: relative;
  display: inline;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color .2s ease;
}
.link-u:hover { color: var(--accent-ink); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: var(--tick);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .mark {
  width: 10px; height: 10px;
  background: var(--accent);
  display: inline-block;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.nav-links a:hover, .nav-links a.active { border-color: var(--accent); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-phone {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.nav-cta {
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background .15s, color .15s;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

.nav-burger {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1px;
  background: var(--ink);
  transition: transform .2s, opacity .2s, top .2s;
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 17px; }
.nav-burger span:nth-child(3) { top: 21px; }
.nav-burger.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  border-bottom: var(--tick);
  background: var(--bg);
  padding: 16px var(--pad-x) 28px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { border-bottom: var(--tick-soft); }
.mobile-menu li:last-child { border-bottom: 0; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}
.mobile-menu .mm-meta {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  /* WSJ-style mobile header: burger left, wordmark centered, right side minimal */
  .nav-inner {
    grid-template-columns: 44px 1fr 44px;
    height: 56px;
    gap: 8px;
    padding: 0 16px;
    position: relative;
  }
  .nav-logo {
    grid-column: 2;
    justify-content: center;
    justify-self: center;
    font-size: 19px;
    letter-spacing: 0;
    gap: 7px;
  }
  .nav-logo .mark { width: 7px; height: 7px; }
  .nav-links { display: none; }
  .nav-right {
    grid-column: 3;
    justify-self: end;
    gap: 0;
  }
  .nav-right .nav-phone, .nav-right .nav-cta { display: none; }
  .nav-burger {
    display: block;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 36px;
    height: 36px;
    background: transparent;
    cursor: pointer;
  }
  .nav-burger span { left: 6px; right: 6px; height: 1.5px; background: var(--ink); }
  .nav-burger span:nth-child(1) { top: 12px; }
  .nav-burger span:nth-child(2) { top: 17px; }
  .nav-burger span:nth-child(3) { top: 22px; }
  .nav { border-bottom: 1px solid rgba(0,0,0,0.08); }
}
@media (max-width: 480px) {
  .nav-logo { font-size: 17px; }
  .nav-inner { grid-template-columns: 40px 1fr 40px; padding: 0 12px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: 120px;
  border-top: 1px solid var(--ink);
  background: var(--bg);
  padding-top: 56px;
  padding-bottom: 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: var(--tick);
}
.footer-sections {
  padding: 8px 0 40px;
  margin-bottom: 40px;
  border-bottom: var(--tick);
}
.footer-sections .fs-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.footer-sections .fs-k {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-sections .fs-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-sections .fs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px 32px;
}
.footer-sections .fs-grid a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--rule);
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  transition: color 0.15s ease;
}
.footer-sections .fs-grid a:hover {
  color: var(--accent-ink);
}
.footer-sections .fs-grid a .n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .footer-sections .fs-grid { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
}
@media (max-width: 480px) {
  .footer-sections .fs-grid { grid-template-columns: 1fr; }
}
.footer-logo {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.footer-tag {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
}
.footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 15px; color: var(--ink); }
.footer a:hover { color: var(--accent-ink); }
.footer-contact p { margin: 0 0 6px; font-size: 15px; }
.footer-contact .m { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.footer-legal {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .footer { margin-top: 80px; padding-top: 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer-legal { flex-direction: column; gap: 10px; padding-top: 20px; }
}

/* ============================================================
   Placeholder frames (for photos)
   ============================================================ */
.frame {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    rgba(0,0,0,0.035) 14px 15px
  );
  pointer-events: none;
}
.frame-label {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 8px;
  border: 1px solid var(--rule);
  z-index: 2;
}
.frame-corner {
  position: absolute;
  right: 14px; top: 14px;
  width: 10px; height: 10px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  z-index: 2;
}
.frame-ratio-4-3 { aspect-ratio: 4 / 3; }
.frame-ratio-3-2 { aspect-ratio: 3 / 2; }
.frame-ratio-16-9 { aspect-ratio: 16 / 9; }
.frame-ratio-1-1 { aspect-ratio: 1 / 1; }
.frame-ratio-5-7 { aspect-ratio: 5 / 7; }

/* ============================================================
   Shared section bits
   ============================================================ */
.section { padding: clamp(64px, 8vw, 128px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 48px;
}
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--h-section);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head .see {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}
@media (max-width: 640px) {
  .section-head { grid-template-columns: 1fr; gap: 12px; align-items: start; }
}

/* ============================================================
   Page hero (for interior pages)
   ============================================================ */
.page-hero {
  padding: clamp(64px, 9vw, 140px) 0 clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--ink);
}
.page-hero .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--h-hero);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  max-width: 16ch;
}
.page-hero .lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 62ch;
  font-weight: 300;
}
.page-hero .meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: var(--tick);
}
.page-hero .meta > div {
  display: flex; flex-direction: column; gap: 8px;
}
.page-hero .meta span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero .meta strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
@media (max-width: 1024px) {
  .page-hero .meta { grid-template-columns: repeat(2, 1fr); gap: 20px 32px; }
}
@media (max-width: 400px) {
  .page-hero .meta { grid-template-columns: 1fr; }
}

/* ============================================================
   ATLAS TICKER — CNBC-style live market ribbon
   ============================================================ */
#atlas-ticker { background: #0E1116; border-bottom: 1px solid #1C2128; overflow: hidden; }
#atlas-ticker:empty { display: none; }
.tk-row { display: flex; align-items: center; gap: 0; padding: 0; max-width: 100%; }
.tk-track { flex: 1; overflow: hidden; position: relative; min-width: 0; }
.tk-track::after,
.tk-track::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 28px; z-index: 2; pointer-events: none;
}
.tk-track::before { left: 0;  background: linear-gradient(to right, #0E1116, rgba(14,17,22,0)); }
.tk-track::after  { right: 0; background: linear-gradient(to left,  #0E1116, rgba(14,17,22,0)); }
.tk-lane {
  display: inline-flex; align-items: center; gap: 0;
  padding: 10px 0;
  white-space: nowrap;
  animation: tk-scroll 48s linear infinite;
  will-change: transform;
}
@keyframes tk-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tk-track:hover .tk-lane { animation-play-state: paused; }
.tk-item {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: #E8EAED;
  letter-spacing: 0.02em;
}
.tk-sym { font-weight: 700; color: #FFFFFF; letter-spacing: 0.04em; }
.tk-val { color: #B8BCC4; font-weight: 500; }
.tk-chg { font-weight: 600; }
.tk-chg.up { color: #4AE087; }
.tk-chg.dn { color: #FF5C5C; }
.tk-chg.flat { color: #8892A0; }
.tk-sep {
  display: inline-block;
  width: 1px; height: 11px;
  background: #2A2F38;
  vertical-align: middle;
  flex-shrink: 0;
}
.tk-meta {
  flex-shrink: 0;
  padding: 0 14px 0 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B7280;
  border-left: 1px solid #1C2128;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .tk-item { padding: 0 14px; font-size: 11.5px; }
  .tk-meta { font-size: 9px; padding: 0 10px 0 12px; }
  .tk-lane { padding: 8px 0; animation-duration: 40s; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-lane { animation: none; }
  .tk-track { overflow-x: auto; }
}

/* Inline ticker tags inside article cards (CNBC-style "AAPL* -1.76 (-0.64%)") */
.inline-tickers {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.inline-tickers .it {
  display: inline-flex; align-items: baseline; gap: 6px;
}
.inline-tickers .it-sym { color: var(--ink); font-weight: 700; }
.inline-tickers .it-chg.up  { color: #0B5D1E; font-weight: 600; }
.inline-tickers .it-chg.dn  { color: #B3261E; font-weight: 600; }
.inline-tickers .it-chg.flat { color: var(--muted); font-weight: 600; }

/* ============================================================
   KEY TAKEAWAYS BOX — sits above the deal-stats block
   ============================================================ */
.key-takeaways {
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--ink);
  background: var(--bg);
}
.key-takeaways .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.kt-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: start;
  padding: clamp(28px, 3vw, 40px) clamp(28px, 3vw, 40px);
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.kt-head {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}
.kt-head b { display: block; color: var(--ink); font-size: 15px; font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; text-transform: none; margin-top: 6px; line-height: 1.3; }
.kt-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  counter-reset: kt;
  min-width: 0;
}
.kt-list li {
  counter-increment: kt;
  padding: 12px 0 14px 40px;
  border-bottom: 1px dotted var(--rule);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.003em;
  position: relative;
  display: block;
}
.kt-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.kt-list li::before {
  content: counter(kt, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
}
.kt-list li b { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) {
  .kt-card { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; }
  .kt-head { padding-top: 0; }
  .kt-list li { font-size: 16px; }
}

/* ============================================================
   MOBILE SAFETY NET
   Global fixes for article pages and long-form layouts
   ============================================================ */

/* Prevent horizontal overflow on any page */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Article body layouts: force single column on mobile */
@media (max-width: 900px) {
  .body-grid,
  .brokers-grid,
  .author-in,
  .kt-card {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* TOC sidebar readable on mobile */
  .body-grid aside {
    position: static !important;
    order: -1;
    padding: 20px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin-bottom: 8px;
  }
  .body-grid aside ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .body-grid aside li {
    font-size: 13px !important;
    padding: 10px 0 !important;
    letter-spacing: 0.04em !important;
  }
  .body-grid aside a { color: var(--ink); }

  /* Article prose sizing on mobile */
  article.prose {
    font-size: 17px !important;
    line-height: 1.65 !important;
  }
  article.prose p { margin-bottom: 1em; }
  article.prose h2 { font-size: clamp(24px, 6.5vw, 30px) !important; margin-top: 1.6em !important; }

  /* Drop cap should not consume mobile width */
  article.prose .drop::first-letter {
    font-size: 3.6em !important;
    padding: 4px 8px 0 0 !important;
  }

  /* Tables in articles */
  article.prose .table-fig { overflow-x: auto; }
  article.prose table { font-size: 12px !important; }
  article.prose table th,
  article.prose table td {
    padding: 10px 10px 10px 0 !important;
  }

  /* Hero + stats sections get proper padding */
  .art-top,
  .art-lead,
  .deal-stats,
  .co-stats,
  .key-takeaways,
  .art-body,
  .author {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .art-top .wrap,
  .art-lead .wrap,
  .deal-stats .wrap,
  .co-stats .wrap,
  .key-takeaways .wrap,
  .art-body .wrap,
  .author .wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Headline + deck */
  .art-top h1 { font-size: clamp(34px, 9.6vw, 44px) !important; line-height: 1.02 !important; }
  .art-top .deck { font-size: clamp(17px, 4.8vw, 20px) !important; }
  .art-top .byl {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 20px !important;
  }

  /* Deal stats 2-col on phone for scannability */
  .stats-grid, .co-stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .stats-grid .stat, .co-stats-grid .stat {
    padding: 14px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px dotted var(--rule) !important;
  }
  .stats-grid .v, .co-stats-grid .v { font-size: 17px !important; }
  .stats-grid .s, .co-stats-grid .s { font-size: 12px !important; }
  .stats-grid .k, .co-stats-grid .k { font-size: 9px !important; letter-spacing: 0.12em !important; }

  /* Crumb should wrap cleanly */
  .crumb { font-size: 10px !important; letter-spacing: 0.1em !important; gap: 6px !important; }

  /* Key takeaways: stack cleanly */
  .kt-card { padding: 22px 18px !important; }
  .kt-head { padding-top: 0 !important; }
  .kt-list li { font-size: 16px !important; padding-left: 34px !important; }
}

/* Phone-only tightening */
@media (max-width: 480px) {
  .stats-grid .stat, .co-stats-grid .stat {
    padding: 12px 10px !important;
  }
  .stats-grid .v, .co-stats-grid .v { font-size: 15px !important; }

  /* Deal-stats-head, co-stats-head */
  .stats-head, .co-stats-head {
    font-size: 9.5px !important;
    letter-spacing: 0.14em !important;
  }
}

/* ============================================================
   STATUS BADGES — authoritative, WSJ/Reuters-level presence
   Applied sitewide: article headers, log boards, front-page rails
   ============================================================ */
.badge-sold,
.badge-forsale,
.badge-contract,
.badge-new,
.badge-price,
.badge-offmkt,
.badge-back,
.front-feed .lead-kicker .badge,
.cat .badge-sold,
.cat .badge-forsale,
.cat .badge-contract {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  padding: 6px 14px !important;
  border-radius: 0;
  color: #FFFFFF !important;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}
.badge-sold,
.cat .badge-sold,
.front-feed .lead-kicker .badge-sold {
  background: #A31414 !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18);
}
.badge-forsale,
.cat .badge-forsale,
.front-feed .lead-kicker .badge-forsale {
  background: #0A5417 !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.22);
}
.badge-contract {
  background: #B76A1F !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2);
}
.badge-price   { background: #6B4D2B !important; }
.badge-new     { background: #0A5417 !important; }
.badge-offmkt  { background: #3C3C3C !important; }
.badge-back    { background: #2A2A2A !important; }

/* Article header cat row: shift badge to pair visually with the kicker */
.art-top .cat {
  gap: 16px !important;
  align-items: center !important;
}
.art-top .cat .badge-sold,
.art-top .cat .badge-forsale,
.art-top .cat .badge-contract {
  font-size: 14px !important;
  padding: 7px 16px !important;
  letter-spacing: 0.24em !important;
}

/* Log entries on broker-activity board: keep badges equally prominent */
.activity-log .badge-sold,
.activity-log .badge-forsale,
.activity-log .badge-contract {
  font-size: 12px !important;
  padding: 5px 12px !important;
  letter-spacing: 0.2em !important;
}

/* Front-page rail (smaller thumbnails) — slightly tighter badges */
.rail-item .badge-sold,
.rail-item .badge-forsale {
  font-size: 10.5px !important;
  padding: 4px 10px !important;
  letter-spacing: 0.18em !important;
}

/* Mobile: ensure badges don't get squished */
@media (max-width: 600px) {
  .badge-sold, .badge-forsale, .badge-contract,
  .cat .badge-sold, .cat .badge-forsale, .cat .badge-contract {
    font-size: 12px !important;
    padding: 6px 13px !important;
    letter-spacing: 0.2em !important;
  }
}

/* ============================================================
   UNIVERSAL SIGNUP — injected above footer on interior pages
   Mirrors the homepage .subscribe block: dark, serif, underline input.
   ============================================================ */
#universal-signup {
  padding: clamp(56px, 8vw, 110px) 0;
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
#universal-signup .us-inner {
  max-width: var(--maxw, 1180px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
#universal-signup .us-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
#universal-signup .us-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--bg);
  margin: 0;
  max-width: 14ch;
}
#universal-signup .us-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  margin-left: auto;
  width: 100%;
}
#universal-signup .us-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.5);
}
#universal-signup input[type="email"] {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(250,250,248,0.4);
  padding: 12px 0;
  color: var(--bg);
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s;
}
#universal-signup input[type="email"]:focus { border-bottom-color: var(--accent); }
#universal-signup input[type="email"]::placeholder { color: rgba(250,250,248,0.3); }
#universal-signup .us-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
}
#universal-signup .us-fine {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(250,250,248,0.5);
  max-width: 32ch;
  margin: 0;
  line-height: 1.45;
}
#universal-signup button {
  padding: 13px 22px;
  border: 1px solid var(--bg);
  color: var(--ink);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
#universal-signup button:hover { background: transparent; color: var(--bg); }
#universal-signup .us-success {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 14px;
}
#universal-signup.sent .us-label,
#universal-signup.sent input,
#universal-signup.sent .us-row { display: none; }
#universal-signup.sent .us-success { display: block; }

@media (max-width: 1024px) {
  #universal-signup .us-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }
  #universal-signup .us-form { margin-left: 0; }
}
@media (max-width: 560px) {
  #universal-signup .us-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  #universal-signup button { width: 100%; text-align: center; }
  #universal-signup .us-fine { max-width: none; }
}
