/* The look (docs/design.md): the tokens and the components every page built in the look shares (today.html first).
   Loaded after css/theme.css. The older pages keep their own classes and take the type, the icons and the buttons
   from css/style.css and css/theme.css; the rest comes to them page by page.
   Classes: .g-card .g-eyebrow .g-who .g-face .g-btn .g-quiet .g-ib .g-chip .g-link .g-star .g-ring .g-pill .g-switch
   .g-bar .g-tabs .g-door .g-sheet .g-toast .g-big (the icons, .g-icon, are in css/style.css: every page has them) */
:root {
  --g-page: #f7f5ff; --g-ink: #1a1740; --g-ink-2: #3b3870; --g-muted: #7b779e; --g-accent: #4a28ee; --g-track: #eeebfa; --g-line: #e6e2fa;
  --g-hz: linear-gradient(90deg, #0725f9, #4a28ee 25%, #8a2be2 50%, #c3157a 75%, #f70008);
  --g-navy: #1a1740;
  --g-curve: cubic-bezier(.2, .8, .2, 1);
  /* the families (a card's --k) */
  --g-news: #4a5a8a; --g-take: #b86b00; --g-record: #4a28ee; --g-ballot: #c3157a; --g-around: #0a7d4f; --g-talk: #6a3df0; --g-new: #8a2be2;
}

/* ---------- type ---------- */
.g-head, .g-card h2, .g-card h3, .g-sheet h2, .g-sheet h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.01em; }
.g-big { font-family: var(--font-fig); font-weight: 400; letter-spacing: 0; line-height: 1; }
.g-cap { font-size: 13px; color: var(--g-muted); }
.g-eyebrow { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 2px solid var(--k, var(--g-line)); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--g-muted); }
.g-eyebrow .g-kind { color: var(--k, var(--g-accent)); font-weight: 800; }
.g-eyebrow .g-icon { width: 15px; height: 15px; color: var(--k, var(--g-accent)); }
.g-eyebrow .g-why { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- cards ---------- */
.g-card { background: #fff; border: 1px solid var(--g-line); border-radius: 18px; padding: 16px; box-shadow: none; transition: transform .35s var(--g-curve); }
@media (hover: hover) { .g-card:hover { transform: translateY(-2px); } }
.g-who { display: flex; align-items: center; gap: 12px; }
.g-who b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.g-who span { display: block; font-size: 13px; color: var(--g-muted); }
.g-face { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 22%; display: block; background: #ddd; box-shadow: 0 0 0 2.5px var(--party, #7a3fd1); }
.g-face.is-sm { width: 34px; height: 34px; box-shadow: 0 0 0 2px var(--party, #7a3fd1); } .g-face.is-xs { width: 28px; height: 28px; box-shadow: 0 0 0 2px var(--party, #7a3fd1); } .g-face.is-lg { width: 76px; height: 76px; box-shadow: 0 0 0 3px var(--party, #7a3fd1); }
.g-face.is-D { --party: #0022ff; } .g-face.is-R { --party: #ff0000; }

/* ---------- buttons (family 6) ---------- */
.g-btn, .g-quiet, .g-ib, .g-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; font: 700 14px/1.2 var(--font-read); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s var(--g-curve), box-shadow .15s, background .15s; }
.g-btn { padding: 11px 18px; background: linear-gradient(180deg, #5a40f3, #4229dc); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 3px 8px rgba(58, 34, 214, .22); }
@media (hover: hover) { .g-btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 6px 14px rgba(58, 34, 214, .28); } }
.g-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .22); }
.g-btn[disabled], .g-btn.is-off { opacity: .45; pointer-events: none; }
.g-quiet, .g-ib { padding: 11px 16px; background: #fff; color: var(--g-ink); box-shadow: 0 0 0 1px var(--g-line), 0 2px 6px rgba(30, 26, 103, .08); }
@media (hover: hover) { .g-quiet:hover, .g-ib:hover { transform: translateY(-1px); } }
.g-quiet:active, .g-ib:active, .g-chip:active { transform: translateY(1px); box-shadow: 0 0 0 1px var(--g-line), inset 0 2px 4px rgba(30, 26, 103, .12); }
.g-ib { width: 38px; height: 38px; padding: 0; } .g-ib .g-icon { width: 19px; height: 19px; }
.g-chip { padding: 7px 12px; font-weight: 600; font-size: 13px; background: #fff; color: var(--g-ink); box-shadow: 0 0 0 1px var(--g-line), 0 2px 6px rgba(30, 26, 103, .08); }
.g-chip[aria-pressed="true"] { background: linear-gradient(180deg, #5a40f3, #4229dc); color: #fff; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2); }
.g-chip .g-icon { width: 15px; height: 15px; }
.g-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--k, var(--g-accent)); font: 600 14px var(--font-read); cursor: pointer; text-decoration: none; }
.g-link .g-icon { width: 14px; height: 14px; transition: transform .25s var(--g-curve); }
@media (hover: hover) { .g-link:hover .g-icon { transform: translateX(3px); } }
.g-star { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--g-muted); cursor: pointer; }
.g-star .g-icon { width: 20px; height: 20px; } .g-star[aria-pressed="true"] { color: var(--g-accent); } .g-star[aria-pressed="true"] .g-icon { fill: currentColor; }
.g-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-acts .g-sp { flex: 1; }
.g-emoji { font-size: 18px; }
/* the one live thing wears the horizon ring */
.g-ring { border: 2.5px solid transparent !important; background: linear-gradient(#fff, #fff) padding-box, var(--g-hz) border-box !important; color: var(--g-ink) !important; }
.g-ring.is-dark { background: linear-gradient(var(--g-navy), var(--g-navy)) padding-box, var(--g-hz) border-box !important; color: #fff !important; }

/* ---------- pills, switch, tracks ---------- */
.g-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--g-track); font-size: 13px; font-weight: 600; }
.g-pill.is-ok { background: #dff5ea; color: #0a7d4f; } .g-pill.is-no { background: #fde7e8; color: #c0262d; } .g-pill.is-amber { background: #fff1d6; color: #b86b00; }
.g-pill.is-D { background: #e3e8ff; color: #0022ff; } .g-pill.is-R { background: #ffe3e3; color: #c40000; }
.g-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.g-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--g-track); }
.g-switch button { padding: 6px 12px; border: 0; border-radius: 999px; background: none; font: 700 13px var(--font-read); color: var(--g-muted); cursor: pointer; }
.g-switch button[aria-pressed="true"] { background: #fff; color: var(--g-ink); box-shadow: 0 0 0 1px var(--g-line), 0 2px 6px rgba(30, 26, 103, .08); }
.g-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--g-track); }
.g-bar i { display: block; height: 100%; }

/* ---------- the tab bar ---------- */
.g-tabs { display: flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--g-line), 0 10px 26px rgba(30, 26, 103, .14); }
.g-tabs button { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 7px 4px 6px; border: 0; border-radius: 999px; background: none; font: 700 11px var(--font-read); color: var(--g-muted); cursor: pointer; transition: background .2s, box-shadow .2s; }
.g-tabs button .g-icon { width: 20px; height: 20px; }
.g-tabs button[aria-pressed="true"] { background: #efedfb; color: var(--g-ink); box-shadow: inset 0 1px 3px rgba(30, 26, 103, .1); }

/* ---------- the door (search or ask), the sheet, the toast ---------- */
.g-door { position: relative; }
.g-door input { width: 100%; box-sizing: border-box; height: 52px; padding: 0 16px 0 46px; border: 2.5px solid transparent; border-radius: 999px; background: linear-gradient(#fff, #fff) padding-box, var(--g-hz) border-box; color: var(--g-ink); font: 400 16px var(--font-read); outline: 0; box-shadow: 0 8px 24px rgba(30, 26, 103, .12); transition: box-shadow .25s; }
.g-door input::placeholder { color: var(--g-muted); }
.g-door input:focus { box-shadow: 0 0 0 5px rgba(138, 43, 226, .16), 0 8px 24px rgba(30, 26, 103, .14); }
.g-door > .g-icon { position: absolute; left: 16px; top: 17px; color: var(--g-muted); }
.g-sheet { background: #fff; border: 1px solid var(--g-line); border-radius: 26px; box-shadow: 0 -10px 40px rgba(26, 23, 64, .18); animation: g-rise .35s var(--g-curve); }
@keyframes g-rise { from { transform: translateY(24px); opacity: 0; } }
.g-scrim { background: rgba(26, 23, 64, .35); }
/* the toast (js/toast.js, one for the whole site): a navy pill at the bottom centre, 24px up on a computer and above the
   tab bar on a phone, rising 24px with a fade; room for one quiet action (Undo) */
.g-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 5000; transform: translateX(-50%); box-sizing: border-box;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px;
  background: var(--g-navy); color: #fff; font: 600 14px/1.35 var(--font-read); text-align: center; box-shadow: 0 10px 30px rgba(26, 23, 64, .25);
  animation: g-toast-in .35s var(--g-curve) both; }
.g-toast > span { min-width: 0; }
.g-toast-act { flex: none; padding: 0; border: 0; background: none; color: #c9bdff; font: 700 14px var(--font-read); cursor: pointer; }
@media (hover: hover) { .g-toast-act:hover { color: #fff; } }
.g-toast-act:focus-visible { outline: 2px solid #c9bdff; outline-offset: 3px; border-radius: 4px; }
.g-toast.is-going { animation: g-toast-out .25s var(--g-curve) forwards; }
@keyframes g-toast-in { from { translate: 0 24px; opacity: 0; } }
@keyframes g-toast-out { to { translate: 0 12px; opacity: 0; } }
@media (max-width: 859px) { .g-toast { bottom: calc(max(88px, var(--tabs-h, 0px) + 24px) + env(safe-area-inset-bottom, 0px)); } }
/* the one line's toast, on Today (body.st-body) and every page in its frame (body.has-g-frame, js/bar.js): a dark pill (a
   light one in dark mode) at the foot, a star before "Kept on your Desk" (js/toast.js { kept: true }), Undo a small pill
   in it; the one-line mockups' values (css/today.css "the mockups' look, value for value", where it lived until November
   18, 2026). Its colours are hsl() tokens with their own dark values, which tools/build_dark.py leaves as written; the
   ids' weight is over the plain toast above and css/dark.css's copy of it. (Without it the other pages' toast in dark
   mode was --g-navy on cards of nearly that colour: the words with no pill behind them.) */
:is(body.st-body, body.has-g-frame) { --om-toast: hsl(244.39 47.13% 17.06%); --om-toast-ink: hsl(0 0% 100%); }
:root[data-theme="dark"] :is(body.st-body, body.has-g-frame) { --om-toast: hsl(247.5 100% 96.86%); --om-toast-ink: hsl(243.12 59.69% 25.29%); }
:root:is(:root, #om#om#om#om#om#om) :is(body.st-body, body.has-g-frame) .g-toast { left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(560px, calc(100% - 40px)); padding: 10px 18px; border: 0; border-radius: 999px;
  background: var(--om-toast); color: var(--om-toast-ink); font: 600 14.5px/1.35 var(--font-read); box-shadow: 0 10px 30px hsl(244.39 47.13% 17.06% / .25); }
:root:is(:root, #om#om#om#om#om#om) :is(body.st-body, body.has-g-frame) .g-toast:has(.g-toast-act) { padding: 10px 10px 10px 18px; }
:root:is(:root, #om#om#om#om#om#om) :is(body.st-body, body.has-g-frame) .g-toast .g-toast-act { min-height: 32px; padding: 4px 12px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--om-toast-ink) 16%, transparent); color: inherit; font: 700 13.5px/1.35 var(--font-read); }
:root:is(:root, #om#om#om#om#om#om) :is(body.st-body, body.has-g-frame) .g-toast .g-toast-act:hover { background: color-mix(in srgb, var(--om-toast-ink) 26%, transparent); color: inherit; }
:root:is(:root, #om#om#om#om#om#om) :is(body.st-body, body.has-g-frame) .g-toast.is-kept::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.g-grab { width: 40px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--g-muted); opacity: .5; }
@media (prefers-reduced-motion: reduce) { .g-sheet, .g-toast, .g-toast.is-going { animation: none; } .g-card, .g-btn, .g-quiet, .g-ib, .g-chip { transition: none; } }
