/* Microbe Busters Hub
   Signage rules: near-black on warm paper (or white on black in dark mode), one typeface, two weights, few sizes.
   Colour only carries meaning: a person's line colour, or a status (always with a shape and a word). */

@font-face { font-family: "Atkinson"; src: url(../fonts/AtkinsonHyperlegibleNext-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(../fonts/AtkinsonHyperlegibleNext-RegularItalic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(../fonts/AtkinsonHyperlegibleNext-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Light theme: warm off-white paper, easy on the eyes */
  --paper: #f6f2e9;
  --surface: #fcfaf5;
  --sunk: #ece6d8;
  --ink: #1b1a17;
  --ink-2: #4d4a43;
  --rule: #d4ccbb;
  --rule-strong: #1b1a17;
  --band: #1b1a17;
  --band-ink: #ffffff;
  --focus: #0072b2;
  /* Okabe-Ito status colours; each is always paired with a shape and a word */
  --st-doing: #0072b2;
  --st-done: #008a64;
  --st-late: #c85500;
  --st-soon: #e69f00;
  --st-todo: #1b1a17;
  color-scheme: light;

  --f1: 0.875rem;  /* 15.75px meta */
  --f2: 1rem;      /* 18px body */
  --f3: 1.25rem;   /* 22.5px */
  --f4: 1.75rem;   /* 31.5px */
  --f5: 2.5rem;    /* 45px */
  --gap: 24px;
  --wrap: 1080px;
  --read: 42rem;
  --tap: 48px;
}
/* Dark theme: follows the device unless someone picks Light or Dark in the header */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000;
    --surface: #121212;
    --sunk: #1c1c1c;
    --ink: #ffffff;
    --ink-2: #c9c9c9;
    --rule: #3d3d3d;
    --rule-strong: #ffffff;
    --band: #000000;
    --band-ink: #ffffff;
    --focus: #56b4e9;
    --st-doing: #56b4e9;
    --st-done: #19b58a;
    --st-late: #ff7a2e;
    --st-soon: #e69f00;
    --st-todo: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #000000;
  --surface: #121212;
  --sunk: #1c1c1c;
  --ink: #ffffff;
  --ink-2: #c9c9c9;
  --rule: #3d3d3d;
  --rule-strong: #ffffff;
  --band: #000000;
  --band-ink: #ffffff;
  --focus: #56b4e9;
  --st-doing: #56b4e9;
  --st-done: #19b58a;
  --st-late: #ff7a2e;
  --st-soon: #e69f00;
  --st-todo: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Atkinson", system-ui, sans-serif; font-weight: 400;
  font-size: var(--f2); line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); color: var(--ink); padding: 12px 16px; z-index: 50; border: 2px solid var(--ink); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Signage band */
.band { background: var(--band); color: var(--band-ink); border-bottom: 6px solid var(--band); }
.band__inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
@media (min-width: 720px) { .band__inner { padding: 18px 32px; } }
.brand { text-decoration: none; display: flex; flex-direction: column; min-height: var(--tap); justify-content: center; }
.brand__name { font-size: var(--f3); font-weight: 700; letter-spacing: 0.01em; }
.brand__sub { font-size: var(--f1); color: #cfcfcf; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 14px; text-decoration: none; border-bottom: 4px solid transparent; }
.nav a:hover { border-bottom-color: #7a7a7a; }
.nav a[aria-current="page"] { border-bottom-color: #ffffff; font-weight: 700; }
.band :focus-visible { outline-color: #56b4e9; }

.notice { background: var(--sunk); border-bottom: 1px solid var(--rule); }
.notice p { max-width: var(--wrap); margin: 0 auto; padding: 10px 16px; font-size: var(--f1); }
@media (min-width: 720px) { .notice p { padding: 10px 32px; } }

.loading { max-width: var(--wrap); margin: 48px auto; padding: 0 16px; color: var(--ink-2); }

/* Page heads */
.head { padding: 40px 0 24px; }
.head h1 { font-size: var(--f5); letter-spacing: -0.01em; }
.head p { margin-top: 8px; color: var(--ink-2); max-width: var(--read); }
.crumb { display: inline-flex; align-items: center; min-height: var(--tap); gap: 8px; text-decoration: none; font-weight: 700; margin-bottom: 8px; }
.crumb::before { content: "‹"; font-size: 1.4em; line-height: 1; }
.crumb:hover { text-decoration: underline; }
.section { padding: 8px 0 40px; }
.section > h2 { font-size: var(--f3); padding-bottom: 10px; border-bottom: 4px solid var(--rule-strong); margin-bottom: 4px; }
.section__note { color: var(--ink-2); font-size: var(--f1); margin: 8px 0 0; }

/* Line bullets: a person's circle, like a subway line */
.bullet { --c: #000; --t: #fff; flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--c); color: var(--t); display: inline-grid; place-items: center; font-weight: 700; line-height: 1; font-size: 1rem; }
.bullet--lg { font-size: 1.6rem; }
.bullet--sm { font-size: 0.8rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bullet { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px #ffffff; } }
:root[data-theme="dark"] .bullet { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px #ffffff; }

/* Route line: project milestones as stations */
.route { margin: 8px 0 32px; }
.route h2 { font-size: var(--f1); font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.route ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.route li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 0 0 18px; }
.route li::before { content: ""; position: absolute; left: 12px; top: 14px; bottom: -4px; width: 4px; background: var(--ink); }
.route li:last-child::before { display: none; }
.route .stop { width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); position: relative; z-index: 1; }
.route li.is-past .stop { background: var(--ink); }
.route li.is-next .stop { border-width: 8px; }
.route .when { font-weight: 700; display: block; }
.route .what { color: var(--ink-2); }
.route li.is-past .what, .route li.is-past .when { color: var(--ink-2); font-weight: 400; }
@media (min-width: 800px) {
  .route ol { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .route li { grid-template-columns: 1fr; grid-template-rows: 28px auto; padding: 0 16px 0 0; }
  .route li::before { left: 14px; right: -14px; top: 12px; bottom: auto; width: auto; height: 4px; }
  .route li:last-child::before { display: none; }
}

/* Member signs */
.signs { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 720px) { .signs { grid-template-columns: 1fr 1fr; } }
.sign { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; text-decoration: none; background: var(--surface); border: 2px solid var(--rule-strong); padding: 20px; min-height: 160px; }
.sign:hover { background: var(--sunk); }
.sign:hover .sign__name { text-decoration: underline; }
.sign__name { font-size: var(--f4); font-weight: 700; line-height: 1.1; }
.sign__role { color: var(--ink-2); }
.sign__counts { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sign__next { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: var(--f1); }
.sign__next b { display: block; font-size: var(--f2); }
.sign.is-me { border-width: 4px; padding: 18px; }

/* Status: shape + word */
.st { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.st__shape { width: 18px; height: 18px; flex: none; }
.count { display: inline-flex; align-items: center; gap: 8px; }
.count b { font-size: var(--f3); }

/* Assignment rows (departure-board list) */
.rows { list-style: none; margin: 0; padding: 0; }
.row { border-bottom: 1px solid var(--rule); }
.row a { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 4px; text-decoration: none; min-height: 72px; align-items: center; }
.row a:hover { background: var(--sunk); }
.row a:hover .row__title { text-decoration: underline; }
.row__main { display: grid; gap: 4px; min-width: 0; }
.row__title { font-size: var(--f3); font-weight: 700; line-height: 1.25; }
.row__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; color: var(--ink-2); font-size: var(--f1); }
.row__due { text-align: right; display: grid; gap: 2px; justify-items: end; }
.row__day { font-weight: 700; }
.row__rel { font-size: var(--f1); color: var(--ink-2); }
.row.is-done .row__title { font-weight: 400; color: var(--ink-2); }
@media (max-width: 559px) {
  .row a { grid-template-columns: 1fr; }
  .row__due { text-align: left; justify-items: start; grid-auto-flow: column; gap: 12px; justify-content: start; }
}
.empty { padding: 20px 0; color: var(--ink-2); }
details.done-list { margin-top: 8px; }
details.done-list summary { min-height: var(--tap); display: flex; align-items: center; cursor: pointer; font-weight: 700; }

/* Assignment detail */
.detail { max-width: var(--read); padding-bottom: 48px; }
.detail__who { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.detail h1 { font-size: var(--f4); }
.detail__project { color: var(--ink-2); margin-top: 6px; }
.due-block { margin: 24px 0; border: 2px solid var(--rule-strong); display: grid; grid-template-columns: 1fr auto; }
.due-block__when { padding: 16px 20px; }
.due-block__label { font-size: var(--f1); color: var(--ink-2); }
.due-block__date { font-size: var(--f4); font-weight: 700; line-height: 1.15; }
.due-block__rel { margin-top: 4px; }
.due-block__status { padding: 16px 20px; border-left: 2px solid var(--rule-strong); display: grid; align-content: center; }
@media (max-width: 559px) { .due-block { grid-template-columns: 1fr; } .due-block__status { border-left: 0; border-top: 2px solid var(--rule-strong); } }
.steps { margin: 12px 0 0; padding-left: 1.4em; display: grid; gap: 10px; }
.steps li { padding-left: 4px; }
.detail h2 { font-size: var(--f3); margin-top: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.btn { min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--sunk); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--quiet { border-color: transparent; text-decoration: underline; padding: 0 8px; }
.btn--danger { border-color: var(--st-late); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Status picker */
.picker { border: 0; margin: 24px 0 0; padding: 0; }
.picker legend { font-weight: 700; font-size: var(--f3); margin-bottom: 12px; padding: 0; }
.picker__opts { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--rule-strong); }
.picker label { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 8px; cursor: pointer; font-weight: 700; border-left: 2px solid var(--rule-strong); text-align: center; }
.picker label:first-of-type { border-left: 0; }
.picker input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.picker input:checked + span { text-decoration: underline; text-decoration-thickness: 3px; }
.picker label:has(input:checked) { background: var(--ink); color: var(--paper); }
.picker label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -5px; }
@media (max-width: 420px) { .picker__opts { grid-template-columns: 1fr; } .picker label { border-left: 0; border-top: 2px solid var(--rule-strong); justify-content: flex-start; padding-left: 16px; } .picker label:first-of-type { border-top: 0; } }

.teammates { list-style: none; padding: 0; margin: 12px 0 0; }
.teammates li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.teammates a { text-decoration: none; }
.teammates a:hover { text-decoration: underline; }

/* Project view */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 2px solid var(--rule-strong); margin-bottom: 32px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat b { display: block; font-size: var(--f4); line-height: 1.1; }
.stat span { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0 0 24px; }
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-weight: 700; font-size: var(--f1); }
.field small { color: var(--ink-2); font-size: var(--f1); }
input[type="text"], input[type="date"], input[type="time"], input[type="url"], input[type="password"], input[type="search"], select, textarea {
  min-height: var(--tap); border: 2px solid var(--ink); background: var(--surface); padding: 8px 12px; border-radius: 0; width: 100%;
}
textarea { min-height: 160px; line-height: 1.5; resize: vertical; }
select { appearance: auto; }
.toolbar .field { min-width: 160px; flex: 1 1 160px; }
.toolbar .btn { flex: none; }
.pm-table { width: 100%; border-collapse: collapse; }
.pm-table caption { text-align: left; font-size: var(--f3); font-weight: 700; padding: 24px 0 8px; }
.pm-table caption small { font-weight: 400; color: var(--ink-2); font-size: var(--f1); margin-left: 8px; }
.pm-table th { text-align: left; font-size: var(--f1); color: var(--ink-2); padding: 8px; border-bottom: 4px solid var(--rule-strong); }
.pm-table td { padding: 12px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.pm-table td.who { width: 1%; white-space: nowrap; }
.pm-table .t { font-weight: 700; }
.pm-table .t a { text-decoration: none; }
.pm-table .t a:hover { text-decoration: underline; }
.pm-table td.act { text-align: right; white-space: nowrap; }
.progress { display: inline-flex; align-items: center; gap: 10px; }
.progress__bar { width: 120px; height: 12px; border: 2px solid var(--ink); position: relative; }
.progress__bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
@media (max-width: 719px) {
  .pm-table thead { display: none; }
  .pm-table tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .pm-table td { border: 0; padding: 0; }
  .pm-table td.who { grid-row: span 3; }
  .pm-table td.act { text-align: left; }
}

/* Files */
.files { list-style: none; padding: 0; margin: 0; }
.files li { border-bottom: 1px solid var(--rule); }
.files a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 4px; text-decoration: none; min-height: var(--tap); align-items: center; }
.files a:hover { background: var(--sunk); }
.files a:hover .files__name { text-decoration: underline; }
.files__name { font-weight: 700; }
.files__meta { color: var(--ink-2); font-size: var(--f1); text-align: right; }
@media (max-width: 559px) { .files a { grid-template-columns: 1fr; } .files__meta { text-align: left; } }

/* Dialogs */
dialog { border: 4px solid var(--rule-strong); padding: 0; background: var(--paper); color: var(--ink); width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dlg__head { background: var(--band); color: var(--band-ink); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg__head h2 { font-size: var(--f3); }
.dlg__head button { min-width: var(--tap); min-height: var(--tap); background: transparent; border: 2px solid #ffffff; color: #ffffff; font-weight: 700; cursor: pointer; }
.dlg__body { padding: 20px; display: grid; gap: 18px; }
.dlg__foot { padding: 16px 20px; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.checks { display: grid; gap: 4px; border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 700; font-size: var(--f1); margin-bottom: 6px; padding: 0; }
.check { display: flex; align-items: center; gap: 12px; min-height: var(--tap); cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--ink); }
.two { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.error { color: var(--st-late); font-weight: 700; }

/* Gate */
.gate { max-width: 30rem; padding: 48px 0; display: grid; gap: 16px; }
.gate h1 { font-size: var(--f4); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 14px 20px; font-weight: 700; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.toast.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

.foot { border-top: 1px solid var(--rule); margin-top: 32px; }
.foot p { max-width: var(--wrap); margin: 0 auto; padding: 16px; color: var(--ink-2); font-size: var(--f1); }
@media (min-width: 720px) { .foot p { padding: 16px 32px; } }

/* Rich text in descriptions and instructions */
.rt-p { margin: 12px 0 0; max-width: var(--read); }
.rt-h { font-size: var(--f2); margin: 24px 0 0; }
.list { margin: 8px 0 0; padding-left: 1.4em; display: grid; gap: 6px; max-width: var(--read); }
.detail a:not(.btn):not(.crumb) { overflow-wrap: anywhere; }

/* Milestone stops that open a project */
.route li > a { text-decoration: none; display: block; min-height: var(--tap); }
.route li > a .what { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rule); }
.route li > a:hover .what { text-decoration-color: currentColor; color: var(--ink); }

/* Project page: mark the team deadline submitted */
.submit-bar { margin-top: 28px; padding: 16px 20px; border: 2px solid var(--rule-strong); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.submit-bar p { flex: 1 1 18rem; }
.pm-table caption a { text-decoration-thickness: 2px; }

/* Meetings */
.meet { margin: 8px 0 32px; border: 2px solid var(--rule-strong); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.meet__when { padding: 20px 24px; border-right: 2px solid var(--rule-strong); }
.meet__date { font-size: var(--f4); font-weight: 700; line-height: 1.15; }
.meet__time { font-size: var(--f3); font-weight: 700; }
.meet__rel { margin-top: 4px; }
.meet__side { padding: 20px 24px; display: grid; gap: 16px; align-content: center; }
@media (max-width: 719px) { .meet { grid-template-columns: 1fr; } .meet__when { border-right: 0; border-bottom: 2px solid var(--rule-strong); } }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.roles li { display: flex; align-items: center; gap: 10px; }
.agenda-status { margin: 14px 0 0; }
.lead-box { margin-top: 20px; padding: 20px 24px; background: var(--sunk); max-width: var(--read); }
.lead-box h3 { font-size: var(--f2); }
.topics { list-style: none; margin: 12px 0 0; padding: 0; max-width: var(--read); }
.topics li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.topics small { display: block; color: var(--ink-2); font-size: var(--f1); }
.topic-form { margin-top: 20px; display: grid; gap: 14px; max-width: var(--read); }
.topic-form textarea { min-height: 88px; }
.next-meet { margin: 0 0 28px; padding: 14px 20px; border: 2px solid var(--rule-strong); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.next-meet p { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.next-meet__label { font-size: var(--f1); color: var(--ink-2); }
.next-meet a b { font-size: var(--f2); }
.next-meet__rel { color: var(--ink-2); }

/* About */
.about-roles { display: grid; gap: 28px; margin-top: 20px; max-width: var(--read); }
.about-role h3 { font-size: var(--f2); }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; max-width: var(--read); }
.legend li { display: grid; grid-template-columns: 10rem 1fr; gap: 12px; align-items: center; }
@media (max-width: 480px) { .legend li { grid-template-columns: 1fr; gap: 2px; } }
.faq { border-bottom: 1px solid var(--rule); max-width: var(--read); }
.faq summary { min-height: var(--tap); padding: 12px 0; font-weight: 700; cursor: pointer; display: list-item; }
.faq__a { padding: 0 0 16px; }
.faq__a p { max-width: var(--read); }

/* Theme switch in the header */
.theme-toggle { min-height: var(--tap); padding: 0 14px; background: transparent; color: var(--band-ink); border: 2px solid #6b6b6b; font-weight: 700; cursor: pointer; }
.theme-toggle:hover { border-color: #ffffff; }
.band__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Email reminder setting reuses the status picker */
.picker--email label span { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; }
.picker--email input:checked + span { text-decoration: none; }
.picker--email input:checked + span b { text-decoration: underline; text-decoration-thickness: 3px; }
.picker--email small { font-weight: 400; font-size: var(--f1); }
@media (max-width: 420px) { .picker--email label span { text-align: left; } }

h2[tabindex="-1"]:focus { outline: none; }

/* Who a deadline is for */
.for { display: inline-flex; align-items: center; min-height: 1.6em; padding: 0 8px; border: 2px solid var(--ink); font-weight: 700; font-size: var(--f1); line-height: 1.2; white-space: nowrap; }
.for--client { background: var(--ink); color: var(--paper); }
.for--class { background: transparent; color: var(--ink); }
.for--sm { font-size: 0.8rem; padding: 0 6px; border-width: 1.5px; }
.route .for { margin-top: 6px; }
.route li.is-past .for { opacity: 0.7; }
.detail__project .for { vertical-align: middle; margin-right: 4px; }
.pm-table caption .for { vertical-align: middle; }
.head p .for { vertical-align: baseline; }
.deliv > h2 { display: flex; align-items: center; gap: 12px; }
.deliv-group { margin-top: 20px; }
.deliv-group h3 { font-size: var(--f2); margin-bottom: 4px; }
.topics li { align-items: center; }
.topics__text { flex: 1; }

/* Google product icons on links */
.gicon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -4px; }
.gicon--sm { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.btn .gicon { margin-left: -4px; }
.btn--solid .gicon { background: #fff; border-radius: 3px; padding: 1px; box-sizing: content-box; }
.ilink { white-space: normal; }
.files__name { display: inline-flex; align-items: center; }

/* Five-up stats in Project view */
@media (min-width: 720px) { .stats--5 { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 719px) { .stats--5 .stat:first-child { grid-column: 1 / -1; } }

/* Semester progress */
.semester { margin: 0 0 28px; }
.semester__h { font-size: var(--f1); font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.semester__grid { display: grid; gap: 16px 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .semester__grid { grid-template-columns: 1fr 1fr; } }
.meter__label { margin: 0 0 6px; }
.meter__label b { font-size: var(--f3); }
.meter__bar { height: 14px; border: 2px solid var(--rule-strong); background: var(--surface); }
.meter__bar i { display: block; height: 100%; background: var(--ink); }
.meter--work .meter__bar i { background: var(--st-done); }
.meter__meta { margin: 6px 0 0; font-size: var(--f1); color: var(--ink-2); }

/* Loading feedback */
.busy { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; overflow: hidden; background: transparent; }
.busy__bar { position: absolute; top: 0; bottom: 0; width: 35%; background: var(--focus); animation: busy-slide 1.1s ease-in-out infinite; }
@keyframes busy-slide { from { left: -35%; } to { left: 100%; } }
.loading-msg { color: var(--ink-2); margin: 0 0 16px; }
.loading-msg::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.skel { background: var(--sunk); position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); transform: translateX(-100%); animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel--h1 { height: 44px; width: min(420px, 80%); margin-bottom: 12px; }
.skel--line { height: 18px; width: min(560px, 90%); }
.skel--bar { height: 64px; margin: 8px 0 28px; }
.skel--card { height: 180px; display: flex; gap: 16px; padding: 20px; background: var(--sunk); }
.skel__dot { width: 56px; height: 56px; border-radius: 50%; background: var(--rule); flex: none; }
.skel__lines { flex: 1; display: grid; gap: 12px; align-content: start; }
.skel__lines i { display: block; height: 14px; background: var(--rule); }
.skel__lines i:first-child { width: 50%; height: 22px; }
.btn.is-working { cursor: progress; opacity: 0.85; }
.btn.is-working::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .busy__bar { animation: none; left: 0; width: 100%; opacity: 0.6; }
  .skel::after, .loading-msg::after, .btn.is-working::before { animation: none; }
  .loading-msg::after { content: "..."; }
}
h1[tabindex="-1"]:focus { outline: none; }

/* Meetings: jump links and the notes archive */
.jump { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; }
.jump a { min-height: var(--tap); display: inline-flex; align-items: center; font-weight: 700; }
.notes-search { max-width: 28rem; margin: 16px 0 8px; }
.notes { list-style: none; margin: 8px 0 0; padding: 0; }
.note { border-bottom: 1px solid var(--rule); }
.note a { display: grid; grid-template-columns: 9rem 1fr auto; gap: 6px 20px; padding: 16px 4px; text-decoration: none; align-items: start; }
.note a:hover { background: var(--sunk); }
.note a:hover .note__title { text-decoration: underline; }
.note__when { font-weight: 700; }
.note__main { display: grid; gap: 4px; min-width: 0; }
.note__title { font-weight: 700; font-size: var(--f2); display: inline-flex; align-items: center; }
.note__take { color: var(--ink-2); max-width: var(--read); }
.note__take--none { font-style: italic; }
.note__go { font-weight: 700; text-decoration: underline; white-space: nowrap; }
@media (max-width: 719px) { .note a { grid-template-columns: 1fr; } .note__go { justify-self: start; } }

/* Weekly rhythm: firm deadlines get a text tag (not color alone); aim-for dates get a gentle note */
.firm { display: inline-flex; align-items: center; font-size: var(--f1); font-weight: 700; padding: 0 6px; border: 2px solid currentColor; border-radius: 3px; line-height: 1.5; }
.due-block__note { margin-top: 6px; font-size: var(--f1); color: var(--ink-2); max-width: 22rem; }
.week-note { max-width: var(--read); margin: 0 0 8px; }
