/* FutureWell: public exam timetable (home-page section + /exam-timetable page).
   A real file because the site CSP blocks inline <style>. Light + dark follow the visitor's system setting. */
.fwtt {
  --tt-bg: #ffffff; --tt-bg2: #f5f3ff; --tt-ink: #1e1b4b; --tt-mute: #6b6890; --tt-line: #e4def4;
  --tt-brand: #6d28d9; --tt-brand-soft: #ede9fe; --tt-hot: #e11d48; --tt-hot-soft: #ffe4e6; --tt-ok: #047857;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--tt-ink);
}
@media (prefers-color-scheme: dark) {
  .fwtt {
    --tt-bg: #171429; --tt-bg2: #211c3a; --tt-ink: #f3f1fb; --tt-mute: #a29fbd; --tt-line: #2e2850;
    --tt-brand: #a78bfa; --tt-brand-soft: #2d2457; --tt-hot: #fb7185; --tt-hot-soft: #4c1d2e; --tt-ok: #34d399;
  }
}
.fwtt, .fwtt * { box-sizing: border-box; }

.fwtt-tools { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.fwtt-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fwtt-tabs::-webkit-scrollbar { display: none; }
.fwtt-tab {
  flex: 0 0 auto; appearance: none; cursor: pointer; font: 700 13px/1 Inter, system-ui, sans-serif; white-space: nowrap;
  padding: .6rem .95rem; border-radius: 999px; border: 1px solid var(--tt-line); background: var(--tt-bg); color: var(--tt-ink);
  min-height: 40px; transition: background .15s, border-color .15s;
}
.fwtt-tab:hover { border-color: var(--tt-brand); }
.fwtt-tab[aria-selected="true"] { background: var(--tt-brand); border-color: var(--tt-brand); color: #fff; }
.fwtt-filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.fwtt-select, .fwtt-search input {
  font: 600 13px/1.2 Inter, system-ui, sans-serif; color: var(--tt-ink); background: var(--tt-bg); border: 1px solid var(--tt-line);
  border-radius: 12px; padding: .65rem .8rem; min-height: 44px;
}
.fwtt-select { min-width: 150px; }
.fwtt-search { position: relative; flex: 1 1 200px; }
.fwtt-search input { width: 100%; padding-left: 2.2rem; }
.fwtt-search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--tt-mute); font-size: 13px; pointer-events: none; }
.fwtt-tab:focus-visible, .fwtt-select:focus-visible, .fwtt-search input:focus-visible, .fwtt-add:focus-visible, .fwtt-main:focus-visible, .fwtt-all:focus-visible {
  outline: 3px solid #a855f7; outline-offset: 2px;
}

.fwtt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fwtt-row {
  display: flex; align-items: stretch; gap: .5rem; background: var(--tt-bg); border: 1px solid var(--tt-line); border-radius: 16px;
  padding: .5rem; transition: border-color .15s, box-shadow .15s;
}
.fwtt-row:hover { border-color: var(--tt-brand); box-shadow: 0 6px 20px rgba(109, 40, 217, .10); }
.fwtt-row.today { border-color: var(--tt-hot); }
.fwtt-main { display: flex; align-items: center; gap: .85rem; flex: 1 1 auto; min-width: 0; text-decoration: none; color: inherit; padding: .25rem; border-radius: 12px; }
.fwtt-date {
  flex: 0 0 auto; width: 56px; text-align: center; border-radius: 12px; background: var(--tt-brand-soft); color: var(--tt-brand);
  padding: .45rem 0; line-height: 1;
}
.fwtt-date b { display: block; font: 800 22px/1 'Plus Jakarta Sans', Inter, sans-serif; }
.fwtt-date span { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.fwtt-date small { display: block; margin-top: 3px; font-size: 10px; font-weight: 600; color: var(--tt-mute); }
.fwtt-row.urgent .fwtt-date { background: var(--tt-hot-soft); color: var(--tt-hot); }
.fwtt-body { min-width: 0; flex: 1 1 auto; }
.fwtt-title { display: block; font: 700 15px/1.3 'Plus Jakarta Sans', Inter, sans-serif; overflow-wrap: anywhere; }
.fwtt-meta { display: block; margin-top: 3px; font-size: 12px; color: var(--tt-mute); font-weight: 500; }
.fwtt-count { display: inline-block; margin-top: 6px; font: 700 12px/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--tt-brand); }
.fwtt-row.urgent .fwtt-count { color: var(--tt-hot); }
.fwtt-go { flex: 0 0 auto; align-self: center; color: var(--tt-mute); font-size: 12px; padding-right: .25rem; }
.fwtt-add {
  flex: 0 0 auto; align-self: center; appearance: none; cursor: pointer; font: 700 12px/1.1 Inter, system-ui, sans-serif;
  border: 1px solid var(--tt-line); background: var(--tt-bg2); color: var(--tt-ink); border-radius: 12px; padding: .55rem .7rem; min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-align: left; line-height: 1;
}
/* Bell / tick icon: one fixed box so the button never shifts when the icon changes and the icon-only phone button is centred. */
.fwtt-add i { flex: 0 0 auto; width: 1.1em; text-align: center; font-size: 14px; line-height: 1; }
.fwtt-add .lbl { line-height: 1.1; white-space: nowrap; }
.fwtt-add:hover { border-color: var(--tt-brand); }
.fwtt-add.on { background: var(--tt-brand-soft); color: var(--tt-ok); border-color: transparent; cursor: default; }
.fwtt-add .lbl { display: none; }
@media (min-width: 640px) { .fwtt-add .lbl { display: inline; } .fwtt-date { width: 64px; } .fwtt-title { font-size: 16px; } }

.fwtt-state { text-align: center; padding: 2rem 1rem; border: 1px dashed var(--tt-line); border-radius: 16px; background: var(--tt-bg); color: var(--tt-mute); }
.fwtt-state i { font-size: 26px; color: var(--tt-brand); margin-bottom: .5rem; display: block; }
.fwtt-state p { margin: .25rem 0 0; font-size: 14px; line-height: 1.55; }
.fwtt-state a { color: var(--tt-brand); font-weight: 700; }
.fwtt-skel { height: 76px; border-radius: 16px; background: linear-gradient(90deg, var(--tt-bg2), var(--tt-line), var(--tt-bg2)); background-size: 200% 100%; animation: fwttsh 1.4s linear infinite; }
@keyframes fwttsh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fwtt-skel { animation: none; } }
.fwtt-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .9rem; font-size: 12px; color: var(--tt-mute); }
.fwtt-all { font-weight: 700; font-size: 13px; color: var(--tt-brand); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.fwtt-all:hover { text-decoration: underline; }
.fwtt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* /exam-timetable page shell */
.fwttp-wrap { max-width: 56rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
@media (min-width: 640px) { .fwttp-wrap { padding: 3rem 1.5rem 5rem; } }
.fwttp-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #047857; }
.fwttp-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.fwttp-h1 { font: 800 clamp(1.7rem, 5vw, 2.5rem)/1.15 'Plus Jakarta Sans', Inter, sans-serif; margin: .5rem 0; color: #0f172a; }
.fwttp-lead { color: #475569; font-size: 15px; line-height: 1.65; max-width: 42rem; margin: 0 0 1.5rem; }
.fwttp-note { margin-top: 2rem; font-size: 13px; line-height: 1.7; color: #64748b; }
.fwttp-note a { color: #6d28d9; font-weight: 700; }
@media (prefers-color-scheme: dark) { .fwttp-h1 { color: #f3f1fb; } .fwttp-lead { color: #c4c1dc; } .fwttp-note { color: #a29fbd; } .fwttp-note a { color: #a78bfa; } }
.fwttp-wrap .fwttp-lead { margin-bottom: 1.5rem; }
.fwttp-wrap .fwttp-note { margin-top: 2rem; }
.fwtt-foot { margin-bottom: .25rem; }
