/* Always loaded, in both the night (default) and the light reading mode.
   The night stylesheets (link[data-night]) are switched off in light mode, so
   anything new that must survive both lives here and uses these tokens. */
:root {
  --ph-bg: #0A0118; --ph-bg2: #10052A; --ph-surface: #170A33; --ph-surface2: #1F0F45; --ph-surface3: #2A1660;
  --ph-line: rgba(196, 140, 255, .16); --ph-line2: rgba(196, 140, 255, .28);
  --ph-text: #D8D0F2; --ph-muted: #9C8FC6; --ph-white: #FFFFFF;
  --ph-ink: #FFFFFF; --ph-ink2: #E9DDFF; --ph-soft: rgba(255, 255, 255, .06);
  --ph-magenta: #E11CF2; --ph-violet: #8A2BF5; --ph-blue: #4A5BFF; --ph-pink: #FF4FA3;
  --ph-green: #2ED38A; --ph-red: #FF4D6D; --ph-yellow: #FFC94A;
  --ph-grad: linear-gradient(90deg, #C514D9 0%, #8A2BF5 100%);
  --ph-grad2: linear-gradient(90deg, #8A2BF5 0%, #4A5BFF 100%);
  --ph-glow: 0 14px 34px -12px rgba(225, 28, 242, .55);
}
html[data-theme="light"] {
  --ph-bg: #FFFFFF; --ph-bg2: #F7F5FB; --ph-surface: #FFFFFF; --ph-surface2: #F7F5FB; --ph-surface3: #EFEAF8;
  --ph-line: #ECE8F3; --ph-line2: #DDD6EA;
  --ph-text: #2B2738; --ph-muted: #645E78; --ph-white: #FFFFFF;
  --ph-ink: #15111F; --ph-ink2: #3B3550; --ph-soft: rgba(20, 10, 40, .05);
  --ph-magenta: #B00FC4; --ph-green: #12855A; --ph-red: #C8243F; --ph-yellow: #9A6A00;
  --ph-glow: none;
}

/* Text size chosen by the reader (ক ক ক) */
html[data-font="sm"] { font-size: 93.75%; }
html[data-font="lg"] { font-size: 112.5%; }

/* Course card: instructor with credentials */
.cc-by { display: flex; gap: 8px; align-items: center; min-width: 0; white-space: normal; margin-bottom: 10px; }
.cc-by > span:last-child { min-width: 0; }
.cc-av { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--ph-ink); background: var(--ph-soft); border: 1px solid var(--ph-line2); }
.cc-av img { width: 100%; height: 100%; object-fit: cover; }
.cc-by b { display: block; font-size: .82rem; font-weight: 600; color: var(--ph-ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-by small { display: block; font-size: .74rem; color: var(--ph-muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .pg-courses .tl-tools .tl-sort { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .pg-courses .tl-tools .tl-sort .select { width: 100%; min-width: 0; }
}

/* Video facade (course sample class, home demo class) */
.lite-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--ph-line2); }
.lite-video iframe, .lv-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lv-poster { padding: 0; cursor: pointer; background: linear-gradient(140deg, #1A0838, #0A0118); color: #fff; }
.lv-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.lv-poster:hover img, .lv-poster:focus-visible img { opacity: 1; }
.lv-play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ph-grad); box-shadow: 0 12px 30px -10px rgba(225, 28, 242, .7); transition: scale .2s; }
.lv-play .icon { width: 28px; height: 28px; margin-left: 3px; }
.lv-poster:hover .lv-play { scale: 1.06; }
.lv-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; text-align: left; font-weight: 600; font-size: .95rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8)); }

/* Header: quiet log-in link next to the sign-up button */
.tn-signin { display: inline-flex; align-items: center; height: 40px; padding: 0 .8rem; border-radius: 8px; color: var(--ph-ink2); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.tn-signin:hover, .tn-signin:focus-visible { color: var(--ph-ink); background: var(--ph-soft); }
@media (max-width: 560px) { .tn-signin { display: none; } }
.drawer-foot { display: grid; gap: 8px; }
.footer-pay .pay-note { flex-basis: 100%; display: block; margin-top: 8px; font-size: .8rem; color: var(--ph-muted); }
.footer-bottom .fb-copy strong { font-weight: 700; }
.footer-bottom .fb-dev { font-size: .82rem; opacity: .75; }

/* Reading preferences menu (text size, light/dark, notifications) */
.rp-btn { font-weight: 700; font-size: .95rem; letter-spacing: -.02em; }
.nb-pop.rp-pop { width: 260px; padding: 14px; }
.rp-pop h3 { margin: 0 0 8px; font-size: .78rem; font-weight: 600; text-transform: none; color: var(--ph-muted); }
.rp-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.rp-sizes button { min-height: 44px; border-radius: 8px; border: 1px solid var(--ph-line2); background: transparent; color: var(--ph-ink); font-weight: 700; cursor: pointer; }
.rp-sizes button[data-font-size="sm"] { font-size: .85rem; }
.rp-sizes button[data-font-size="md"] { font-size: 1.05rem; }
.rp-sizes button[data-font-size="lg"] { font-size: 1.3rem; }
.rp-sizes button[aria-pressed="true"] { border-color: #C514D9; background: rgba(197, 20, 217, .12); }
.rp-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; margin-top: 6px; border-radius: 8px; border: 1px solid var(--ph-line2); background: transparent; color: var(--ph-ink); font-size: .9rem; font-weight: 600; cursor: pointer; text-align: left; }
.rp-row:hover, .rp-row:focus-visible { background: var(--ph-soft); }
.rp-row .icon { width: 18px; height: 18px; flex: 0 0 18px; }
.drawer-prefs { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--ph-line); }
.drawer-prefs .rp-sizes { margin: 0; }

/* Offline page */
.offline-box { padding: 24px; border: 1px solid var(--ph-line2); border-radius: 12px; background: var(--ph-surface); }
.offline-box h2 { margin: 0 0 12px; font-size: 1.15rem; }
.offline-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.offline-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--ph-line); border-radius: 8px; }
.offline-list a { overflow-wrap: anywhere; }
.offline-empty { color: var(--ph-muted); }
[data-offline-save].is-saved { border-color: var(--ph-green); }

@media (prefers-reduced-motion: reduce) { .lv-poster img, .lv-play { transition: none; } }

/* Header "More" menu: three short columns instead of one long list */
.tn-nav .drop.drop-wide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; width: min(720px, 92vw); min-width: 0; padding: 12px; }
.drop-col { display: grid; align-content: start; gap: 2px; min-width: 0; }
.drop-h { display: block; padding: 6px .75rem 4px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: var(--ph-muted); }
.drop-col a { white-space: normal; line-height: 1.3; }

/* Home: demo class, links next to section headings, promo strip */
.hm-head-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.hm-head-links a { display: inline-flex; align-items: center; gap: 6px; }
.hm-head-links .icon { width: 16px; height: 16px; }
.hm-demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 900px) { .hm-demo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.hm-demo-copy p { color: var(--ph-muted); max-width: 52ch; margin: 10px 0 20px; }
.hm-demo-actions, .hm-more-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hm-more-links { margin-top: 22px; }
.hm-demo-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.hm-demo-link .icon { width: 18px; height: 18px; }
.hm-promo-wrap:empty { display: none; }
.hm-promo-wrap { margin-top: 8px; margin-bottom: 8px; }

/* Header fit: eight menu items plus search and account buttons on laptop widths */
@media (max-width: 1500px) {
  .tn-signin { display: none; }
  .tn-nav .nav-link { padding-left: .45rem; padding-right: .45rem; }
}
/* Below laptop width the eight items move into the menu drawer instead of squeezing. */
@media (max-width: 1280px) {
  .tn-nav { display: none; }
  .tn .menu-btn { display: inline-grid; }
  .tn-actions { margin-left: auto; }
}

/* Signed-in account button: round avatar, first name and a caret; the account menu opens under it. */
.tn .nb-me { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 4px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ph-ink); }
.tn .nb-me:hover, .tn .nb-me[aria-expanded="true"] { background: var(--ph-soft); border-color: var(--ph-line2); }
.tn .nb-me .av { width: 34px; height: 34px; border-radius: 50%; background: var(--ph-grad); color: #fff; font-size: .78rem; box-shadow: 0 0 0 2px var(--ph-bg), 0 0 0 3px rgba(225, 28, 242, .55); }
.tn .nb-me .nm { max-width: 110px; font-weight: 600; font-size: .9rem; }
.nb-me-caret { width: 14px; height: 14px; color: var(--ph-muted); transition: rotate .15s; }
.nb-me[aria-expanded="true"] .nb-me-caret { rotate: 180deg; }
@media (max-width: 1500px) { .tn .nb-me .nm { display: none; } }
/* Account menu: links, then text size, light or dark, notifications. */
.nb-pop.nb-user { max-height: calc(100vh - 90px); overflow-y: auto; }
.nb-prefs { margin: 6px 10px 4px; padding: 12px 6px 4px; border-top: 1px solid var(--ph-line); }
.nb-prefs h3 { margin: 0 0 8px; font-size: .78rem; font-weight: 600; color: var(--ph-muted); }
.nb-prefs .rp-sizes { margin-bottom: 8px; }
.nb-prefs .rp-row { margin-top: 6px; }

/* Light reading mode: hand-tuned extras on top of the generated ph-light.css */
.tf-logo-light { display: none; }
html[data-theme="light"] .tn .logo-on-dark { display: none; }
html[data-theme="light"] .tn .logo-on-light:has(+ .logo-on-dark), html[data-theme="light"] .tn .logo-on-light { display: block; }
/* The footer stays night-blue in light mode: a dark base under a light page, with its own dark tokens. */
html[data-theme="light"] body .tf.site-footer {
  --ph-text: #D8D0F2; --ph-muted: #9C8FC6; --ph-ink: #FFFFFF; --ph-ink2: #E9DDFF; --ph-soft: rgba(255, 255, 255, .06);
  --ph-line: rgba(196, 140, 255, .16); --ph-line2: rgba(196, 140, 255, .28); --ph-surface: #170A33;
  background: radial-gradient(700px 260px at 50% 0%, rgba(138, 43, 245, .2), transparent 70%), #07010F; color: #D8D0F2;
}
html[data-theme="light"] body .tf a { color: #CFC5EE; }
html[data-theme="light"] body .tf a:hover { color: #F08CFF; }
html[data-theme="light"] body .tf h3, html[data-theme="light"] .tf strong { color: #FFFFFF; }
html[data-theme="light"] body .tf .socials a { background: rgba(255, 255, 255, .06); color: #FFFFFF; }
html[data-theme="light"] body .tf .footer-pay { border-top-color: rgba(196, 140, 255, .16); }
html[data-theme="light"] body .tf .footer-bottom { background: #040009; color: #B9AEDB; }
html[data-theme="light"] body .tf .footer-bottom a { color: #F08CFF; }
html[data-theme="light"] body { background: #F7F5FB; color: var(--ph-text); }
html[data-theme="light"] img { color-scheme: light; }
/* Brand-gradient panels keep their night look in light mode, so they need the night tokens inside. */
html[data-theme="light"] :is(.hv-stats, .hb-card, .stats-band, .ct-info, .auth-art) {
  --ph-text: #E7E0FA; --ph-muted: #D3C8F2; --ph-ink: #FFFFFF; --ph-ink2: #F3ECFF; --ph-soft: rgba(255, 255, 255, .1);
  --ph-line: rgba(255, 255, 255, .2); --ph-line2: rgba(255, 255, 255, .3);
}
/* Form fields read as white paper on the light page. */
html[data-theme="light"] :is(.input, .select, .textarea, .form-control, input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], input[type="time"], input[type="url"], select, textarea):not([type="checkbox"]):not([type="radio"]) {
  background-color: #FFFFFF; border-color: #D9D2E8; color: #15111F;
}
html[data-theme="light"] :is(.input, .textarea, input, textarea)::placeholder { color: #8A829E; }
html[data-theme="light"] :is(.input, .select, .textarea, input, select, textarea):focus { border-color: #B00FC4; outline-color: #B00FC4; }
/* Search boxes draw their own pill; the field inside stays see-through. */
html[data-theme="light"] :is(.tn-search, form.tl-search, .drawer-search, .stu-search, .tch-search) input { background: transparent !important; border-color: transparent !important; }

/* Cards never move or change size on hover anywhere; hover shows only the border and shadow. */
:is(.cc, .course-card, .cat-card, .test-card, .res-card, .card, .cd-card, .blog-card, .hs-card > a, .hq-tile, .ep-tile, .tl-tile, .gk-item, .gk-home-item, .qb-tile, .th-why-item, .th-cat, .th-teacher, .feature, .pt-logo, .ct-post, .jb-card, .jb-res, .ep-card, .ep-pack, .book-card):hover { transform: none !important; translate: none !important; scale: none !important; }
:is(.cc, .course-card, .cat-card, .res-card, .book-card, .hc, .blog-lead, .ct-yt-play, .st-poster, .bk-media, .hs-card > a):hover :is(img, .book-cover, .hs-ic) { transform: none !important; scale: none !important; }
:is(.cat-card, .hs-card > a):hover::before, .cat-card:hover::after { transform: none !important; }

/* Student area account menu (same items as the site header menu) */
.stu-acct { position: relative; }
.stu-acct-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 6px 0 3px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ph-ink); cursor: pointer; }
.stu-acct-btn:hover, .stu-acct-btn[aria-expanded="true"] { background: var(--ph-soft); border-color: var(--ph-line2); }
.stu-acct-btn[aria-expanded="true"] .nb-me-caret { rotate: 180deg; }
.stu-acct-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; width: 270px; max-width: calc(100vw - 24px); max-height: calc(100vh - 90px); overflow-y: auto; padding: 6px; border: 1px solid var(--ph-line2); border-radius: 10px; background: var(--ph-surface); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6); }
.stu-acct-head { padding: 10px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--ph-line); }
.stu-acct-head strong { display: block; color: var(--ph-ink); font-size: .92rem; }
.stu-acct-head small { color: var(--ph-muted); font-size: .8rem; overflow-wrap: anywhere; }
.stu-acct-pop > a, .stu-acct-pop form button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ph-text); font: inherit; font-size: .9rem; font-weight: 600; text-align: left; cursor: pointer; }
.stu-acct-pop > a:hover, .stu-acct-pop form button:hover { background: var(--ph-soft); color: var(--ph-ink); }
.stu-acct-pop .icon { width: 17px; height: 17px; flex: 0 0 17px; }
.stu-acct-pop form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--ph-line); }

/* PDF viewer (pdf-viewer.js): pages as canvases, so PDFs read on phones too. */
.pdfv { position: relative; border: 1px solid var(--ph-line2); border-radius: 10px; background: var(--ph-surface); overflow: hidden; }
.pdfv-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--ph-line); background: var(--ph-surface); }
.pdfv-info { margin-right: auto; font-size: .84rem; color: var(--ph-muted); }
.pdfv-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--ph-line2); border-radius: 8px; background: transparent; color: var(--ph-ink); font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.pdfv-btn:hover { background: var(--ph-soft); }
.pdfv-dl { font-size: .86rem; font-weight: 600; }
.pdfv-pct { min-width: 46px; text-align: center; font-size: .82rem; color: var(--ph-muted); font-variant-numeric: tabular-nums; }
.pdfv-pages { max-height: min(80vh, 1100px); overflow: auto; padding: 8px; background: #E9E6EF; -webkit-overflow-scrolling: touch; }
.pdfv-page { margin: 0 auto 8px; display: flex; justify-content: center; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.pdfv.is-zoomed .pdfv-page { justify-content: flex-start; width: max-content; min-width: 100%; }
.pdfv-page canvas { display: block; max-width: none; }
.pdfv-fallback { display: inline-block; margin: 20px auto; padding: 10px 16px; border-radius: 8px; background: var(--ph-grad); color: #fff; font-weight: 600; }
@media (max-width: 640px) { .pdfv-pages { max-height: 75vh; padding: 4px; } }
/* Wrappers that were sized for an iframe let the viewer size itself. */
.pdf-frame.pdf-frame-v { height: auto; overflow: visible; border: 0; background: none; border-radius: 0; }
.pdf-frame-v .watermark { pointer-events: none; z-index: 3; }
.qb-pdfwrap.qb-pdfwrap-v { aspect-ratio: auto; border: 0; background: none; overflow: visible; }
.tb-modal-pdf .pdfv-pages { max-height: calc(100vh - 170px); }
.tb-modal:has(.tb-modal-pdf) [data-zoom] { display: none; }
.jb-circular-v { margin-bottom: 12px; }
/* Like, comment and share bar (qb.css paints it white-on-dark only) */
html[data-theme="light"] body .qb-engage { border-top-color: var(--ph-line); color: var(--ph-text); }
html[data-theme="light"] body .qb-eng-stat small, html[data-theme="light"] body .qb-eng-share { color: var(--ph-muted); }
html[data-theme="light"] body .qb-eng-share a { color: #B00FC4; }
html[data-theme="light"] body .qb-eng-btn { border-color: var(--ph-line2); background: #fff; color: var(--ph-ink); }
html[data-theme="light"] body .qb-eng-btn:hover { background: var(--ph-soft); color: var(--ph-ink); }
html[data-theme="light"] body .qb-eng-btn.is-on { background: #B00FC4; border-color: #B00FC4; color: #fff; }
/* Student sidebar logo: white logo on the night sidebar, the normal logo in light mode. */
html[data-theme="light"] body .stu-brand .tf-logo-dark { display: none; }
html[data-theme="light"] body .stu-brand .tf-logo-light { display: block; }
.stu-brand img.tf-logo-light { display: none; }

/* Teacher profile links from the home page and course pages into a profile. */
.hm-teachers a.hm-teacher-link { color: inherit; }
.hm-teachers a.hm-teacher-link:hover strong, .tc-teacher a:hover strong { color: var(--ph-magenta); }
.tc-teacher a { color: inherit; }
.tc-teacher .tc-profile { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .84rem; font-weight: 600; color: var(--ph-ink); }
.tc-teacher .tc-profile .icon { width: 14px; height: 14px; }

/* Career page: roomier service cards with buttons pinned to the bottom, and a lead story that stays readable on phones. */
.sv-service { padding: 22px; gap: 10px; }
.sv-service .sv-actions { margin-top: 8px; }
.sv-service .sv-actions .btn { min-height: 42px; padding: .5rem 1rem; font-size: .9rem; }
.cr-subhead { margin: 28px 0 14px; font-size: 1.1rem; color: var(--ph-ink); }
@media (max-width: 640px) {
  .blog-lead { min-height: 420px; }
  .blog-lead::after { background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, .88) 62%); }
  .blog-lead .txt { padding: 18px; }
  .sv-service { padding: 18px; }
}

/* Visitor account menu: same avatar button as signed-in users, with a person icon. */
.tn .nb-me.nb-guest .av, .nb-user-head .nb-guest-av { background: var(--ph-soft); color: var(--ph-ink); box-shadow: inset 0 0 0 1px var(--ph-line2); }
.nb-me.nb-guest .av .icon { width: 18px; height: 18px; }
.nb-user-head .nb-guest-av .icon { width: 20px; height: 20px; }
.nb-user-head small { word-break: normal; }
.nb-guest-acts { display: grid; gap: 8px; padding: 6px 16px 14px; }
.nb-guest-acts .btn { min-height: 44px; justify-content: center; }

/* Light mode: the generated chip background also wiped the active chip's brand fill, leaving white count text on white. */
html[data-theme="light"] body :is(.chip.active, .tl-chips a.active, .tl-chips a.is-active, .tl-subchips a.active, .ml-chips a.active) { background: var(--ph-grad); border-color: transparent; color: #fff; }
html[data-theme="light"] body :is(.tl-chips, .tl-subchips, .ml-chips) a.active b { background: rgba(255, 255, 255, .25); color: #fff; }

/* Learner shell for visitors (Question Bank): guest avatar and a sign-in prompt at the foot of the menu. */
.stu-avatar-guest { background: var(--ph-soft) !important; color: var(--ph-ink) !important; box-shadow: inset 0 0 0 1px var(--ph-line2); }
.stu-avatar-guest .icon { width: 18px; height: 18px; }
.stu-guest-cta { display: grid; gap: 8px; margin: 16px 4px 8px; padding: 14px; border: 1px solid var(--ph-line2); border-radius: 8px; }
.stu-guest-cta p { margin: 0 0 4px; font-size: .84rem; color: var(--ph-muted); line-height: 1.5; }
.stu-guest-cta .btn { min-height: 42px; justify-content: center; }
.stu-acct-pop .nb-guest-acts { padding: 8px 12px 12px; }
html[data-theme="light"] .stu-body { color-scheme: light; }

/* Client brand banners (Site settings), publications mark, and the contact page QR codes. */
.brand-banner { padding: 24px 0 0; }
.brand-banner img { display: block; width: 100%; height: auto; border: 1px solid var(--ph-line); border-radius: 8px; }
.pub-head { display: flex; align-items: center; gap: 18px; }
.pub-head h1 { margin-bottom: 4px; }
.pub-mark { flex-shrink: 0; width: 96px; height: auto; padding: 6px; border-radius: 8px; background: #fff; }
@media (max-width: 640px) { .pub-mark { width: 64px; } .pub-head { gap: 12px; } }
.ct-qr-sec { padding: 48px 0; }
.ct-qr-sec .ml-head p { margin: 4px 0 0; color: var(--ph-muted); }
.ct-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .ct-qr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ct-qr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ct-qr { display: grid; justify-items: center; gap: 10px; padding: 16px 12px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); color: var(--ph-text); text-align: center; transition: border-color .15s ease; }
.ct-qr:hover { border-color: var(--ph-magenta); }
.ct-qr img { width: 140px; height: 140px; padding: 8px; border-radius: 6px; background: #fff; }
.ct-qr span { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--ph-ink); line-height: 1.4; }
.ct-qr span .icon { width: 16px; height: 16px; flex-shrink: 0; }
/* The new logo carries a two-line tagline, so it needs more height than the old wordmark. */
.site-header .brand-logo-full, .tn .brand-logo-full { height: 62px; margin-left: 0; }
@media (max-width: 640px) { html body .site-header .brand-logo-full, html body .tn .brand-logo-full { height: 46px; } }
.site-footer .brand-logo-full { height: 72px; }
.stu-brand .brand-logo-full { height: 44px; }
/* No coloured strip across the top of the header. */
html body .tn.site-header::before { content: none; display: none; }

/* Account button: only the avatar, round, opens the account menu. */
.nav-av-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
html body .stu-acct-btn { width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.nav-av { display: block; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: #EEF0F4; box-shadow: 0 0 0 1px var(--ph-line2); transition: box-shadow .15s ease; }
.nav-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-av img.nav-av-default { padding: 7px; object-fit: contain; }
.nav-av-btn:hover .nav-av, .nav-av-btn[aria-expanded="true"] .nav-av,
.stu-acct-btn:hover .nav-av, .stu-acct-btn[aria-expanded="true"] .nav-av { box-shadow: 0 0 0 2px var(--ph-magenta); }
.nav-av-btn:focus-visible, .stu-acct-btn:focus-visible { outline: 2px solid var(--ph-magenta); outline-offset: 2px; }
.nb-user-head .nav-av { width: 42px; height: 42px; flex-shrink: 0; }

/* Official links: every channel with its scannable QR code. */
.ol-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: .9rem; color: var(--ph-muted); }
.ol-hint .icon { width: 18px; height: 18px; color: var(--ph-magenta); flex-shrink: 0; }
.ol-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .ol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .ol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ol-card { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); transition: border-color .15s ease; }
.ol-card:hover { border-color: var(--ph-magenta); }
.ol-qr { position: relative; display: block; width: 148px; height: 148px; padding: 8px; border: 1px solid var(--ph-line); border-radius: 6px; background: #fff; }
.ol-qr img { display: block; width: 100%; height: 100%; }
.ol-qr-ic { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; translate: -50% -50%; border: 3px solid #fff; border-radius: 50%; background: #fff; color: #15111F; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.ol-qr-ic .icon { width: 18px; height: 18px; }
.ol-body { display: grid; gap: 6px; min-width: 0; }
.ol-body h2 { margin: 0; font-size: 1.02rem; line-height: 1.35; color: var(--ph-ink); }
.ol-body p { margin: 0; font-size: .84rem; line-height: 1.55; color: var(--ph-text); }
.ol-body code { font-size: .74rem; color: var(--ph-muted); overflow-wrap: anywhere; }
.ol-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ol-act .btn { min-height: 36px; }
.ol-act .icon { width: 14px; height: 14px; }
@media (max-width: 479px) {
  .ol-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .ol-qr { width: 180px; height: 180px; }
  .ol-act { justify-content: center; }
}

/* Header search: the field has no box of its own in any state; focus shows on the rounded wrapper. */
html body .tn-search-box input,
html body .tn-search-box input:hover,
html body .tn-search-box input:focus,
html body .tn-search-box input:focus-visible { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0; -webkit-appearance: none; appearance: none; }
html body .tn-search-box input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px transparent inset !important; transition: background-color 9999s; }
html body .tn-search-box input::-webkit-search-decoration, html body .tn-search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
html body .tn-search-box:focus-within { border-color: var(--ph-magenta); box-shadow: 0 0 0 3px rgba(225, 28, 242, .14); }

/* Shown while a super admin is signed in as someone else. */
.imp-bar { position: sticky; top: 0; z-index: 1100; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 8px 16px; background: #15111F; color: #fff; font-size: .86rem; font-weight: 600; }
.imp-bar span { display: inline-flex; align-items: center; gap: 6px; }
.imp-bar .icon { width: 16px; height: 16px; }
.imp-bar form { margin: 0; }
.imp-bar button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.imp-bar button:hover { background: rgba(255, 255, 255, .12); }
.imp-bar { min-height: 50px; }
body:has(.imp-bar) .stu-side, body:has(.imp-bar) .adm-side { top: 50px; }

/* Account menu: balance and plan chips under the name, group dividers and item tags. */
.nb-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.nb-chip { display: inline-flex; align-items: center; padding: .1rem .5rem; border-radius: 5px; font-size: .72rem; font-weight: 700; line-height: 1.5; color: #fff; }
.nb-chip:hover { color: #fff; filter: brightness(1.08); }
.nb-chip-green { background: #15803d; }
.nb-chip-red { background: #dc2626; }
.nb-chip-brand { background: linear-gradient(90deg, #E11CF2, #8A2BF5); }
.nb-sep { display: block; height: 1px; margin: 6px 16px; background: var(--ph-line, #eef0f3); }
.nb-tag { font-style: normal; font-size: .7rem; font-weight: 700; line-height: 1.5; padding: .05rem .45rem; border-radius: 9px; color: #fff; white-space: nowrap; }
.nb-tag-red { margin-left: auto; background: #dc2626; }
.nb-tag-count { margin-left: 4px; background: #E11CF2; }

/* Career page goal cards with a photo on top; the icon sits on the photo's lower edge. */
.sv-service.sv-card-img { padding: 0; gap: 0; overflow: hidden; }
.sv-card-img .sv-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ph-surface2, #f1f1f5); }
.sv-card-img .sv-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.001); transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.sv-card-img .sv-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 1, 24, .55)); pointer-events: none; }
.sv-card-img:hover .sv-media img { transform: scale(1.05); }
.sv-card-img .sv-body { position: relative; display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 30px 22px 22px; }
.sv-card-img .sv-ic { position: absolute; top: -24px; left: 22px; width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); }
.sv-card-img h2 a { color: inherit; }
.sv-card-img h2 a:hover { color: var(--ph-link, #E11CF2); }
.sv-card-img p { flex: 1; }
@media (prefers-reduced-motion: reduce) { .sv-card-img .sv-media img { transition: none; } .sv-card-img:hover .sv-media img { transform: none; } }
@media (max-width: 575.98px) { .sv-card-img .sv-body { padding: 28px 18px 18px; } .sv-card-img .sv-ic { left: 18px; } }
.pg-info .sv-card-img .sv-ic { background: linear-gradient(135deg, #E11CF2, #8A2BF5); color: #fff; border: 0; }
html[data-theme="light"] .pg-info .sv-card-img .sv-ic, html .pg-info .sv-card-img .sv-ic { background: linear-gradient(135deg, #E11CF2, #8A2BF5); color: #fff; border: 0; }
.tn-nav .drop.drop-wide.drop-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(520px, 92vw); }
.qx-card-a .qx-btn-ch:nth-child(odd):last-child { grid-column: 1 / -1; }
.qx-shead-chips a > span { display: inline; min-height: 0; padding: 0; border: 0; color: inherit; }
