/* Hand-written component styles - work with both the Tailwind CDN and the compiled build. */
:root { --bolt:#1B8CCB; --bolt-dark:#0F6BA0; --ink:#0A2540; --spark:#F26B21; --volt:#FFC800; --tint:#EAF5FC; }
html { scroll-behavior: smooth; }
body { font-family: "Nunito Sans", system-ui, sans-serif; color: var(--ink); }
h1,h2,h3,.font-display { font-family: Raleway, system-ui, sans-serif; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:.7rem 1.25rem; border-radius:.375rem;
       font-weight:700; font-family:Raleway,system-ui,sans-serif; border:2px solid transparent; cursor:pointer; text-decoration:none; transition:background-color .15s,border-color .15s; }
.btn[disabled] { opacity:.55; cursor:not-allowed; }
.btn-primary { background:var(--bolt); color:#fff; } .btn-primary:hover:not([disabled]) { background:var(--bolt-dark); }
.btn-accent  { background:var(--spark); color:#fff; } .btn-accent:hover:not([disabled]) { background:#d9570f; }
.btn-ghost   { border-color:var(--ink); color:var(--ink); background:transparent; } .btn-ghost:hover { background:var(--ink); color:#fff; }

.field { width:100%; border:1.5px solid #b9c7d4; border-radius:.375rem; padding:.65rem .8rem; background:#fff; font:inherit; }
.field:focus { border-color:var(--bolt); outline:none; box-shadow:0 0 0 3px rgba(27,140,203,.25); }
.label { display:block; font-weight:700; margin-bottom:.3rem; font-size:.95rem; }

.badge { display:inline-block; padding:.15rem .6rem; border-radius:999px; font-size:.78rem; font-weight:700; background:var(--tint); color:var(--bolt-dark); }
.badge-open { background:#e3f6e8; color:#14733a; } .badge-closed { background:#fdeaea; color:#a12727; } .badge-warn { background:#fff3d6; color:#8a5a00; }

/* Countdown */
.cd { display:flex; gap:.75rem; }
.cd-unit { text-align:center; min-width:3.6rem; }
.cd-num { font-family:Raleway,sans-serif; font-weight:800; font-size:2.4rem; line-height:1; font-variant-numeric:tabular-nums; }
.cd-lab { font-size:.8rem; opacity:.8; margin-top:.25rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } * { transition:none !important; } }

/* ===== Admin shell / sidebar ===== */
.adm-shell { min-height: 100vh; }
.adm-sidebar { position: fixed; inset: 0 auto 0 0; width: 17rem; max-width: 86vw; z-index: 50; display: flex; flex-direction: column;
  background: var(--ink); color: #cbd5e1; transform: translateX(-100%); transition: transform .2s ease, width .2s ease; }
.adm-sidebar[data-open="true"] { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
.adm-overlay { position: fixed; inset: 0; background: rgba(10,37,64,.55); z-index: 40; }
.adm-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; background: #fff; border-bottom: 1px solid #e2e8f0; }
.adm-scroll { flex: 1; overflow-y: auto; padding: .25rem .75rem 1rem; overscroll-behavior: contain; }
.adm-brand { display: flex; align-items: center; justify-content: space-between; padding: 1rem .75rem .75rem; gap: .5rem; }
.adm-logo { background: #fff; border-radius: .5rem; padding: .35rem .5rem; display: inline-block; }
.adm-group { margin-top: 1.1rem; }
.adm-group-label { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: #7f93a8; font-weight: 700; padding: 0 .75rem .35rem; }
.adm-link { position: relative; display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border-radius: .5rem; color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: .93rem; }
.adm-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.adm-link[aria-current="page"] { background: rgba(27,140,203,.28); color: #fff; }
.adm-link[aria-current="page"]::before { content: ""; position: absolute; left: -.75rem; top: .45rem; bottom: .45rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--volt); }
.adm-ico { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.adm-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-badge { min-width: 1.35rem; padding: 0 .4rem; height: 1.35rem; line-height: 1.35rem; border-radius: 999px; background: var(--spark); color: #fff; font-size: .72rem; font-weight: 800; text-align: center; }
.adm-user { border-top: 1px solid rgba(255,255,255,.12); padding: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.adm-avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--bolt); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.adm-iconbtn { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .5rem; color: inherit; background: transparent; border: 0; cursor: pointer; }
.adm-iconbtn:hover { background: rgba(127,147,168,.25); }
.adm-main { padding: 1rem; min-width: 0; }
.adm-collapse-btn { display: none; }

@media (min-width: 1024px) {
  .adm-shell { display: flex; }
  .adm-sidebar { position: sticky; top: 0; height: 100vh; transform: none; flex: none; max-width: none; }
  .adm-overlay, .adm-topbar { display: none !important; }
  .adm-main { flex: 1; padding: 2rem; }
  .adm-collapse-btn { display: inline-grid; }
  .adm-close-btn { display: none !important; }
  .adm-collapsed .adm-sidebar { width: 4.75rem; }
  .adm-collapsed .adm-label, .adm-collapsed .adm-group-label, .adm-collapsed .adm-user-meta, .adm-collapsed .adm-logo-full { display: none; }
  .adm-collapsed .adm-link { justify-content: center; padding-left: 0; padding-right: 0; }
  .adm-collapsed .adm-link[aria-current="page"]::before { left: 0; }
  .adm-collapsed .adm-badge { position: absolute; top: .15rem; right: .45rem; min-width: .6rem; height: .6rem; line-height: .6rem; padding: 0; font-size: 0; }
  .adm-collapsed .adm-brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .adm-collapsed .adm-user { align-items: center; }
  .adm-collapsed .adm-collapse-btn svg { transform: rotate(180deg); }
}
@media (min-width: 1024px) { .adm-collapsed .adm-logo-mini { display: inline !important; } }

/* ===== Public header + mobile menu ===== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid #e2e8f0; }
.nav-link { padding: .5rem .1rem; font-weight: 700; border-bottom: 3px solid transparent; text-decoration: none; }
.nav-link:hover { color: var(--bolt-dark); }
.nav-link[aria-current="page"] { border-bottom-color: var(--volt); }
.hamb { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1.5px solid #cbd5e1; border-radius: .5rem; background: #fff; cursor: pointer; }
.hamb svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.mmenu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 22px 30px -14px rgba(10,37,64,.3); max-height: calc(100vh - 4rem); overflow-y: auto; padding: .25rem 1rem 1.25rem; }
.mnav-link { display: flex; align-items: center; justify-content: space-between; min-height: 3.1rem; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid #eef2f6; text-decoration: none; }
.mnav-link[aria-current="page"] { color: var(--bolt-dark); }
.mnav-link::after { content: "\203A"; color: #94a3b8; font-size: 1.4rem; }

/* ===== Student bottom tab bar (mobile) ===== */
.btabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid #e2e8f0; padding-bottom: env(safe-area-inset-bottom); }
.btab { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .25rem .5rem; min-height: 3.5rem; font-size: .72rem; font-weight: 700; color: #475569; text-decoration: none; }
.btab[aria-current="page"] { color: var(--bolt-dark); }
.btab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--bolt); border-radius: 0 0 3px 3px; }
.btab svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btab .dot { position: absolute; top: .3rem; left: calc(50% + .45rem); background: var(--spark); color: #fff; border-radius: 999px; font-size: .65rem; min-width: 1.05rem; height: 1.05rem; line-height: 1.05rem; text-align: center; padding: 0 .25rem; }
@media (min-width: 768px) { .btabs { display: none; } }

/* ===== Auth pages ===== */
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--tint); }
.auth-split { background: #fff; }
.auth-brand { display: none; position: relative; overflow: hidden; color: #e2e8f0; background: radial-gradient(120% 80% at 100% 0%, rgba(27,140,203,.5), transparent 60%), var(--ink); }
.auth-brand .bolt { position: absolute; right: -2rem; bottom: -2rem; width: 20rem; height: 20rem; opacity: .1; fill: var(--volt); }
.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem 2.5rem; }
.auth-card { width: 100%; max-width: 26rem; }
.auth-card.wide { max-width: 33rem; }
.auth-card.boxed { background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; padding: 1.75rem; }
@media (min-width: 1024px) {
  .auth-split { flex-direction: row; }
  .auth-split .auth-brand { display: flex; flex-direction: column; justify-content: space-between; width: 42%; max-width: 36rem; min-height: 100vh; position: sticky; top: 0; padding: 2.75rem; }
  .auth-split .auth-mobile-logo { display: none; }
  .auth-split .auth-main { padding: 3rem; }
}
.pw-wrap { position: relative; }
.pw-wrap .field { padding-right: 4.75rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: .85rem; padding: .4rem .6rem; border-radius: .375rem; color: var(--bolt-dark); background: transparent; border: 0; cursor: pointer; }
.pw-toggle:hover { background: var(--tint); }
.pw-meter { height: .35rem; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.pw-meter > span { display: block; height: 100%; width: 0; transition: width .2s, background-color .2s; }
.hint { font-size: .85rem; color: #475569; margin-top: .35rem; }
.hint.ok { color: #14733a; font-weight: 700; } .hint.bad { color: #a12727; }
.field.invalid { border-color: #dc2626; }

/* ===== Legal + FAQ pages ===== */
.legal h2 { font-family: Raleway, system-ui, sans-serif; font-size: 1.5rem; font-weight: 800; margin-top: 2.5rem; scroll-margin-top: 5.5rem; }
.legal h3 { font-weight: 700; font-size: 1.1rem; margin-top: 1.4rem; }
.legal p, .legal li { line-height: 1.75; color: #1e293b; }
.legal p { margin-top: .8rem; }
.legal ul { list-style: disc; padding-left: 1.35rem; margin-top: .6rem; } .legal ol { list-style: decimal; padding-left: 1.35rem; margin-top: .6rem; }
.legal li { margin-top: .3rem; }
.legal a { color: var(--bolt-dark); text-decoration: underline; }
.legal .table-wrap { overflow-x: auto; margin-top: 1rem; }
.legal table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { border: 1px solid #cbd5e1; padding: .65rem .8rem; text-align: left; vertical-align: top; }
.legal th { background: var(--tint); }
mark.ph { background: #fff0a6; padding: 0 .25em; border-radius: .2em; color: inherit; }
.toc a { display: block; padding: .4rem .75rem; border-left: 3px solid transparent; color: #475569; font-size: .92rem; text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { border-left-color: var(--bolt); color: var(--ink); font-weight: 700; background: var(--tint); }
.faq details { border: 1px solid #cbd5e1; border-radius: .5rem; background: #fff; }
.faq details + details { margin-top: .6rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.1rem; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--bolt); line-height: 1; }
.faq details[open] { border-color: var(--bolt); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 1.1rem 1.1rem; line-height: 1.75; color: #334155; }
.faq .ans a { color: var(--bolt-dark); text-decoration: underline; }
@media print { .site-header, .site-footer, .toc-wrap, .no-print { display: none !important; } .legal { font-size: 11pt; } }

/* ===== Self-paced learning (Udemy-style) ===== */
.btabs { grid-template-columns: repeat(5, 1fr); }
.stars { display: inline-block; font-size: 1rem; letter-spacing: 1px; line-height: 1; background: linear-gradient(90deg, #e59819 var(--p, 0%), #cbd5e1 var(--p, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ccard { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: .5rem; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.ccard:hover { box-shadow: 0 12px 26px -14px rgba(10,37,64,.4); border-color: #cbd5e1; }
.ccard-img { position: relative; aspect-ratio: 16 / 9; background: var(--tint); display: grid; place-items: center; overflow: hidden; }
.ccard-img img { width: 100%; height: 100%; object-fit: cover; }
.ccard-img .ph-letters { font-family: Raleway, sans-serif; font-weight: 800; font-size: 2.6rem; color: var(--bolt); }
.ccard-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.ccard-title { font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-meta { font-size: .8rem; color: #64748b; }
.price { font-weight: 800; font-size: 1.05rem; }
.price s { color: #64748b; font-weight: 400; font-size: .9rem; margin-left: .4rem; }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .02em; padding: .15rem .5rem; border-radius: .25rem; background: #fff; border: 1px solid #cbd5e1; color: var(--ink); }
.tag-sale { background: var(--volt); border-color: var(--volt); }
.tag-live { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag-free { background: #e3f6e8; color: #14733a; border-color: #b7e4c4; }

.filters details { border-bottom: 1px solid #e2e8f0; padding: .75rem 0; }
.filters summary { font-weight: 800; cursor: pointer; }
.filters label.opt { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; cursor: pointer; }
.filters input[type=radio] { accent-color: var(--bolt); width: 1rem; height: 1rem; }

.cgrid { display: grid; grid-template-columns: minmax(0, 1fr); }
.chero { background: var(--ink); color: #fff; padding: 1.75rem 1rem 2rem; box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax); }
.chero a { color: #9bd3f2; }
.buycard { background: #fff; border: 1px solid #cbd5e1; border-radius: .5rem; box-shadow: 0 18px 40px -20px rgba(10,37,64,.45); overflow: hidden; color: var(--ink); }
.buycard .media { aspect-ratio: 16/9; background: #0b1b2b; position: relative; display: grid; place-items: center; }
.buycard .media img, .buycard .media iframe, .buycard .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.checks { list-style: none; padding: 0; display: grid; gap: .5rem; }
.checks li { position: relative; padding-left: 1.6rem; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: .15rem; top: .45rem; width: .55rem; height: .3rem; border-left: 2px solid var(--bolt); border-bottom: 2px solid var(--bolt); transform: rotate(-45deg); }
.cur-sec { border: 1px solid #cbd5e1; background: #fff; }
.cur-sec + .cur-sec { border-top: 0; }
.cur-sec summary { cursor: pointer; list-style: none; padding: .85rem 1rem; font-weight: 800; display: flex; justify-content: space-between; gap: 1rem; background: #f8fafc; }
.cur-sec summary::-webkit-details-marker { display: none; }
.cur-sec summary::before { content: "\25B8"; margin-right: .6rem; transition: transform .15s; display: inline-block; }
.cur-sec[open] summary::before { transform: rotate(90deg); }
.cur-lesson { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 1rem .6rem 2.2rem; border-top: 1px solid #eef2f6; font-size: .95rem; }
.bar { height: .5rem; border-radius: 999px; background: #e2e8f0; overflow: hidden; } .bar > span { display: block; height: 100%; background: var(--bolt); transition: width .3s; }
.dist-row { display: grid; grid-template-columns: 3.2rem 1fr 3rem; gap: .6rem; align-items: center; font-size: .9rem; }
@media (min-width: 1024px) {
  .cgrid { grid-template-columns: minmax(0, 1fr) 22rem; column-gap: 2.5rem; }
  .cgrid .chero { grid-column: 1; grid-row: 1; padding: 2.25rem 1rem 2.5rem 0; }
  .cgrid .cside { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 5rem; margin-top: 1.75rem; }
  .cgrid .cmain { grid-column: 1; grid-row: 2; }
}

/* Player */
.pl-top { background: var(--ink); color: #fff; display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; position: sticky; top: 0; z-index: 30; }
.pl-top a { color: #fff; text-decoration: none; }
.pl-ring { --p: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: conic-gradient(var(--volt) calc(var(--p) * 1%), rgba(255,255,255,.2) 0); position: relative; flex: none; }
.pl-ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.pl-ring span { position: relative; }
.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; }
.pl-media { background: #000; }
.pl-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 9rem); margin: 0 auto; background: #000; }
.pl-frame iframe, .pl-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-side { border-top: 1px solid #e2e8f0; background: #fff; }
.pl-sec summary { cursor: pointer; list-style: none; padding: .8rem 1rem; font-weight: 800; background: #f8fafc; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; gap: .5rem; }
.pl-sec summary::-webkit-details-marker { display: none; }
.pl-lesson { display: flex; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid #f1f5f9; text-decoration: none; color: inherit; align-items: flex-start; }
.pl-lesson:hover { background: #f8fafc; }
.pl-lesson[aria-current="true"] { background: var(--tint); box-shadow: inset 4px 0 0 var(--bolt); }
.pl-check { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; border: 2px solid #94a3b8; border-radius: 50%; position: relative; }
.pl-lesson.done .pl-check { background: #16a34a; border-color: #16a34a; }
.pl-lesson.done .pl-check::after { content: ""; position: absolute; left: .26rem; top: .08rem; width: .3rem; height: .55rem; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg); }
.pl-tabs { display: flex; gap: .25rem; border-bottom: 1px solid #e2e8f0; overflow-x: auto; }
.pl-tab { padding: .8rem 1rem; font-weight: 700; border: 0; background: none; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; color: #475569; }
.pl-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.prose-lite h2 { font-size: 1.5rem; font-weight: 800; margin-top: 1.6rem; } .prose-lite h3 { font-size: 1.2rem; font-weight: 800; margin-top: 1.3rem; } .prose-lite h4 { font-weight: 800; margin-top: 1rem; }
.prose-lite p, .prose-lite li { line-height: 1.8; } .prose-lite p { margin-top: .85rem; }
.prose-lite ul { list-style: disc; padding-left: 1.4rem; margin-top: .6rem; } .prose-lite ol { list-style: decimal; padding-left: 1.4rem; margin-top: .6rem; }
.prose-lite a { color: var(--bolt-dark); text-decoration: underline; }
.prose-lite code { background: #f1f5f9; padding: .1rem .35rem; border-radius: .25rem; font-size: .92em; }
.prose-lite pre { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: .5rem; overflow-x: auto; margin-top: 1rem; } .prose-lite pre code { background: none; padding: 0; color: inherit; }
.prose-lite blockquote { border-left: 4px solid var(--bolt); padding: .25rem 1rem; margin-top: 1rem; color: #334155; background: var(--tint); }
.quiz-q { border: 1px solid #cbd5e1; border-radius: .5rem; padding: 1rem; margin-top: 1rem; background: #fff; }
.quiz-opt { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .75rem; border: 1.5px solid #cbd5e1; border-radius: .4rem; margin-top: .5rem; cursor: pointer; }
.quiz-opt:hover { border-color: var(--bolt); }
.quiz-opt.right { border-color: #16a34a; background: #e3f6e8; } .quiz-opt.wrong { border-color: #dc2626; background: #fdeaea; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2rem; color: #cbd5e1; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #e59819; }
.star-input input:focus-visible + label { outline: 3px solid var(--volt); }
@media (min-width: 1024px) {
  .pl-layout { grid-template-columns: minmax(0, 1fr) 24rem; }
  .pl-side { border-top: 0; border-left: 1px solid #e2e8f0; position: sticky; top: 3.55rem; height: calc(100vh - 3.55rem); overflow-y: auto; }
}

/* Certificate */
.cert-page { min-height: 100vh; background: #e2e8f0; display: grid; place-items: center; padding: 1.5rem; }
.cert { width: min(100%, 62rem); aspect-ratio: 1.414 / 1; background: #fff; border: 14px solid var(--ink); outline: 3px solid var(--volt); outline-offset: -26px; padding: 3.5rem 4rem; text-align: center; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 20px 50px -20px rgba(10,37,64,.5); }
@media (max-width: 700px) { .cert { aspect-ratio: auto; padding: 2rem 1.25rem; border-width: 8px; outline-offset: -16px; } }
@media print { @page { size: landscape; margin: 0; } body { background: #fff; } .cert-page { background: #fff; padding: 0; } .cert { box-shadow: none; width: 100%; height: 100vh; } .no-print { display: none !important; } }

/* ===== Jobs ===== */
.jcard { display: flex; gap: 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .5rem; padding: 1rem 1.1rem; position: relative; transition: border-color .15s, box-shadow .15s; }
.jcard:hover { border-color: #cbd5e1; box-shadow: 0 10px 22px -16px rgba(10,37,64,.5); }
.jlogo { flex: none; width: 3rem; height: 3rem; border-radius: .5rem; display: grid; place-items: center; font-family: Raleway, sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.jtitle { font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.jtitle a { color: inherit; text-decoration: none; } .jtitle a::after { content: ""; position: absolute; inset: 0; } .jtitle a:hover { color: var(--bolt-dark); text-decoration: underline; }
.jmeta { color: #475569; font-size: .92rem; }
.jchips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.jchip { font-size: .76rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--tint); color: var(--bolt-dark); }
.jchip.pay { background: #e3f6e8; color: #14733a; } .jchip.warn { background: #fff3d6; color: #8a5a00; }
.jsave { position: relative; z-index: 2; }
.jsave button { border: 1.5px solid #cbd5e1; background: #fff; border-radius: .4rem; width: 2.4rem; height: 2.4rem; font-size: 1.15rem; cursor: pointer; color: #64748b; }
.jsave button[aria-pressed="true"] { color: #e11d48; border-color: #fda4af; background: #fff1f2; }
.why { margin-top: .75rem; background: linear-gradient(90deg, rgba(27,140,203,.1), rgba(27,140,203,.03)); border-left: 3px solid var(--bolt); border-radius: .3rem; padding: .55rem .75rem; font-size: .9rem; position: relative; z-index: 2; }
.match { font-weight: 800; font-size: .78rem; color: var(--bolt-dark); }
.catchips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.catchips a { flex: none; padding: .4rem .85rem; border: 1.5px solid #cbd5e1; border-radius: 999px; font-weight: 700; font-size: .88rem; text-decoration: none; background: #fff; color: var(--ink); }
.catchips a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.safety { border: 1.5px solid #fcd34d; background: #fffbeb; border-radius: .5rem; padding: .9rem 1rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid #cbd5e1; border-radius: 999px; padding: .35rem .8rem; cursor: pointer; font-weight: 600; font-size: .9rem; background: #fff; }
.pill:has(input:checked) { background: var(--tint); border-color: var(--bolt); color: var(--bolt-dark); }
.pill input { accent-color: var(--bolt); }

/* sort links (courses + jobs) */
.sortlinks a { color: var(--bolt-dark); text-decoration: none; font-weight: 600; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.sortlinks a:hover { border-bottom-color: #cbd5e1; }
.sortlinks a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--volt); }
.filters label.opt .stars { font-size: .95rem; }

/* Respect the hidden attribute even on elements that also have a display utility (flex, grid...). */
[hidden] { display: none !important; }

/* Admin: compact icon action buttons (tables with many actions) */
.act { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border: 1px solid #cbd5e1; border-radius: .5rem; background: #fff; color: var(--bolt-dark); cursor: pointer; text-decoration: none; }
.act:hover, .act:focus-visible { background: var(--bolt-tint, #EAF5FC); border-color: var(--bolt); outline: none; }
.act:focus-visible { box-shadow: 0 0 0 3px rgba(27,140,203,.35); }
.act svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act-warn { color: #b91c1c; }
.act-warn:hover, .act-warn:focus-visible { background: #fef2f2; border-color: #f87171; }

/* Notification bell */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; color: var(--ink); text-decoration: none; }
.bell:hover, .bell:focus-visible { background: var(--tint); outline: none; }
.bell:focus-visible { box-shadow: 0 0 0 3px rgba(27,140,203,.4); }
.bell svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bell-dot { position: absolute; top: .1rem; right: .05rem; min-width: 1.1rem; height: 1.1rem; padding: 0 .28rem; border-radius: 999px; background: var(--spark); color: #fff; font-size: .68rem; font-weight: 800; line-height: 1.1rem; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.bell-dark { color: #fff; }
.bell-dark:hover, .bell-dark:focus-visible { background: rgba(255,255,255,.15); }
.bell-dark .bell-dot { border-color: var(--ink); }

/* Notifications page */
.nt-tabs { display: flex; gap: .25rem; margin-top: 1.25rem; border-bottom: 1px solid #e2e8f0; }
.nt-tabs a { padding: .6rem 1rem; font-weight: 700; color: #475569; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: .4rem; }
.nt-tabs a:hover { color: var(--ink); }
.nt-tabs a[aria-current="page"] { color: var(--bolt-dark); border-bottom-color: var(--bolt); }
.nt-group { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin-bottom: .6rem; }
.nt-card { display: flex; gap: .85rem; align-items: flex-start; background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; padding: .95rem 1rem; }
.nt-unread { border-left: 4px solid var(--bolt); background: #f8fbfe; }
.nt-ico { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 999px; display: grid; place-items: center; background: var(--tint); color: var(--bolt-dark); }
.nt-ico svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nt-ico.nt-warn { background: #fff1e6; color: #c2410c; }
.nt-ico.nt-ok { background: #e7f7ee; color: #15803d; }
.nt-ico.big { width: 4rem; height: 4rem; margin: 0 auto; }
.nt-ico.big svg { width: 1.8rem; height: 1.8rem; }
.nt-time { font-size: .8rem; color: #64748b; }
.nt-link { background: none; border: 0; padding: .15rem 0; font: inherit; font-size: .85rem; font-weight: 700; color: var(--bolt-dark); cursor: pointer; text-decoration: underline; }
.nt-link:hover { color: var(--ink); }
.nt-muted { color: #64748b; font-weight: 600; }
.nt-more summary { list-style: none; cursor: pointer; }
.nt-more summary::-webkit-details-marker { display: none; }
.nt-more .nt-preview { display: block; color: #334155; white-space: pre-line; }
.nt-more[open] .nt-preview { display: none; }
.nt-more summary .nt-link { display: inline-block; margin-top: .15rem; }
.nt-more[open] summary .nt-link { display: none; }
.nt-empty { margin-top: 2rem; text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: .75rem; padding: 2.5rem 1rem; }

/* Career Launch stage tracker (student dashboard) */
.clt { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 640px) { .clt { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; } }
.clt li { display: flex; align-items: center; gap: .5rem; }
@media (min-width: 640px) { .clt li { flex-direction: column; text-align: center; } }
.clt-dot { flex: none; width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: #e2e8f0; color: #475569; }
.clt-name { font-size: .8rem; font-weight: 700; color: #475569; line-height: 1.2; }
.clt-done .clt-dot { background: #15803d; color: #fff; }
.clt-now .clt-dot { background: var(--bolt); color: #fff; box-shadow: 0 0 0 4px rgba(27,140,203,.25); }
.clt-now .clt-name { color: var(--ink); }

.act-label { width: auto; padding: 0 .7rem; gap: .4rem; font-weight: 700; font-size: .85rem; }

/* Inputs always use dark text, even when placed inside a dark (white-text) section such as the courses and jobs headers. */
.field { color: #0A2540; }
.field::placeholder { color: #64748b; opacity: 1; }
select.field option { color: #0A2540; background: #fff; }
.field:-webkit-autofill { -webkit-text-fill-color: #0A2540; }

/* Offer countdown */
.cd-box { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .5rem 0 0; padding: .35rem .7rem; border-radius: .5rem; background: #fff1e6; color: #9a3412; font-size: .9rem; }
.cd { font-variant-numeric: tabular-nums; font-weight: 800; }

/* Admin tables: "more options" menu */
.act-wrap { position: relative; display: inline-block; }
.act-menu { position: fixed; z-index: 60; min-width: 12.5rem; max-width: 18rem; background: #fff; border: 1px solid #cbd5e1; border-radius: .65rem; box-shadow: 0 12px 28px rgba(15,23,42,.2); padding: .35rem; text-align: left; white-space: normal; }
.act-menu[hidden] { display: none; }
.act-menu form { margin: 0; }
.act-item { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .55rem .7rem; border: 0; border-radius: .45rem; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: #0A2540; text-align: left; text-decoration: none; cursor: pointer; }
.act-item:hover, .act-item:focus-visible { background: #EAF5FC; outline: none; }
.act-item:focus-visible { box-shadow: inset 0 0 0 2px #1B8CCB; }
.act-item svg { flex: none; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act-item.danger { color: #b91c1c; }
.act-item.danger:hover, .act-item.danger:focus-visible { background: #fef2f2; }
.act-sep { height: 1px; margin: .3rem .2rem; background: #e2e8f0; }
