/* ===== Titan Hub "premium" look (preview) — styling only ===== */
@font-face { font-family: 'Lora'; src: url(fonts/lora-var.ttf) format('truetype'); font-weight: 400 700; font-display: swap; }
:root { --ink: #151312; --bg: #F6F5F2; --line: #E8E6E1; --mute: #6E6A64; --brand: #B3261E; --brand-d: #7E1A15; --green: #2E7D4F; --r: 20px;
  --serif: 'Lora', Georgia, 'Times New Roman', serif; --sh: 0 1px 2px rgba(20,17,15,.04), 0 6px 20px rgba(20,17,15,.05); }
body { background: var(--bg); letter-spacing: .005em; }
main { gap: 16px; padding-top: 18px; }

/* headings: an elegant serif for titles only */
.top b, .h, .hero b, .card h3, .lwhero h1, .ctile .bd b, .mod > summary .tx b, .ctile .cv span, .wtitle, h1, h2 { font-family: var(--serif) !important; font-weight: 600 !important; letter-spacing: -.01em; }
.top { background: #0F0D0C; padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: 12px; box-shadow: 0 1px 0 rgba(255,255,255,.04); }
.top small { color: #C9A27E; letter-spacing: .18em; font-size: 9.5px; }
.top b { font-size: 19px; }
.top .ic { background: transparent; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.top .viewbtn { border-radius: 999px; }
.sec { font-size: 11px; letter-spacing: .16em; color: #8A857E; margin-top: 14px; }

/* cards: no outlines, soft depth, more air */
.card, .ctile, .mod, .item, .q, .reading { box-shadow: var(--sh); border-radius: var(--r); }
.card { padding: 18px; }
.item { border-left: 0 !important; padding: 14px 16px; }
.mod > summary { border-left: 0 !important; padding: 16px; }
.mod > summary .n { border-radius: 50%; background: #F0EEEA; color: var(--ink); width: 32px; height: 32px; font-size: 14px; }
.mod.done > summary .n { background: #E6F1EA; color: var(--green); }
.mod.now > summary .n { background: var(--ink); color: #fff; }
.mod.now { box-shadow: 0 0 0 1.5px var(--ink), var(--sh); }
.mod .les { gap: 4px; padding: 0 12px 12px; }
.mod .les .item { border: 0 !important; box-shadow: none; background: #FAF9F7; border-radius: 14px; }
.ki { box-shadow: none; border-radius: 12px; }
.ki.g-c { background: #F6E9E7; color: var(--brand); } .ki.g-t { background: #EDEBE7; color: var(--ink); } .ki.g-a { background: #F3E6E4; color: var(--brand-d); } .ki.g-o { background: #EFEDEA; color: #4a4642; } .ki.g-g { background: #E6F1EA; color: var(--green); }

/* buttons: one red for the main action, quiet everything else */
.btn { border-radius: 999px; font-weight: 700; letter-spacing: .01em; box-shadow: none; }
.btn.sm { border-radius: 999px; }
.btn.green, .btn.blue, .btn.purple, .btn.amber { background: var(--ink); }
.btn.ghost, .btn.danger, .cmini { background: #fff; border: 1px solid var(--line) !important; color: var(--ink); border-radius: 999px; }
.btn.ghost:hover, .cmini:hover { border-color: #cfcac2 !important; }

/* tabs: a calm segmented control */
.tabs { gap: 4px; background: #ECEAE5; padding: 4px; border-radius: 999px; }
.tabs button, .tabs a { border: 0 !important; background: transparent; border-radius: 999px; color: #5f5a54; padding: 8px 14px; }
.tabs .on { background: #fff !important; color: var(--ink) !important; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* chips: quiet labels */
.chip { background: #F0EEEA; color: #4a4642; border-radius: 999px; font-weight: 600; padding: 3px 10px; }
.chip.green { background: #E6F1EA; color: #245F3D; } .chip.amber { background: #F7EFDF; color: #7A5A12; } .chip.red { background: #F6E5E3; color: #8E1F18; }

/* student course: a dark, calm header with a thin progress line */
.hero { background: #171413 radial-gradient(120% 140% at 100% 0%, rgba(179,38,30,.35), transparent 55%); border-radius: 24px; padding: 22px 20px; box-shadow: var(--sh); }
.hero small { color: #C9BFB6; } .hero b { font-size: 30px !important; line-height: 1.15; margin: 6px 0 4px; }
.hero .bar { height: 4px; background: rgba(255,255,255,.15); } .hero .bar i { background: #fff; }

/* team Today: white tiles with a coloured number, not blocks of colour */
.tile { background: #fff !important; color: var(--ink) !important; box-shadow: var(--sh); border-radius: 20px; padding: 16px; }
.tile b { font-family: var(--serif); font-weight: 600; font-size: 34px; }
.tile.c-red b { color: var(--brand); } .tile.c-amber b { color: #9A6A00; } .tile.c-blue b { color: #1F5BB8; } .tile.c-purple b { color: #6A3AA8; }
.tile span { color: #6E6A64; font-weight: 600; }
.tile.c-ink { background: #171413 !important; color: #fff !important; } .tile.c-ink span { color: #cfc8c0; }
.alert { background: #fff !important; color: var(--ink) !important; box-shadow: var(--sh); border-radius: 18px; padding: 14px 16px; position: relative; overflow: hidden; }
.alert small { color: var(--mute); }
.alert::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: #bbb; }
.alert.c-red::before { background: var(--brand); } .alert.c-amber::before { background: #C18A0B; } .alert.c-blue::before { background: #1F5BB8; } .alert.c-purple::before { background: #6A3AA8; } .alert.c-teal::before { background: #0E7C78; } .alert.c-green::before { background: var(--green); }
.alert.c-red .em { color: var(--brand); } .alert.c-blue .em { color: #1F5BB8; } .alert.c-purple .em { color: #6A3AA8; } .alert.c-teal .em { color: #0E7C78; } .alert.c-amber .em { color: #9A6A00; }
.alert .btn { background: var(--ink); color: #fff; }

/* course tiles */
.ctile .cv { height: 150px; } .ctile .bd { padding: 16px; gap: 6px; }
.cadd { border: 1.5px dashed #D3CEC6; border-radius: 20px; background: rgba(255,255,255,.5); }

/* website course page: dark hero, serif title, quiet stats */
.wtop { background: rgba(15,13,12,.92); backdrop-filter: blur(10px); }
.lwhero { background: #0F0D0C radial-gradient(90% 80% at 50% 0%, rgba(179,38,30,.35), transparent 70%); padding: 30px 18px 44px; }
.lwhero h1 { font-size: clamp(34px, 8vw, 58px) !important; text-shadow: none; }
.lwhero p { color: #D9D2CA; }
.lwenrol { box-shadow: none; }
.lwstats { background: #fff; color: var(--ink); border-top: 0; border-bottom: 1px solid var(--line); padding: 18px 12px; }
.lwstats b { font-family: var(--serif) !important; font-weight: 600 !important; font-size: 26px; }
.lwstats small { color: #8A857E; }
.lwstats .ei { color: var(--brand); }

/* bottom menu */
.nav { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.nav a.on { color: var(--ink); } .nav a.on::before { background: var(--brand); height: 2px; left: 35%; right: 35%; }

/* ===== v2.8.6 "university" header: light paper, the raised crest, a serif title, a thin gold rule ===== */
.top { background: #FBFAF7 !important; color: var(--ink) !important; border-bottom: 1px solid #E6E0D3; box-shadow: 0 1px 0 #fff inset, 0 6px 18px rgba(20,17,15,.05) !important; }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, #B08A3A 20%, #B3261E 50%, #B08A3A 80%, transparent); opacity: .55; }
.top img { width: 56px !important; height: 56px !important; margin: -6px 0; }
.top small { color: var(--brand) !important; font-family: var(--serif) !important; font-weight: 600 !important; letter-spacing: .16em; font-size: 10px; }
.top b { color: var(--ink); }
.top .ic, .top .viewbtn, .top button:not(.btn) { background: #fff !important; color: var(--ink) !important; border: 1px solid #E2DCCF !important; }
.wtop { background: rgba(251,250,247,.94) !important; border-bottom: 1px solid #E6E0D3; }
.wbrand { color: var(--ink) !important; } .wbrand img { width: 52px !important; height: 52px !important; } .wbrand b { font-family: var(--serif) !important; font-weight: 600 !important; }
.wtop .btn, .wtop a.btn { background: #fff; color: var(--ink); border: 1px solid #E2DCCF; }
.ac-logo { width: 46px !important; height: 46px !important; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)) !important; }
.auth .logo img { width: 170px !important; filter: none; }
.auth .logo b { font-family: var(--serif) !important; font-weight: 600 !important; }
.wtop .btn, .wtop .btn.ghost { background: #fff !important; color: var(--ink) !important; border: 1px solid #D9D2C4 !important; }
.wtop .btn:not(.ghost) { background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; }
