/* GN house style v1.0 (approved by Joseph, 2026-10-02).
   Colors come from the Gourmet Nut wordmark: wine #882030 ("Gourmet") and cocoa #502C2C ("Nut").
   Dense, bordered, legible at a glance. One accent (wine). Status colors only for status, always with a word.
   Inline this whole file at the top of every artifact's <style>, then use the gn- classes. */
:root {
  --gn-wine: #882030;       /* the one accent: section rules, highlights, active states */
  --gn-wine-soft: #F6E7E9;
  --gn-cocoa: #502C2C;      /* titles */
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --ink: #1E1A19;
  --muted: #574F4C;         /* secondary text: never faint */
  --line: #CFD4DA;          /* full-grid borders */
  --head: #F3F4F6;          /* table header row */
  --new: #FEFCE8;           /* tint for new / needs-action rows only */
  --link: #1A5FB4;
  --ok: #1E7A45;   --ok-soft: #E2F2E7;
  --warn: #965804; --warn-soft: #FBEFD9;
  --bad: #B42318;  --bad-soft: #FBE4E1;
  --mast-bg: #FFFFFF; --mast-meta: #574F4C; --plate: transparent; --plate-pad: 0; --on-wine: #FFFFFF;   /* masthead band, wordmark plate, text on a wine fill */
  --f-title: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --f-body: "IBM Plex Sans", Arial, sans-serif;
}
/* Dark (polish-1 F2, Joseph 10/17 "I don't like the black"): the same warm graphite as the app's look A dark (web/looks-tokens.css), so a framed desk sits in the shell without a near-black hole:
   page #2B2826 (L* 16.4), surface #34302D, header row #393532, cream ink, wine #E8909D; the masthead is the graphite band with the wordmark on its light plate (the app's own masthead). */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --gn-wine: #E8909D; --gn-wine-soft: #3C3131; --gn-cocoa: #EBDAD4;
  --bg: #2B2826; --surface: #34302D; --ink: #F2ECE4; --muted: #C2B8AF; --line: #4B4641; --head: #393532; --new: #433A2A;
  --link: #8AB4F8; --ok: #62C98E; --ok-soft: #30362F; --warn: #E9AD52; --warn-soft: #3C342A; --bad: #F48B7F; --bad-soft: #3D2F2C;
  --mast-bg: #34302D; --mast-meta: #C2B8AF; --plate: #F4EFE8; --plate-pad: 3px 9px; --on-wine: #1E1A19;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --gn-wine: #E8909D; --gn-wine-soft: #3C3131; --gn-cocoa: #EBDAD4;
  --bg: #2B2826; --surface: #34302D; --ink: #F2ECE4; --muted: #C2B8AF; --line: #4B4641; --head: #393532; --new: #433A2A;
  --link: #8AB4F8; --ok: #62C98E; --ok-soft: #30362F; --warn: #E9AD52; --warn-soft: #3C342A; --bad: #F48B7F; --bad-soft: #3D2F2C;
  --mast-bg: #34302D; --mast-meta: #C2B8AF; --plate: #F4EFE8; --plate-pad: 3px 9px; --on-wine: #1E1A19;
  color-scheme: dark; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--f-body); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gn-wine); outline-offset: 2px; }

/* Masthead: the white band with the wine rule in light; in dark the graphite band, the wordmark on its light plate (so it always reads). The wordmark rule is
   .gn-mast-in > img, the framed pages' own markup: the app shell's brand (.app-brand > img) carries its own plate in looks.css. */
.gn-mast { background: var(--mast-bg); border-bottom: 3px solid var(--gn-wine); }
.gn-mast-in { max-width: 1200px; margin: 0 auto; padding-inline: 20px; padding-block: 12px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gn-mast-in > img { height: 34px; width: auto; display: block; background: var(--plate); padding: var(--plate-pad); }
.gn-mast .gn-mast-meta { margin-left: auto; color: var(--mast-meta); font-size: 13px; }

.gn-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; padding-block: 24px 56px; display: grid; gap: 28px; }
.gn-title { font: 700 34px/1.1 var(--f-title); text-transform: uppercase; letter-spacing: 0.01em; color: var(--gn-cocoa); margin: 0; text-wrap: balance; }
.gn-lede { margin: 6px 0 0; color: var(--muted); max-width: 72ch; font-size: 15px; }
.gn-section { font: 700 17px/1.2 var(--f-title); text-transform: uppercase; letter-spacing: 0.02em; color: var(--gn-wine); margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--gn-wine); }
.gn-small { font-size: 13px; color: var(--muted); }

/* Tables: the AR Needed vocabulary. Full grid, bold grey header, numbers right-aligned. */
.gn-table-wrap { overflow-x: auto; }
.gn-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.gn-table th, .gn-table td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.gn-table th { background: var(--head); font-weight: 700; }
.gn-table td.num, .gn-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gn-table tr.new td { background: var(--new); }

/* Status: a word first, color second. Never wraps. */
.gn-pill { display: inline-block; white-space: nowrap; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 4px; border: 1px solid transparent; }
.gn-pill.ok { background: var(--ok-soft); color: var(--ok); }
.gn-pill.warn { background: var(--warn-soft); color: var(--warn); }
.gn-pill.bad { background: var(--bad-soft); color: var(--bad); }
.gn-pill.wine { background: var(--gn-wine-soft); color: var(--gn-wine); }
.gn-pill.plain { background: var(--head); color: var(--muted); border-color: var(--line); }

/* Numbers that are the point of the page. */
.gn-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.gn-kpi { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 2px; }
.gn-kpi b { font: 700 30px/1.1 var(--f-title); color: var(--gn-cocoa); font-variant-numeric: tabular-nums; }
.gn-kpi span { font-size: 13px; color: var(--muted); }
.gn-kpi.alert b { color: var(--bad); }

/* A card only for the one thing that must stand apart, such as a decision. */
.gn-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gn-wine); padding: 14px 16px; display: grid; gap: 6px; }

.gn-foot { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
