/* Matches the owner's reference design (meetmytutor_v2_live_activity_refined): shared topbar, header, footer, home hero,
   demo shell and section rhythm. Loaded last on every page. Colours come from the site.css tokens, which equal the reference
   palette in the default dark theme (navy #151b29, periwinkle #788cf5); only geometry and type are set here. */

/* ---- topbar ---- */
.topbar { border-bottom: 0; font-size: 12px; }
:root:not([data-theme="light"]) .topbar { background: #101521; color: #aeb8cc; }
.topbar .wrap { width: min(1180px, calc(100% - 44px)); max-width: none; padding-inline: 0; min-height: 0; padding-block: 9px; gap: 4px 15px; flex-wrap: wrap; }
@media (min-width: 900px) { .topbar .wrap { flex-wrap: nowrap; } }
.topbar strong { font-size: 12px; letter-spacing: 0; margin-inline-end: 0; }
:root:not([data-theme="light"]) .topbar strong { color: #fff; }
.topbar .top-tag::before { content: "\00a0\00a0 "; white-space: pre; }
.topbar a { font-weight: 700; }
:root:not([data-theme="light"]) .topbar a { color: #fff; }
.topbar .top-r { text-align: end; }
:root[data-theme="light"] .topbar { background: var(--bg-alt); color: var(--muted); }
:root[data-theme="light"] .topbar strong, :root[data-theme="light"] .topbar a { color: var(--ink); }

/* ---- header ---- */
.site-head { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
:root:not([data-theme="light"]) .site-head { background: rgba(21, 27, 41, .96); border-bottom: 1px solid #30394c; }
:root[data-theme="light"] .site-head { background: rgba(255, 255, 255, .92); border-bottom-color: var(--line); }
.site-head .wrap { max-width: none; width: min(1180px, calc(100% - 44px)); padding-inline: 0; }
.head-in { height: 78px; min-height: 78px; gap: 22px; align-items: center; justify-content: space-between; }
.brand .logo { width: 238px; flex-direction: row; }
.brand .logo img, .brand .logo img.logo-d { width: 238px; height: auto; max-height: 58px; object-fit: contain; }
:root:not([data-theme="light"]) .brand .logo img.logo-l { display: none; }
:root:not([data-theme="light"]) .brand .logo img.logo-d { display: block; }
:root[data-theme="light"] .brand .logo img.logo-l { display: block; width: 190px; height: auto; }
:root[data-theme="light"] .brand .logo img.logo-d { display: none; }
.logo-tag { display: none; }
.site-foot .brand .logo, .site-foot .brand .logo img { width: 226px; max-height: 54px; }
.site-nav { gap: 0 18px; flex: 1; justify-content: space-between; align-items: center; }
.nav-links { gap: 0; align-items: center; margin-inline: auto 12px; }
.nav-links > li > a, .drop > summary, .lang > summary { padding: 0 11px; font-size: 13px; font-weight: 650; white-space: nowrap; }
:root:not([data-theme="light"]) .nav-links > li > a,:root:not([data-theme="light"]) .drop > summary,:root:not([data-theme="light"]) .lang > summary { color: #c0c9d8; }

:root:not([data-theme="light"]) .nav-links > li > a:hover,:root:not([data-theme="light"]) .drop > summary:hover,:root:not([data-theme="light"]) .lang > summary:hover { color: #8da7ff; }
:root[data-theme="light"] .nav-links > li > a, :root[data-theme="light"] .drop > summary, :root[data-theme="light"] .lang > summary { color: var(--muted); }
.nav-actions { gap: 6px; margin-inline-start: 0; align-items: center; }
.nav-actions .pill, .pill { min-height: 0; padding: 12px 18px; border-radius: 9px; font: 750 13px/1.2 var(--sans); box-shadow: none; transition: background .2s, border-color .2s, color .2s; }
.nav-actions .pill { padding: 12px 18px; font-size: 13px; min-height: 0; }
.pill:hover { transform: translateY(-2px); }

:root:not([data-theme="light"]) .pill { background: #202a3d; color: #eaf0fb; border: 1px solid #3a465f; }
.pill.solid { box-shadow: none; }
:root:not([data-theme="light"]) .pill.solid { background: #5366e0; color: #fff; border-color: #5366e0; }

:root:not([data-theme="light"]) .pill.solid:hover { background: #4558d6; border-color: #4558d6; }
:root[data-theme="light"] .pill { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
:root[data-theme="light"] .pill.solid { background: var(--green); color: #fff; }
@media (min-width: 1300px) { .site-head .site-nav { display: contents; } .site-head .brand { margin: 0; } }
@media (min-width: 1300px) {
  .head-in { gap: 24px; justify-content: space-between; }
  .site-head .nav-links { margin: 0; gap: 25px; }
  .nav-links > li > a { padding: 0; font-size: 13px; }
  .nav-actions { gap: 10px; }
  .nav-actions .pill { padding: 12px 18px; font-size: 13px; }
}
@media (max-width: 1179px) { .head-in { flex-wrap: wrap; height: auto; min-height: 78px; } }
@media (max-width: 719px) {
  .head-in { min-height: 67px; }
  .brand .logo, .brand .logo img, .brand .logo img.logo-d { width: 185px; max-height: 48px; }
  .topbar .wrap { font-size: 10px; }
}


:root:not([data-theme="light"]) .hero-panel { background: #151b29; }
:root[data-theme="light"] .hero-panel { background: var(--bg); }
.hero-grid3 { width: min(1180px, calc(100% - 44px)); max-width: none; padding-inline: 0; padding-block: 78px 72px; gap: 62px; align-items: center; }
@media (min-width: 980px) { .hero-grid3 { grid-template-columns: 1fr 1.08fr; gap: 62px; padding-block: 78px 72px; } }
@media (max-width: 979px) { .hero-grid3 { gap: 35px; padding-block: 52px 48px; } }
.hero-copy .eyebrow { margin: 0; font-size: 11px; font-weight: 850; letter-spacing: 1.7px; gap: 9px; }
:root:not([data-theme="light"]) .hero-copy .eyebrow { color: #91a7ff; }
.hero-copy .eyebrow::before { width: 24px; height: 2px; }
:root:not([data-theme="light"]) .hero-copy .eyebrow::before { background: #788cf5; }
.hero-copy h1 { font-size: clamp(42px, 5.4vw, 67px); line-height: 1.04; letter-spacing: -3px; margin: 19px 0 20px; max-width: none; font-weight: 800; text-wrap: wrap; }
:root:not([data-theme="light"]) .hero-copy h1 { color: #f5f7fc; }
.hero-copy h1 br { display: none; }
.hero-copy h1 em, .hero-copy h1 .hl { font-style: normal; }
:root:not([data-theme="light"]) .hero-copy h1 em,:root:not([data-theme="light"]) .hero-copy h1 .hl { color: #788cf5; }
.hero-copy .lede { font-size: 17px; line-height: 1.75; max-width: 520px; margin: 0; }
:root:not([data-theme="light"]) .hero-copy .lede { color: #b3bfd1; }
.hero-copy .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 25px; }

:root:not([data-theme="light"]) .hero-copy .cta .pill:nth-child(2) { background: #26334d; border-color: #26334d; color: #fff; }
.hero-copy .trustline { margin-top: 0; font-size: 12px; gap: 11px; }
:root:not([data-theme="light"]) .hero-copy .trustline { color: #a6b2c6; }
.avatars span { width: 27px; height: 27px; margin-inline-start: -6px; font: 800 10px/1 var(--sans); }
:root:not([data-theme="light"]) .avatars span { border: 2px solid #151b29; background: #2a3752; color: #eef2fc; }
.avatars span:first-child { margin-inline-start: 0; }
:root:not([data-theme="light"]) .avatars span:first-child { background: #33436b; }
.live-panel { border-radius: 16px; padding: 17px; gap: 0; }
:root:not([data-theme="light"]) .live-panel { background: #1a2232; border: 1px solid #30394c; box-shadow: 0 12px 34px rgba(0, 0, 0, .22); }
.lp-top { align-items: center; padding: 3px 4px 19px; }
:root:not([data-theme="light"]) .lp-top { border-bottom: 1px solid #30394c; }
.lp-top b { display: block; font-size: 13px; font-weight: 800; line-height: 1.55; }
:root:not([data-theme="light"]) .lp-top b { color: #edf1fa; }
.lp-top small { display: block; font-size: 9px; line-height: 1.55; margin-top: 4px; text-transform: uppercase; }
:root:not([data-theme="light"]) .lp-top small { color: #92a0ad; }
.lp-live { padding: 0; border: 0; border-radius: 0; font: 800 9px/1 var(--sans); letter-spacing: .08em; gap: 6px; }
:root:not([data-theme="light"]) .lp-live { color: #9bb1ff; }
.lp-dot { width: 7px; height: 7px; }
:root:not([data-theme="light"]) .lp-dot { background: #788cf5; box-shadow: 0 0 0 4px #27324d; }
.lp-stats { gap: 9px; padding: 14px 0; }
.lp-stat { border-radius: 13px; padding: 11px; gap: 0; display: block; }
:root:not([data-theme="light"]) .lp-stat { background: #202a3b; border: 1px solid #30394c; }
.lp-stat b { display: block; font-size: 20px; letter-spacing: -.6px; line-height: 1.55; }
:root:not([data-theme="light"]) .lp-stat b { color: #edf1fa; }
.lp-stat span { font-size: 10px; }
:root:not([data-theme="light"]) .lp-stat span { color: #9ba8bd; }
.lp-rows { gap: 8px; }
.act-row { grid-template-columns: 34px 1fr auto; gap: 10px; padding: 10px; border-radius: 9px; }
:root:not([data-theme="light"]) .act-row { background: #1d2739; border: 1px solid #30394c; }
.act-row b { font-size: 11px; line-height: 1.55; }
:root:not([data-theme="light"]) .act-row b { color: #edf1fa; }
.act-row small { font-size: 10px; line-height: 1.55; }
:root:not([data-theme="light"]) .act-row small { color: #9ba8bd; }
.act-ico { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; font-weight: 900; }
:root:not([data-theme="light"]) .act-ico { background: #27324d; color: #9db3ff; }

:root:not([data-theme="light"]) .lp-rows .act-row:nth-child(3n+2) .act-ico { background: #e9efff; color: #055bb8; }

:root:not([data-theme="light"]) .lp-rows .act-row:nth-child(3n) .act-ico { background: #fff3db; color: #8a5a00; }
.act-tag { font: 800 9px/1 var(--sans); padding: 4px 7px; border-radius: 99px; }
:root:not([data-theme="light"]) .act-tag { background: #28375a; color: #b5c6ff; }
.lp-foot { margin-top: 11px; padding: 10px 4px 0; font-size: 10px; align-items: center; }
:root:not([data-theme="light"]) .lp-foot { color: #9ba8bd; }
@media (max-width: 720px) {
  .hero-copy h1 { font-size: 47px; letter-spacing: -2px; }
  .hero-copy .lede { font-size: 14px; }
  .hero-copy .cta .pill { width: 100%; }
}

/* ---- section rhythm ---- */
.band { padding-block: 88px; }
:root:not([data-theme="light"]) .band { background: #151b29; }

:root:not([data-theme="light"]) .band.alt { background: #101622; }
:root[data-theme="light"] .band { background: var(--bg); }
:root[data-theme="light"] .band.alt { background: var(--bg-alt); }
@media (max-width: 720px) { .band { padding-block: 62px; } }
.sec-head, .sec-head.center { max-width: 690px; margin: 0 auto 42px; text-align: center; display: block; }
.sec-head > .eyebrow, .sec-head > .sec-text { grid-column: auto; margin-top: 0; }
.sec-head .eyebrow, .sec-head.center > .eyebrow { display: block; margin: 0 auto; font-size: 11px; letter-spacing: 1.6px; font-weight: 850; text-transform: uppercase; }
:root:not([data-theme="light"]) .sec-head .eyebrow,:root:not([data-theme="light"]) .sec-head.center > .eyebrow { color: #91a7ff; }
.sec-head .eyebrow::before { display: none; }
.sec-head h2, .sec-head.center h2 { font-size: clamp(30px, 4vw, 43px); line-height: 1.12; letter-spacing: -1.8px; margin: 12px auto; max-width: none; font-weight: 800; }
:root:not([data-theme="light"]) .sec-head h2,:root:not([data-theme="light"]) .sec-head.center h2 { color: #f2f5fc; }
.sec-head .intro, .sec-head.center .intro { font-size: 15px; margin: 12px auto 0; max-width: 620px; }
:root:not([data-theme="light"]) .sec-head .intro,:root:not([data-theme="light"]) .sec-head.center .intro { color: #a5b1c5; }
@media (max-width: 720px) { .sec-head h2 { font-size: 33px; } }

/* ---- demo shell ---- */
.demo-shell { max-width: 1000px; border-radius: 14px; padding: 18px; overflow: hidden; }
:root:not([data-theme="light"]) .demo-shell { background: #1a2232; border: 1px solid #30394c; }
.demo-head { margin-bottom: 15px; flex-wrap: nowrap; }
.demo-title { font-size: 13px; font-weight: 800; }
.demo-head small { font-size: 10px; }
:root:not([data-theme="light"]) .demo-head small { color: #83909d; }
.arrow { width: 31px; height: 31px; border-radius: 50%; font-size: 16px; }
:root:not([data-theme="light"]) .arrow { background: #202a3d; border: 1px solid #3a465f; color: #fff; }
.pips { gap: 5px; }
.pip { width: 6px; height: 6px; border-radius: 10px; }
:root:not([data-theme="light"]) .pip { background: #4a5670; }
.pip.on { width: 20px; }
:root:not([data-theme="light"]) .pip.on { background: #788cf5; }
.demo-tabs { gap: 6px; margin: 0 0 15px; padding: 5px; border: 0; border-radius: 999px; width: auto; flex-wrap: nowrap; }
:root:not([data-theme="light"]) .demo-tabs { background: #101724; }
.demo-tabs button { min-height: 0; padding: 10px 16px; border-radius: 999px; font: 800 12px/1.55 var(--sans); }
:root:not([data-theme="light"]) .demo-tabs button { color: #a7b2c6; }

:root:not([data-theme="light"]) .demo-tabs button[aria-selected="true"] { background: #2b3650; color: #fff; box-shadow: 0 2px 9px rgba(0, 0, 0, .25); }
.demo-panel { gap: 16px; }
@media (min-width: 900px) { .demo-panel { grid-template-columns: 1.08fr .92fr; gap: 16px; } }
.demo-main { border-radius: 18px; padding: 20px; }
:root:not([data-theme="light"]) .demo-main { background: #151d2c; border: 1px solid #30394c; }
.demo-aside { display: flex; flex-direction: column; border-radius: 18px; padding: 20px; background: var(--bg-alt); border: 1px solid var(--line); }
:root:not([data-theme="light"]) .demo-aside { background: #0f1522; border: 1px solid #30394c; color: #fff; }
.demo-aside > div { flex: 1; min-height: 300px; padding: 0; border: 0; background: transparent; border-radius: 0; }
.demo-main h3 { font-size: 17px; font-weight: 700; margin: 0 0 5px; letter-spacing: 0; }
:root:not([data-theme="light"]) .demo-main h3 { color: #f0f3fb; }
.demo-desc { font-size: 12px; margin: 0 0 17px; }
:root:not([data-theme="light"]) .demo-desc { color: #a2aec2; }
.demo-aside h4 { font-size: 16px; margin: 0 0 7px; }
.demo-aside p { font-size: 11px; line-height: 1.7; margin: 0; }
:root:not([data-theme="light"]) .demo-aside p { color: #c4d0db; }
.d-steps { gap: 0; }
.d-steps li { grid-template-columns: 24px 1fr; gap: 11px; margin: 17px 0 0; font-size: 11px; }
.d-steps li b { display: block; font-size: 11px; }
.d-steps li small { display: block; font-size: 10px; margin-top: 2px; }
:root:not([data-theme="light"]) .d-steps li small { color: #aebbd0; }
.d-n { width: 24px; height: 24px; border-radius: 8px; font-size: 11px; font-weight: 900; }
:root:not([data-theme="light"]) .d-n { background: #2a3652; color: #b9c8ff; }
.d-status { display: flex; justify-content: space-between; margin: 12px 0 0; padding: 13px 0 0; font-size: 10px; }
:root:not([data-theme="light"]) .d-status { border-top: 1px solid #30394c; color: #b8c4d7; }
.d-status strong { font-weight: 700; }
:root:not([data-theme="light"]) .d-status strong { color: #a9bcff; }
.d-note, .feed .feed-item, .feed li { border-radius: 9px; }
.d-note { grid-template-columns: 34px 1fr auto; gap: 12px; padding: 13px; margin: 9px 0; align-items: flex-start; }
:root:not([data-theme="light"]) .d-note { background: #1c2638; border-color: #30394c; }
.d-notes { gap: 0; }
.d-note b { font-size: 12px; }
:root:not([data-theme="light"]) .d-note b { color: #edf1fa; }
.d-note p { font-size: 11px; margin: 3px 0 0; }
:root:not([data-theme="light"]) .d-note p { color: #a5b2c6; }
.d-note time { font-size: 9px; }
:root:not([data-theme="light"]) .d-note time { color: #8d9bb1; }
.tag-example { display: none; }
@media (max-width: 720px) {
  .demo-head { flex-direction: column; align-items: flex-start; }
  .demo-tabs { width: 100%; }
  .demo-tabs button { flex: 1; padding: 9px 8px; font-size: 10px; }
  .demo-main { padding: 14px; }
  .demo-aside > div { min-height: 0; }
}

/* ---- cards in the sections below the demo ---- */
.card, .progcard, .portal-card, .tiles li, .tile { border-radius: 14px; box-shadow: none; }
:root:not([data-theme="light"]) .card,:root:not([data-theme="light"]) .progcard,:root:not([data-theme="light"]) .portal-card,:root:not([data-theme="light"]) .tiles li,:root:not([data-theme="light"]) .tile { background: #1a2232; border: 1px solid #30394c; }

/* ---- footer ---- */
.site-foot { border-top: 0; padding: 48px 0 25px; font-size: 11px; }
:root:not([data-theme="light"]) .site-foot { background: #0d131f; color: #c1cad9; }
.site-foot .wrap { width: min(1180px, calc(100% - 44px)); max-width: none; padding-inline: 0; }
.foot-grid { gap: 30px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot-brand p { font-size: 11px; max-width: 280px; margin: 8px 0 0; }
:root:not([data-theme="light"]) .foot-brand p { color: #99a7bd; }
.site-foot h2 { font: 700 11px/1.55 var(--sans); letter-spacing: 0; text-transform: none; margin: 2px 0 13px; }
:root:not([data-theme="light"]) .site-foot h2 { color: #f0f3fa; }
.site-foot ul { display: block; }
.site-foot ul a { display: block; font-size: 11px; margin: 8px 0; padding: 0; }
:root:not([data-theme="light"]) .site-foot ul a { color: #b4bfd1; }
.site-foot ul li { margin: 0; }
.site-foot ul a:hover { text-decoration: none; }
:root:not([data-theme="light"]) .site-foot ul a:hover { color: #8da7ff; }
.foot-bar { margin-top: 35px; padding-top: 17px; font-size: 10px; gap: 6px 10px; align-items: center; flex-wrap: nowrap; line-height: 17px; }
:root:not([data-theme="light"]) .foot-bar { border-top: 1px solid #2a3448; color: #8593aa; }

:root:not([data-theme="light"]) .foot-bar a,:root:not([data-theme="light"]) .foot-langs a { color: #8593aa; }
.site-foot .foot-legal { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; }
.site-foot .foot-legal li { margin: 0; }
.site-foot .foot-legal a { display: inline; margin: 0; font-size: 10px; }
:root:not([data-theme="light"]) .site-foot .foot-legal a { color: #8593aa; }
@media (max-width: 720px) { .foot-brand { grid-column: 1 / -1; } .foot-bar { display: block; line-height: 2; } }
:root[data-theme="light"] .site-foot { background: var(--bg-alt); color: var(--muted); }

/* ---- request dialogs ---- */
.modal-back { padding: 18px; }
:root:not([data-theme="light"]) .modal-back { background: rgba(4, 8, 17, .82); }
.modal { width: min(590px, 100%); max-height: 90vh; border-radius: 22px; padding: 25px; }
:root:not([data-theme="light"]) .modal { background: #1a2232; border: 1px solid #39445b; box-shadow: 0 25px 100px rgba(7, 24, 39, .4); }
.modal h3 { font-size: 23px; letter-spacing: -.6px; }
:root:not([data-theme="light"]) .modal h3 { color: #f2f5fc; }
.modal-head { margin-bottom: 18px; gap: 15px; }
.modal-head p { font-size: 11px; margin: 5px 0; }
:root:not([data-theme="light"]) .modal-head p { color: #a5b1c5; }
.modal-x { width: 32px; height: 32px; border: 0; border-radius: 50%; font-size: 19px; }
:root:not([data-theme="light"]) .modal-x { background: #2a354a; color: #edf1fa; }
.form-grid { gap: 12px; }
.modal .field label { font: 800 10px/1.55 var(--sans); margin-bottom: 5px; }
:root:not([data-theme="light"]) .modal .field label { color: #c2cbd9; }
.modal input, .modal textarea, .modal select { min-height: 0; padding: 11px 12px; border-radius: 10px; font-size: 12px; }
:root:not([data-theme="light"]) .modal input,:root:not([data-theme="light"]) .modal textarea,:root:not([data-theme="light"]) .modal select { border: 1px solid #39445b; background: #111927; color: #edf1fa; }
.modal input:focus, .modal textarea:focus { outline: none; }
:root:not([data-theme="light"]) .modal input:focus,:root:not([data-theme="light"]) .modal textarea:focus { border-color: #788cf5; box-shadow: 0 0 0 3px rgba(120, 140, 245, .16); }
.modal textarea { min-height: 78px; }
.form-note { font-size: 10px; margin: 13px 0 0; }
:root:not([data-theme="light"]) .form-note { color: #a5b1c5; }
.form-actions { gap: 9px; margin-top: 17px; }
.modal .consent { font-size: 11px; }
.modal .consent input { width: 18px; min-height: 0; padding: 0; }

/* header: language switch shows the globe only on wide screens so the reference layout fits */
@media (min-width: 1180px) { .lang .lang-name { display: none; } .lang > summary { padding: 0 8px;  } ; }

:root[data-theme="light"] .pill.solid:focus-visible, :root[data-theme="light"] .arrow:focus-visible { outline-color: var(--ink); }
.hero-copy, .hero-panel .lp { min-width: 0; }
@media (max-width: 719px) { .hero-copy h1 { font-size: clamp(30px, 9vw, 42px); letter-spacing: -1.6px; overflow-wrap: anywhere; } .hero-copy h1 .w { max-width: 100%; white-space: normal; } }

/* demo feed rows as notification cards (reference look) */
.feed-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.feed-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 13px; border-radius: 9px; font-size: 12px; font-weight: 700; line-height: 1.5; border: 1px solid var(--line); }
.feed-list li time { order: 2; flex: none; font-size: 9px; font-weight: 400; }
:root:not([data-theme="light"]) .feed-list li { background: #1c2638; border-color: #30394c; color: #edf1fa; }
:root:not([data-theme="light"]) .feed-list li time { color: #8d9bb1; }
.feed-foot { font-size: 10px; margin: 11px 0 0; }
.feed-list li:first-child { border-block-start-width: 1px; }
.demo-main .feed { border: 0; background: transparent; padding: 0; box-shadow: none; }
/* mobile: icon-only menu button and the reference's 16 px gutter */
.menu-btn > span:last-child { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-btn { min-width: 44px; justify-content: center; padding-inline: 11px; border: 0; background: transparent; }
@media (max-width: 719px) { .topbar .wrap, .head-in, .hero-grid3, .site-foot .wrap { width: min(1180px, calc(100% - 32px)); } }

/* V2 plan: filter tabs on the live panel */
.lp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.lp-tabs[hidden] { display: none; }
.lp-tab { min-height: 32px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 700 11px/1.3 var(--sans); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.lp-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.lp-tab[aria-pressed="true"] { background: var(--green-soft); border-color: var(--line-strong); color: var(--ink); }
:root:not([data-theme="light"]) .lp-tab { color: #a7b2c6; border-color: #30394c; }
:root:not([data-theme="light"]) .lp-tab[aria-pressed="true"] { background: #2b3650; color: #fff; }

/* extra footer links (pages the reference footer does not list) */
.foot-more { display: flex; flex-wrap: nowrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; font-size: 10px; }
.foot-bar > p { white-space: nowrap; }
.site-foot .foot-legal, .site-foot .foot-langs { flex-wrap: nowrap; gap: 4px 14px; font-size: 10px; }
.foot-bar li, .foot-bar a { white-space: nowrap; }
.foot-bar .foot-langs a { font-size: 10px; }
.foot-more a { color: inherit; opacity: .8; text-decoration: none; }
.foot-more a:hover { opacity: 1; text-decoration: underline; }

/* footer bottom bar: one line like the reference (copyright left, link rows right) */
.site-foot .foot-bar ul { display: flex; flex-wrap: nowrap; gap: 0 9px; list-style: none; margin: 0; padding: 0; font-size: 10px; }
.site-foot .foot-bar ul a { display: inline; margin: 0; font-size: 10px; line-height: 17px; }
.site-foot .foot-bar .foot-langs { margin-left: auto; }
@media (max-width: 1199px) { .foot-bar { flex-wrap: wrap; } .site-foot .foot-bar ul { flex-wrap: wrap; } }

/* header = reference bar (logo, five links, two buttons); Login, language and theme sit in the menu panel and the footer */
.nav-extras { display: none; }
.head-trial { display: none; }
@media (max-width: 1299px) {
  .nav-extras { display: flex; flex-direction: column; align-items: stretch; gap: 2px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
  .head-trial { display: inline-flex; padding: 10px 11px; font-size: 11px; margin-inline-start: auto; }
  .site-nav .nav-actions .pill.solid { display: none; }
  .head-in { flex-wrap: wrap; gap: 6px; }
  .menu-btn { min-width: 40px; padding-inline: 8px; }
  .site-head .nav-links, .site-head .nav-actions, .nav-extras { margin: 0; }
  .site-head .site-nav { align-items: stretch; }
  .nav-more > li > a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; font-size: 16px; font-weight: 650; text-decoration: none; border-radius: var(--r-lg); }
  :root:not([data-theme="light"]) .nav-more > li > a { color: #c0c9d8; }
  :root[data-theme="light"] .nav-more > li > a { color: var(--muted); }
  .nav-more .drop > summary { padding: 0 12px; }
  .nav-more { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
}
@media (min-width: 1300px) { .nav-more { display: none; } }
@media (min-width: 1300px) { .head-in { flex-wrap: nowrap !important; height: 78px !important; } }
.site-foot .foot-theme { display: block; background: none; border: 0; padding: 0; margin: 8px 0; font: inherit; font-size: 11px; text-align: start; cursor: pointer; color: inherit; }
:root:not([data-theme="light"]) .site-foot .foot-theme { color: #b4bfd1; }
.site-foot .foot-theme:hover { color: #8da7ff; }
.site-foot .foot-theme:empty { display: none; }

/* seven tabs: long labels (fr, de, es, nl) need tighter gaps before the bar runs out of room */
@media (min-width: 1300px) { html:not([lang="en"]):not([lang="zh-Hans"]):not([lang="zh"]):not([lang="ar"]) .site-head .nav-links { gap: 14px; } html:not([lang="en"]):not([lang="zh-Hans"]):not([lang="zh"]):not([lang="ar"]) .nav-links > li > a { font-size: 12px; } html:not([lang="en"]) .nav-actions { gap: 6px; } html:not([lang="en"]) .nav-actions .pill { padding: 12px 12px; font-size: 12px; } html:not([lang="en"]) .head-in { gap: 12px; } }
/* long translated labels may wrap the footer bar instead of pushing the page sideways */
html:not([lang="en"]) .foot-bar, html:not([lang="en"]) .site-foot .foot-bar ul { flex-wrap: wrap; }
@media (max-width: 420px) { html:not([lang="en"]) .head-in .brand { width: 140px !important; flex-basis: auto; } html:not([lang="en"]) .head-in .brand img { width: 140px !important; height: auto !important; } .head-trial { white-space: nowrap; } }
@media (min-width: 1300px) and (max-width: 1399px) { html[lang="fr"] .site-head .nav-links, html[lang="es"] .site-head .nav-links { gap: 10px; } html[lang="fr"] .nav-links > li > a, html[lang="es"] .nav-links > li > a { font-size: 11.5px; } html[lang="fr"] .nav-actions .pill, html[lang="es"] .nav-actions .pill { padding: 12px 10px; font-size: 11.5px; } html[lang="fr"] .head-in, html[lang="es"] .head-in { gap: 8px; } }

/* Seat request dialog: parent, student, classes from the centre and a week calendar of times. */
.modal.modal-wide { width: min(860px, 100%); overflow-y: auto; }
.modal .seat-group { border: 0; margin: 4px 0 6px; padding: 0; min-width: 0; grid-column: 1 / -1; }
.modal .seat-group > legend { font: 800 12px/1.4 var(--sans); letter-spacing: .02em; text-transform: uppercase; padding: 0 0 8px; color: var(--muted); }
.modal .seat-group .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.modal .field-hint { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.modal .seat-help { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.modal .check { display: flex; align-items: flex-start; gap: 10px; }
.modal .check input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; flex: none; }
.modal .check label { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.45; }
.modal .seat-subject { margin: 0 0 10px; }
.modal .seat-subject h4 { margin: 0 0 6px; font: 800 13px/1.3 var(--sans); }
.modal .seat-class { padding: 8px 10px; border: 1px solid var(--line, #d7dce6); border-radius: 10px; margin-bottom: 6px; }
.modal .seat-class label { display: grid; gap: 2px; font-weight: 600; cursor: pointer; }
.modal .seat-class small { font-weight: 500; color: var(--muted); font-size: 11px; }
.modal .seat-other { margin-top: 4px; }
.modal #sf-other-text { margin-top: 8px; width: 100%; box-sizing: border-box; }
.modal .cal { display: block; }
.modal .cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; }
.modal .cal-nav .pill { min-width: 40px; min-height: 40px; font-size: 18px; }
.modal .cal-nav .pill:disabled { opacity: .35; }
.modal .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.modal .cal-wd { text-align: center; font-size: 10px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.modal .cal-pad { min-height: 40px; }
.modal .cal-off { display: flex; align-items: center; justify-content: center; min-height: 40px; font-size: 12px; opacity: .3; }
.modal .cal-date { min-height: 40px; border-radius: 8px; border: 1px solid var(--line-strong, #aab3c5); background: transparent; color: inherit; font: 650 13px/1 var(--sans); cursor: pointer; position: relative; }
.modal .cal-date:hover { border-color: #5366e0; }
.modal .cal-date[aria-pressed="true"] { outline: 2px solid #8fa2ff; outline-offset: 1px; }
.modal .cal-date.has-pick { background: #5366e0; border-color: #5366e0; color: #fff; }
.modal .cal-date:focus-visible { outline: 3px solid #8fa2ff; outline-offset: 2px; }
.modal .cal-times { margin-top: 10px; }
.modal .cal-times-h { margin: 0 0 6px; font-size: 12px; font-weight: 800; }
.modal .cal-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.modal .cal[hidden] { display: none; }
.modal .cal-slot { min-height: 40px; padding: 6px 2px; border-radius: 8px; border: 1px solid var(--line-strong, #aab3c5); background: transparent; color: inherit; font: 650 11px/1.25 var(--sans); cursor: pointer; }
.modal .cal-slot:hover { border-color: #5366e0; }
.modal .cal-slot[aria-pressed="true"] { background: #5366e0; border-color: #5366e0; color: #fff; }
.modal .cal-slot:focus-visible, .modal .check input:focus-visible { outline: 3px solid #8fa2ff; outline-offset: 2px; }
.modal .cal-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .modal .seat-group .form-grid { grid-template-columns: 1fr; }
  .modal .cal-slot { flex: 0 0 auto; min-width: 104px; min-height: 44px; padding: 8px 10px; }
  .modal.modal-wide { max-height: 94vh; padding: 18px; }
}
