/* Public site module styles (builds on site.css tokens) */
[hidden] { display: none !important; }
.grow { flex: 1; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.small-chip { padding: 6px 11px; font-size: 13px; }
.mat-type { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--purple-ink); }

/* Hero composition */
.hero-art .float-card { z-index: 2; }
.hc-main { left: 0; top: 30px; right: 70px; padding: 24px; }
.hc-title { font: 700 22px var(--display); margin: 10px 0 6px; }
.hc-formula { margin: 12px 0; padding: 18px; border-radius: 18px; background: var(--t-peach); font: 30px 'Times New Roman', serif; text-align: center; }
.hc-streak { right: 0; top: 270px; width: 230px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.hc-ico { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.hc-ico.yellow { background: var(--yellow); color: #241C35; }
.hc-gyani { left: 24px; top: 350px; width: 280px; padding: 16px 18px; }
.hc-gyani-h { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 14px; color: var(--purple-ink); }
.hc-gyani p { margin: 6px 0 0; font: 600 16px/1.45 'Noto Sans Bengali', var(--body); }
.hc-xp { position: absolute; z-index: 3; right: 40px; top: 0; padding: 10px 16px; border-radius: 999px; background: var(--yellow); color: #241C35; font-weight: 800; box-shadow: 0 10px 24px rgba(255, 140, 157, .4); }
.hc-done { position: absolute; z-index: 3; left: 50px; top: -8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #E4DAFB; font-weight: 700; font-size: 14px; display: flex; gap: 6px; align-items: center; color: var(--green); }
.hc-shape1 { position: absolute; right: 10px; top: 440px; width: 46px; height: 46px; border-radius: 14px; background: var(--purple); rotate: 18deg; }
.hc-shape2 { position: absolute; left: 0; top: 120px; width: 28px; height: 28px; border-radius: 50%; background: #0A9663; }
.hero .chips .chip { font-weight: 600; }

/* Class picker */
.class-chips { margin-top: 0; }
.class-chips .chip { min-height: 46px; padding: 10px 18px; font-size: 15px; }
.class-chips .chip.on { box-shadow: 0 10px 24px rgba(118, 84, 200, .3); }
.subject-card b { color: var(--ink); }

/* Bento */
.bento { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.bento-big { grid-row: span 2; }
.bento-item { display: flex; gap: 16px; align-items: flex-start; }
@media (max-width: 640px) { .bento-big { grid-row: auto; min-height: 0; } }

/* Leaderboard */
.lb { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.lb li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #F6F4FB; font-weight: 600; }
.lb li.first { background: var(--t-cream); }
.lb-n { width: 30px; height: 30px; border-radius: 10px; background: #EAE3F5; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.lb li.first .lb-n { background: var(--yellow); }

/* Phone mock in app band */
.phone-mock { flex: 0 0 150px; height: 260px; border-radius: 30px; background: #3A2D5C; padding: 9px; rotate: 6deg; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.phone-mock > div { height: 100%; border-radius: 22px; background: #fff; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.phone-mock span { height: 14px; width: 60%; border-radius: 6px; background: var(--orange); }
.phone-mock i { height: 34px; border-radius: 12px; background: var(--t-peach); }
.phone-mock i.y { background: var(--yellow); }
@media (max-width: 520px) { .phone-mock { display: none; } }

/* Plans */
.plans { align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.plan.hot { box-shadow: var(--shadow-lg); }
.plan.dark h3, .plan.dark .plan-price { color: #fff; }
.plan-badge { position: absolute; top: 22px; right: 22px; padding: 6px 12px; border-radius: 999px; background: var(--yellow); color: #241C35; font-size: 13px; font-weight: 800; }
.plan-price { font: 800 42px/1 var(--display); }
.plan-price span { font: 600 16px var(--body); color: var(--muted); }
.plan.dark .plan-price span { color: #D9D1EE; }
.plan-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; }
.plan-feats svg { flex: none; color: var(--green); margin-top: 3px; }
.plan.dark .plan-feats { color: #E4DAFB; } .plan.dark .plan-feats svg { color: var(--yellow); }
.plan-cta { margin-top: auto; padding-top: 8px; }
.plan-cta form { margin: 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq { border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--orange-btn); }
.faq[open] summary::after { content: '–'; }
.faq .prose { padding: 0 20px 18px; font-size: 16px; }

/* Lists and cards */
.class-card .class-name { font: 800 22px var(--display); color: var(--ink); text-decoration: none; }
.class-card .class-name:hover { color: var(--orange-btn); }
.mb-xl { margin-bottom: 40px; }
.mat-card { display: flex; gap: 16px; align-items: flex-start; }
.mat-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mat-body b { font-size: 17px; line-height: 1.35; }
.mat-body .pill { align-self: flex-start; }
.mat-row { display: flex; gap: 12px; align-items: center; padding: 18px 20px; }
.mat-row b { display: block; }
.chapter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.chapter-row { display: flex; gap: 16px; align-items: center; padding: 18px 20px; }
.chapter-row b { font-size: 18px; }
.ch-num { width: 46px; height: 46px; border-radius: 14px; background: var(--t-peach); color: #5535A5; font: 800 18px var(--display); display: flex; align-items: center; justify-content: center; flex: none; }
.type-h { display: flex; align-items: center; gap: 12px; font-size: 24px; }
.type-h .icon-tile { width: 44px; height: 44px; border-radius: 14px; }
.ch-pager .btn { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 24px; }

/* Material page */
.mat-hero h1 { margin-top: 14px; }
.summary-box { padding: 20px 22px; border-radius: 20px; background: var(--t-peach); font-size: 17px; line-height: 1.7; }
.kp-h { font-size: 22px; margin: 26px 0 12px; }
.yt-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; background: var(--orange-btn); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.hv-bar { margin-bottom: 10px; }
.pdfv:fullscreen { overflow: auto; border-radius: 0; }
.pdfv:fullscreen .pdfv-bar { top: 0; }
.pdfv-total { font-weight: 700; font-size: 14px; }
.pdfv-loading { padding: 60px 0; }
.pdfv-page canvas { display: block; width: 100%; }

/* Facts grid (jobs, results, admissions) */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.fact { padding: 16px; border-radius: 18px; background: var(--t-peach); }
.fact span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.fact b { font-size: 17px; }

/* Filters */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end; padding: 20px; }
.filters .field label { font-size: 13px; }
.filters .field select, .filters .field input { min-height: 46px; padding: 8px 12px; }
.filters-actions { display: flex; gap: 8px; }

/* Posts, admissions, search */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card > span { padding: 20px 22px 22px; }
.post-cover { width: 100%; border-radius: 22px; margin-top: 10px; }
.school-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; background: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.search-results { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.search-results a { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.search-results mark { background: var(--yellow); color: inherit; padding: 0 2px; border-radius: 3px; }
.dark-band .card { color: var(--ink); }
.section-head h2 + p { margin-top: 12px; }
.hl { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bento { grid-template-columns: 1.15fr 1fr 1fr; } }
.bento-item .pill { display: inline-block; margin-left: 0; margin-top: 10px; }
a.card.stack, a.card.flex { display: flex; } a.card.subject-card { display: flex; } a.card.mat-card, a.card.mat-row, a.card.chapter-row, a.card.bento-item { display: flex; }
.section.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.head-actions .btn { white-space: nowrap; }
@media (max-width: 640px) {
  [data-panel].grid, .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .subject-card { padding: 16px; gap: 10px; }
  .subject-card .icon-tile { width: 44px; height: 44px; border-radius: 14px; }
  .class-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .class-chips .chip { flex: none; }
  .hero h1 { font-size: 34px; }
  .card { padding: 20px; }
  .dark-band .stat { grid-column: span 2; }
}
.wrap.reader { padding-left: var(--gutter); padding-right: var(--gutter); }
.pdfv { overflow: clip; }
.reader-side .list-row .small { flex: none; max-width: 40%; text-align: right; }
.pdfv-page { scroll-margin-top: 150px; }
@media (max-width: 640px) { .topbar .msg { display: none; } .topbar .wrap { justify-content: flex-end; } }
.dark-band .card .muted { color: var(--muted); }
.grid.bento { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid.bento { grid-template-columns: 1.15fr 1fr 1fr; } }

/* Curriculum boards, streams and local-language chapter titles */
.board-tabs { margin: 0 0 8px; }
.board-group { scroll-margin-top: 90px; }
.board-group + .board-group { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 8px; }
.stream-h { margin: 22px 0 0; font-size: 17px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--purple-ink); }
.h1-local { display: block; margin-top: 8px; font-size: .55em; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.ch-sub { display: block; margin-top: 2px; }
.board-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; }
.board-tabs::-webkit-scrollbar { display: none; }
.board-tabs a { white-space: nowrap; flex: 0 0 auto; }

@media (max-width: 420px) { .head-actions .btn.hdr-join { max-width: 36vw; white-space: normal; text-align: center; line-height: 1.15; font-size: 13px; padding: 8px 12px; } }
