/* shiftaway.app: one stylesheet, no web fonts, no third-party anything (docs/SECURITY.md).
   Colours are the app's tokens (docs/DESIGN.md), light and dark. */
:root {
  --bg: #f8f3ea;
  --card: #ffffff;
  --line: #e6dccd;
  --line2: #cfc3b3;
  --accent: #2f5d9e;
  --on-accent: #ffffff;
  --text: #1f1c19;
  --muted: #6b635a;
  --night: #5b4db0;
  --second: #b4472f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1714;
    --card: #25211d;
    --line: #3a332c;
    --line2: #574d43;
    --accent: #8db4f2;
    --on-accent: #1a1714;
    --text: #f3ede4;
    --muted: #b5ab9e;
    --night: #ada1f2;
    --second: #ec8b70;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main { max-width: 640px; margin: 0 auto; padding: 32px 16px 48px; }
a { color: var(--accent); }
h1, h2 { line-height: 1.15; margin: 0 0 8px; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin-top: 28px; }
p, li { margin: 0 0 12px; }
.muted { color: var(--muted); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; margin-bottom: 28px; }
.brand img { width: 36px; height: 36px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 16px 0; }
footer { max-width: 640px; margin: 0 auto; padding: 0 16px 32px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); margin-right: 16px; display: inline-block; min-height: 44px; line-height: 44px; }

/* Share page */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; }
.pager button {
  min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--card); color: var(--text); font: inherit; font-size: 20px; cursor: pointer;
}
.pager button:disabled { opacity: 0.35; cursor: default; }
.pager h2 { margin: 0; font-size: 18px; }
table.month { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
table.month th { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 0; }
table.month td { padding: 0; }
.day {
  height: 52px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; border: 1.5px solid transparent;
}
.day small { font-weight: 500; font-size: 10px; line-height: 1.1; }
.day.work { background: var(--accent); color: var(--on-accent); }
.day.off { background: var(--card); border-color: var(--line2); }
.day.unknown { color: var(--muted); border: 1.5px dashed var(--line2); }
.day.past { opacity: 0.5; }
.day.today { outline: 2.5px solid var(--text); outline-offset: 2px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; margin: 12px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.swatch.work { background: var(--accent); }
.swatch.off { background: var(--card); border: 1.5px solid var(--line2); }
.notice { color: var(--second); font-weight: 600; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
