/* ds.planjolly.com — built entirely from PlanJolly's own tokens (tokens.css).
   No-Line rule throughout: separation by shadow and tonal shift, never strokes.
   The single sanctioned stroke is the ghost border (primary at 20–30%). */

/* ── Fonts (self-hosted, same set as planjolly.com) ─────────────────────── */
@font-face { font-family: 'Noto Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/NotoSerif-700.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/NotoSerif-Italic-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Manrope-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Manrope-700.woff2') format('woff2'); }

/* ── Base ───────────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-os);
  font: 400 15px/24px 'Manrope';
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* nothing may pan the page sideways on mobile */
}
a { color: var(--c-pri); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  background: var(--c-sl);
  padding: 1px 6px;
  border-radius: var(--r-xs);
}

/* ── Shell: persistent left nav + content ───────────────────────────────── */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; align-self: flex-start;
  width: 248px; flex: none;
  height: 100vh; overflow-y: auto;
  padding: var(--sp-3xl) var(--sp-xxl);
  background: var(--c-sl);                 /* tonal shift, not a border */
  box-shadow: 4px 0 20px rgba(26, 28, 28, 0.03);
}
.sidebar-logo { display: block; margin-bottom: var(--sp-xs); }
.sidebar-logo img { height: 30px; width: auto; }
.sidebar-sub {
  font: 500 11px/16px 'Manrope'; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--c-warm-display);
  margin: var(--sp-sm) 0 var(--sp-3xl);
}
.nav-kicker {
  font: 500 11px/16px 'Manrope'; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--c-osv);
  margin: var(--sp-xxl) 0 var(--sp-sm);
}
.nav-list { list-style: none; }
.nav-link {
  display: block;
  font: 500 14px/20px 'Manrope';
  color: var(--c-osv);
  padding: 9px 14px;
  border-radius: var(--r-pill);
  margin: 2px 0;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.75); text-decoration: none; }
.nav-link.is-active {
  background: var(--c-s0);
  color: var(--c-pri);
  font-weight: 700;
  box-shadow: var(--shadow-card-sm);       /* active = fill + shadow, no stroke */
}
.sidebar-foot {
  margin-top: var(--sp-4xl);
  font: 500 11px/16px 'Manrope'; letter-spacing: 0.4px;
  color: var(--c-osv); opacity: 0.7;
}

.content { flex: 1; min-width: 0; padding: 56px 64px 40px; }
.content > * { max-width: 880px; }

/* ── Page furniture ─────────────────────────────────────────────────────── */
.kicker {
  font: 500 11px/16px 'Manrope'; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--c-warm-display);
  margin-bottom: var(--sp-md);
}
/* Heading rhythm (4pt grid): page title 20 above its lede; section titles get
   24 of air below, pulled back to 12 when a lede follows so title + lede read
   as one unit with 24 before the content. */
.page-title { color: var(--c-pri); margin-bottom: var(--sp-xl); }
.page-lede { color: var(--c-osv); font-size: 16px; line-height: 26px; max-width: 62ch; margin-bottom: var(--sp-lg); }
.page-section { margin-top: var(--sp-4xl); }
.section-title { color: var(--c-pri); margin-bottom: var(--sp-xxl); }
.section-title + .section-lede { margin-top: calc(-1 * var(--sp-md)); }
.section-lede { color: var(--c-osv); max-width: 62ch; margin-bottom: var(--sp-xxl); }
.card h3 { margin-bottom: var(--sp-sm); }
em, .accent-italic { font: italic 500 1em 'Noto Serif'; color: var(--c-editorial-accent); }

.card {
  background: var(--c-s0);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: var(--sp-xxl);
}

/* ── Swatches ───────────────────────────────────────────────────────────── */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-lg);
}
.swatch {
  background: var(--c-s0);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: var(--sp-md);
}
.swatch-chip {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-md);
  transition: transform 0.15s ease;
}
.swatch-chip:hover { transform: scale(1.03); }
.swatch-chip-ghost { box-shadow: inset 0 0 0 1px rgba(27, 59, 90, 0.22); } /* ghost border */
.swatch-name { font: 600 13px/20px 'Manrope'; }
.swatch-hex { font: 500 12px/16px 'Manrope'; letter-spacing: 0.4px; color: var(--c-osv); }
.swatch-hex button { padding: 0; letter-spacing: 0.4px; }
.swatch-note { display: block; margin-top: 2px; opacity: 0.8; }
[data-copy] { position: relative; }
[data-copy].copied::after {
  content: 'copied';
  position: absolute; inset: auto auto 100% 0;
  background: var(--c-pri); color: #fff;
  font: 500 11px/16px 'Manrope'; letter-spacing: 0.4px;
  padding: 2px 8px; border-radius: var(--r-pill);
  margin-bottom: 4px;
}

/* ── Chips, pills, badges ───────────────────────────────────────────────── */
.chip {
  display: inline-block;
  font: 500 11px/16px 'Manrope'; letter-spacing: 2.2px; text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge {
  display: inline-block;
  font: 500 11px/16px 'Manrope'; letter-spacing: 0.4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge-aaa { background: var(--c-ok-bg); color: var(--c-ok); }
.badge-aa { background: var(--c-sec-cont); color: var(--c-warm-display); }
.badge-large { background: var(--c-warn-bg); color: var(--c-warn); }
.status-pill {
  display: inline-block;
  font: 700 11px/16px 'Manrope'; letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

/* ── Buttons (live component demo) ──────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--grad-primary);
  color: #fff;
  font: 700 14px/20px 'Manrope'; letter-spacing: 0.2px;
  padding: 14px 32px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-cta-lift);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
.btn-disabled {
  display: inline-block;
  background: var(--c-sh); color: var(--c-osv);
  font: 700 14px/20px 'Manrope'; letter-spacing: 0.2px;
  padding: 14px 32px; border-radius: var(--r-pill);
}

/* ── Tables (no-line: banded rows, no rules) ────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  font: 500 11px/16px 'Manrope'; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--c-osv); text-align: left;
  padding: var(--sp-sm) var(--sp-md);
}
.tbl td { padding: var(--sp-md); font-size: 14px; line-height: 22px; vertical-align: middle; }
.tbl tbody tr:nth-child(odd) td { background: var(--c-bg); }
.tbl tbody tr td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.tbl tbody tr td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ── Type specimens ─────────────────────────────────────────────────────── */
.specimen { padding: var(--sp-xxl) 0; }
.specimen + .specimen { box-shadow: 0 -14px 12px -14px rgba(26, 28, 28, 0.09); } /* shadow, not rule */
.specimen-sample { color: var(--c-os); overflow-wrap: break-word; }
.specimen-sample.serif-navy { color: var(--c-pri); }
.specimen-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-xs) var(--sp-xl);
  margin-top: var(--sp-md);
  font: 500 12px/16px 'Manrope'; letter-spacing: 0.4px; color: var(--c-osv);
}
.specimen-meta strong { font-weight: 700; color: var(--c-os); }

/* ── Spacing / radius demos ─────────────────────────────────────────────── */
.space-row { display: flex; align-items: center; gap: var(--sp-lg); padding: var(--sp-sm) 0; }
.space-label { width: 72px; font: 500 12px/16px 'Manrope'; letter-spacing: 0.4px; color: var(--c-osv); }
.space-px { width: 48px; font: 600 13px/20px 'Manrope'; }
.space-bar { height: 14px; border-radius: 4px; background: var(--grad-primary); }
.radius-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--sp-lg); }
.radius-tile {
  background: var(--c-s0); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: var(--sp-lg); text-align: center;
}
.radius-shape {
  height: 88px; margin-bottom: var(--sp-md);
  background: var(--c-sec-cont);
  box-shadow: inset 0 0 0 1px rgba(27, 59, 90, 0.14);
}
.radius-name { font: 600 13px/20px 'Manrope'; }
.radius-val { font: 500 12px/16px 'Manrope'; letter-spacing: 0.4px; color: var(--c-osv); }

/* ── Elevation demos ────────────────────────────────────────────────────── */
.elev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp-3xl) var(--sp-xxl); }
.elev-card { background: var(--c-s0); border-radius: var(--r-xl); padding: var(--sp-xxl); }
.elev-name { font: 600 15px/24px 'Manrope'; margin-bottom: var(--sp-xs); }
.elev-meta { font: 500 12px/18px 'Manrope'; letter-spacing: 0.4px; color: var(--c-osv); }
.fab-demo {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: var(--shadow-fab);
  display: grid; place-items: center;
  color: #fff; font: 400 26px/1 'Manrope';
  border: 3px solid var(--c-bg);
}
.ghost-input {
  background: var(--c-s0);
  border: 1px solid rgba(27, 59, 90, 0.26);   /* the ghost border itself */
  border-radius: var(--r-md);
  padding: 14px 16px;
  font: 400 15px/24px 'Manrope'; color: var(--c-osv);
  max-width: 340px;
}

/* ── Motifs / brand ─────────────────────────────────────────────────────── */
.motif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-lg); }
.motif-tile {
  background: var(--c-s0); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: var(--sp-xxl);
  display: grid; place-items: center; gap: var(--sp-md);
}
.motif-tile img { height: 56px; width: auto; }
.motif-tile figcaption { font: 500 12px/16px 'Manrope'; letter-spacing: 0.4px; color: var(--c-osv); }
.logo-tile { display: grid; place-items: center; gap: var(--sp-lg); padding: var(--sp-4xl) var(--sp-xxl); }
.logo-tile.on-navy { background: var(--grad-hero); }
.logo-tile figcaption { font: 500 12px/16px 'Manrope'; letter-spacing: 0.4px; color: var(--c-osv); }
.logo-tile.on-navy figcaption { color: rgba(255, 255, 255, 0.75); }
.divider-strip { margin: var(--sp-xxl) 0; }
.divider-strip img { width: 100%; height: auto; }

/* ── Do / don't pairs (voice) ───────────────────────────────────────────── */
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
.pair { border-radius: var(--r-lg); padding: var(--sp-xl); }
.pair-do { background: var(--c-ok-bg); }
.pair-dont { background: var(--c-err-bg); }
.pair-tag { font: 500 11px/16px 'Manrope'; letter-spacing: 2.2px; text-transform: uppercase; margin-bottom: var(--sp-sm); }
.pair-do .pair-tag { color: var(--c-ok); }
.pair-dont .pair-tag { color: var(--c-err); }
.pair q { quotes: '\201C' '\201D'; }
.pair-note { margin-top: var(--sp-md); font-size: 13px; line-height: 20px; color: var(--c-osv); }
.voice-rule-title { font: 600 15px/24px 'Manrope'; margin-top: var(--sp-3xl); }
.never-words { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-lg); }
.never-word {
  font: 500 12px/16px 'Manrope'; letter-spacing: 0.4px;
  color: var(--c-err); background: var(--c-err-bg);
  padding: 4px 12px; border-radius: var(--r-pill);
  text-decoration: line-through;
}

/* ── Home hero ──────────────────────────────────────────────────────────── */
.hero {
  background: var(--grad-bg-warm);
  border-radius: var(--r-xxl);
  box-shadow: var(--shadow-card-lg);
  padding: var(--sp-4xl);
  display: flex; align-items: center; gap: var(--sp-3xl);
  overflow: hidden;
}
.hero-copy { flex: 1; }
.hero-mascot { width: 190px; flex: none; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-lg); }
.home-card { display: block; }
.home-card:hover { text-decoration: none; box-shadow: var(--shadow-card-lg); }
.home-card h3 { color: var(--c-pri); }
.home-card p { color: var(--c-osv); font-size: 14px; line-height: 22px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { margin-top: 96px; text-align: center; color: var(--c-osv); font-size: 13px; line-height: 20px; }
.footer-divider { max-width: min(420px, 100%); margin: 0 auto var(--sp-xl); opacity: 0.9; }
.footer p { max-width: 56ch; margin: 0 auto var(--sp-sm); }

/* ── Progressive reveal (JS-gated: no JS or reduced motion = always visible) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-init { opacity: 0; transform: translateY(16px); }
  .reveal-in { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
.mobile-bar { display: none; }
.nav-toggle { display: none; }
.nav-backdrop { display: none; }
.sidebar-close { display: none; }
@media (max-width: 900px) {
  .mobile-bar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--sp-md) var(--sp-xl);
    background: var(--c-bg);
    box-shadow: var(--shadow-card-sm);
  }
  .mobile-menu { display: grid; gap: 4px; padding: var(--sp-sm); cursor: pointer; }
  .mobile-menu span { width: 20px; height: 2px; border-radius: 2px; background: var(--c-pri); }
  .shell { display: block; }
  .sidebar {
    position: fixed; inset: 0 30% 0 0; z-index: 40;
    width: auto; height: 100%;
    transform: translateX(-102%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-modal);
  }
  .nav-toggle:checked ~ .shell .sidebar { transform: none; }
  /* tap outside to close */
  .nav-backdrop {
    display: block;
    position: fixed; inset: 0; z-index: 35;
    background: rgba(26, 28, 28, 0.35);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .nav-toggle:checked ~ .nav-backdrop { opacity: 1; pointer-events: auto; }
  /* explicit close, top-right of the flyout */
  .sidebar-close {
    display: grid; place-items: center;
    position: absolute; top: var(--sp-lg); right: var(--sp-lg);
    width: 36px; height: 36px;
    border-radius: var(--r-pill);
    background: var(--c-s0);
    box-shadow: var(--shadow-card-sm);
    color: var(--c-pri); font-size: 22px; line-height: 1;
    cursor: pointer;
  }
  .content { padding: var(--sp-3xl) var(--sp-xl) var(--sp-3xl); }
  .hero { flex-direction: column; padding: var(--sp-3xl); }
  .pair-grid { grid-template-columns: 1fr; }
  .t-display { font-size: 30px; line-height: 40px; }
}
