/* ============================================================
   Student menu & homework pages
   Shared by every person's index.html (menu) and homework.html.
   All colour/radius comes from the theme file loaded before this
   (shared/themes/pink.css, ink.css, …), so each student's menu
   matches their flashcard app. Mobile-first, one screen.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  background-image: radial-gradient(120% 55% at 50% 0%, var(--bg-tint) 0%, var(--bg) 55%);
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Jost', 'Inter', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  display: flex;
}

.wrap {
  width: 100%;
  max-width: 440px;
  margin: auto;
  padding: calc(22px + env(safe-area-inset-top)) 20px calc(30px + env(safe-area-inset-bottom));
}

/* ─── Back link ──────────────────────────── */
.back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
}
.back:active { opacity: 0.6; }

/* ─── Header ─────────────────────────────── */
.brand { text-align: center; margin-bottom: 26px; }
.hello {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.hello b { color: var(--accent); font-weight: 600; }
.brand h1 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(26px, 7.5vw, 32px);
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ink);
  line-height: 1.12;
}
.brand .tagline {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ─── Menu rows ──────────────────────────── */
.menu { display: flex; flex-direction: column; gap: 11px; }

.item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: var(--r-md, 12px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(var(--ink-rgb), 0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s;
}
.item:hover { transform: translateY(-2px); border-color: rgba(var(--ink-rgb), 0.28); }
.item:active { transform: scale(0.99); }

.tile {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: calc(var(--r-md, 12px) - 2px);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
  font-size: 21px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

.item .who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.item .name { font-size: 17px; font-weight: 500; letter-spacing: 0.2px; color: var(--ink); }
.item .sub  { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }

.item .go {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-soft);
  opacity: 0.55;
}

/* ─── Week picker (homework dropdown) ────── */
.week-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.week-picker span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.week-picker select {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--r-md, 12px);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
                    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* ─── Homework card ──────────────────────── */
.hw {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 14px);
  box-shadow: 0 8px 22px rgba(var(--ink-rgb), 0.07);
  padding: 22px 20px;
}
.hw p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
.hw p.note {
  margin-top: 16px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.hw ul {
  list-style: none;
  margin: 16px 0 0;
}
.hw li {
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}
.hw li::before {
  content: "✓";
  position: absolute;
  left: 2px; top: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.hw .phrase {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
}
.hw a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
