/* AI Insights Bangladesh — aiinsightsbd.com
   Layout: phone-first. Full-width colour bands (violet hero, ink strip, lilac band, ink footer),
   each with a 1120px inner wrapper; reading pages use a 760px column.
   Brand: violet is the biggest colour, lime is the AI spark, orange appears once per page.
   Sticker look (3px ink line + 6px hard shadow) is kept to at most three items per page;
   cards are flat and only lift on hover. No gradients. */

:root {
  --paper: #FBFAF6;
  --white: #FFFFFF;
  --lilac: #ECE7FF;
  --ink: #16122E;
  --ink-muted: #5B5573;
  --paper-muted: #C9C3E2;
  --line: #DED8EE;
  --beguni: #6A4BFF;
  --on-beguni: #FFFFFF;
  --beguni-lite: #9E8BFF;
  --lebu: #D4FF3F;
  --lebu-tint: #F1FFC9;
  --komola: #FF6B3D;
  --komola-tint: #FFE6DC;

  --font-display: "Anek Bangla", "Noto Sans Bengali", system-ui, sans-serif;
  --font-body: "Noto Sans Bengali", system-ui, sans-serif;

  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --shadow-sticker: 6px 6px 0 var(--ink);
  --max: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.66;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--paper);
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.005em;
}
.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--lebu); color: var(--ink); padding: 8px 14px; border: 2px solid var(--ink);
  border-radius: var(--radius-sm); font-weight: 700; z-index: 30;
}
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 2px var(--paper); }
.on-dark :focus-visible { outline-color: var(--lebu); box-shadow: 0 0 0 2px var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap--read { max-width: 800px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 66px;
}
.brand { display: block; flex: none; }
.brand img { display: block; height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2;
  padding: 8px 11px; border-radius: var(--radius-sm); text-decoration: none;
  border: 2px solid transparent;
}
.nav a:hover { background: var(--lilac); }
.nav a[aria-current="page"] { background: var(--lebu); border-color: var(--ink); }
.nav .btn { margin-left: 8px; padding: 9px 16px; font-size: 16px; }
@media (max-width: 600px) {
  .nav .btn { display: none; }
  .brand img { height: 34px; }
  .nav a { font-size: 16px; padding: 7px 8px; }
}
@media (max-width: 360px) {
  .brand img { height: 30px; }
  .nav a { padding: 6px 6px; }
}

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2;
  padding: 13px 20px; border: 2.5px solid var(--ink); border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; background: var(--white); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--beguni); color: var(--on-beguni); }
.btn--lebu { background: var(--lebu); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--on-beguni); border-color: var(--on-beguni); }
.btn--ghost:hover { box-shadow: 4px 4px 0 var(--ink); border-color: var(--ink); background: var(--white); color: var(--ink); }
.btn--small { font-size: 16px; padding: 9px 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; line-height: 1.5;
  padding: 2px 11px; border: 1.5px solid var(--ink); border-radius: var(--radius-pill);
  background: var(--white); color: var(--ink); white-space: nowrap;
}
.chip--lilac { background: var(--lilac); border-color: var(--lilac); }
.chip--lebu { background: var(--lebu); }
.chip--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--white { background: var(--white); border-color: var(--white); }
.chip svg { width: 15px; height: 15px; }

.sticker {
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sticker);
}
.badge {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.3;
  padding: 7px 16px; border-radius: var(--radius-pill); color: var(--ink);
}
.badge--lebu { background: var(--lebu); }
.badge--komola { background: var(--komola); }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(3deg); }

.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .02em;
  color: var(--beguni); margin-bottom: 8px; display: block;
}
.on-dark .eyebrow, .hero .eyebrow { color: var(--lebu); }
.muted { color: var(--ink-muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.section { padding-block: 72px; }
.section--tight { padding-block: 48px; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 24px; margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); max-width: 22ch; }
.section-head p { max-width: 52ch; color: var(--ink-muted); margin-top: 10px; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--beguni);
  text-decoration: none; border-bottom: 2.5px solid currentColor; padding-bottom: 2px;
}
.link-more svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .section { padding-block: 48px; } .section--tight { padding-block: 36px; } }
.section--flush-top { padding-top: 0; }
.h2-lg { font-size: clamp(30px, 4.4vw, 44px); }
.after-prompt { margin-top: 16px; }
.spacer { height: 40px; }

/* ---------- hero (home) ---------- */
.hero { background: var(--beguni); color: var(--on-beguni); border-bottom: 3px solid var(--ink); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 40px; align-items: center; padding-block: 56px 72px;
}
.hero h1 { font-size: clamp(48px, 8.4vw, 92px); line-height: 1.06; letter-spacing: -0.015em; margin-top: 26px; }
.hero h1 .ai { color: var(--lebu); }
.hero .lead { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.6; max-width: 32ch; margin-top: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .who {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; padding: 0; list-style: none;
}
.hero .who a {
  display: inline-block; font-weight: 600; font-size: 15px; color: var(--on-beguni);
  border: 1.5px solid rgba(255,255,255,.75); border-radius: var(--radius-pill); padding: 3px 12px; text-decoration: none;
}
.hero .who a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero-visual { position: relative; display: block; width: 100%; max-width: 500px; }
.hero-map { position: absolute; z-index: 0; width: 52%; max-width: 260px; top: 0; left: 50%; }
.phone {
  position: relative; z-index: 1; width: min(300px, 64%); margin-top: 44px;
  background: var(--ink); border-radius: 40px; padding: 12px; border: 3px solid var(--ink);
}
.phone-screen {
  background: var(--paper); color: var(--ink); border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 470px;
}
.phone-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border-bottom: 1.5px solid var(--line);
}
.phone-top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lebu); border: 1.5px solid var(--ink); }
.chat { display: flex; flex-direction: column; gap: 12px; padding: 14px; flex: 1; }
.bubble { font-size: 15px; line-height: 1.6; padding: 10px 13px; border-radius: 16px; max-width: 92%; }
.bubble--me { align-self: flex-end; background: var(--lilac); border-bottom-right-radius: 4px; }
.bubble--ai { align-self: flex-start; background: var(--white); border: 1.5px solid var(--ink); border-bottom-left-radius: 4px; white-space: pre-line; }
.bubble--ai b { font-weight: 700; }
.chat-time {
  align-self: flex-start; font-size: 13px; font-weight: 700; background: var(--lebu);
  border: 1.5px solid var(--ink); border-radius: var(--radius-pill); padding: 0 10px;
}
.phone-input {
  margin: 0 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1.5px solid var(--ink); border-radius: var(--radius-pill); padding: 8px 8px 8px 16px;
  font-size: 15px; color: var(--ink-muted); background: var(--white);
}
.phone-input .mic {
  width: 34px; height: 34px; border-radius: 50%; background: var(--beguni);
  display: grid; place-items: center; flex: none;
}
.phone-input .mic svg { width: 18px; height: 18px; }
.phone-input .mic { color: var(--on-beguni); }
.hero-badge { position: absolute; z-index: 2; right: 2%; bottom: 120px; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 36px 56px; gap: 16px; }
  .hero-visual { max-width: 460px; }
  .phone { width: min(270px, 70%); }
  .phone-screen { min-height: 430px; }
  .hero-map { width: 42%; left: 58%; }
  .hero-badge { right: 0; bottom: 150px; font-size: 14px; padding: 6px 12px; }
}

/* ---------- ink strip: the four things we keep saying ---------- */
.strip { background: var(--ink); color: var(--paper); }
.strip ul {
  list-style: none; margin: 0; padding-block: 20px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.35;
}
.strip li { display: flex; align-items: center; gap: 10px; }
.strip li svg { width: 18px; height: 18px; flex: none; }

/* ---------- audience cards ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.aud-card {
  display: flex; flex-direction: column; gap: 14px; padding: 26px;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius-md);
  color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.aud-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-sticker); }
.aud-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aud-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--lilac); display: grid; place-items: center; flex: none; }
.aud-icon svg { width: 30px; height: 30px; }
.aud-card h3 { font-size: clamp(25px, 3vw, 30px); }
.aud-card .sub { font-size: 16px; color: var(--ink-muted); margin-top: 2px; }
.aud-lines { display: grid; gap: 6px; font-size: 16.5px; line-height: 1.6; }
.aud-lines b { font-weight: 700; }
.aud-samples { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1.5px solid var(--line); display: grid; gap: 6px; font-size: 16px; }
.aud-samples li { display: flex; gap: 8px; }
.aud-samples li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--beguni); margin-top: 11px; flex: none; }
.aud-card .go { margin-top: auto; font-family: var(--font-display); font-weight: 700; color: var(--beguni); display: inline-flex; align-items: center; gap: 6px; }
.aud-card .go svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .aud-grid { grid-template-columns: minmax(0, 1fr); } .aud-card { padding: 22px; } }

/* ---------- lesson format (home) ---------- */
.band-lilac { background: var(--lilac); }
.format { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.flow { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: flow; }
.flow li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.flow .n {
  width: 44px; height: 44px; border-radius: 50%; background: var(--beguni); color: var(--on-beguni);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 20px;
}
.flow h3 { font-size: 21px; font-weight: 700; margin-top: 7px; }
.flow p { font-size: 16.5px; color: var(--ink-muted); margin-top: 2px; }
@media (max-width: 860px) { .format { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- prompt box ---------- */
.prompt {
  background: var(--ink); color: var(--paper); border-radius: var(--radius-md);
  padding: 22px 22px 20px; border: 2.5px solid var(--ink);
}
.prompt-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.prompt-label { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--lebu); }
.prompt-hint { font-size: 14.5px; color: var(--paper-muted); }
.prompt pre {
  margin: 14px 0 18px; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
  font-family: var(--font-body); font-size: 17.5px; line-height: 1.75; color: var(--paper);
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2;
  background: var(--lebu); color: var(--ink); border: 2px solid var(--lebu); border-radius: var(--radius-sm);
  padding: 10px 16px;
}
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn[data-state="done"] { background: var(--paper); border-color: var(--paper); }
.copy-note { font-size: 14px; color: var(--paper-muted); margin-left: 10px; }

/* ---------- lesson cards ---------- */
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lesson-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 18px;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-md);
  color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.lesson-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-sticker); }
.lesson-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.lesson-card .top .no { font-family: var(--font-display); font-weight: 800; color: var(--beguni); font-size: 15px; }
.lesson-card h3 { font-size: 22px; font-weight: 700; line-height: 1.32; }
.lesson-card p { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
.lesson-card .meta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 980px) { .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lesson-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- feed previews (home) ---------- */
.feeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; }
.feed-list li { border-top: 2px solid var(--ink); padding-block: 18px; }
.feed-list li:last-child { border-bottom: 2px solid var(--ink); }
.feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-muted); font-weight: 600; }
.feed-list a { text-decoration: none; }
.feed-list a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.feed-list h3 { font-size: 21px; font-weight: 700; line-height: 1.35; margin-top: 6px; }
.feed-col .section-head { margin-bottom: 18px; }
.feed-col .section-head h2 { font-size: clamp(28px, 3.4vw, 36px); }
@media (max-width: 860px) { .feeds { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* ---------- follow band ---------- */
.follow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; }
.follow h2 { font-size: clamp(30px, 4.4vw, 46px); }
.follow p { margin-top: 12px; max-width: 46ch; }
.follow .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.tags { margin-top: 14px; font-weight: 700; color: var(--beguni); }
@media (max-width: 760px) { .follow { grid-template-columns: minmax(0, 1fr); } .follow .actions { justify-content: flex-start; } }

/* ---------- page head (inner pages) ---------- */
.page-head { padding-block: 52px 36px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.page-head h1 { font-size: clamp(38px, 6.6vw, 68px); line-height: 1.1; max-width: 18ch; }
.page-head .lead { font-size: clamp(18px, 2vw, 21px); max-width: 56ch; margin-top: 16px; }
.page-head .updated { margin-top: 14px; font-size: 15px; color: var(--ink-muted); font-weight: 600; }
.page-head--violet { background: var(--beguni); color: var(--on-beguni); }
.page-head--violet .eyebrow { color: var(--lebu); }
.page-head--violet .lead { color: var(--on-beguni); }
@media (max-width: 640px) { .page-head { padding-block: 36px 28px; } }

/* ---------- learn page ---------- */
.filters {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 66px); z-index: 5;
  background: var(--paper); border-bottom: 1.5px solid var(--line);
}
.filters .wrap { display: flex; gap: 8px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.filters .wrap::-webkit-scrollbar { display: none; }
.filter {
  flex: none; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 9px 15px; border-radius: var(--radius-pill); border: 2px solid var(--ink); background: var(--white); color: var(--ink);
}
.filter .c { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink-muted); margin-left: 4px; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter[aria-pressed="true"] .c { color: var(--paper-muted); }
@media (max-width: 600px) { .filters { top: calc(env(safe-area-inset-top, 0px) + 66px); } }
.aud-section { padding-block: 56px 8px; scroll-margin-top: 140px; }
.aud-section + .aud-section { border-top: 2px solid var(--ink); }
.aud-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: end; margin-bottom: 28px; }
.aud-head h2 { font-size: clamp(30px, 4.4vw, 42px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.aud-head .aud-icon { width: 50px; height: 50px; }
.aud-head .desc { margin-top: 10px; max-width: 60ch; color: var(--ink-muted); font-size: 17px; }
.aud-head .desc b { color: var(--ink); }
.aud-head .badge { justify-self: end; }
@media (max-width: 700px) { .aud-head { grid-template-columns: minmax(0, 1fr); } .aud-head .badge { justify-self: start; } }

/* ---------- lesson page ---------- */
.crumbs { font-size: 15px; font-weight: 600; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink-muted); text-decoration: none; border-bottom: 1.5px solid var(--line); }
.crumbs a:hover { color: var(--ink); border-color: var(--ink); }
.lesson-head { padding-block: 36px 32px; background: var(--lilac); border-bottom: 2px solid var(--ink); }
.lesson-head .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lesson-head h1 { font-size: clamp(34px, 5.6vw, 56px); line-height: 1.14; margin-top: 14px; max-width: 20ch; }
.lesson-head .lead { margin-top: 14px; font-size: clamp(18px, 2vw, 21px); max-width: 52ch; }
.lesson-head .lead b { font-weight: 700; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 15.5px; font-weight: 600; }
.lesson-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lesson-meta svg { width: 18px; height: 18px; }
.lesson-body { padding-block: 40px 16px; display: grid; gap: 36px; }
.block-label { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--beguni); display: block; margin-bottom: 8px; }
.hook { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.65; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-md); padding: 16px 18px 16px 16px;
}
.steps .n {
  width: 44px; height: 44px; border-radius: 50%; background: var(--beguni); color: var(--on-beguni);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 20px;
}
.steps h3 { font-size: 21px; font-weight: 700; margin-top: 6px; }
.steps p { margin-top: 4px; font-size: 17px; line-height: 1.65; }
.note { border-radius: var(--radius-md); padding: 18px 20px; border: 2px solid var(--ink); }
.note .block-label { color: var(--ink); }
.note--tip { background: var(--lilac); border-color: var(--lilac); }
.note--careful { background: var(--komola-tint); }
.note--task { background: var(--lebu-tint); }
.note--task .closing { margin-top: 10px; font-weight: 700; }
.note--task .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.note p { font-size: 17.5px; }
.related { font-size: 17px; }
.related a { font-weight: 700; color: var(--beguni); }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding-block: 8px 24px; }
.pager a {
  display: block; padding: 16px 18px; border: 2px solid var(--ink); border-radius: var(--radius-md);
  text-decoration: none; background: var(--white); transition: transform .15s ease, box-shadow .15s ease;
}
.pager a:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-sticker); }
.pager small { display: block; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.pager b { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.35; display: block; margin-top: 2px; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager .next { grid-column: 1; text-align: left; } }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: more; }
.more-list li { border-top: 1.5px solid var(--line); }
.more-list li:last-child { border-bottom: 1.5px solid var(--line); }
.more-list a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 4px; text-decoration: none; font-size: 17px; }
.more-list a:hover { background: var(--lilac); }
.more-list .k { font-family: var(--font-display); font-weight: 800; color: var(--beguni); }
.more-list [aria-current="page"] { font-weight: 700; background: var(--lebu-tint); }

/* ---------- news & blog ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.month { font-family: var(--font-display); font-weight: 800; font-size: 18px; padding: 8px 0; color: var(--beguni); border-bottom: 2px solid var(--ink); margin-top: 40px; }
.month:first-child { margin-top: 0; }
.news-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding-block: 30px; border-bottom: 1.5px solid var(--line); scroll-margin-top: 90px; }
.news-date { font-family: var(--font-display); font-weight: 800; line-height: 1.1; }
.news-date .d { font-size: 44px; display: block; }
.news-date .m { font-size: 17px; color: var(--ink-muted); }
.news-item .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.news-item h2 { font-size: clamp(23px, 2.8vw, 29px); line-height: 1.3; margin-top: 10px; font-weight: 800; }
.news-item .body { margin-top: 10px; font-size: 17.5px; line-height: 1.75; }
.for-you { margin-top: 16px; background: var(--lilac); border-radius: 14px; padding: 12px 16px; font-size: 17px; }
.for-you b { font-family: var(--font-display); font-weight: 800; }
.sources { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15.5px; align-items: center; }
.sources .k { font-weight: 700; color: var(--ink-muted); }
.sources a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sources a svg { width: 15px; height: 15px; flex: none; }
.lesson-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; color: var(--beguni); font-size: 16.5px; }
.orig { margin-top: 6px; font-size: 15px; color: var(--ink-muted); font-family: var(--font-body); }
@media (max-width: 640px) {
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 24px; }
  .news-date { display: flex; align-items: baseline; gap: 8px; }
  .news-date .d { font-size: 24px; display: inline; }
}
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.res-card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-md); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.res-card h3 { font-size: 23px; font-weight: 800; }
.res-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.res-card p { font-size: 16.5px; }
.res-card a.out { margin-top: auto; font-weight: 700; color: var(--beguni); display: inline-flex; gap: 6px; align-items: center; word-break: break-all; }
.res-card a.out svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 700px) { .res-grid { grid-template-columns: minmax(0, 1fr); } }
.policy {
  margin-top: 28px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--lebu-tint);
  border: 2px solid var(--ink); font-size: 16.5px;
}
.policy b { font-family: var(--font-display); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 56px 28px; }
.site-footer a { color: var(--paper); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.foot-logo img { display: block; width: 240px; height: auto; margin-left: -20px; }
.foot-slogan { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.2; margin-top: 8px; }
.foot-slogan .ai { color: var(--lebu); }
.foot-about { color: var(--paper-muted); font-size: 16px; margin-top: 10px; max-width: 40ch; }
.foot-h { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--lebu); margin-bottom: 10px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 16.5px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom {
  margin-top: 40px; padding-top: 18px; border-top: 1.5px solid #3A3460;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14.5px; color: var(--paper-muted);
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- 404 ---------- */
.lost { padding-block: 80px; text-align: left; }
.lost h1 { font-size: clamp(40px, 7vw, 72px); }
.lost p { margin-top: 14px; font-size: 20px; max-width: 40ch; }
.lost .actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
