/* Live Twice — Poster System (internal tool)
   Follows Branding/BRAND_SPEC.md: clean, light, monochrome, bold big type.
   Ink #0A0A0A · paper #F5F4F1 · rules #E7E6E1 · muted #6F6F6C · accent #e90053.
   Deliberately NO boxed cards and NO pills — the spec lists both under "Never".
   Hierarchy is carried by type scale and horizontal rules instead. */

:root {
  --ink: #0A0A0A;
  --paper: #F5F4F1;
  --white: #FFFFFF;
  --rule: #E7E6E1;
  --muted: #6F6F6C;
  --faint: #9A9A96;
  --accent: #e90053;
  --max: 860px;
  --nav: 232px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Clash Display', 'General Sans', -apple-system, Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

/* ---------- layout ---------- */

.shell { display: flex; min-height: 100vh; }

nav {
  width: var(--nav);
  flex: 0 0 var(--nav);
  border-right: 1px solid var(--rule);
  padding: 28px 0 40px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--paper);
}

.brand { padding: 0 24px 26px; }
.brand img { display: block; width: 34px; height: 34px; }
.brand .sys {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.brand .who { font-size: 13px; color: var(--muted); margin-top: 2px; }

.navgroup {
  padding: 16px 24px 6px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  padding: 7px 24px;
  font: inherit;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
}
nav button:hover { color: var(--ink); }
nav button[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--accent);
}

main { flex: 1; min-width: 0; padding: 44px 40px 100px; }
.wrap { max-width: var(--max); }

/* ---------- type ---------- */

.kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: 25px; margin: 46px 0 6px; }
h3 { font-size: 18px; margin: 30px 0 4px; }

.lede { font-size: 19px; color: var(--muted); margin: 14px 0 0; max-width: 62ch; }
p { max-width: 68ch; }
.sub { color: var(--muted); font-size: 14.5px; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 26px 0;
}

.rule-h2 { border-top: 1.5px solid var(--ink); margin: 52px 0 0; padding-top: 14px; }
.rule-h2 h2 { margin-top: 0; }

/* ---------- step lists (the core VA pattern) ---------- */

ol.steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: s; }
ol.steps > li {
  counter-increment: s;
  position: relative;
  padding: 16px 0 16px 48px;
  border-top: 1px solid var(--rule);
}
ol.steps > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: 'Clash Display', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--accent);
  width: 34px;
}
ol.steps > li:last-child { border-bottom: 1px solid var(--rule); }
ol.steps b { font-weight: 600; }
ol.steps .why { display: block; color: var(--muted); font-size: 14.5px; margin-top: 3px; }

/* checkable daily tasks */
.task {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
}
.task:last-of-type { border-bottom: 1px solid var(--rule); }
.task input { margin: 4px 0 0; width: 17px; height: 17px; accent-color: var(--accent); flex: 0 0 auto; }
.task .t { font-weight: 600; }
.task .d { color: var(--muted); font-size: 14.5px; display: block; margin-top: 2px; }
.task.done .t { text-decoration: line-through; color: var(--faint); }

/* ---------- timeline ---------- */

.day {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  padding: 15px 0;
  border-top: 1px solid var(--rule);
}
.day:last-child { border-bottom: 1px solid var(--rule); }
.day .n { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 16px; }
.day .n span { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-family: 'General Sans', sans-serif; font-weight: 500; margin-top: 2px; }
.day.now { background: var(--white); margin: 0 -18px; padding: 15px 18px; }
.day.now .n { color: var(--accent); }
.day p { margin: 0; }
.day .no { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* ---------- stat row (type only, no boxes) ---------- */

.stats { display: flex; flex-wrap: wrap; gap: 48px; margin: 26px 0 0; }
.stat .v { font-family: 'Clash Display', sans-serif; font-size: 40px; font-weight: 600; line-height: 1; }
.stat .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 7px; }

/* ---------- do / don't ---------- */

.dd { border-top: 1px solid var(--rule); padding: 13px 0 13px 30px; position: relative; }
.dd:last-child { border-bottom: 1px solid var(--rule); }
.dd::before { position: absolute; left: 0; top: 13px; font-weight: 700; font-size: 15px; }
.dd.yes::before { content: '✓'; color: #11823b; }
.dd.no::before { content: '✕'; color: var(--accent); }
.dd .d { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* ---------- table ---------- */

.tw { overflow-x: auto; margin-top: 18px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
th, td { text-align: left; padding: 11px 16px 11px 0; border-top: 1px solid var(--rule); vertical-align: top; }
th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; border-top: 0; }
tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
td b { font-weight: 600; }

/* ---------- callout (rule, not a box) ---------- */

.note {
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 18px;
  margin: 24px 0;
}
.note .h { font-weight: 600; }
.note p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.meta { font-size: 12.5px; color: var(--faint); margin-top: 60px; padding-top: 14px; border-top: 1px solid var(--rule); }

.view { display: none; }
.view.on { display: block; }

/* ---------- mobile: VAs work from a phone ---------- */

@media (max-width: 760px) {
  .shell { display: block; }
  nav {
    width: auto; flex: none; height: auto; position: static;
    border-right: 0; border-bottom: 1px solid var(--rule);
    padding: 18px 0 10px;
    display: flex; gap: 0; overflow-x: auto; white-space: nowrap;
  }
  .brand, .navgroup { display: none; }
  nav button {
    width: auto; border-left: 0; border-bottom: 2px solid transparent;
    padding: 8px 16px; font-size: 14.5px;
  }
  nav button[aria-current="true"] { border-bottom-color: var(--accent); }
  main { padding: 28px 18px 80px; }
  .day { grid-template-columns: 1fr; gap: 4px; }
  .day.now { margin: 0 -12px; padding: 15px 12px; }
  .stats { gap: 30px; }
  .stat .v { font-size: 32px; }
}

/* ---------- Today screen (account-driven) ---------- */

.acct-head { margin: 10px 0 8px; }
.acct-handle {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(32px, 5.5vw, 46px); line-height: 1.05;
}
.acct-meta { font-size: 17px; color: var(--muted); margin-top: 8px; }
.acct-meta b { color: var(--ink); }
.acct-band { font-size: 16px; margin-top: 10px; font-weight: 600; }

button.finish {
  font: inherit; font-weight: 600; font-size: 16px;
  background: var(--ink); color: var(--paper); border: 0;
  padding: 15px 30px; border-radius: 2px; cursor: pointer;
}
button.finish:disabled { background: var(--faint); cursor: not-allowed; }
.whyblocked { margin-top: 10px; font-size: 14.5px; color: var(--accent); }

/* ---------- day strip: the whole day at a glance, built for 4 accounts ---------- */

.daystrip {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 6px 0 30px;
}
.chip {
  font: inherit; text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--rule);
  border-left: 3px solid var(--faint);
  padding: 10px 14px; border-radius: 2px; min-width: 150px;
}
.chip .ch { display: block; font-weight: 600; font-size: 14.5px; }
.chip .cm { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.chip .cs { display: block; font-size: 11px; letter-spacing: .1em;
            text-transform: uppercase; color: var(--faint); margin-top: 5px; }
.chip.chipnow { border-left-color: var(--accent); }
.chip.chipnow .cs { color: var(--accent); }
.chip.chipdone { border-left-color: #11823b; opacity: .62; }
.chip.chipdone .cs { color: #11823b; }

@media (max-width: 760px) {
  .daystrip { gap: 8px; }
  .chip { min-width: 0; flex: 1 1 calc(50% - 8px); padding: 9px 11px; }
}
