/* =====================================================================
   Atlas · Bento — the website layer
   Same language as the reimagined app (assets/app/bento.css):
   warm grey page, white tiles, ink text, system sans, pill buttons,
   one colour per area of life.

     Cobalt  #2743ff  Week: time, the fortnight, the kids   (signature panel)
     Lime    #d4f062  Money / "go"
     Lilac   #cdbdff  Records and separation costs
     Mint    #bfe8d6  Goals
     Peach   #ffe1d6  Needs you / Admin focus
     Soft cobalt #dfe4ff  Phase guidance
     Black   #111111  Actions (buttons) and emphasis panels

   Loaded last in default.hbs. Uses html:root so it beats the :root
   blocks each page template declares in its own <style>.
   ===================================================================== */

html:root {
  --bg: #f2f2f0;
  --tile: #ffffff;
  --ink: #111111;
  --ink-2: #3a3a3f;
  --mute: #62626a;
  --line: #e5e5e2;
  --cobalt: #2743ff;
  --cobalt-2: #dfe4ff;
  --cobalt-ink: #1a2ccc;
  --lime: #d4f062;
  --lime-2: #eef8c6;
  --lilac: #cdbdff;
  --mint: #bfe8d6;
  --peach: #ffe1d6;
  --coral: #ff6a45;
  --coral-ink: #c9431a;
  /* Phase colours, from the Bento palette on Today (one step from urgent to your own life):
     Waiting Room lilac · Survive coral (urgent) · Stabilise lime (go) · Rebuild mint (progress) · New Chapter cobalt (signature) */
  --ph-waiting: #cdbdff; --ph-waiting-ink: #111111;
  --ph-survive: #ff6a45; --ph-survive-ink: #111111;
  --ph-stabilise: #d4f062; --ph-stabilise-ink: #111111;
  --ph-rebuild: #bfe8d6; --ph-rebuild-ink: #111111;
  --ph-newchapter: #2743ff; --ph-newchapter-ink: #ffffff;
  --r: 28px;
  --r-sm: 20px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Ghost + deigo tokens */
  --ghost-accent-color: #2743ff;
  --font-body: var(--sans);
  --font-heading: var(--sans);
  --bg-color: var(--bg);

  /* Old Atlas site tokens, re-pointed (every page template declares its own prefix) */
  --atlas-paper: var(--bg); --atlas-paper-card: #fff; --atlas-paper-edge: var(--line);
  --atlas-ink: var(--ink); --atlas-ink-soft: var(--ink-2); --atlas-ink-muted: var(--mute);
  --atlas-green: var(--ink); --atlas-green-deep: var(--cobalt); --atlas-amber: var(--lime); --atlas-amber-deep: #b9d63a;

  --paper: #fff; --paper-card: #fff; --paper-warm: var(--bg); --paper-edge: var(--line);
  --ink-soft: var(--ink-2); --ink-muted: var(--mute); --ink-faded: #6a6a70;
  --green: var(--ink); --green-deep: var(--cobalt); --amber: var(--lime); --amber-deep: #b9d63a;
  --honey: var(--lime-2); --sage: var(--cobalt-2); --black: var(--ink);
  --shadow-card: none; --radius: 22px; --radius-lg: var(--r); --radius-xl: var(--r);
}
/* Each prefix the old templates use: ta- (guides), ab- (about), csa-, nl- (newsletter), adm- (checklist) */
html:root {
  --ta-green: var(--ink); --ta-green-deep: var(--cobalt); --ta-amber: var(--lime); --ta-ink: var(--ink); --ta-ink-soft: var(--ink-2); --ta-ink-muted: var(--mute); --ta-paper: #fff; --ta-paper-card: #fff; --ta-paper-edge: var(--line); --ta-paper-warm: var(--bg); --ta-radius: var(--r);
  --ab-green: var(--ink); --ab-green-deep: var(--cobalt); --ab-amber: var(--lime); --ab-ink: var(--ink); --ab-ink-soft: var(--ink-2); --ab-ink-muted: var(--mute); --ab-paper: var(--bg); --ab-paper-edge: var(--line);
  --csa-green: var(--ink); --csa-green-deep: var(--cobalt); --csa-amber: var(--lime); --csa-amber-deep: #b9d63a; --csa-ink: var(--ink); --csa-ink-soft: var(--ink-2); --csa-ink-muted: var(--mute); --csa-ink-faded: #6a6a70; --csa-paper: #fff; --csa-paper-card: #fff; --csa-paper-warm: var(--bg); --csa-paper-edge: var(--line); --csa-sage: var(--cobalt-2); --csa-coral: var(--coral-ink); --csa-shadow-card: none; --csa-radius: 22px; --csa-radius-lg: var(--r);
  --nl-green: var(--ink); --nl-green-deep: var(--cobalt); --nl-amber: var(--lime); --nl-amber-deep: #b9d63a; --nl-coral: var(--coral-ink); --nl-paper: var(--bg); --nl-paper-warm: var(--bg); --nl-paper-edge: var(--line); --nl-ink: var(--ink); --nl-ink-soft: var(--ink-2); --nl-ink-muted: var(--mute);
  --adm-green: var(--ink); --adm-green-deep: var(--cobalt); --adm-amber: var(--lime); --adm-amber-deep: #b9d63a; --adm-honey: var(--lime-2); --adm-sage: var(--cobalt-2); --adm-coral: var(--coral-ink); --adm-ink: var(--ink); --adm-ink-soft: var(--ink-2); --adm-ink-muted: var(--mute); --adm-ink-faded: #6a6a70; --adm-paper: #fff; --adm-paper-card: #fff; --adm-paper-warm: var(--bg); --adm-paper-edge: var(--line); --adm-shadow-card: none; --adm-radius: 22px; --adm-radius-lg: var(--r);
}

/* ---------- Base ---------- */
html body { background: var(--bg) !important; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
html body :is(h1, h2, h3, h4, h5, h6):not(#_) { font-family: var(--sans) !important; font-weight: 700 !important; letter-spacing: -.035em !important; }
html body :is(h1, h2, h3):not(#_) em { font-weight: 700 !important; }
html body :is(p, li, td, input, button, a, select, textarea, label, span, div) { font-family: var(--sans); }
/* The old italic-serif accent inside headings becomes a quiet second tone */
html body :is(h1, h2, h3) em { font-style: normal; color: var(--mute); font-weight: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--ink); }
.b-skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 12px; z-index: 100; text-decoration: none; }
.b-skip:focus { top: 12px; }

/* ---------- Layout primitives ---------- */
.b-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }
.b-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.b-tile { background: var(--tile); border-radius: var(--r); padding: 30px; min-width: 0; position: relative; overflow: hidden; box-sizing: border-box; }
.b-s12 { grid-column: span 12; } .b-s8 { grid-column: span 8; } .b-s7 { grid-column: span 7; } .b-s6 { grid-column: span 6; }
.b-s5 { grid-column: span 5; } .b-s4 { grid-column: span 4; } .b-s3 { grid-column: span 3; }
.b-cobalt { background: var(--cobalt); color: #fff; }
.b-lime { background: var(--lime); }
.b-lilac { background: var(--lilac); }
.b-mint { background: var(--mint); }
.b-peach { background: var(--peach); }
.b-soft { background: var(--cobalt-2); }
.b-black { background: var(--ink); color: #fff; }
.b-grey { background: var(--bg); }
.b-section { margin-top: 14px; }
.b-eyebrow { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--mute); }
.b-cobalt .b-eyebrow, .b-black .b-eyebrow { color: #e3e7ff; }
.b-black .b-eyebrow { color: #b8b8be; }
.b-lime .b-eyebrow, .b-lilac .b-eyebrow, .b-mint .b-eyebrow, .b-peach .b-eyebrow { color: var(--ink); }
.b-h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1; letter-spacing: -.045em !important; }
.b-h3 { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.1; letter-spacing: -.025em !important; }
.b-lead { margin: 16px 0 0; font-size: 18px; line-height: 1.45; color: var(--mute); letter-spacing: -.01em; max-width: 620px; }
.b-cobalt .b-lead { color: #e3e7ff; }
.b-black .b-lead { color: #c9c9ce; }
.b-small { font-size: 13px; color: var(--mute); }
.b-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }

/* ---------- Buttons ---------- */
.b-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff !important; font: 600 15px/1 var(--sans); text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s; box-sizing: border-box; }
.b-btn:hover { background: #2a2a2e; }
.b-btn.grey { background: var(--bg); color: var(--ink) !important; }
.b-btn.grey:hover { background: var(--line); }
.b-btn.white { background: #fff; color: var(--ink) !important; }
.b-btn.white:hover { background: var(--cobalt-2); }
.b-btn.lime { background: var(--lime); color: var(--ink) !important; }
.b-btn.lime:hover { background: #c6e24d; }
.b-btn.sm { min-height: 40px; padding: 10px 16px; font-size: 14px; }
.b-btn.block { width: 100%; }
.b-link { color: var(--cobalt-ink); font-weight: 600; text-decoration: none; }
.b-link:hover { text-decoration: underline; }
.b-cobalt .b-link, .b-black .b-link { color: #fff; }
.b-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.b-chip.lime { background: var(--lime); }
.b-chip.soft { background: var(--cobalt-2); }

/* ---------- Header: the floating capsule ---------- */
.b-header { position: sticky; top: 12px; z-index: 50; padding: 16px 24px 0; max-width: 1240px; margin: 0 auto 14px; width: 100%; box-sizing: border-box; }
.b-nav { display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 22px; background: #ffffffd9; -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-radius: 999px; box-shadow: 0 1px 0 #0000000d, 0 8px 24px #0000000d; }
.b-brand { font: 700 21px/1 var(--sans); letter-spacing: -.035em; color: var(--ink) !important; text-decoration: none !important; }
.b-brand b { color: var(--cobalt); }
.b-links { flex: 1; display: flex; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.b-links a { display: block; padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--mute) !important; text-decoration: none !important; }
.b-links a:hover { color: var(--ink) !important; }
.b-links a[aria-current=page] { background: var(--ink); color: #fff !important; }
.b-actions { display: flex; align-items: center; gap: 6px; }
.b-search { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.b-search:hover { background: var(--bg); }
.b-menu { display: none; position: relative; }
.b-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; }
.b-menu summary::-webkit-details-marker { display: none; }
.b-menu[open] summary { background: var(--ink); color: #fff; }
.b-menu-panel { position: absolute; right: 0; top: 54px; width: min(300px, calc(100vw - 24px)); padding: 8px; background: #fff; border-radius: 22px; box-shadow: 0 20px 50px #00000026; display: grid; gap: 2px; }
.b-menu-panel a { display: block; padding: 13px 14px; border-radius: 14px; font-size: 16px; font-weight: 500; color: var(--ink) !important; text-decoration: none !important; }
.b-menu-panel a:hover { background: var(--bg); }
.b-menu-panel .b-btn { margin-top: 6px; }
.b-strip { text-align: center; font-size: 12.5px; color: var(--mute); padding: 10px 16px 0; }
.b-strip b { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.b-footer { padding: 14px 0 28px; margin-top: 14px; }
.b-foot-sub { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; gap: 24px; }
.b-foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.b-foot-cols h2 { font-size: 13px !important; letter-spacing: 0 !important; font-weight: 600 !important; color: var(--mute); margin: 0 0 14px; }
.b-foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.b-foot-cols a { display: inline-block; padding: 4px 0; font-size: 15px; color: var(--ink) !important; text-decoration: none !important; }
.b-foot-cols a:hover { color: var(--cobalt-ink) !important; }
.b-foot-tag { font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin: 0; max-width: 300px; }
.b-foot-word { font: 700 clamp(88px, 17vw, 240px)/.8 var(--sans); letter-spacing: -.075em; margin: 0; color: var(--ink); padding-top: 12px; }
.b-foot-word b { color: var(--cobalt); }
.b-foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 4px 0; font-size: 13px; color: var(--mute); }
.b-foot-bottom a { color: var(--mute) !important; text-decoration: none !important; margin-left: 16px; }
.b-foot-bottom a:hover { color: var(--ink) !important; }

/* ---------- Mini app UI used inside marketing tiles ---------- */
.b-count { display: flex; align-items: flex-end; gap: 14px; }
.b-count-n { font-size: 120px; line-height: .78; font-weight: 700; letter-spacing: -.07em; }
.b-count-c { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; padding-bottom: 4px; }
.b-strip14 { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; margin-top: 18px; }
.b-strip14 span { display: grid; justify-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: #c9d0ff; }
.b-strip14 i { width: 100%; height: 10px; border-radius: 5px; background: #ffffff33; }
.b-strip14 .k i { background: #fff; }
.b-strip14 em { width: 7px; height: 7px; border-radius: 50%; }
.b-strip14 .h em { background: var(--lime); }
.b-strip14 .t { color: #fff; }
.b-strip14 .t i { outline: 2px solid #fff; outline-offset: 2px; }
.b-strip14 .w { margin-left: 5px; }
.b-key { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 12px; color: #e3e7ff; }
.b-key span { display: inline-flex; align-items: center; gap: 6px; }
.b-key b { width: 16px; height: 8px; border-radius: 4px; background: #fff; }
.b-key b.solo { background: #ffffff33; }
.b-key b.hand { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.b-bignum { font-size: clamp(44px, 5vw, 68px); font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.b-needrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 14px 16px; }
.b-needrow + .b-needrow { margin-top: 8px; }
.b-needrow.urgent { background: var(--coral); }
.b-needrow strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.b-needrow span { display: block; font-size: 13px; color: #3a3a40; margin-top: 2px; }
.b-needrow i { font-style: normal; border-radius: 999px; background: var(--ink); color: #fff; padding: 9px 14px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* ---------- Article cards (home, guides index, read next) ---------- */
.b-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.b-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; text-decoration: none !important; color: var(--ink) !important; transition: transform .2s ease; min-width: 0; }
.b-card:hover { transform: translateY(-3px); }
.b-card-img { aspect-ratio: 16 / 10; background: var(--cobalt-2) center / cover no-repeat; margin: 8px 8px 0; border-radius: 22px; }
.b-card-img.ph { background: var(--cobalt-2); display: grid; place-items: center; }
.b-card-img.ph::after { content: "Atlas."; font: 700 34px/1 var(--sans); letter-spacing: -.05em; color: var(--cobalt); }
.b-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 22px; flex: 1; }
.b-card-title { font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.18; }
.b-card-ex { font-size: 14.5px; line-height: 1.5; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b-card-meta { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); font-weight: 500; }
.b-card-meta b { color: var(--ink); }

/* ---------- Article page ---------- */
.b-article-head { padding: 44px clamp(24px, 6vw, 72px) 40px; }
.b-article-head h1 { margin: 16px 0 0; font-size: clamp(38px, 5.4vw, 72px); line-height: .98; letter-spacing: -.05em !important; max-width: 980px; }
.b-article-ex { margin: 20px 0 0; font-size: 20px; line-height: 1.45; color: var(--mute); max-width: 720px; letter-spacing: -.01em; }
.b-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.b-article-meta .b-author { display: inline-flex; align-items: center; gap: 10px; margin-right: 8px; font-size: 14px; }
.b-article-meta .b-author img, .b-article-meta .b-author .av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--cobalt); color: #fff; display: grid; place-items: center; font-weight: 700; }
.b-article-meta .b-author a { color: var(--ink) !important; font-weight: 600; text-decoration: none !important; }
.b-article-meta .b-author small { display: block; color: var(--mute); font-size: 12.5px; }
.b-feature { margin: 14px 0 0; }
.b-feature img { display: block; width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r); }
.b-feature figcaption { font-size: 13px; color: var(--mute); padding: 10px 6px 0; }
.b-reading { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; margin-top: 14px; }
.b-body { padding: clamp(28px, 5vw, 64px) clamp(22px, 6vw, 80px); }
.b-aside { position: sticky; top: 104px; display: grid; gap: 14px; }
.b-aside .b-tile { padding: 24px; }
.b-share { display: flex; gap: 6px; flex-wrap: wrap; }
.b-share a, .b-share button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); cursor: pointer; }
.b-share a:hover, .b-share button:hover { background: var(--cobalt-2); }

/* Post content typography (Ghost cards included) */
.b-prose { font-size: 18.5px; line-height: 1.68; color: var(--ink-2); max-width: 700px; }
.b-prose > * + * { margin-top: 1.1em; }
.b-prose :is(h2, h3, h4) { color: var(--ink); line-height: 1.12; margin: 1.9em 0 .1em; }
.b-prose h2 { font-size: 32px; letter-spacing: -.035em !important; }
.b-prose h3 { font-size: 24px; }
.b-prose h4 { font-size: 19px; letter-spacing: -.015em !important; }
.b-prose a { color: var(--cobalt-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.b-prose strong { color: var(--ink); }
.b-prose :is(ul, ol) { padding-left: 1.3em; }
.b-prose li + li { margin-top: .45em; }
.b-prose li::marker { color: var(--cobalt); font-weight: 700; }
.b-prose blockquote:not(.kg-blockquote-alt) { margin-left: 0; margin-right: 0; padding: 22px 26px; background: var(--cobalt-2); border: 0; border-radius: 22px; color: var(--ink); font-size: 19px; font-style: normal; }
.b-prose blockquote.kg-blockquote-alt { border: 0; padding: 0; font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: -.03em; color: var(--ink); font-style: normal; text-align: left; }
.b-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.b-prose img { border-radius: 20px; }
.b-prose figcaption { font-size: 13px; color: var(--mute); text-align: center; margin-top: 8px; }
.b-prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.b-prose :is(th, td) { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.b-prose th { font-weight: 700; color: var(--ink); }
.b-prose code { background: var(--bg); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.b-prose .kg-callout-card { display: flex; gap: 12px; padding: 20px 22px; border-radius: 20px; background: var(--lime-2) !important; color: var(--ink); }
.b-prose .kg-callout-card-grey, .b-prose .kg-callout-card-white { background: var(--bg) !important; }
.b-prose .kg-callout-card-blue { background: var(--cobalt-2) !important; }
.b-prose .kg-callout-card-green { background: var(--mint) !important; }
.b-prose .kg-callout-card-yellow { background: var(--lime-2) !important; }
.b-prose .kg-callout-card-red, .b-prose .kg-callout-card-pink { background: var(--peach) !important; }
.b-prose .kg-callout-card-purple { background: #ece6ff !important; }
.b-prose .kg-callout-card-accent { background: var(--cobalt) !important; color: #fff; }
.b-prose .kg-button-card a.kg-btn, .b-prose .kg-btn-accent { border-radius: 999px !important; background: var(--ink) !important; color: #fff !important; text-decoration: none; font-weight: 600; }
.b-prose .kg-toggle-card { border: 0 !important; background: var(--bg); border-radius: 18px; }
.b-prose .kg-bookmark-container { border: 0 !important; background: var(--bg); border-radius: 20px; overflow: hidden; color: var(--ink); text-decoration: none; }
.b-prose .kg-width-wide, .b-prose .kg-width-full { max-width: none; }

/* The old theme's content CTA partial and dark toggles: hidden on bento */
#backToTop, .switch-mode-btn { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .b-links { display: none; }
  .b-menu { display: block; }
  .b-actions .b-hide-sm { display: none; }
  .b-reading { grid-template-columns: 1fr; }
  .b-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .b-s8, .b-s7, .b-s6, .b-s5 { grid-column: span 12; }
  .b-s4, .b-s3 { grid-column: span 6; }
  .b-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .b-wrap { padding: 0 12px; }
  .b-header { padding: 12px 12px 0; top: 8px; }
  .b-nav { padding: 6px 6px 6px 18px; gap: 8px; }
  .b-grid { gap: 10px; }
  .b-s4, .b-s3 { grid-column: span 12; }
  .b-tile { padding: 22px; border-radius: 24px; }
  .b-cards { grid-template-columns: 1fr; gap: 10px; }
  .b-count-n { font-size: 88px; }
  .b-foot-sub { grid-template-columns: 1fr; }
  .b-foot-cols { gap: 24px 16px; }
  .b-foot-tag { grid-column: 1 / -1; }
  .b-aside { grid-template-columns: 1fr; }
  .b-prose { font-size: 17.5px; }
  .b-prose h2 { font-size: 27px; }
  .b-article-head { padding: 28px 22px 26px; }
  .b-article-ex { font-size: 18px; }
  .b-actions .b-cta-label { display: none; }
  .b-strip { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Tool and info pages: the full-bleed dark hero becomes the cobalt signature tile ---------- */
html body :is(.ab-hero, .csa-hero, .faq-hero, .fp-hero, .nl-hero, .legal-hero, .adm-hero):not(#_) {
  background: var(--cobalt) !important; background-image: none !important;
  max-width: 1192px; margin: 0 auto 14px !important; width: calc(100% - 48px);
  border-radius: var(--r) !important; box-shadow: none !important; overflow: hidden;
}
html body :is(.ab-hero, .csa-hero, .faq-hero, .fp-hero, .nl-hero, .legal-hero, .adm-hero):not(#_)::before,
html body :is(.ab-hero, .csa-hero, .faq-hero, .fp-hero, .nl-hero, .legal-hero, .adm-hero):not(#_)::after { display: none !important; }
html body :is(.ab-hero-divider, .csa-hero-divider) { display: none !important; }
html body :is(.ab-hero, .csa-hero, .faq-hero, .fp-hero, .nl-hero, .legal-hero, .adm-hero):not(#_) :is(p, li, span, div) { color: #e3e7ff; }
@media (max-width: 720px) {
  html body :is(.ab-hero, .csa-hero, .faq-hero, .fp-hero, .nl-hero, .legal-hero, .adm-hero):not(#_) { width: calc(100% - 24px); border-radius: 24px !important; }
}

/* ---------- Phase colours: the same five as the app, everywhere a phase is picked or labelled ---------- */
html body :is(.phase-pill, .fp-pill).active[data-phase="waiting-room"] { background: var(--ph-waiting) !important; color: var(--ph-waiting-ink) !important; border-color: var(--ph-waiting) !important; }
html body :is(.phase-pill, .fp-pill).active:is([data-phase="survive"], [data-phase="crisis"]) { background: var(--ph-survive) !important; color: var(--ph-survive-ink) !important; border-color: var(--ph-survive) !important; }
html body :is(.phase-pill, .fp-pill).active[data-phase="stabilise"] { background: var(--ph-stabilise) !important; color: var(--ph-stabilise-ink) !important; border-color: var(--ph-stabilise) !important; }
html body :is(.phase-pill, .fp-pill).active[data-phase="rebuild"] { background: var(--ph-rebuild) !important; color: var(--ph-rebuild-ink) !important; border-color: var(--ph-rebuild) !important; }
html body :is(.phase-pill, .fp-pill).active[data-phase="new-chapter"] { background: var(--ph-newchapter) !important; color: var(--ph-newchapter-ink) !important; border-color: var(--ph-newchapter) !important; }
/* Phase tags as chips (guides, cards, articles) */
.b-chip:is(.ph-waiting-room, .ph-the-waiting-room) { background: var(--ph-waiting) !important; color: var(--ph-waiting-ink) !important; }
.b-chip:is(.ph-survive, .ph-01-survive) { background: var(--ph-survive) !important; color: var(--ph-survive-ink) !important; }
.b-chip:is(.ph-stabilise, .ph-02-stabilise) { background: var(--ph-stabilise) !important; color: var(--ph-stabilise-ink) !important; }
.b-chip:is(.ph-rebuild, .ph-03-rebuild) { background: var(--ph-rebuild) !important; color: var(--ph-rebuild-ink) !important; }
.b-chip:is(.ph-new-chapter, .ph-04-new-chapter) { background: var(--ph-newchapter) !important; color: var(--ph-newchapter-ink) !important; }

/* ---------- Headings on dark tiles stay white, whatever else on the site sets h1–h3 colour ---------- */
html body :is(.b-black, .b-cobalt) :is(h1, h2, h3, h4):not(#_):not(#_) { color: #fff !important; }
html body :is(.b-black, .b-cobalt) :is(h1, h2, h3) em:not(#_):not(#_) { color: inherit !important; opacity: .7; }
html body :is(.b-lime, .b-lilac, .b-mint, .b-peach, .b-soft) :is(h1, h2, h3, h4):not(#_):not(#_) { color: var(--ink) !important; }

/* ---------- "Read the user guide (free)" beside every Get Atlas button ---------- */
.b-guide { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; font-weight: 600; }
.b-guide a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: inherit !important; text-decoration: underline !important; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.b-guide a:hover { text-decoration-thickness: 2.5px; }
.b-guide.center { justify-content: center; }
.b-white-text .b-guide, .b-cobalt .b-guide, .b-black .b-guide { color: #fff; }
html body :is(.faq-footer-cta, .adm-cta-strip, .csa-cta-strip, .h-final, .ab-try) .b-guide:not(#_) { color: #fff !important; }
html body :is(.faq-footer-cta, .adm-cta-strip, .csa-cta-strip, .h-final, .ab-try) .b-guide a:not(#_) { color: #fff !important; }

/* ---------- Wordmark full stop (brand rule, 7 Oct 2026, same as the app's bento.css) ----------
   The full stop in "Atlas." is a SQUARE. Drawn here because system fonts disagree
   (SF Pro = round on Apple, Arial = square on Windows). The "." stays in the markup for
   copy/paste and screen readers; it's hidden inside the box. Set --stop to change the colour. */
html body :is(.b-brand, .b-foot-word, .ug-cover-word) b:not(#_) {
  display: inline-block; width: .18em; height: .18em; margin-left: .06em;
  background: var(--stop, var(--cobalt, #2743ff));
  color: transparent !important; overflow: hidden; vertical-align: baseline;
  line-height: 1; font-style: normal; letter-spacing: 0;
}
.ug-cover-word { --stop: var(--lime); }

/* Prose lists: bullets and numbers outside the text; cobalt markers come from .b-prose li::marker above (v2.0.21) */
.b-prose ul { list-style: disc outside; }
.b-prose ol { list-style: decimal outside; }
.b-prose ul ul { list-style: circle; }
