/* The app's tokens, verbatim from the design file. */
:root {
  --accent: #A24B2A; --accH: #8C3F22;
  --btnBg: #9E6247; --btnH: #8D5439; --btnSh: rgba(60, 42, 28, .22);
  --paper: #F7F2E5; --paper2: #EFE7D5; --card: #FCF9F0;
  --ink: #2E241B; --ink2: #6F5F4B; --mute: #9A8B75;
  --line: #DACEB8; --hair: #EAE0CB; --onAcc: #FBF7EC; --accSoft: #F6EBDF;
  --bezel: #CFC3AC; --notch: #221A13; --barBg: #FBF7EC;
  --yesBg: #EDF0E6; --yesFg: #4A5A32; --yesBd: #C9D3B4;
  /* Also from the design file: the switch/disabled track, the unconscious
     column, and the fill a defined centre takes. Omitting --track is what
     made the disabled call to action render with no background at all. */
  --track: #D8CDB8; --des: #7A6A4F; --desH: #5F5340; --fill: #EFDCCE;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

/* Any class that sets `display` out-specifies the UA rule for [hidden], which
   is how the calculating overlay ended up on screen at page load. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  font-family: "Newsreader", Georgia, serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:hover { color: var(--accH); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}

/* Buttons — one filled token for every call to action, as in the app. */
.btn {
  display: inline-grid; place-items: center;
  height: 56px; padding: 0 30px;
  border: none; border-radius: 14px;
  background: var(--btnBg); color: var(--onAcc);
  box-shadow: 0 1px 2px var(--btnSh);
  font-family: "Newsreader", Georgia, serif; font-size: 17px;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.btn:hover { background: var(--btnH); color: var(--onAcc); }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

/* Header */
.site-head {
  max-width: var(--wrap); margin: 0 auto; padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border: 1.5px solid var(--accent); border-radius: 50%;
  display: grid; place-items: center; flex: none;
}
.brand__mark i { width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); display: block; }
.brand__name { font-size: 19px; font-weight: 500; letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: 30px; }
/* :not(.btn) — otherwise this out-specifies .btn and paints the header's
   call to action brown-on-brown. */
.site-nav a:not(.btn) { text-decoration: none; font-size: 15.5px; color: var(--ink2); }
.site-nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 64px 32px 80px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center;
}
.hero h1 { font-size: 62px; font-weight: 400; line-height: 1.08; margin: 0; text-wrap: pretty; }
.hero p { font-size: 19px; line-height: 1.6; color: var(--ink2); margin: 22px 0 0; max-width: 480px; text-wrap: pretty; }
.hero__cta { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__note { font-size: 10.5px; letter-spacing: .06em; color: var(--mute); margin-top: 16px; }

/* The phone in the hero */
.device-col { display: flex; justify-content: center; }
.device {
  width: 300px; border: 10px solid var(--bezel); border-radius: 44px;
  background: var(--barBg); overflow: hidden; box-shadow: 0 24px 60px rgba(60, 42, 28, .18);
}
.device__notch { height: 30px; display: grid; place-items: center; }
.device__notch i { width: 86px; height: 20px; background: var(--notch); border-radius: 12px; display: block; }
.device__body { padding: 18px 20px 26px; }
.chip {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 8px; letter-spacing: .06em; padding: 4px 8px; border-radius: 20px;
}
.chip--lead { background: var(--accent); color: var(--onAcc); }
.chip--out { border: 1px solid var(--line); color: var(--ink2); }
.mini-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 14px; }

/* Stats strip */
.stats { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--paper2); }
.stats__grid {
  max-width: var(--wrap); margin: 0 auto; padding: 26px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; line-height: 1; font-weight: 400; }
.stat span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2);
  margin-top: 5px; display: block;
}

/* Sections */
section h2 { font-size: 40px; font-weight: 400; margin: 12px 0 0; line-height: 1.15; text-wrap: pretty; }
.section { max-width: var(--wrap); margin: 0 auto; padding: 88px 32px 40px; }
.section--tight { padding: 64px 32px; }
.section--last { padding: 64px 32px 88px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }

.card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 26px 28px; }
.card__k {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.card__t { font-size: 22px; margin-top: 8px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--ink2); margin: 8px 0 0; text-wrap: pretty; }

.step { border-top: 2px solid var(--accent); padding: 20px 4px 0; }
.step__n { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--accent); }
.step__t { font-size: 21px; margin-top: 8px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--ink2); margin: 8px 0 0; text-wrap: pretty; }

.lib-card {
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  padding: 24px 26px; display: block; transition: border-color .18s ease;
}
.lib-card:hover { border-color: var(--accent); color: var(--ink); }
.lib-card__n { font-size: 30px; line-height: 1; color: var(--accent); }
.lib-card__t { font-size: 21px; margin-top: 10px; }
.lib-card p { font-size: 15px; line-height: 1.55; color: var(--ink2); margin: 6px 0 0; }
.lib-card__go { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--accent); margin-top: 14px; }

/* Closing call to action */
.cta { background: var(--ink); }
.cta__inner { max-width: var(--wrap); margin: 0 auto; padding: 80px 32px; text-align: center; }
.cta h2 { font-size: 44px; color: var(--paper); margin: 0; }
.cta p { font-size: 17px; color: #C9BCA4; margin: 16px auto 0; max-width: 440px; line-height: 1.6; }
.cta .btn { margin-top: 30px; }

/* Footer */
.site-foot { border-top: 1px solid var(--hair); }
.site-foot__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-foot__c { font-size: 10.5px; letter-spacing: .06em; color: var(--mute); }
.site-foot__links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-foot__links a:not(.btn) { text-decoration: none; font-size: 14px; color: var(--ink2); }
.site-foot__links a:not(.btn):hover { color: var(--ink); }

/* ---- Library page ---- */
.lib-head { max-width: var(--wrap); margin: 0 auto; padding: 48px 32px 8px; }
.lib-head h1 { font-size: 46px; font-weight: 400; margin: 12px 0 0; line-height: 1.12; text-wrap: pretty; }
.lib-head p { font-size: 18px; line-height: 1.6; color: var(--ink2); margin: 16px 0 0; max-width: 620px; text-wrap: pretty; }
.lib-jump { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.lib-jump a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink2);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px;
  transition: border-color .18s ease, color .18s ease;
}
.lib-jump a:hover { border-color: var(--accent); color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
.tile {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 3px;
}
.tile b { font-size: 21px; font-weight: 400; line-height: 1; }
.tile span { font-size: 14px; line-height: 1.3; color: var(--ink); }
.tile i {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-style: normal;
  font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-top: 2px;
}

.rows { margin-top: 30px; border-top: 1px solid var(--hair); }
.row {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: baseline;
  padding: 14px 4px; border-bottom: 1px solid var(--hair);
}
.row__id { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; color: var(--accent); }
.row__name { font-size: 16.5px; }
.row__sub { font-size: 13px; color: var(--ink2); display: block; margin-top: 2px; }
.row__meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); text-align: right;
}

/* ---- Responsive. The design frame is desktop-only; most of the people
       who will read this are holding a phone. ---- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 44px 24px 64px; }
  .hero h1 { font-size: clamp(38px, 9vw, 56px); }
  .hero p { font-size: 17.5px; max-width: none; }
  .device-col { order: -1; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  section h2 { font-size: clamp(28px, 6.2vw, 40px); }
  .cta h2 { font-size: clamp(30px, 7vw, 44px); }
  .lib-head h1 { font-size: clamp(32px, 7.5vw, 46px); }
}

@media (max-width: 720px) {
  .wrap, .site-head, .hero, .section, .section--tight, .section--last,
  .stats__grid, .cta__inner, .site-foot__inner, .lib-head {
    padding-left: 20px; padding-right: 20px;
  }
  /* Keep the call to action; the section links live in the page below. */
  .site-nav a:not(.btn) { display: none; }
  .site-head { padding-top: 18px; padding-bottom: 18px; }
  .section { padding-top: 56px; }
  .section--tight, .section--last { padding-top: 48px; }
  .cta__inner { padding: 56px 20px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 22px 20px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .hero__cta .btn { width: 100%; }
  .row { grid-template-columns: 58px 1fr; }
  .row__meta { grid-column: 2; text-align: left; }
  .site-foot__inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- Chart page ---- */
.c-card {
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  padding: 26px 28px; max-width: 720px;
}
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.f-field--wide { grid-column: 1 / -1; }
.f-label {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2);
}
.f-label em { font-style: normal; opacity: .6; text-transform: none; letter-spacing: .04em; }
.f-input {
  font-family: "Newsreader", Georgia, serif; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; width: 100%; min-height: 48px;
}
.f-input:focus { outline: none; border-color: var(--accent); }
select.f-input { appearance: none; background-image: none; }
.f-note { font-size: 13.5px; line-height: 1.55; color: var(--ink2); margin: 18px 0 0; text-wrap: pretty; }
.f-error {
  margin-top: 16px; padding: 13px 15px; border-radius: 12px;
  border: 1px solid #B3401F; background: #FBEDE6; color: #8E3317;
  font-size: 14.5px; line-height: 1.5;
}
.f-go { margin-top: 20px; width: 100%; }
.f-go:disabled { opacity: .55; cursor: default; }

.c-result { max-width: 780px; margin: 0 auto; }
.c-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.c-name { font-size: 34px; font-weight: 400; margin: 0; line-height: 1.15; }
.c-moment { font-size: 11px; color: var(--ink2); margin-top: 6px; }
.c-again {
  border: 1px solid var(--line); background: transparent; color: var(--ink2);
  border-radius: 999px; padding: 9px 16px; font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.c-again:hover { border-color: var(--accent); color: var(--accent); }

.c-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.c-chip {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink2);
}
.c-chip--lead { background: var(--accent); border-color: var(--accent); color: var(--onAcc); }

/* The design's chart screen: the two activation columns flank the graph.
   Design on the left is the body you did not choose; Personality on the
   right is the one you are aware of. */
.c-graph { margin: 28px 0 0; overflow: hidden; }

.a-col { flex: none; width: 62px; display: flex; flex-direction: column; gap: 4px; }
.a-col__k {
  font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink2); margin-bottom: 3px; text-align: center;
}
.a-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  border-radius: 7px; padding: 5px 6px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; line-height: 1;
  color: var(--onAcc);
}
.a-pill i { font-style: normal; font-size: 9px; opacity: .85; }
.a-pill b { font-weight: 400; }
.a-pill--des { background: var(--des); }
.a-pill--per { background: var(--accent); }
.c-legend {
  display: flex; gap: 18px; justify-content: center; margin-top: 10px;
  font-size: 10px; color: var(--ink2);
}
.c-legend span { display: inline-flex; align-items: center; gap: 6px; }
.c-sw { width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--line); background: var(--card); display: inline-block; }
.c-sw.is-on { border-color: var(--accent); background: #EFDCCE; }
.c-sw--des { background: var(--des); border-color: var(--des); }
.c-sw--per { background: var(--accent); border-color: var(--accent); }

.c-lede {
  font-size: 19px; line-height: 1.6; margin: 30px 0 0; text-wrap: pretty;
  padding-left: 16px; border-left: 2px solid var(--accent);
}
.c-lede b { font-weight: 500; }

.c-sec { margin-top: 38px; }
.c-sec h3 { font-size: 26px; font-weight: 400; margin: 10px 0 0; line-height: 1.2; }
.c-rows { margin-top: 18px; border-top: 1px solid var(--hair); }
.c-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 4px; border-bottom: 1px solid var(--hair);
}
.c-diamond {
  flex: none; width: 13px; height: 13px; transform: rotate(45deg);
  border: 1px solid var(--line); background: transparent;
}
.c-diamond.is-on { border-color: var(--accent); background: var(--accent); }
.c-row__id { flex: none; width: 62px; font-size: 13px; color: var(--accent); }
.c-row__main { flex: 1; min-width: 0; }
.c-row__name { display: block; font-size: 16.5px; line-height: 1.25; }
.c-row__sub { display: block; font-size: 10px; color: var(--mute); margin-top: 3px; }
.c-row__state { flex: none; font-size: 12.5px; color: var(--ink2); opacity: .7; text-align: right; }
.c-row__state.is-on { color: var(--accent); opacity: 1; }
.c-empty { font-size: 15px; line-height: 1.6; color: var(--ink2); margin: 6px 0 0; text-wrap: pretty; }

.c-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 18px; }
.c-tile {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 3px;
}
.c-tile b { font-size: 20px; font-weight: 400; line-height: 1; color: var(--accent); }
.c-tile span { font-size: 13.5px; line-height: 1.3; }

.c-cross {
  margin-top: 34px; border: 1px solid var(--accent); border-radius: 16px;
  background: var(--accSoft); padding: 22px 24px;
}
.c-cross__name { font-size: 21px; line-height: 1.3; margin-top: 8px; }
.c-cross__gates { font-size: 11px; color: var(--ink2); margin-top: 6px; }

.c-share { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .c-card { padding: 20px 18px; }
  .f-grid { grid-template-columns: 1fr; }
  .c-tiles { grid-template-columns: repeat(2, 1fr); }
  .c-hero { gap: 5px; margin-top: 22px; }
  .a-col { width: 54px; }
  /* "PERSONALITY" does not fit a 48px column at desktop tracking. */
  .a-col__k { font-size: 6.5px; letter-spacing: .02em; }
  .a-pill { font-size: 8.5px; padding: 4px 4px; border-radius: 6px; }
  .a-pill i { font-size: 7.5px; }
  .c-lede { font-size: 17px; padding-left: 13px; }
  .c-legend { flex-wrap: wrap; gap: 12px; }
  .c-name { font-size: 27px; }
  .c-share .btn { width: 100%; }
}

/* ---- Create chart (design: Create Chart.dc.html) ---- */
.cc-wrap {
  max-width: var(--wrap); margin: 0 auto; padding: 36px 32px 96px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start;
}
.cc-h1 { font-size: 44px; font-weight: 400; line-height: 1.1; margin: 12px 0 0; text-wrap: pretty; }
.cc-lede { font-size: 17px; line-height: 1.6; color: var(--ink2); margin: 14px 0 0; max-width: 52ch; text-wrap: pretty; }

.cc-card {
  border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  padding: 30px 32px; margin-top: 32px;
}
.cc-field { display: block; }
.cc-field .f-input { margin-top: 8px; }
.cc-rule { height: 1px; background: var(--hair); margin: 26px 0; }
.cc-rule--wide { margin: 28px 0 24px; }

.cc-date { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px; margin-top: 8px; }
.f-input--mid { text-align: center; }
.cc-timehead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 26px; }
.cc-time { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; max-width: 260px; }

.cc-toggle {
  display: flex; align-items: center; gap: 9px; border: none; background: none;
  padding: 4px 0; cursor: pointer; font-family: "IBM Plex Mono", monospace;
  font-size: 11px; color: var(--ink2);
}
.cc-sw {
  width: 36px; height: 20px; border-radius: 20px; background: var(--track);
  border: 1px solid var(--line);
  position: relative; display: inline-block; transition: background .18s ease; flex: none;
}
.cc-sw i {
  position: absolute; top: 1px; left: 1px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--onAcc);
  box-shadow: 0 1px 2px rgba(60, 42, 28, .25);
  transition: left .18s ease; display: block;
}
.cc-toggle.is-on .cc-sw { border-color: var(--accent); }
.cc-toggle.is-on .cc-sw { background: var(--accent); }
.cc-toggle.is-on .cc-sw i { left: 17px; }

.cc-approx {
  border: 1px solid var(--line); border-radius: 12px; background: var(--accSoft);
  padding: 16px 18px; margin-top: 10px;
}
.cc-approx p { font-size: 15px; line-height: 1.55; color: var(--ink2); margin: 6px 0 0; text-wrap: pretty; }

.cc-place { margin-top: 26px; position: relative; }
.cc-place .f-input { margin-top: 8px; }
.cc-note { font-size: 14px; color: var(--mute); margin-top: 8px; }
.cc-sug {
  position: absolute; left: 0; right: 0; top: 88px; z-index: 5;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  box-shadow: 0 12px 30px rgba(60, 42, 28, .14); overflow: hidden;
}
.cc-sug__row {
  display: flex; width: 100%; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 13px 16px; border: none; border-bottom: 1px solid var(--hair);
  background: none; cursor: pointer; text-align: left; font-family: inherit;
}
.cc-sug__row:last-child { border-bottom: none; }
.cc-sug__row:hover { background: var(--accSoft); }
.cc-sug__city { font-size: 16px; color: var(--ink); }
.cc-sug__meta { font-size: 10.5px; color: var(--mute); }

.cc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cc-chip {
  font-size: 10.5px; letter-spacing: .06em; padding: 6px 11px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--ink2);
}

.cc-go { width: 100%; height: 58px; font-size: 17.5px; }
/* The design keeps --onAcc on the disabled fill, which is near-white on beige
   and unreadable. The label still has to be legible while it is telling you
   what is missing. */
.cc-go:disabled {
  background: var(--track); color: var(--ink2);
  box-shadow: none; cursor: not-allowed;
}
.cc-hint { font-size: 10.5px; letter-spacing: .06em; color: var(--mute); margin-top: 14px; text-align: center; }

.cc-aside { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 14px; }
.cc-side { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 22px 26px; }
.cc-side--lead { background: var(--paper2); padding: 24px 26px; }
.cc-side p { font-size: 14.5px; line-height: 1.6; color: var(--ink2); margin: 8px 0 0; text-wrap: pretty; }
.kicker--quiet { color: var(--ink2); font-size: 10px; }
.cc-side__link { font-size: 11px; text-decoration: none; display: inline-block; margin-top: 12px; }
.cc-perks { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.cc-perk { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.cc-perk__d { width: 8px; height: 8px; margin-top: 8px; background: var(--accent); transform: rotate(45deg); }
.cc-perk__t { font-size: 16.5px; }
.cc-perk__b { font-size: 14.5px; line-height: 1.5; color: var(--ink2); }

.cc-overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(46, 36, 27, .72);
  display: grid; place-items: center; padding: 32px;
}
.cc-modal {
  width: min(460px, 100%); border: 1px solid var(--line); border-radius: 22px;
  background: var(--card); padding: 34px 36px; box-shadow: 0 30px 80px rgba(30, 22, 14, .4);
}
.cc-modal__head { display: flex; align-items: center; gap: 14px; }
.cc-modal__t { font-size: 23px; }
.cc-spin {
  width: 26px; height: 26px; border: 2px solid var(--track); border-top-color: var(--accent);
  border-radius: 50%; animation: cc-spin 1s linear infinite; flex: none;
}
@keyframes cc-spin { to { transform: rotate(360deg); } }
.cc-steps { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.cc-step { display: flex; align-items: center; gap: 11px; }
.cc-step__m {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--track);
  background: transparent; display: grid; place-items: center; flex: none;
  font-family: "IBM Plex Mono", monospace; font-size: 9px; color: var(--onAcc);
}
.cc-step__t { font-size: 16px; color: var(--mute); }
.cc-step.is-on .cc-step__m { border-color: var(--accent); background: var(--accent); }
.cc-step.is-on .cc-step__m::after { content: "✓"; }
.cc-step.is-on .cc-step__t { color: var(--ink); }
.cc-modal__foot { font-size: 10.5px; letter-spacing: .06em; color: var(--mute); margin-top: 24px; text-align: center; }
.cc-see { width: 100%; height: 54px; }

.c-approx {
  margin-top: 16px; padding: 11px 14px; border-radius: 12px;
  background: var(--accSoft); border: 1px solid var(--line);
  font-size: 11px; line-height: 1.55; color: var(--ink2);
}

@media (max-width: 980px) {
  .cc-wrap { grid-template-columns: 1fr; gap: 34px; padding: 28px 24px 72px; }
  .cc-aside { position: static; }
  .cc-h1 { font-size: clamp(30px, 7vw, 44px); }
}
@media (max-width: 720px) {
  .cc-wrap { padding: 22px 20px 64px; }
  .cc-card { padding: 22px 20px; border-radius: 16px; }
  .cc-side, .cc-side--lead { padding: 20px 20px; }
  .cc-modal { padding: 26px 22px; }
  .cc-time { max-width: none; }
}

/* ---- Detail sheet ---- */
.sh-scrim {
  position: fixed; inset: 0; z-index: 50; background: rgba(46, 36, 27, .55);
  display: grid; place-items: end center; padding: 0;
}
.sh-card {
  position: relative; width: min(640px, 100%);
  max-height: 82vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px 22px 0 0; padding: 30px 32px 36px;
  box-shadow: 0 -20px 60px rgba(30, 22, 14, .3);
}
.sh-x {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink2); font-size: 14px; line-height: 1; cursor: pointer;
}
.sh-x:hover { border-color: var(--accent); color: var(--accent); }
.sh-t { font-size: 26px; font-weight: 400; margin: 10px 0 0; line-height: 1.2; padding-right: 40px; }
.sh-b { margin-top: 14px; }
.sh-b p { font-size: 16px; line-height: 1.65; color: var(--ink2); margin: 0 0 12px; text-wrap: pretty; }
.sh-b p:last-child { margin-bottom: 0; }
.sh-wait { font-style: italic; opacity: .7; }

/* Anything that opens a reading says so. */
.is-tappable { cursor: pointer; }
.c-row.is-tappable:hover { background: var(--accSoft); }
.c-tile.is-tappable:hover { border-color: var(--accent); }
#graph g[id$="_Center"], #graph g[id^="Channel"] { cursor: pointer; }

@media (min-width: 721px) {
  .sh-scrim { place-items: center; padding: 32px; }
  .sh-card { border-radius: 22px; box-shadow: 0 30px 80px rgba(30, 22, 14, .4); }
}
@media (max-width: 720px) {
  .sh-card { padding: 24px 20px 30px; }
  .sh-t { font-size: 22px; }
}
