/* nr-shell.css: the Next Round site shell, shared by the Scanner, the Schedule and the Publisher (Claude, NR - Browser Scanner, Nov 3 2026).
   Spec: references\claude-site-shell-2026-11-03.md. One file, no framework; pair it with nr-shell.js. Each site keeps its own page rules in
   its own stylesheet, loaded after this one.
   What is in here: the brand fonts, tokens v3 (light and dark), the base type and controls, and the shell: the left sidebar, its fold to an
   icon rail, the top strip (where you are, who is signed in, light/dark, sign out), the footer line, and the phone/handheld top row.
   Files it expects beside it: fonts/Inter-*.woff2, logo.png, logo-dark.png, mark.png, mark-dark.png.
   Colors come from the 2026 brand guide or 10% tints of them only. */

@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------------------------------------------------------------- tokens v3 */
:root {
  --ink: #1E3B33; --dark: #0D3B35; --ink2: #3A4540; --ink3: #6B7670; --orange: #F2682A; --green: #00B4AA;
  --tan: #F0EDE4; --cream: #FAF8F3; --line: #E3DFD2; --white: #FFFFFF; --orange-tint: #FEF0EA; --green-tint: #E6F8F6;
  --hover: rgba(30, 59, 51, .05); color-scheme: light;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --font-head: "Inter Display", "Inter", system-ui, sans-serif;
  --side-w: 232px; --rail-w: 64px; --top-h: 52px;
}
/* dark: follows the computer's setting; <html data-theme="light|dark"> (the strip's switch) forces one. Grounds #0D3B35 (page) and #1E3B33
   (panels); cream text 11.45:1, tan 10.38, muted and input edges 5.44, orange marks 3.93, teal 4.69. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #FAF8F3; --dark: #F0EDE4; --ink2: #F0EDE4; --ink3: #A6B0AA; --tan: #344E46; --cream: #0D3B35; --line: #425A52; --white: #1E3B33;
  --orange-tint: #514631; --green-tint: #175850; --hover: rgba(250, 248, 243, .06); color-scheme: dark;
} }
:root[data-theme="dark"] {
  --ink: #FAF8F3; --dark: #F0EDE4; --ink2: #F0EDE4; --ink3: #A6B0AA; --tan: #344E46; --cream: #0D3B35; --line: #425A52; --white: #1E3B33;
  --orange-tint: #514631; --green-tint: #175850; --hover: rgba(250, 248, 243, .06); color-scheme: dark;
}

/* ---------------------------------------------------------------- base type */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 14px/1.45 var(--font); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin: 0; }
h1 { font-size: 22px; line-height: 1.25; }
h2 { font-size: 16px; line-height: 1.3; margin-bottom: 10px; }
p { margin: 0; }
a { color: var(--ink); }
.muted { color: var(--ink3); } .small { font-size: 13px; }

/* ---------------------------------------------------------------- controls: 44px with 16px text; row buttons 36px (.small-btn) */
label { display: block; font-size: 13px; font-weight: 500; color: var(--ink2); margin-bottom: 14px; }
input, select, textarea { font: 400 15px/1.3 var(--font); color: var(--ink); background: var(--white); border: 1px solid var(--ink3); border-radius: 6px; min-height: 40px; padding: 0 12px; width: 100%; margin-top: 6px; }
textarea { padding: 8px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button, .button { font: 500 14px/1 var(--font); border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 120ms ease-out; }
button:hover, .button:hover { background: var(--dark); }
button:active, .button:active { transform: scale(0.97); }
.secondary, button.secondary, .button.secondary { background: var(--tan); border-color: var(--tan); color: var(--ink); }
.secondary:hover, button.secondary:hover, .button.secondary:hover { background: var(--line); border-color: var(--line); }
.quiet, button.quiet, .button.quiet { background: transparent; border-color: transparent; color: var(--ink2); }
button:disabled { background: var(--tan); border-color: var(--tan); color: var(--ink3); cursor: not-allowed; transform: none; }
.small-btn { min-height: 32px; font-size: 13px; padding: 0 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
button:disabled, button:disabled:hover { background: transparent; border: 1px dashed var(--ink3); color: var(--ink3); }
button:disabled, button:disabled:hover { color: var(--ink2); }
@media (hover: none) { button:active { transform: none; } }
@media (prefers-reduced-motion: reduce) { button:active, .button:active { transform: none; } }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
button, a, summary, [role="button"] { touch-action: manipulation; }
button, .button, .side a.nav { user-select: none; -webkit-user-select: none; }
@media (pointer: coarse) { input, select, textarea { font-size: 16px; } }
@media (hover: none) {
  button:hover, .button:hover { background: var(--ink); }
  .secondary:hover, button.secondary:hover, .button.secondary:hover { background: var(--tan); border-color: var(--tan); }
  .quiet:hover, button.quiet:hover { background: transparent; }
  button:disabled:hover { background: transparent; }
}
::selection { background: var(--green-tint); color: var(--ink); }
input, textarea { caret-color: var(--ink); }
html { scrollbar-color: var(--line) transparent; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
input, select, textarea { min-height: 44px; font-size: 16px; }
button, .button { min-height: 44px; font-size: 16px; }
.small-btn { min-height: 36px; font-size: 14px; }
button:disabled, button:disabled:hover { background: transparent; border: 1px solid var(--line); color: var(--ink2); }

/* ---------------------------------------------------------------- the shell: sidebar on the cream ground, the strip and the work on the right
   <div class="app"><nav class="side" id="nr-side">...</nav><div class="col"><header class="topbar">...</header><main class="sheet">...</main></div></div> */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.col { min-width: 0; display: flex; flex-direction: column; }
.side { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; min-width: 0; }
@media (min-width: 701px) { .side { height: 100vh; height: 100dvh; } }
.side .brand-row { display: flex; align-items: center; gap: 4px; min-height: 44px; margin-bottom: 14px; }
.side .brand { display: block; padding: 0 8px; margin-right: auto; }
.side .brand img { display: block; }
.side .brand img.logo { width: 132px; }
.side .brand img.mark { display: none; width: 32px; height: auto; }
.side .grp { font-size: 12px; color: var(--ink2); padding: 16px 8px 6px; }
.side a.nav { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px; border-radius: 6px; border: 1px solid transparent;
              color: var(--ink2); text-decoration: none; font-size: 14px; white-space: nowrap; }
.side a.nav:hover { background: var(--hover); color: var(--ink); }
.side a.nav.on { background: var(--white); color: var(--ink); font-weight: 500; border-color: var(--line); }
.side svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; flex: none; }
.side .spacer { flex: 1; }
.side .help { position: relative; font-size: 13px; color: var(--ink2); padding: 8px; line-height: 1.6; margin-top: auto; }   /* r4: pinned to the sidebar's bottom */
.side .help > .lbl { display: block; }   /* r4 (Cavin: "Make 'Message Cavin on Slack' on its own line"): "Something wrong?", then the link */
.side .help a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }   /* never wrapped mid-link; a 44px target (finish review) */
.side .help a svg, .side .help .icon { display: none; }
.side .help .ver { display: block; }
.side .admin-only { display: none; }
body[data-admin="1"] .side .admin-only { display: block; }
body[data-device="1"] .side .not-device { display: none; }   /* a handheld device uses only the jobs it is allowed */
/* the fold button: 44px, beside the logo; it keeps the focus where it was (nr-shell.js), so a scan box stays ready */
html:not([data-side]) .nr-fold { display: none; }   /* without the script the button could do nothing */
.nr-fold { position: relative; flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; background: transparent; border-color: transparent; color: var(--ink2); }
.nr-fold:hover { background: var(--hover); color: var(--ink); }
.nr-fold svg { width: 18px; height: 18px; }
/* the top strip: where you are on the left; who is signed in, light/dark and sign out on the right */
.topbar { display: flex; align-items: center; gap: 8px; min-height: var(--top-h); padding: 4px 21px 4px 29px; }   /* the crumb starts and the Sign out text ends where the sheet's content does (1px edge + 28px padding; 21px + the button's 16px) */
.topbar .crumb { display: flex; align-items: baseline; gap: 8px; margin-right: auto; font-size: 14px; color: var(--ink2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumb .site { font-weight: 500; color: var(--ink); }
.topbar .crumb .page::before { content: "/"; margin-right: 8px; color: var(--ink3); }
.topbar .who { text-align: right; line-height: 1.3; padding: 0 8px; min-width: 0; }
.topbar .who strong, .topbar .who small { display: block; overflow-wrap: anywhere; }
.topbar .who strong { font: 500 14px/1.3 var(--font); color: var(--ink); letter-spacing: 0; }
.topbar .who small { font-size: 13px; color: var(--ink2); }
.topbar button, .topbar .button { background: transparent; border-color: transparent; color: var(--ink2); font-size: 14px; }
.topbar button:hover, .topbar .button:hover { background: var(--hover); color: var(--ink); }
.topbar .nr-theme svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.sheet { background: var(--white); margin: 0 8px 8px 0; border: 1px solid var(--line); border-radius: 12px; padding: 22px 28px 24px; min-width: 0; align-self: stretch; }
/* the help control (r4, Cavin: "a LOT of text"): a working screen shows the next action; the how-to sits behind a 44px "?" beside the
   heading and opens below it. <details class="nr-help"><summary aria-label="How this works"><span aria-hidden="true">?</span></summary>
   <div class="nr-help-body">...</div></details>; nr-shell.js closes it on Esc or a click outside, and keeps the focus in a scan box. */
.nr-titled { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nr-help { position: relative; flex: none; }
.nr-help > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.nr-help > summary::-webkit-details-marker { display: none; }
.nr-help > summary > span { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink3); color: var(--ink2); font: 600 14px/21px var(--font); text-align: center; }
.nr-help > summary:hover > span, .nr-help[open] > summary > span { border-color: var(--ink); color: var(--ink); background: var(--tan); }
.nr-help > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.nr-help-body { position: absolute; z-index: 40; top: calc(100% + 2px); left: 0; width: min(440px, calc(100vw - 32px)); background: var(--white);
                border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font: 400 14px/1.5 var(--font); color: var(--ink2);
                box-shadow: 0 10px 30px rgba(0, 0, 0, .16);   /* neutral: a green shadow reads as a glow on dark (impeccable detector) */
                letter-spacing: 0; text-transform: none; white-space: normal; }
.nr-help-body p { margin: 0; color: var(--ink2); font-size: 14px; }
.nr-help-body p + p { margin-top: 8px; }
.nr-help-body p:empty { display: none; }
.nr-help-body .nr-privacy { font-size: 13px; }
@media (hover: none) { .nr-help > summary:hover > span { background: transparent; border-color: var(--ink3); color: var(--ink2); } }
@media (hover: none) { .side a.nav:hover { background: transparent; } .side a.nav.on:hover { background: var(--white); } .topbar button:hover, .nr-fold:hover { background: transparent; } }

/* break-ui (the longest real name, Nov 3): under 900px the "where you are" text gives its room to the name; the page heading names the page */
@media (max-width: 899px) {
  .topbar .crumb { display: none; } .topbar .who { margin-right: auto; text-align: left; padding-left: 0; }
  .topbar .nr-theme .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* the icon only; its name stays */
}

/* ---------------------------------------------------------------- folded: the icon rail (laptops; html[data-side="rail"], set by nr-shell.js) */
@media (min-width: 701px) {
  html[data-side="rail"] { --side-w: var(--rail-w); }
  html[data-side="rail"] .side { padding: 12px 10px 16px; align-items: center; }
  html[data-side="rail"] .side .brand-row { flex-direction: column; gap: 6px; margin-bottom: 8px; }
  html[data-side="rail"] .side .brand { padding: 0; margin: 0; }
  html[data-side="rail"] .side .brand img.logo { display: none; }
  html[data-side="rail"] .side .brand img.mark { display: block; }
  html[data-side="rail"] .side .grp { font-size: 0; padding: 0; height: 1px; width: 28px; margin: 10px auto; background: var(--line); }
  html[data-side="rail"] .side a.nav { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  html[data-side="rail"] .side a.nav svg { width: 18px; height: 18px; }
  html[data-side="rail"] .side .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* read aloud, not shown */
  html[data-side="rail"] .side .help { padding: 0; }
  html[data-side="rail"] .side .help a { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 6px; text-decoration: none; }
  html[data-side="rail"] .side .help a svg { display: block; width: 18px; height: 18px; }
  html[data-side="rail"] .side .help .ver { display: none; }
  html[data-side="rail"] .nr-fold svg { transform: scaleX(-1); }
  /* tooltips on the rail: on mouse hover and on keyboard focus, to the right of the icon */
  html[data-side="rail"] .side [data-tip]:hover::after, html[data-side="rail"] .side [data-tip]:focus-visible::after,
  .side .nr-fold:hover::after, .side .nr-fold:focus-visible::after {   /* the fold button names itself open or folded (no browser title: one tooltip) */
    content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); z-index: 20; pointer-events: none;
    background: var(--ink); color: var(--cream); font: 500 13px/1.2 var(--font); padding: 7px 10px; border-radius: 6px; white-space: nowrap;
  }
  html[data-side="rail"] .side .help a[data-tip]:hover::after, html[data-side="rail"] .side .help a[data-tip]:focus-visible::after { top: auto; bottom: 4px; transform: none; }
  html[data-side="rail"] .side a.nav:hover { background: var(--hover); }
}

/* ---------------------------------------------------------------- phones and handhelds (700px and narrower): one top row, no fold */
@media (max-width: 700px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }   /* the top row keeps its own height on short pages */
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; }   /* more links wrap to a second line; nothing hides off-screen */
  .side .brand-row { margin: 0 4px 0 0; min-height: 44px; }
  .side .brand { padding: 0 4px; }
  .side .brand img.logo, .side .grp, .side .spacer, .nr-fold, .side .help .ver, .side .help > .lbl { display: none; }
  .side .brand img.mark { display: block; }
  .side a.nav { min-height: 44px; flex: none; }
  body[data-admin="1"] .side .admin-only { display: contents; }   /* a group's links join the one row (break-ui: they stacked) */
  .side .help { padding: 0; margin-left: auto; }
  .side .help a { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; text-decoration: none; }
  .side .help a .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .side .help a svg { display: block; width: 18px; height: 18px; }
  .topbar { padding: 0 8px 0 12px; min-height: 48px; border-bottom: 1px solid var(--line); }   /* the name starts at 16px, as the sheet's content does */
  .topbar .crumb { display: none; }
  .topbar .who { margin-right: auto; text-align: left; padding: 0 4px; }
  .topbar .nr-theme .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sheet { margin: 0; border-radius: 0; border-left: 0; border-right: 0; padding: 16px; }
  .nr-help-body { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 60vh; overflow: auto; }   /* break-ui + mobile-native: a sheet at the bottom, never off the screen */
}

/* ---------------------------------------------------------------- the logo and mark reversed on dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .side .brand img.logo { content: url("logo-dark.png"); }
  :root:not([data-theme="light"]) .side .brand img.mark { content: url("mark-dark.png"); }
}
:root[data-theme="dark"] .side .brand img.logo { content: url("logo-dark.png"); }
:root[data-theme="dark"] .side .brand img.mark { content: url("mark-dark.png"); }
/* r8k shell */
/* Nov 4 2026, DECISIONS.md D47 to D50 (Cavin, about 11:0x: "sure to all"), for both sites */
@media (min-width: 900px) { .topbar .crumb { display: none; } .topbar .who { margin-left: auto; } }   /* D47 (narrower windows hid it already) */
.topbar .who small, .side .help .ver { display: none; }   /* D48: the version is behind the "?" (nr-shell.js), the name says Admin where it applies */
.nr-help-body p.nr-ver { margin-top: 12px; font-size: 12px; color: var(--ink3); }
.topbar .nr-theme .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* D50 */
/* r8l */
/* Nov 4 2026, the Schedule chat's items 60 and 61 (Cavin: "sure to all"): an opt-in phone bar. A page that sets data-phone-menu on <html>
   (or calls NRShell.phoneMenu()) shows, under 700px, one bar with the mark, the page name and a menu button; the page links, the name,
   Colors and Sign out open under it. Pages without the attribute (the scanner) keep the top row as it was. */
.nr-menu, .nr-page { display: none; }
@media (max-width: 700px) {
  html[data-phone-menu] .side .brand-row { flex: 1 1 100%; margin: 0; }
  html[data-phone-menu] .nr-page { display: block; flex: 1 1 auto; min-width: 0; font: 600 16px/1.2 var(--font); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html[data-phone-menu] .nr-menu { display: grid; place-items: center; flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; background: transparent; border: 0; color: var(--ink); }
  html[data-phone-menu] .nr-menu svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
  html[data-phone-menu]:not([data-menu="open"]) .side a.nav, html[data-phone-menu]:not([data-menu="open"]) .side .admin-only,
  html[data-phone-menu]:not([data-menu="open"]) .side .help, html[data-phone-menu]:not([data-menu="open"]) .topbar { display: none; }
  html[data-phone-menu][data-menu="open"] .side { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  html[data-phone-menu][data-menu="open"] .side .brand-row { flex: none; }
  html[data-phone-menu][data-menu="open"] body[data-admin="1"] .side .admin-only { display: block; }
  html[data-phone-menu][data-menu="open"] .side .help { margin-left: 0; }
}
/* r8m */
/* R-3 (Nov 4 2026, for both sites): the picked page in the sidebar is filled, like every other picked control */
.side a.nav.on, .side a.nav.on:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (hover: none) { .side a.nav.on:hover { background: var(--ink); } }
