/* ==========================================================================
   CSIP12 homepage (Phase 3B) — frozen Phase 2 "Digital Textbook" homepage.
   Built only from the csip-ui.css tokens, so light and dark themes both work.
   Everything is scoped under .csip-home.
   ========================================================================== */

.csip-home { background: var(--c-paper); color: var(--c-ink); font-family: var(--f-sans); }
.csip-home a { text-decoration: none; }
.csip-home h1, .csip-home h2, .csip-home h3 { font-family: var(--f-serif) !important; color: var(--c-ink); margin: 0; letter-spacing: 0; }
.csip-home__wrap { max-width: 1328px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 768px) { .csip-home__wrap { padding: 0 32px; } }
@media (min-width: 1280px) { .csip-home__wrap { padding: 0 56px; } }
.csip-home__desktop { display: none; }
@media (min-width: 768px) { .csip-home__desktop { display: block; } }

/* ---------- Hero ---------- */
.csip-hero { position: relative; overflow: hidden; }
.csip-hero__glow {
    position: absolute; top: -40px; right: -140px; width: 560px; height: 560px; border-radius: 999px; pointer-events: none;
    background: radial-gradient(circle, var(--c-amber-tint) 0%, transparent 70%);
}
.csip-hero__inner { position: relative; display: flex; gap: 44px; align-items: flex-start; padding-top: 22px; padding-bottom: 22px; }
@media (min-width: 768px) { .csip-hero__inner { padding-top: 44px; padding-bottom: 36px; } }
.csip-hero__main { flex: 1 1 auto; min-width: 0; max-width: 560px; }
@media (max-width: 1023.98px) { .csip-hero__main { max-width: 640px; margin: 0 auto; } }
.csip-hero .csip-eyebrow { font-size: 10px; letter-spacing: 0.12em; margin-bottom: 8px; }
@media (min-width: 768px) { .csip-hero .csip-eyebrow { font-size: 12px; letter-spacing: 0.14em; margin-bottom: 12px; } }
.csip-hero__title { font-size: 24px !important; line-height: 1.2 !important; font-weight: 700 !important; margin-bottom: 8px !important; }
@media (min-width: 768px) { .csip-hero__title { font-size: 34px !important; line-height: 1.18 !important; margin-bottom: 10px !important; } }
.csip-hero__lead { font-size: 13px; line-height: 1.6; color: var(--c-ink-2); margin: 0 0 16px; max-width: 470px; }
@media (min-width: 768px) { .csip-hero__lead { font-size: 14.5px; line-height: 1.65; margin-bottom: 24px; } }

/* Class → Subject picker (the primary decision) */
.csip-picker { background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: 14px; padding: 16px; scroll-margin-top: 16px; }
@media (max-width: 767.98px) { .csip-picker { scroll-margin-top: 80px; } } /* clear the fixed 64px top bar when jumping to #start */
@media (min-width: 768px) { .csip-picker { padding: 22px; } }
.csip-picker__step { font-size: 10px; font-weight: 700; color: var(--c-ink-3); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 8px; }
.csip-picker__row { display: flex; gap: 8px; margin-bottom: 14px; }
@media (min-width: 768px) { .csip-picker__row { margin-bottom: 18px; } }
.csip-picker__row--subject { flex-direction: column; }
@media (min-width: 768px) { .csip-picker__row--subject { flex-direction: row; margin-bottom: 20px; } }
.csip-option {
    flex: 1; min-height: 44px; padding: 10px 6px; border-radius: 8px; border: 1px solid transparent;
    background: var(--c-band); color: var(--c-ink-2); cursor: pointer;
    font: 700 13px/1.25 var(--f-sans); text-align: center;
    transition: background-color .15s, color .15s, border-color .15s;
}
@media (min-width: 768px) { .csip-option { font-size: 13.5px; } }
.csip-option:hover { border-color: var(--c-rule-2); color: var(--c-ink); }
.csip-option:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }
.csip-option[aria-pressed="true"] { background: var(--c-teal); color: var(--c-on-teal); border-color: var(--c-teal); }
.csip-picker__cta { min-height: 46px; height: auto; padding: 12px 16px; white-space: normal; text-align: center; line-height: 1.3; }

/* Decorative illustration: textbook spines + code card (desktop only) */
.csip-hero__art { display: none; }
@media (min-width: 1024px) {
    .csip-hero__art { display: flex; flex: 1; position: relative; height: 300px; align-items: flex-end; justify-content: center; margin-top: 40px; }
}
.csip-spines { display: flex; flex-direction: column; gap: 6px; width: 220px; transform: rotate(-2deg); z-index: 1; }
.csip-spine { height: 34px; border-radius: 4px; display: flex; align-items: center; padding: 0 14px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.08); font-size: 11.5px; font-weight: 700; }
.csip-spine--navy { background: #1B2A41; color: #EADFC4; }
.csip-spine--teal { background: #2F6F62; color: #E3EFEA; }
.csip-spine--rust { background: #9A3412; color: #FBEAE3; }
.csip-spine--amber { background: #C97A1B; color: #3D2A0E; }
.csip-codecard {
    position: absolute; bottom: 24px; right: 0; width: 250px; background: #1B2A41; border-radius: 10px; transform: rotate(2deg); z-index: 2;
    box-shadow: 0 20px 40px -12px rgba(27, 42, 65, 0.4);
}
html.dark .csip-codecard { box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.csip-codecard__dots { display: flex; gap: 5px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.csip-codecard__dots span { width: 8px; height: 8px; border-radius: 999px; }
.csip-codecard pre { margin: 0; padding: 14px 16px; background: none !important; border: 0 !important; font: 11.5px/1.7 'JetBrains Mono', monospace; color: #EADFC4; white-space: pre; }
.csip-codecard .c-out { color: #8FBBAE; }

/* ---------- Feature strip ---------- */
.csip-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 44px;
    background: var(--c-rule); border: 1px solid var(--c-rule); border-radius: 8px; overflow: hidden;
}
@media (min-width: 1024px) { .csip-features { grid-template-columns: repeat(6, 1fr); margin-bottom: 50px; } }
.csip-feature { background: var(--c-surface); padding: 18px 12px; text-align: center; color: var(--c-ink); transition: background-color .15s; }
.csip-feature:hover { background: var(--c-band); }
.csip-feature i { display: block; font-size: 20px; color: var(--c-ink); margin-bottom: 8px; }
.csip-feature span { font-size: 12px; font-weight: 700; }

/* ---------- Learning journey ---------- */
.csip-journey { background: var(--c-band); padding: 12px 0 14px; }
@media (min-width: 768px) { .csip-journey { padding: 44px 0; } }
.csip-journey h2 { font-size: 13px !important; font-weight: 600 !important; margin-bottom: 10px !important; }
@media (min-width: 768px) { .csip-journey h2 { font-size: 27px !important; text-align: center; margin-bottom: 34px !important; } }
.csip-journey__steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 4px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) {
    .csip-journey__steps::before { content: ''; position: absolute; top: 26px; left: 8%; right: 8%; border-top: 2px dotted var(--c-rule-2); }
}
.csip-step { position: relative; text-align: center; }
.csip-step__icon {
    width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 999px; box-sizing: border-box;
    background: var(--c-surface); border: 1.5px solid var(--c-ink); color: var(--c-ink);
    display: flex; align-items: center; justify-content: center; font-size: 11px;
}
@media (min-width: 768px) { .csip-step__icon { width: 52px; height: 52px; border-width: 2px; font-size: 19px; margin-bottom: 12px; } }
.csip-step__title { font-size: 9.5px; font-weight: 700; }
@media (min-width: 768px) { .csip-step__title { font-size: 13px; margin-bottom: 4px; } }
.csip-step__desc { display: none; }
@media (min-width: 768px) { .csip-step__desc { display: block; font-size: 11.5px; line-height: 1.5; color: var(--c-ink-2); max-width: 140px; margin: 0 auto; } }

/* ---------- Three columns: chapters / continue / quick tools ---------- */
.csip-cols { display: grid; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
@media (min-width: 768px) { .csip-cols { grid-template-columns: 1fr 1fr; padding-top: 48px; padding-bottom: 48px; } }
@media (min-width: 1024px) { .csip-cols { grid-template-columns: 1.1fr 1fr 1fr; } }
.csip-col--tools { grid-column: 1 / -1; }
@media (min-width: 1024px) { .csip-col--tools { grid-column: auto; } }
.csip-col h2 { font-size: 16px !important; font-weight: 600 !important; margin-bottom: 10px !important; }
@media (min-width: 768px) { .csip-col h2 { font-weight: 700 !important; margin-bottom: 14px !important; } }
.csip-col__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.csip-col__head h2 { margin-bottom: 0 !important; }
.csip-col__head a { font-size: 12px; font-weight: 700; color: var(--c-amber-text); white-space: nowrap; }
.csip-col__head a:hover { text-decoration: underline; }

.csip-chapters { list-style: none; margin: 0; padding: 0; }
.csip-chapters a { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--c-rule); color: var(--c-ink); }
.csip-chapters a:hover .csip-chapters__title { color: var(--c-teal); }
html.dark .csip-chapters a:hover .csip-chapters__title { color: var(--c-teal-text); }
.csip-chapters__num { font-family: var(--f-serif); font-size: 16px; font-weight: 700; color: var(--c-amber-text); width: 30px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.csip-chapters__title { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; }
.csip-chapters i { font-size: 11px; color: var(--c-rule-2); }

.csip-continue { padding: 15px; }
@media (min-width: 768px) { .csip-continue { padding: 18px; } }
.csip-continue__title { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.csip-continue__meta { font-size: 11.5px; color: var(--c-ink-3); margin-bottom: 10px; }
.csip-continue .csip-progress { margin-bottom: 14px; }
.csip-continue__next { margin-top: 16px; }
.csip-continue__next .csip-menu__label { padding: 0 0 6px; }
.csip-continue__link { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 12.5px; font-weight: 600; color: var(--c-ink); }
.csip-continue__link i { width: 15px; text-align: center; color: var(--c-ink-2); font-size: 13px; }
.csip-continue__link:hover { color: var(--c-teal); }
.csip-continue__hint { font-size: 12px; color: var(--c-ink-2); margin: 12px 0 0; line-height: 1.5; }
.csip-continue__hint button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--c-teal); cursor: pointer; }
html.dark .csip-continue__hint button { color: var(--c-teal-text); }

.csip-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
@media (min-width: 768px) and (max-width: 1023.98px) { .csip-tools { grid-template-columns: repeat(3, 1fr); } }
.csip-tool {
    display: flex; align-items: center; gap: 9px; padding: 13px; border-radius: 9px;
    border: 1px solid var(--c-rule); background: var(--c-surface); color: var(--c-ink); font-size: 12px; font-weight: 700;
    transition: border-color .15s;
}
.csip-tool:hover { border-color: var(--c-rule-2); }
.csip-tool i { width: 16px; text-align: center; color: var(--c-ink-2); font-size: 13px; }

/* ---------- CBSE banner ---------- */
.csip-banner { position: relative; overflow: hidden; background: #1B2A41; text-align: center; padding: 18px 18px; }
@media (min-width: 768px) { .csip-banner { padding: 44px 32px; } }
html.dark .csip-banner { background: #16233A; border-top: 1px solid var(--c-rule); border-bottom: 1px solid var(--c-rule); }
.csip-banner__stripes { display: none; }
@media (min-width: 768px) {
    .csip-banner__stripes { display: flex; position: absolute; left: -20px; top: 0; bottom: 0; gap: 5px; opacity: 0.5; }
    .csip-banner__stripes span { width: 20px; }
}
.csip-banner h2 { position: relative; color: #FFFFFF !important; font-size: 15px !important; font-weight: 700 !important; margin-bottom: 5px !important; }
@media (min-width: 768px) { .csip-banner h2 { font-size: 22px !important; margin-bottom: 8px !important; } }
.csip-banner p { position: relative; margin: 0; font-size: 11px; color: #B9C2CE; }
@media (min-width: 768px) { .csip-banner p { font-size: 13.5px; margin-bottom: 20px; } }
.csip-banner .csip-btn { position: relative; display: none; }
@media (min-width: 768px) { .csip-banner .csip-btn { display: inline-flex; } }

/* ---------- Page footer (desktop/tablet; phones use the drawer + bottom nav) ---------- */
.csip-homefoot { display: none; }
@media (min-width: 768px) {
    .csip-homefoot { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 24px; padding-top: 40px; padding-bottom: 88px; }
}
.csip-homefoot__brand { font-family: var(--f-serif); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.csip-homefoot p { font-size: 12px; color: var(--c-ink-3); max-width: 240px; line-height: 1.6; margin: 0; }
.csip-homefoot h3 { font-family: var(--f-sans) !important; font-size: 11px !important; font-weight: 700 !important; color: var(--c-amber-text) !important; text-transform: uppercase; margin-bottom: 10px !important; }
.csip-homefoot ul { list-style: none; margin: 0; padding: 0; }
.csip-homefoot li a { display: inline-block; font-size: 12.5px; line-height: 2; color: var(--c-ink-2); }
.csip-homefoot li a:hover { color: var(--c-teal); }

/* ==========================================================================
   HALL OF FAME — top schools (podium) + star students + share sheet
   ========================================================================== */
.csip-hof { padding: 28px 0 8px; }
@media (min-width: 768px) { .csip-hof { padding: 8px 0 44px; } }
.csip-hof .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.csip-hof__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.csip-hof__title { font-family: var(--f-serif) !important; font-size: 22px !important; font-weight: 700 !important; color: var(--c-ink) !important; margin: 4px 0 0 !important; line-height: 1.25 !important; }
@media (min-width: 768px) { .csip-hof__title { font-size: 27px !important; } }
.csip-hof__all { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--c-teal); white-space: nowrap; }
.csip-hof__all:hover { text-decoration: underline; text-underline-offset: 3px; }
html.dark .csip-hof__all { color: var(--c-teal-text); }

.csip-hof__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .csip-hof__grid { grid-template-columns: 1.35fr 1fr; gap: 20px; } }
.csip-hof__card { background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); padding: 18px; min-width: 0; }
@media (min-width: 768px) { .csip-hof__card { padding: 22px 24px; } }
.csip-hof__card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 18px; }
.csip-hof__h3 { font-family: var(--f-sans) !important; font-size: 15px !important; font-weight: 700 !important; color: var(--c-ink) !important; margin: 0 !important; display: flex; align-items: center; gap: 8px; }
.csip-hof__h3 i { color: var(--c-amber); }

/* Period tabs */
.csip-hof__tabs { display: inline-flex; padding: 3px; gap: 3px; border-radius: var(--r-md); background: var(--c-band); border: 1px solid var(--c-rule); }
.csip-hof__tab { border: 0; background: transparent; font: 600 12.5px var(--f-sans); color: var(--c-ink-2); padding: 7px 14px; border-radius: 6px; cursor: pointer; }
.csip-hof__tab:hover { color: var(--c-ink); }
.csip-hof__tab.is-active { background: var(--c-surface); color: var(--c-teal); font-weight: 700; box-shadow: 0 1px 3px rgba(27, 42, 65, .12); }
html.dark .csip-hof__tab.is-active { background: var(--c-teal); color: var(--c-on-teal); }
.csip-hof__tab:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 1px; }
.csip-hof__panel[hidden] { display: none; }
@media (min-width: 1024px) {
    .csip-hof__schools { display: flex; flex-direction: column; }
    .csip-hof__schools .csip-hof__panel:not([hidden]) { flex: 1; display: flex; flex-direction: column; justify-content: center; }
}

/* Podium: DOM order 1-2-3 (for screen readers), shown 2-1-3 */
.csip-podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; }
@media (min-width: 768px) { .csip-podium { gap: 16px; } }
.csip-podium__place { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.csip-podium__place--gold { order: 2; }
.csip-podium__place--silver { order: 1; }
.csip-podium__place--bronze { order: 3; }
.csip-podium__trophy { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; color: #FFFFFF; font-size: 24px; box-shadow: 0 8px 18px -8px rgba(27, 42, 65, .45); }
.csip-podium__trophy span { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface); color: var(--c-ink); font: 800 12px var(--f-sans); border: 2px solid currentColor; }
.csip-podium__place--gold .csip-podium__trophy { width: 70px; height: 70px; font-size: 30px; background: linear-gradient(135deg, #F7DC8A, #C9971A); box-shadow: 0 0 0 6px rgba(214, 170, 60, .18), 0 10px 24px -8px rgba(160, 120, 20, .6); }
.csip-podium__place--gold .csip-podium__trophy span { border-color: #C9971A; }
.csip-podium__place--silver .csip-podium__trophy { background: linear-gradient(135deg, #EEF1F4, #9AA5B1); }
.csip-podium__place--silver .csip-podium__trophy span { border-color: #9AA5B1; }
.csip-podium__place--bronze .csip-podium__trophy { background: linear-gradient(135deg, #F1C29C, #B06F3B); }
.csip-podium__place--bronze .csip-podium__trophy span { border-color: #B06F3B; }
.csip-podium__name { width: 100%; font-family: var(--f-serif); font-weight: 700; font-size: 13.5px; line-height: 1.3; color: var(--c-ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; min-height: 3.9em; }
@media (min-width: 768px) { .csip-podium__name { font-size: 15px; } }
.csip-podium__xp { margin-top: 6px; font-family: var(--f-serif); font-weight: 700; font-size: 20px; color: var(--c-amber-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.csip-podium__place--gold .csip-podium__xp { font-size: 24px; }
.csip-podium__xp span { font: 700 11px var(--f-sans); color: var(--c-ink-3); }
.csip-podium__students { margin-top: 2px; font-size: 11.5px; color: var(--c-ink-2); white-space: nowrap; }
.csip-podium__students i { font-size: 10px; color: var(--c-ink-3); }
.csip-podium__step { width: 100%; margin-top: 12px; display: flex; align-items: flex-start; justify-content: center; padding-top: 12px; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, var(--c-band), transparent); border-top: 3px solid var(--c-rule-2); }
.csip-podium__place--gold .csip-podium__step { height: 84px; border-top-color: #D4A73A; background: linear-gradient(180deg, rgba(214, 170, 60, .18), transparent); }
.csip-podium__place--silver .csip-podium__step { height: 60px; border-top-color: #A3AEBA; }
.csip-podium__place--bronze .csip-podium__step { height: 44px; border-top-color: #B87A48; }
@media (max-width: 767.98px) {
    .csip-podium__trophy { width: 48px; height: 48px; font-size: 20px; }
    .csip-podium__place--gold .csip-podium__trophy { width: 58px; height: 58px; font-size: 25px; }
    .csip-podium__xp { font-size: 17px; }
    .csip-podium__place--gold .csip-podium__xp { font-size: 20px; }
    .csip-podium__place--gold .csip-podium__step { height: 70px; }
    .csip-podium__place--silver .csip-podium__step { height: 52px; }
    .csip-podium__place--bronze .csip-podium__step { height: 40px; }
}

/* Share buttons */
.csip-hof__share { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--c-rule-2); background: var(--c-surface); color: var(--c-ink-2); font: 700 11.5px var(--f-sans); cursor: pointer; }
.csip-hof__share:hover { border-color: var(--c-teal); color: var(--c-teal); }
html.dark .csip-hof__share:hover { color: var(--c-teal-text); }
.csip-hof__share--icon { width: 32px; height: 32px; padding: 0; justify-content: center; }
.csip-hof__share:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }

.csip-hof__empty { text-align: center; padding: 22px 8px 8px; color: var(--c-ink-2); font-size: 13px; }
.csip-hof__empty > i { font-size: 30px; color: var(--c-rule-2); display: block; margin-bottom: 10px; }
.csip-hof__empty p { max-width: 360px; margin: 0 auto 14px; line-height: 1.55; }
.csip-hof__empty strong { color: var(--c-ink); display: block; }
.csip-hof__rule { margin: 16px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--c-ink-3); }
.csip-hof__rule i { margin-right: 4px; }

/* Star students */
.csip-stars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.csip-star { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--c-rule); background: var(--c-paper); min-width: 0; }
.csip-star__avatar { position: relative; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font: 700 18px var(--f-sans); color: #FFFFFF; background: var(--c-ink); box-shadow: 0 0 0 3px var(--c-surface), 0 0 0 5px var(--star, #C9971A); }
.csip-star__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.csip-star__avatar--empty { background: var(--c-band); color: var(--c-ink-3); font-size: 18px; }
.csip-star--overall { --star: #C9971A; }
.csip-star--monthly { --star: #2F6F62; }
.csip-star--weekly { --star: #C97A1B; }
.csip-star--overall .csip-star__avatar:not(.csip-star__avatar--empty) { background: #7A5A0C; }
.csip-star--monthly .csip-star__avatar:not(.csip-star__avatar--empty) { background: #2F6F62; }
.csip-star--weekly .csip-star__avatar:not(.csip-star__avatar--empty) { background: #9C5E12; }
.csip-star__body { flex: 1; min-width: 0; }
.csip-star__label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-amber-text); }
.csip-star__label span { color: var(--c-ink-3); font-weight: 600; letter-spacing: 0; text-transform: none; }
.csip-star__name { font-family: var(--f-serif); font-weight: 700; font-size: 16px; color: var(--c-ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csip-star__name--empty { color: var(--c-ink-2); }
.csip-star__school { font-size: 12px; color: var(--c-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csip-star__cta { font-size: 12px; font-weight: 700; color: var(--c-teal); }
html.dark .csip-star__cta { color: var(--c-teal-text); }
.csip-star__side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.csip-star__xp { font-family: var(--f-serif); font-weight: 700; font-size: 16px; color: var(--c-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.csip-star__xp span { font: 700 10.5px var(--f-sans); color: var(--c-ink-3); }

.csip-hof__me { margin-top: 14px; padding: 14px; border-radius: 10px; background: var(--c-teal-tint); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.csip-hof__me-label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-teal-text); }
.csip-hof__me-rank { font-family: var(--f-serif); font-weight: 700; font-size: 22px; color: var(--c-ink); }
.csip-hof__me-rank span { font: 600 12.5px var(--f-sans); color: var(--c-ink-2); }
.csip-hof__me-school { font-size: 12px; color: var(--c-ink-2); }

/* Share sheet */
.csip-sharesheet { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 18px; border: 1px solid var(--c-rule); border-radius: 14px; background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-pop); font-family: var(--f-sans); }
.csip-sharesheet::backdrop { background: var(--c-backdrop); }
.csip-sharesheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.csip-sharesheet__title { font-family: var(--f-serif) !important; font-size: 17px !important; font-weight: 700 !important; margin: 0 !important; color: var(--c-ink) !important; }
.csip-sharesheet__close { width: 34px; height: 34px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; color: var(--c-ink-2); cursor: pointer; font-size: 16px; }
.csip-sharesheet__close:hover { background: var(--c-band); color: var(--c-ink); }
.csip-sharesheet__preview { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; background: var(--c-band); border: 1px solid var(--c-rule); }
.csip-sharesheet__text { margin: 12px 0; font-size: 12.5px; line-height: 1.55; color: var(--c-ink-2); overflow-wrap: anywhere; }
.csip-sharesheet__actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.csip-sharesheet__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--c-rule-2); background: var(--c-surface); color: var(--c-ink); font: 700 12.5px var(--f-sans); cursor: pointer; text-decoration: none; }
.csip-sharesheet__btn:hover { border-color: var(--c-teal); }
.csip-sharesheet__btn[hidden] { display: none; }
.csip-sharesheet__btn--native { grid-column: 1 / -1; background: var(--c-teal); border-color: var(--c-teal); color: var(--c-on-teal); }
.csip-sharesheet__btn--wa i { color: #25D366; }
.csip-sharesheet__x { font-weight: 800; }
