/* Teacher Hub styles. Colors are tokens at the top, light and dark. */

/* Layout: one app shell. Home lists libraries, sessions and later phases; a session page is a lesson-plan list with media and printables attached to the step that uses them. */
:root {
  --mile-bg: #e4ddf2;
  --mile-ink: #4b3a78;
  --bg: #f4f5f6;
  --card: #ffffff;
  --ink: #1b1f23;
  --muted: #4a525a;
  --line: #c9ced3;
  --accent: #1f6f6b;
  --accent-ink: #ffffff;
  --accent-soft: #dcebe9;
  --warn: #8a5a12;
  --warn-soft: #f6ead2;
  --display: "Newsreader", Georgia, serif;
  --body: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14181b;
    --card: #1d2327;
    --ink: #eaedef;
    --muted: #a5aeb6;
    --line: #343c42;
    --accent: #4fb3ad;
    --accent-ink: #0e1a19;
    --accent-soft: #1f3533;
    --mile-bg: #2d2740;
    --mile-ink: #c9bdf0;
    --warn: #e3b565;
    --warn-soft: #3a2f18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14181b;
  --card: #1d2327;
  --ink: #eaedef;
  --muted: #a5aeb6;
  --line: #343c42;
  --accent: #4fb3ad;
  --accent-ink: #0e1a19;
  --accent-soft: #1f3533;
  --mile-bg: #2d2740;
  --mile-ink: #c9bdf0;
  --warn: #e3b565;
  --warn-soft: #3a2f18;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  padding-inline: 16px;
  padding-block: 0;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-block: 0 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
header.top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
.brand small {
  display: block;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-size: 14px;
}
.lang button {
  border: 0;
  background: none;
  padding: 9px 14px;
}
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h2.label {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
p {
  margin: 0;
}
.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
}
section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  min-width: 0;
}
.tile:hover {
  border-color: var(--accent);
}
.tile .num {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.tile .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
}
.tile .t {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
}
.tile .d {
  font-size: 14px;
  color: var(--muted);
}
.tools {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tool {
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.tool .t {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
}
.qr {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.qrcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 128px;
  align-self: flex-start;
  text-align: center;
  color: inherit;
  text-decoration: none;
}
.qrbox {
  background: #fff;
  padding: 8px;
  border-radius: 6px;
  line-height: 0;
}
.back {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  align-self: flex-start;
}
.shead {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shead .k {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.dl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  background: var(--card);
}
.btn.pri {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.cols {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}
@media (max-width: 860px) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
ol.plan {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.step .time {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}
.step .time b {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.step .body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.step .name {
  font-weight: 600;
  font-size: 17px;
}
.step .what {
  color: var(--ink);
  font-size: 15px;
}
.rule {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--warn-soft);
  font-size: 14px;
}
.rule b,
.chk b {
  font-weight: 600;
}
.chk {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: 14px;
}
.att {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.att .lab {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  width: 100%;
}
.chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font-size: 13px;
}
.chip.missing {
  border-style: dashed;
  color: var(--muted);
}
.chip i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
}
a.chip {
  color: inherit;
  text-decoration: none;
}
a.chip:hover,
button.chip:hover {
  border-color: var(--accent);
}
.box li button {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.player {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.player audio,
.player video {
  width: 100%;
}
aside.side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 16px;
}
.box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.box li {
  display: flex;
  gap: 8px;
}
.box li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 1.5px solid var(--muted);
  border-radius: 3px;
}
.note {
  font-size: 13px;
  color: var(--muted);
}

/* Text pages (study weeks, performances) and need lists */
.prose {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 70ch;
}
.prose h3 {
  margin-top: 12px;
}
.prose ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prose ul.checks {
  list-style: none;
  padding-left: 0;
}
.prose ul.checks li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 1.5px solid var(--muted);
  border-radius: 3px;
  vertical-align: -2px;
}
.box .lab {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}
a.btn {
  text-decoration: none;
  display: inline-block;
}

.mile {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  background: var(--mile-bg);
}
.mile b {
  color: var(--mile-ink);
  font-weight: 600;
}

/* 50-minute Hub: day and session headings inside a weekend plan */
ol.plan li.block {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
