/* The Smart Accountant BD — site styles */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --text: #14202e;
  --muted: #5b6878;
  --border: #dde3ec;
  --brand: #12355b;
  --brand-ink: #ffffff;
  --accent: #e8a400;
  --link: #1d5fa8;
  --ok: #138a4b;
  --ca: #1d5fa8;
  --std: #6b3fc4;
  --excel: #138a4b;
  --ai: #c2560c;
  --tax: #b42318;
  --shadow: 0 1px 2px rgba(16, 32, 54, .06), 0 4px 16px rgba(16, 32, 54, .06);
  --radius: 14px;
  --font: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1520;
    --surface: #142030;
    --surface-2: #1b2a3d;
    --text: #e6edf5;
    --muted: #9aa8b8;
    --border: #26384e;
    --brand: #8cc2ff;
    --brand-ink: #0d1520;
    --accent: #ffc23d;
    --link: #8cc2ff;
    --ok: #4ade80;
    --ca: #8cc2ff;
    --std: #c4a5ff;
    --excel: #4ade80;
    --ai: #ffa463;
    --tax: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
:lang(bn) { font-family: "Hind Siliguri", var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: .9rem; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .5rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46rem; }
.note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--border); padding-left: 12px; margin-top: 1.5rem; }
.callout { background: var(--surface-2); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 8px; max-width: 46rem; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.brand b { color: var(--accent); }
.logo { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--brand); font-weight: 700; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 42px; height: 42px; padding: 10px 9px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* Layout */
main { padding: 24px 16px 64px; }
.section { margin: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.page-head { margin: 24px 0 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 0; } }
.grid { display: grid; gap: 16px; }
.grid.pillars { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.videos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.modules { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.crumbs { font-size: .9rem; color: var(--muted); margin-top: 16px; }

/* Hero */
.hero { padding: 48px 0 16px; }
.hero h1 { max-width: 18ch; }
.hl { color: var(--accent); }
.bn { font-family: "Hind Siliguri", var(--font); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.yt-btn { background: #e00; border-color: #e00; color: #fff; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; text-decoration: none; cursor: pointer; margin: 0 6px 6px 0; }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip.small { padding: 2px 8px; font-size: .78rem; margin: 0 0 0 6px; }
.filters { margin: 8px 0; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; color: var(--text); text-decoration: none; display: block; }
a.card:hover { border-color: var(--brand); transform: translateY(-1px); transition: transform .15s, border-color .15s; }
.card p { color: var(--muted); }
.pillar { border-top: 4px solid var(--c, var(--brand)); }
.pillar .count { font-weight: 700; color: var(--c); }
.bn-inline { display: block; font-weight: 600; font-size: .9rem; color: var(--muted); margin-top: 2px; }
.pillar-ca_course { --c: var(--ca); }
.pillar-standards { --c: var(--std); }
.pillar-excel { --c: var(--excel); }
.pillar-ai { --c: var(--ai); }
.pillar-tax { --c: var(--tax); }
.module .code { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .05em; }
.module h3 { margin: 6px 0; }

.video-card { padding: 0; overflow: hidden; }
.video-card .thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .fmt { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 6px; }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { margin: 8px 0 6px; font-size: 1rem; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a:hover { color: var(--link); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); text-transform: none; }
.badge[class*="pillar-"] { color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.badge.level-beginner { color: var(--excel); }
.badge.level-intermediate { color: var(--ca); }
.badge.level-advanced { color: var(--ai); }

/* Lists */
.link-list { list-style: none; padding: 0; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.link-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
.link-list li:first-child { border-top: 0; }
.link-list a { text-decoration: none; font-weight: 600; }
.link-list .muted { font-size: .85rem; white-space: nowrap; }
.more { font-weight: 600; text-decoration: none; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: top; }
thead th { border-top: 0; background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
td.num, th.num { text-align: right; white-space: nowrap; }
td.center, th.center { text-align: center; }
.row-note { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.topics { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.ok { color: var(--ok); }
.bn-cell { font-size: 1.05rem; }
kbd { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.kbd-big kbd { font-size: 1.4rem; padding: 6px 14px; }
.featured-shortcut { border-left: 4px solid var(--excel); }

/* Search */
.search input { width: 100%; max-width: 480px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.empty { color: var(--muted); padding: 16px 0; }

/* Video embed (click to load) */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin: 12px 0; }
.yt.yt-short { aspect-ratio: 9 / 16; max-width: 360px; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; background: none; border: 0; padding: 0; cursor: pointer; }
.yt:hover .yt-play svg path:first-child { fill: #c00; }
.caption { font-size: .92rem; }
.coming-soon { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 18px 20px; color: var(--muted); }
.cs-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: .8rem; color: var(--muted); }
.video-page { max-width: 860px; }
.also-on { margin-top: 12px; }

/* Prose */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 0 16px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 800; margin-bottom: 4px; }
.footer-title { font-weight: 700; margin-bottom: 6px; }
.social { list-style: none; padding: 0; margin: 0; }
.social li { margin: 4px 0; }
.social a { text-decoration: none; }
.legal { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; font-size: .82rem; color: var(--muted); }
.legal p { margin: 0 0 4px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
