/* Homepage UI 3.0 (owner-approved demo, 2026-12-01). Loaded after evo on the 17 master pages; homepage behaviour in js/ui3.*.js.
   Every motion respects prefers-reduced-motion; nothing here changes layout after first paint (transforms and opacity only). */
:root { --ui3-ease: cubic-bezier(.2, .8, .2, 1); --ui3-acc: #5fe1ff; }

/* 1. Headline: Geist (the site font; replaces Getai). Load style C (owner, 2026-12-01): each rendered line slides up from behind its
   own mask, 110 ms apart, then the highlighter draws under "upper hand". The headline is never hidden as a whole: the inline script
   right after the h1 (public homepage, motion allowed) builds the masked lines before first paint; no blur, no opacity on words. */
.evo-tag, .evo-tag * { font-family: "Geist", "Geist Fallback", system-ui, sans-serif !important; font-weight: 800 !important; }
.evo-tag { letter-spacing: -0.04em; line-height: 1; }
@keyframes ui3-show { to { visibility: visible; opacity: 1; } }
.ui3-js #header:not(.uc-paid-home) :is(.hero-desc, .hero-stats, .hero-find, .sem-jump):not(.ui3-seq) { opacity: 0; animation: ui3-show 0s 1s forwards; }
.ui3-js #header:not(.uc-paid-home) h1.evo-h1 { animation: none !important; }
.ui3-h .ui3-l { display: block; overflow: hidden; padding: 0 .1em .12em; margin: 0 -.1em -.12em; }
.ui3-h .ui3-li { display: block; transform: translateY(135%); transition: transform .9s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--l) * 110ms); }
.ui3-h.go .ui3-li { transform: none; }
/* failsafe: if the script never says go, the lines arrive anyway after 1 s and the highlighter after 2.5 s */
@keyframes ui3-unmask { to { transform: none; } }
.ui3-h:not(.go) .ui3-li { animation: ui3-unmask 0s 1s forwards; }
/* the existing highlighter waits until the lines land, then draws like a marker stroke (hidden until then: at scaleX(0) its skew leaves a sliver) */
.ui3-h .evo-hl::before { animation: none; opacity: 0; transform: skewX(-8deg) rotate(-1deg) scaleX(0);
  transition: transform .9s cubic-bezier(.45, 0, .2, 1), opacity .1s; }
.ui3-h.hl .evo-hl::before { opacity: 1; transform: skewX(-8deg) rotate(-1deg); }
@keyframes ui3-hl-show { to { opacity: 1; transform: skewX(-8deg) rotate(-1deg); } }
.ui3-h:not(.hl) .evo-hl::before { animation: ui3-hl-show 0s 2.5s forwards; }
/* 4. the rest of the hero follows the headline */
.ui3-seq { transform: translateY(12px); transition: opacity .5s ease, transform .6s var(--ui3-ease); }
.ui3-js .ui3-seq { animation: none; }
.ui3-seq:not(.is-in) { opacity: 0 !important; }
.ui3-seq.is-in { transform: none; }

/* 2. Counts under the hero text; a number never splits from its label */
.hero-stats { margin: 10px 0 18px; font: 600 13px/1.4 ui-monospace, "Geist Mono", SFMono-Regular, Menlo, monospace !important; letter-spacing: .04em; text-transform: uppercase; color: #9fb0c3; }
.hero-stats * { font-family: inherit !important; }
.hero-stats span { white-space: nowrap; }
.hero-stats b { display: inline-block; text-align: right; color: #f3f6fa; font-variant-numeric: tabular-nums; }
@media (max-width: 360px) { .hero-stats { letter-spacing: .02em; font-size: 12px !important; } }

/* 3. Next exam: side card (desktop 1280 px+, beside the photo) and a compact strip under the search box (phones, tablets) */
.ui3-side { position: absolute; right: calc(1vw + 64px); top: 232px; width: 392px; z-index: 2; box-sizing: border-box; padding: 22px 22px 20px;
  border-radius: 20px; background: rgba(11,14,20,.9); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px rgba(0,0,0,.45); color: #f3f6fa;
  transition: opacity .5s ease, transform .7s var(--ui3-ease); }
.ui3-js .ui3-side:not(.is-in) { opacity: 0; transform: translateY(16px); animation: ui3-show 0s 1.2s forwards; }
@media (max-width: 1279px) { .ui3-side { display: none; } }
@media (min-width: 1280px) { .ui3-has-side .evo-papers { display: none !important; } .ui3-strip { display: none !important; } }
.ui3-side p { margin: 0; }
.ui3-lbl { font: 600 11px/1.3 ui-monospace, "Geist Mono", Menlo, monospace !important; letter-spacing: .08em; text-transform: uppercase; color: #8b97a6; }
.ui3-examcard .ui3-next { margin-top: 14px; font-size: 13px; color: var(--ui3-acc); font-weight: 600; }
.ui3-examcard .ui3-course { margin-top: 4px; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.ui3-examcard .ui3-when { margin-top: 6px; font-size: 14px; color: #c9d3de; }
.ui3-count-lbl { margin-top: 14px !important; }
.ui3-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.ui3-count span { display: grid; justify-items: center; gap: 4px; padding: 10px 0 8px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  font: 600 11px/1 ui-monospace, "Geist Mono", Menlo, monospace !important; letter-spacing: .06em; text-transform: uppercase; color: #8b97a6; }
.ui3-count b { font: 700 28px/1 "Geist", system-ui, sans-serif !important; letter-spacing: -.02em; color: #f3f6fa; font-variant-numeric: tabular-nums; }
.ui3-timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin: 18px 0 16px; padding: 0; list-style: none; }
.ui3-timeline::before { content: ""; position: absolute; left: 8%; right: 8%; top: 5px; height: 2px; background: rgba(255,255,255,.12); }
.ui3-timeline li { position: relative; display: grid; justify-items: center; gap: 5px; text-align: center; }
.ui3-timeline i { width: 12px; height: 12px; border-radius: 50%; background: #0b0e14; border: 2px solid rgba(255,255,255,.3); box-sizing: border-box; }
.ui3-timeline li.is-done i { background: var(--ui3-acc); border-color: var(--ui3-acc); }
.ui3-timeline li.is-next i { border-color: var(--ui3-acc); box-shadow: 0 0 0 4px rgba(95,225,255,.18); animation: ui3-pulse 1.8s ease-out infinite; }
.ui3-timeline b { font: 700 11px/1 ui-monospace, "Geist Mono", Menlo, monospace !important; color: #c9d3de; }
.ui3-timeline li.is-next b { color: var(--ui3-acc); }
.ui3-timeline li.is-done b { color: #8b97a6; text-decoration: line-through; }
.ui3-timeline span { font-size: 11px; color: #8b97a6; }
.ui3-go { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: 12px; background: var(--ui3-acc); color: #04131a !important;
  font-weight: 700; font-size: 14px; text-decoration: none !important; transition: transform .18s var(--ui3-ease); }
.ui3-go:active { transform: scale(.97); }
.ui3-sap { margin-top: 16px; }
.ui3-sap .ui3-lbl { display: block; margin-bottom: 8px; }
.ui3-sap-row { display: flex; gap: 8px; }
.ui3-sap input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #f3f6fa; font: 500 16px/1 "Geist", system-ui, sans-serif !important; letter-spacing: .04em; box-sizing: border-box; }
.ui3-sap input::placeholder { color: #8b97a6; }
.ui3-sap input:focus { outline: 2px solid var(--ui3-acc); outline-offset: 1px; }
.ui3-sap button { flex: none; height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--ui3-acc); color: #04131a; font: 700 14px/1 "Geist", system-ui, sans-serif !important; cursor: pointer; }
.ui3-sap button:active { transform: scale(.97); }
.ui3-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ui3-strip { display: flex; align-items: center; gap: 12px; margin-top: 12px; min-height: 56px; padding: 10px 14px; box-sizing: border-box; border-radius: 14px;
  background: rgba(11,14,20,.85); border: 1px solid rgba(95,225,255,.28); color: #f3f6fa !important; text-decoration: none !important; max-width: 100%; }
.ui3-strip-l { display: grid; gap: 3px; min-width: 0; flex: 1; }
.ui3-strip-l .ui3-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui3-strip-l b { font-size: 15px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui3-strip-c { flex: none; font: 700 15px/1 "Geist", system-ui, sans-serif !important; color: var(--ui3-acc); font-variant-numeric: tabular-nums; }
.ui3-strip-go { flex: none; color: var(--ui3-acc); font-size: 18px; }
a.ui3-strip:active { transform: scale(.98); }
.ui3-strip-erct { display: block; padding: 12px 14px; }
.ui3-strip-top { display: flex; align-items: center; gap: 12px; }
.ui3-strip-erct .ui3-sap { margin-top: 10px; }
@media (max-width: 360px) { .ui3-strip { gap: 8px; padding: 10px 12px; } .ui3-strip-l b { font-size: 14px; } .ui3-strip-c { font-size: 14px; } }

/* The Exam Companion's own hero link (ERCT release) is the same destination: while our ERCT card shows, one entry point only */
.ui3-erct #header .ece { display: none !important; }
#header .ece-k { font-size: 11px !important; } /* mobile pass: no text under 11 px */

/* 5. One highlight slides to the picked semester */
.sem-jump-pills { position: relative; isolation: isolate; }
.ui3-ind { position: absolute; z-index: -1; top: 0; left: 0; height: 100%; border-radius: 14px 14px 0 0; background: rgba(95,225,255,.12);
  box-shadow: inset 0 0 0 1.5px var(--ui3-acc), 0 -6px 24px rgba(95,225,255,.18); opacity: 0; pointer-events: none;
  transition: transform .38s var(--ui3-ease), width .38s var(--ui3-ease), opacity .2s; }
.ui3-ind.on { opacity: 1; }
.ui3-pills .sem-pill[aria-pressed="true"] { background: transparent !important; box-shadow: none !important; }

/* 6. Course cards arrive one after another; end-sem exam chips (after ERCT) */
.ui3-stagger > ul > li { animation: ui3-rise .45s var(--ui3-ease) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes ui3-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ui3-exam-chip { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 6px; background: rgba(255,216,77,.12); color: #ffd84d;
  font: 600 11px/1.4 ui-monospace, "Geist Mono", Menlo, monospace !important; letter-spacing: .03em; white-space: nowrap; }
.ui3-exam-chip.is-over { background: rgba(255,255,255,.06); color: #8b97a6; }
.evo-meta:has(.ui3-exam-chip), .home-v3 .sem-list .evo-meta:has(.ui3-exam-chip) { flex-wrap: wrap !important; row-gap: 6px; max-width: 100%; }

/* 7. Specialisation courses: one row, opens to show the track courses (native details/summary) */
.sem-spec { grid-column: 1 / -1; list-style: none; }
.sem-spec details { width: 100%; }
.sem-spec details > summary { list-style: none; cursor: pointer; width: 100%; box-sizing: border-box; }
.sem-spec details > summary::-webkit-details-marker { display: none; }
.sem-spec summary.sem-course { border-style: dashed; }
.sem-spec details[open] > summary.sem-course { border-style: solid; border-color: rgba(95,225,255,.35); }
.sem-spec summary.sem-course:focus-visible { outline: 2px solid var(--ui3-acc); outline-offset: 2px; }
.sem-spec-ico { --hue: #5fe1ff; }
.sem-spec-sub { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 400; color: #8b97a6; line-height: 1.4; }
.sem-spec .sem-course-n > .ui3-exam-chip { margin: 6px 0 0; }
.sem-spec-chev { flex: none; margin-left: auto; color: #8b97a6; transition: transform .25s var(--ui3-ease); }
.sem-spec details[open] .sem-spec-chev { transform: rotate(180deg); color: var(--ui3-acc); }
.sem-spec-list { margin: 10px 0 0 !important; padding: 0 0 0 14px !important; border-left: 2px solid rgba(95,225,255,.25); list-style: none; display: grid; gap: inherit; }
.sem-spec details[open] .sem-spec-list > li { animation: ui3-rise .35s var(--ui3-ease) both; animation-delay: calc(var(--i, 0) * 40ms); }

/* 8. "Inside Semester N": each thumbnail is a small pile of pages that fans on hover / press */
.inside-a .ui3-pile { position: relative; flex: none; display: block; width: 96px; height: 136px; margin-right: 10px; }
.inside-a .ui3-pile img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; transition: transform .35s var(--ui3-ease); }
.inside-a .ui3-pile img:nth-child(1) { transform: rotate(-4deg) translate(-3px, 2px); filter: brightness(.75); }
.inside-a .ui3-pile img:nth-child(2) { transform: rotate(3deg) translate(3px, 1px); filter: brightness(.88); }
.inside-a:is(:hover, :active, :focus-visible) .ui3-pile img:nth-child(1) { transform: rotate(-10deg) translate(-10px, 4px); }
.inside-a:is(:hover, :active, :focus-visible) .ui3-pile img:nth-child(2) { transform: rotate(7deg) translate(8px, 2px); }
.inside-a:is(:hover, :active, :focus-visible) .ui3-pile img:nth-child(3) { transform: translateY(-6px) scale(1.04); }

/* 9. Recently added: "2 days ago" + a pulsing dot on anything from the last 3 days */
.ui3-ago { margin-left: 8px; color: var(--ui3-acc); font-weight: 600; }
.ui3-fresh .wnh-d { position: relative; }
.ui3-fresh .wnh-d::before { content: ""; position: absolute; left: -14px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ui3-acc); animation: ui3-pulse 1.8s ease-out infinite; }
@keyframes ui3-pulse { 0% { box-shadow: 0 0 0 0 rgba(95,225,255,.6); } 100% { box-shadow: 0 0 0 10px rgba(95,225,255,0); } }

/* 11. Lower sections rise in once; cards lift on hover and press in on tap */
.ui3-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s var(--ui3-ease); }
.ui3-reveal.is-in { opacity: 1; transform: none; }
.sem-course, .inside-a, .access-go, .hero-find, .sem-pill { transition: transform .18s var(--ui3-ease), box-shadow .18s, background-color .18s; }
@media (hover: hover) {
  .sem-course:hover, .inside-a:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(95,225,255,.25); }
  .access-go:hover, .hero-find:hover { transform: translateY(-1px); }
}
.sem-course:active, .inside-a:active, .access-go:active, .hero-find:active, .sem-pill:active { transform: scale(.97); transition-duration: .08s; }

/* 12. Quote of the day is always open (the hide/show buttons are gone from quotes.js; this covers a cached older script) */
.quote-block .quote-hide, .quote-block .quote-show { display: none !important; }
.quote-block.is-collapsed { width: min(640px, calc(100% - 32px)) !important; padding: 14px 16px 10px !important; border: 1px solid rgba(0, 229, 255, .18) !important; background: rgba(0, 10, 25, .9) !important; text-align: left !important; }
.quote-block.is-collapsed .quote-open[hidden] { display: block !important; }

/* 13. Mobile pass: text links get a 44 px tap area without moving text (vertical padding on inline links doesn't change layout).
   The site sets .wnh-c a / footer p a to padding 0 !important, so these carry the extra specificity. */
body .inside .inside-sub a, body .wnh .wnh-c a, html body .footer.home-foot p a, html body .footer.home-foot .home-foot-links a { padding-block: 13px !important; } /* 13 px: WebKit's inline box is ~1 px shorter than Chromium's */
/* landscape phones / short screens: less photo above the headline so search and tabs reach the first screen */
@media (orientation: landscape) and (max-height: 500px) {
  .home-v3 #header#header:not(.uc-paid-home) .text-box { padding-top: 64px !important; }
  #header .evo-tag { font-size: clamp(30px, 9.5vh, 40px) !important; }
  #header h1.evo-h1 { min-height: 0 !important; }
  #header .hero-desc { margin-top: 8px !important; }
  #header .hero-find { margin-top: 14px !important; }
  #header .sem-jump { margin-top: 18px !important; }
  #header .hero-desc, #header .hero-stats { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.85); }
  #header .text-box::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(11,14,20,.88) 0%, rgba(11,14,20,.7) 50%, rgba(11,14,20,0) 82%); }
  /* the ERCT strip is one row here (title left, SAP ID box right) so the semester tabs stay on the first screen */
  #header .ui3-strip { margin-top: 10px; }
  #header .ui3-strip-erct { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; }
  #header .ui3-strip-erct .ui3-strip-top { flex: 1; min-width: 0; }
  #header .ui3-strip-erct .ui3-strip-c { display: none; }
  #header .ui3-strip-erct .ui3-sap { flex: 0 1 300px; margin-top: 0; }
  #header .ui3-strip-erct .ui3-sap input, #header .ui3-strip-erct .ui3-sap button { height: 42px; }
}

/* 14. Reduced motion: everything is shown as it ends up, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .ui3-li, .ui3-seq, .ui3-side, .ui3-ind, .ui3-reveal, .inside-a .ui3-pile img, .ui3-h .evo-hl::before, .sem-spec-chev,
  .sem-course, .inside-a, .access-go, .hero-find, .sem-pill { transition: none !important; }
  .ui3-stagger > ul > li, .ui3-fresh .wnh-d::before, .ui3-timeline li.is-next i, .sem-spec details[open] .sem-spec-list > li { animation: none !important; }
  .ui3-h .ui3-li { transform: none !important; animation: none !important; }
  .ui3-reveal, .ui3-side { opacity: 1; transform: none; }
  .sem-course:active, .inside-a:active, .access-go:active, .hero-find:active, .sem-pill:active { transform: none; }
}

/* ===================================================================================================================
   Homepage Paper · direction B (owner, 2026-12-02). The cheat sheet's own material: ruled notebook paper for the
   content sections, notes as taped sheets, one handwritten face for three existing labels, one type scale, quiet
   labels instead of pills. The navy frame, cyan, Geist, the signature library banner, the yellow "Now" flags and the
   "Pick your semester." panel are unchanged. Colours flip by redefining the --e-* tokens inside the paper sections.
   =================================================================================================================== */
@font-face { font-family: "UCS Hand"; src: url(fonts/Kalam-700-latin.c1bc509226.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --p-ink: #141821; --p-ink2: #4a5363; --p-rule: #d6e2ef; --p-margin: #e08a84; --p-hand: #b0302b; --p-marker: rgba(255, 224, 92, .78); }

/* B1 · paper: "Inside every course" + "Recently added" on ruled notebook paper, torn top and bottom, a red margin line */
.home-v3 section.inside, .home-v3 section.wnh {
  --e-text: var(--p-ink); --e-soft: var(--p-ink2); --e-muted: var(--p-ink2); --e-line: rgba(20, 24, 33, .12); --e-line2: rgba(20, 24, 33, .2);
  --e-s1: #fff; --e-s2: #fff; --e-s3: #ece7da; --e-cy: #0b5d74; --e-on-cy: #ffffff; --e-ledge: #063b4a; --e-hl: var(--p-marker);
  --e-notes: #1f5fd1; --e-notes-bg: transparent; --e-notes-line: transparent; --e-sol: #157a48; --e-sol-bg: transparent; --e-sol-line: transparent;
  --e-pyq: #6b3fc4; --e-pyq-bg: transparent; --e-pyq-line: transparent; --ui3-acc: #0b5d74;
  position: relative; color: var(--p-ink); background: var(--e-paper) repeating-linear-gradient(180deg, transparent 0 31px, var(--p-rule) 31px 32px) !important; }
.home-v3 section.inside { margin-top: 56px !important; padding-top: 64px !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 14 L7 3 L14 12 L21 2 L28 14 Z'/%3E%3C/svg%3E") top / 28px 14px repeat-x, linear-gradient(#000, #000) 0 13px / 100% calc(100% - 13px) no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 14 L7 3 L14 12 L21 2 L28 14 Z'/%3E%3C/svg%3E") top / 28px 14px repeat-x, linear-gradient(#000, #000) 0 13px / 100% calc(100% - 13px) no-repeat; }
.home-v3 section.wnh { padding-bottom: 72px !important; margin-bottom: 40px !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 0 L7 11 L14 2 L21 12 L28 0 Z'/%3E%3C/svg%3E") bottom / 28px 14px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 13px) no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 0 L7 11 L14 2 L21 12 L28 0 Z'/%3E%3C/svg%3E") bottom / 28px 14px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 13px) no-repeat; }
.home-v3 section.inside::before, .home-v3 section.wnh::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(8px, calc(50% - 640px)); width: 2px; background: var(--p-margin); pointer-events: none; }
.home-v3 section:is(.inside, .wnh) :is(.inside-title, .wnh-title) { text-shadow: none !important; }
/* the notes are sheets of paper: white, slightly tilted, held by highlighter-yellow tape */
.home-v3 section.inside .inside-a { background: #fff !important; border: 0 !important; box-shadow: 0 1px 0 rgba(20, 24, 33, .06), 0 14px 26px -10px rgba(20, 24, 33, .28) !important; position: relative; overflow: visible !important; rotate: -.7deg; }
.home-v3 section.inside li:nth-child(2) .inside-a { rotate: .6deg; } .home-v3 section.inside li:nth-child(3) .inside-a { rotate: -.3deg; }
.home-v3 section.inside .inside-a::after { content: ""; position: absolute; top: -10px; left: 50%; width: 74px; height: 22px; margin-left: -37px; background: var(--p-marker); rotate: -4deg; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); pointer-events: none; z-index: 2; }
.home-v3 section.wnh .wnh-e { background: #fff; padding: 14px 16px 16px; box-shadow: 0 10px 22px -12px rgba(20, 24, 33, .3); }
.home-v3 section.wnh .wnh-e::before { display: none !important; } /* the timeline dots: the sheets replace the timeline */
.home-v3 section.wnh .wnh-list { border: 0 !important; padding: 0 !important; margin-left: 0 !important; gap: 14px !important; }
.home-v3 section.wnh .wnh-e { margin: 0 !important; }
.home-v3 section.wnh .ui3-fresh .wnh-d::before { left: -10px; }

/* B2 · one handwritten face, three existing labels (nothing added). The site sets Geist on every element with a
   4-class selector, so these carry five. */
html body.home-v3 section.inside p.inside-sub.inside-sub, html body.home-v3 section.inside p.inside-sub.inside-sub *,
html body.home-v3 section.wnh a.wnh-all.wnh-all, html body.home-v3 section.wnh a.wnh-all.wnh-all *,
html body aside.quote-block.quote-block span.quote-label.quote-label.quote-label { font-family: "UCS Hand", "Comic Sans MS", cursive !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; }
html body.home-v3 section.inside p.inside-sub.inside-sub { display: inline-block; color: var(--p-hand) !important; font-size: 18px !important; line-height: 1.35; rotate: -1deg; }
html body.home-v3 section.inside p.inside-sub.inside-sub a { color: var(--p-hand) !important; text-decoration-color: rgba(176, 48, 43, .45); }
html body.home-v3 section.wnh a.wnh-all.wnh-all, html body.home-v3 section.wnh a.wnh-all.wnh-all * { color: var(--p-hand) !important; font-size: 18px !important; }
html body aside.quote-block.quote-block span.quote-label.quote-label.quote-label { font-size: 18px !important; color: var(--e-now) !important; }

/* B3 · labels instead of pills: the type keeps its colour dot, loses the capsule; title chips (Handwritten, March, CSE) go */
.home-v3 .inside-r .evo-chip { display: none !important; }
.home-v3 .inside-h, .home-v3 .wn-k, .sem-course-track { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; height: auto !important; }

/* B4 · one corner radius for the homepage's panels */
.home-v3 :is(.sem-course, .inside-a, .access-in, .ui3-strip, .ui3-side, .evo-empty, .hero-find), .footer.home-foot { border-radius: 16px !important; }

/* B5 · one type scale on the homepage: 12 labels · 14 meta · 16 body · 18 card titles (headings and display sizes unchanged) */
.home-v3 :is(.ui3-lbl, .sem-now-k, .wn-k, .inside-h, .ui3-count span, .ui3-timeline b, .ui3-timeline span), .sem-course-track { font-size: 12px !important; }
.home-v3 :is(.sem-course-m, .evo-cnt, .evo-cnt b, .sem-spec-sub, .inside-n, .wnh-d, .wnh-d time, .ui3-ago, .wnh-m, .wnh-m b, .wnh-more, .wnh-rt, .sem-escape, .sem-jump-label, .access-how-h, .access-steps li, .ui3-when, .ui3-next, .hero-stats) { font-size: 14px !important; }
.home-v3 :is(.sem-course-n, .inside-r, .access-for, .hero-find > span, .access-what, .access-go, .ui3-strip-l b) { font-size: 16px !important; }
.home-v3 .wnh-c a, .home-v3 .ui3-strip-c { font-size: 18px !important; }
.home-v3 .sem-course .sem-course-m { font-size: 14px !important; }
.quote-block .quote-text, .quote-block .quote-shuffle, .footer.home-foot :is(.home-foot-help, .home-foot-copy, .home-foot-links a) { font-size: 14px !important; }
html body .footer.home-foot p.home-foot-built, html body .footer.home-foot p.home-foot-built a { font-size: 16px !important; }

/* B6 · motion that says nothing stops: the fresh dot and the next-paper dot are still (the countdown, the line-mask
   headline and the highlighter stay) */
.ui3-fresh .wnh-d::before, .ui3-timeline li.is-next i { animation: none !important; }

/* B7 · the access card says what you get, what it costs, how to start (the long version lives on /paid/) */
.home-v3 .access-in { display: block !important; }
.home-v3 .access-rows { padding: clamp(24px, 4vw, 40px) !important; }
.home-v3 .access-row .access-what { margin: 8px 0 0 !important; max-width: 46ch; }
@media (min-width: 860px) {
  .home-v3 .access-row:not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 36px; }
  .home-v3 .access-row .access-h, .home-v3 .access-row .access-what { grid-column: 1; }
  .home-v3 .access-row .access-buy { grid-column: 2; grid-row: 1 / span 2; margin: 0 !important; flex-direction: column; align-items: flex-end !important; text-align: right !important; gap: 12px !important; }
  .home-v3 .access-row .access-go { grid-column: 3; grid-row: 1 / span 2; }
}

/* B8 · footer: the maker's Polaroid with a handwritten caption, one sentence; help, links and copyright beside it.
   CSS only, so all 17 pages and the paid account row (joined below) keep their markup. */
html body .footer.home-foot.home-foot { background: var(--e-s1) repeating-linear-gradient(180deg, transparent 0 31px, rgba(255, 255, 255, .035) 31px 32px) !important;
  padding: 28px clamp(20px, 3vw, 36px) 24px !important; row-gap: 12px !important; }
html body .footer.home-foot.home-foot .home-foot-built { position: relative; min-height: 132px; padding-left: 132px !important; font-size: 16px !important; line-height: 1.5 !important; color: var(--e-text) !important; }
html body .footer.home-foot.home-foot .home-foot-built::before { content: "yash"; position: absolute; left: 2px; top: 4px; box-sizing: border-box; width: 106px; height: 124px; padding: 98px 0 0;
  background: #fbfaf6 url("/img/yash-sq240.5667a6fbe9.webp") 50% 6px / 94px 88px no-repeat; color: #1b2230; font: 700 17px/1 "UCS Hand", "Comic Sans MS", cursive; text-align: center;
  border-radius: 3px; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .6); rotate: -4deg; }
html body .footer.home-foot.home-foot .home-foot-built::after { content: ""; position: absolute; left: 32px; top: -6px; width: 50px; height: 16px; background: var(--p-marker); rotate: 5deg; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
html body .footer.home-foot.home-foot .home-foot-links { gap: 0 24px !important; }
html body .footer.home-foot.home-foot .home-foot-links a { font-size: 16px !important; color: var(--e-text) !important; }
html body .footer.home-foot.home-foot .home-foot-copy { font-size: 12px !important; }
@media (min-width: 768px) {
  html body .footer.home-foot.home-foot { grid-template-columns: minmax(0, 1fr) auto !important; column-gap: 48px !important; align-items: start !important; }
  html body .footer.home-foot.home-foot .home-foot-built { grid-column: 1; grid-row: 1 / span 3; align-self: center; max-width: 560px; }
  html body .footer.home-foot.home-foot .home-foot-links { grid-column: 2; grid-row: 1; justify-content: flex-end !important; }
  html body .footer.home-foot.home-foot .home-foot-help { grid-column: 2; grid-row: 2; max-width: 320px; justify-self: end; text-align: right; }
  html body .footer.home-foot.home-foot .home-foot-copy { grid-column: 2; grid-row: 3; text-align: right; }
}
@media (max-width: 767px) {
  html body .footer.home-foot.home-foot .home-foot-built { min-height: 112px; padding-left: 108px !important; font-size: 16px !important; }
  html body .footer.home-foot.home-foot .home-foot-built::before { width: 90px; height: 106px; padding-top: 82px; background-size: 80px 74px; font-size: 15px; }
  html body .footer.home-foot.home-foot .home-foot-built::after { left: 24px; width: 44px; }
}

/* B9 · About: the maker's photo as a taped Polaroid beside an index card in his own words (no co-founder line) */
.about-v2 { box-sizing: border-box; width: min(1100px, calc(100% - 2 * var(--e-gut, 20px))); margin: clamp(96px, 12vw, 140px) auto 0; display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .about-v2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.about-polaroid { position: relative; margin: 0; padding: 12px 12px 54px; background: #fbfaf6; border-radius: 3px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); rotate: -2.5deg; max-width: 560px; justify-self: center; }
.about-polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; border-radius: 1px; }
.about-polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #1b2230; font-size: 22px; line-height: 1; }
html body main.about-v2.about-v2 figure.about-polaroid.about-polaroid.about-polaroid figcaption { font-family: "UCS Hand", "Comic Sans MS", cursive !important; font-weight: 700 !important; }
.about-polaroid::after { content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: var(--p-marker); rotate: -3deg; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.about-card { position: relative; box-sizing: border-box; padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 44px) clamp(28px, 4vw, 40px) clamp(34px, 5vw, 60px);
  background: var(--e-paper, #f6f3ec) repeating-linear-gradient(180deg, transparent 0 31px, var(--p-rule) 31px 32px); color: var(--p-ink); border-radius: 4px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }
.about-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(18px, 3vw, 36px); width: 2px; background: var(--p-margin); }
.about-card :is(h1, p, li) { color: var(--p-ink) !important; text-shadow: none !important; }
.about-card h1 { margin: 6px 0 14px !important; font-size: clamp(32px, 4.4vw, 48px) !important; line-height: 1.05 !important; letter-spacing: -.04em !important; font-weight: 800 !important; text-align: left !important; }
.about-card p, .about-card li { font-size: 17px !important; line-height: 1.6 !important; margin: 0 0 12px !important; text-align: left !important; }
.about-card ul { margin: 0 0 14px !important; padding-left: 20px !important; }
.about-card a { color: #0b4f63 !important; }
html body main.about-v2 article.about-card.about-card p.about-hi.about-hi { font-family: "UCS Hand", "Comic Sans MS", cursive !important; font-weight: 700 !important; color: var(--p-hand) !important; }
html body main.about-v2 article.about-card.about-card p.about-hi.about-hi { font-size: 24px !important; margin: 0 !important; rotate: -1.5deg; display: inline-block; }
.about-card .about-more { padding-top: 12px; border-top: 1px dashed rgba(20, 24, 33, .25); font-size: 15px !important; color: var(--p-ink2) !important; }

/* B10 + B11 · paid pages, minimal (owner 2026-12-02: "the lecture notes heading and the solutions heading could be in the
   white paper note, but nothing else"). Slides, sliders, cards and the navy page stay exactly as they were; only the shelf
   headings on the Course Hubs and "Your courses" on the paid home sit on a small white note. The Study Path / Exam Prep
   block (.sp2) keeps its own design. */
section.hub-type:not(.sp2) > h2, .home-v3 main.uc-study #your-courses.sem-courses-h { /* the id: evo's highlighter stroke is keyed on #your-courses */
  width: fit-content; box-sizing: border-box; padding: 6px 16px 7px !important; background: #fbfaf6 !important; color: var(--p-ink) !important;
  text-shadow: none !important; border-radius: 2px; box-shadow: 0 1px 0 rgba(20, 24, 33, .08), 0 10px 20px -10px rgba(0, 0, 0, .7); }
#hub-notes.hub-type > h2 { --k: #1f5fd1; }
#hub-solutions.hub-type > h2 { --k: #157a48; }
#hub-pyqs.hub-type > h2 { --k: #6b3fc4; }

/* B12 · What's New archive (/whats-new/): the history on ruled paper; each course entry is a white sheet; a day's entries
   sit two across on wide screens, so a 24-addition day is a third of its old length. Type labels lose the capsule. */
section.wn, main .wn, .wn {
  --e-text: var(--p-ink); --e-soft: var(--p-ink2); --e-muted: var(--p-ink2); --e-line: rgba(20, 24, 33, .12); --e-line2: rgba(20, 24, 33, .2);
  --e-s1: #fff; --e-s2: #fff; --e-s3: #ece7da; --e-cy: #0b5d74; --e-on-cy: #ffffff; --e-ledge: #063b4a; --e-hl: var(--p-marker);
  --e-notes: #1f5fd1; --e-notes-bg: transparent; --e-notes-line: transparent; --e-sol: #157a48; --e-sol-bg: transparent; --e-sol-line: transparent;
  --e-pyq: #6b3fc4; --e-pyq-bg: transparent; --e-pyq-line: transparent;
  position: relative; background: var(--e-paper) repeating-linear-gradient(180deg, transparent 0 31px, var(--p-rule) 31px 32px) !important; color: var(--p-ink); }
.wn::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(8px, calc(50% - 640px)); width: 2px; background: var(--p-margin); pointer-events: none; }
.wn .wn-in { max-width: 1100px; }
.wn :is(h1, h2, h3) { text-shadow: none !important; }
.wn .wn-list { border-left: 0 !important; padding-left: 0 !important; gap: 12px !important; }
@media (min-width: 900px) { .wn .wn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.wn .wn-c { margin-left: 0 !important; background: #fff; border-radius: 4px !important; box-shadow: 0 1px 0 rgba(20, 24, 33, .06), 0 10px 22px -12px rgba(20, 24, 33, .32); }
.wn .wn-c::before { display: none !important; }
.wn .wn-ct { font-size: 18px !important; }
.wn .wn-k { background: none !important; box-shadow: none !important; padding: 0 !important; }
section.hub-type:not(.sp2) .slider-btn { color: #f3f6fa !important; }
section.hub-type:not(.sp2) .evo-pos { right: clamp(14px, 3vw, 28px) !important; color: var(--p-ink2) !important; }
