/*
 * থিম ঘ · হ্যান্ডবিল (Handbill) — ছাপা হ্যান্ডবিলের মতো: গাঢ় নীল মাথা, হলুদ "মেধা যাচাই" ব্যাজ, লাল ফিতায় শ্রেণি,
 * ঘিয়ে জমিনে সাদা পাতা (docs/redesign-themes.md অংশ ১২; Omar, ২৯ অক্টোবর ২০২৬)। রংগুলো থিমের নিজের, ছাপা
 * হ্যান্ডবিলের সাথে মেলানো — কোনো গ্রন্থাগারের তথ্য নয় (নিয়ম ১.৬)। গ্রন্থাগারের নিজের রং (colours.css) এই থিমে
 * বসে না: টোকেনগুলো body-তে, তাই :root-এর --lb-accent এখানে পৌঁছায় না — নীল-হলুদ-লালই হ্যান্ডবিলের পরিচয়।
 * প্রতিটি লেখা-জমিনের জোড়া আলো ও অন্ধকার দুই মোডেই ≥৪.৫:১, ঘরের রেখা ≥৩:১ (HandbillThemeTest মাপে)।
 * হরফ: শিরোনাম, সংখ্যা ও বোতামে Anek Bangla (সরু ৮৭.৫, ৮০০), লেখায় Noto Sans Bengali (৪০০, ৬০০) — দুটোই নিজের
 * সার্ভারে; বাংলায় অক্ষরের ফাঁক (letter-spacing) নেই।
 */
@font-face { font-family: "Site Anek Bangla Narrow"; font-weight: 800; font-display: swap;
  src: url("/fonts/site/anek-bangla/anek-bangla-875-800-bengali.v1.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Site Anek Bangla Narrow"; font-weight: 800; font-display: swap;
  src: url("/fonts/site/anek-bangla/anek-bangla-875-800-latin.v1.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Site Noto Sans Bengali"; font-weight: 600; font-display: swap;
  src: url("/fonts/site/noto-sans-bengali/noto-sans-bengali-600-bengali.v1.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Site Noto Sans Bengali"; font-weight: 600; font-display: swap;
  src: url("/fonts/site/noto-sans-bengali/noto-sans-bengali-600-latin.v1.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F; }

.lb-theme-handbill {
  --lb-font-head: "Site Anek Bangla Narrow", "Site Noto Sans Bengali", system-ui, sans-serif;
  --lb-strong: 600;
  /* হ্যান্ডবিলের চার রং — দুই মোডেই এক: মাথা, ফিতা, কার্ড, ব্যাজ ও বোতামে */
  --hb-navy: #1c2761; --hb-yellow: #f9c433; --hb-red: #d22b3c; --hb-red-on-yellow: #8c1d29;
  --hb-on-navy: #ffffff; --hb-on-navy-soft: #dde2f7; --hb-on-yellow: #1c2761; --hb-on-red: #ffffff; --hb-pill-ink: #161b3a;
  /* পাতা — আলোয় */
  --lb-bg: #fff8e8; --lb-surface: #ffffff; --lb-tint: #fff1c9; --lb-tint-2: #eef0f8; --lb-warm: #ffefbf;
  --lb-ink: #161b3a; --lb-ink-soft: #4a4f6b; --lb-line: #e3e1ec;
  --lb-accent: #1c2761; --lb-on-accent: #ffffff; --lb-link: #1c2761;
  --lb-field: #ffffff; --lb-field-line: #8a90b4;
  --lb-ok: #1c6b3e; --lb-ok-bg: #e3f4e9; --lb-bad: #b3202f; --lb-bad-bg: #fde7e9;
  --lb-footer: #1c2761; --lb-footer-ink: #ffffff; --lb-logo-plate: #ffffff;
  --lb-focus: #161b3a; --lb-focus-halo: rgba(249, 196, 51, .6);
  --lb-shadow: 0 1px 2px rgba(28, 39, 97, .06), 0 8px 24px rgba(28, 39, 97, .07);
  --lb-seg-on: #1c2761; --lb-seg-on-ink: #ffffff; --lb-seg-dot: #f9c433;
  --lb-frame: #1c2761; --lb-tag-bg: #f9c433; --lb-tag-ink: #1c2761;
  --hb-heading: #1c2761; --hb-red-text: #d22b3c; --hb-sheet-top: #1c2761; --hb-card-line: #1c2761;
  --hb-tips: #1c2761; --hb-tips-ink: #ffffff; --hb-tips-strong: #f9c433;
  --hb-ghost-line: #1c2761; --hb-ghost-ink: #1c2761;
}
@media (prefers-color-scheme: dark) {
  .lb-theme-handbill {
    --lb-bg: #0e1330; --lb-surface: #171e45; --lb-tint: #2b2a1c; --lb-tint-2: #262e5e; --lb-warm: #3a3216;
    --lb-ink: #f4f1e8; --lb-ink-soft: #bfc3db; --lb-line: #2e3768;
    --lb-accent: #f9c433; --lb-on-accent: #1c2761; --lb-link: #ffd866;
    --lb-field: #10163a; --lb-field-line: #6b74a8;
    --lb-ok: #7be3a4; --lb-ok-bg: #12301f; --lb-bad: #ff8f98; --lb-bad-bg: #3a1520;
    --lb-focus: #ffd866; --lb-focus-halo: rgba(14, 19, 48, .9);
    --lb-shadow: none;
    --lb-seg-on: #f9c433; --lb-seg-on-ink: #1c2761; --lb-seg-dot: #1c2761;
    --lb-frame: #bfc3db;
    --hb-heading: #f4f1e8; --hb-red-text: #ff8f98; --hb-sheet-top: #f9c433; --hb-card-line: #6b74a8;
    --hb-tips: #262e5e; --hb-tips-ink: #f4f1e8; --hb-tips-strong: #ffd866;
    --hb-ghost-line: #bfc3db; --hb-ghost-ink: #f4f1e8;
  }
}

/* খোল — হ্যান্ডবিলের চওড়া পাতা; গাঢ় নীল জায়গায় ফোকাসের দাগ হলুদ */
.lb-theme-handbill .lb-wrap { max-width: 1180px; padding-inline: clamp(16px, 3vw, 32px); }
.lb-theme-handbill main { padding: 1.25rem 0 2.5rem; }
.hb-header, .hb-hero, .hb-footer { --lb-focus: #f9c433; --lb-focus-halo: rgba(14, 19, 48, .85); }

/* হরফের মাপ — ছোট ও শান্ত (Omar, ২৯ অক্টোবর ২০২৬, রাত: "fonts … need smaller, now it look way bigger", ফোনে
   "not so professional")। লেখা ১৬px — ঘরে টাইপের সময় ফোন (iOS) পাতা বড় না করে, তাই এর নিচে নয়; শিরোনাম ধাপে
   ধাপে, ফোনে আরও ছোট। শিরোনামের রং কেবল পাতার ভেতরে (main) — মাথার নীলে হিরোর শিরোনাম সাদা থাকে (আগে এই নিয়ম
   সব h1-এ খাটত, আর আলোয় হোমের শিরোনাম নীলে নীল হয়ে মিলিয়ে গিয়েছিল — লাইভে ধরা, ২৯ অক্টোবর ২০২৬) */
body.lb-theme-handbill { font-size: 1rem; line-height: 1.65; }
.lb-theme-handbill main h1, .lb-theme-handbill main h2, .lb-theme-handbill main h3 { color: var(--hb-heading); }
.lb-theme-handbill main h1 { font-size: clamp(1.4rem, 4.2vw, 1.85rem); }
.lb-theme-handbill main h2 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
.lb-theme-handbill main h3 { font-size: 1.05rem; }
.lb-theme-handbill .lb-hint { font-size: .85rem; }
.lb-theme-handbill .lb-error { font-size: .875rem; }

/* মাথা — সাদা বৃত্তে লোগো, নাম, হলুদ ভাষা-লিংক */
.hb-header { background: var(--hb-navy); color: var(--hb-on-navy); }
.hb-header-inner { display: flex; align-items: center; gap: .75rem; padding-block: .6rem; }
.hb-brand { display: flex; align-items: center; gap: .65rem; flex: 1 1 auto; min-width: 0; min-height: 44px; color: inherit; text-decoration: none; }
.hb-header .lb-lang { flex: none; }
.hb-logo { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: var(--lb-logo-plate); color: var(--hb-navy); }
.hb-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.hb-brand-name { font-family: var(--lb-font-head); font-weight: 800; font-size: clamp(.95rem, 2.2vw, 1.2rem); line-height: 1.3; }
.hb-header .lb-lang a { color: var(--hb-yellow); }
.hb-header .lb-lang a:hover { color: #ffffff; }
/* ফোনে কেবল অন্য ভাষার লিংক — নাম ও ভাষা এক সারিতে থাকে, যেমন ফোনের নকশায় */
@media (max-width: 599px) { .hb-header .lb-lang span { display: none; } }
@media (min-width: 720px) {
  .hb-header-inner { padding-block: .85rem; }
  .hb-logo { width: 48px; height: 48px; }
}

/* হ্যান্ডবিলের মাথা — আয়োজক, শিরোনাম, অবস্থা, স্লোগান, ব্যাজ। **হলুদ কেবল যা চাপা যায়** — নিবন্ধনের বোতাম ও লিংক;
   শিরোনামের সাল, আয়োজক ও স্লোগানের লাইন হালকা সাদায়, ব্যাজ রেখায় আঁকা সিল (Omar, ২৯ অক্টোবর ২০২৬, রাত: "button color is
   yellow and 2026 color also yellow, so sometimes it confusing")। ফোনে কেবল যা দরকার: আয়োজকের লাইন নয় (নাম ঠিক ওপরেই,
   মাথায় — নইলে লম্বা নামটি এক পর্দায় তিনবার), ব্যাজ নয় (সাল শিরোনামেই আছে), বোতাম পুরো চওড়া */
.hb-hero { background: var(--hb-navy); color: var(--hb-on-navy); }
.hb-hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-block: .35rem 1.5rem; }
.hb-hero-text { display: flex; flex-direction: column; gap: .4rem; flex: 999 1 30rem; min-width: 0; }
.hb-organised { color: var(--hb-on-navy-soft); font-size: .9rem; }
.hb-title { margin: 0; font-family: var(--lb-font-head); font-weight: 800; font-size: clamp(1.5rem, 5.4vw, 3.1rem); line-height: 1.2;
  color: var(--hb-on-navy); }
.hb-status { font-family: var(--lb-font-head); font-weight: 800; font-size: clamp(1.05rem, 2.4vw, 1.45rem); line-height: 1.3; }
.hb-tagline { color: var(--hb-on-navy-soft); font-size: .95rem; }
.hb-hero-cta { align-self: flex-start; margin-top: .45rem; }
.hb-badge { display: grid; place-items: center; flex: none; width: 136px; height: 136px; margin-inline: auto; border-radius: 50%;
  border: 2px solid var(--hb-on-navy-soft); color: var(--hb-on-navy); }
.hb-badge-ring { display: flex; flex-direction: column; align-items: center; justify-content: center; width: calc(100% - 18px);
  height: calc(100% - 18px); border: 1.5px dashed var(--hb-on-navy-soft); border-radius: 50%; text-align: center; }
.hb-badge-label { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.hb-badge-year { font-family: var(--lb-font-head); font-weight: 800; font-size: 2.1rem; line-height: 1; }
@media (max-width: 599px) {
  .hb-organised { display: none; }
  .hb-hero-cta { align-self: stretch; }
}
@media (max-width: 719px) { .hb-badge { display: none; } }
@media (min-width: 720px) {
  .hb-hero-inner { padding-block: .75rem 2.25rem; }
  .hb-tagline { font-size: 1rem; }
}
/* ফরম ও অবস্থার পাতায় ছোট মাথা — ফোনে ফরম যেন প্রথম পর্দাতেই শুরু হয়; সেখানে শ্রেণির ফিতাও নয় (শ্রেণি ফরমেই বোতামে) */
.hb-hero--compact .hb-hero-inner { padding-block: .15rem 1rem; }
.hb-hero--compact .hb-title { font-size: clamp(1.3rem, 4vw, 2.2rem); }
.hb-hero--compact .hb-status { font-size: clamp(.95rem, 2vw, 1.2rem); }
.hb-hero--compact .hb-badge { width: 112px; height: 112px; }
.hb-hero--compact .hb-badge-label { font-size: .8rem; }
.hb-hero--compact .hb-badge-year { font-size: 1.7rem; }
@media (max-width: 599px) { .hb-hero--compact + .hb-ribbon { display: none; } }
@media (max-width: 719px) { .hb-hero--compact .hb-tagline { display: none; } }

/* লাল ফিতা — "অংশগ্রহণ করতে পারবে [শ্রেণি] শ্রেণির শিক্ষার্থীরা" */
.hb-ribbon { background: var(--hb-red); color: var(--hb-on-red); }
.hb-ribbon-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .5rem; margin: 0 auto;
  padding-block: .65rem; font-size: .9rem; font-weight: 600; text-align: center; }
.hb-pill { display: inline-flex; align-items: center; padding: 0 .75rem; border-radius: 999px; background: #ffffff; color: var(--hb-pill-ink);
  font-family: var(--lb-font-head); font-weight: 800; font-size: .95rem; line-height: 1.6; }
@media (min-width: 720px) {
  .hb-ribbon-inner { padding-block: .8rem; font-size: 1rem; }
  .hb-pill { font-size: 1rem; }
}

/* তিনটি কার্ড — বিশেষ আকর্ষণ (হলুদ), বৃত্তির সংখ্যা (সাদা, লাল বড় অঙ্ক), পরীক্ষার তারিখ (নীল) */
.hb-cards { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); padding-top: 1.25rem; }
.hb-card { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-radius: 16px; }
.hb-card-text { display: flex; flex-direction: column; min-width: 0; }
.hb-card-label { font-size: .8rem; font-weight: 600; }
.hb-card-big { font-family: var(--lb-font-head); font-weight: 800; font-size: 1.2rem; line-height: 1.25; }
.hb-card-note { font-size: .95rem; font-weight: 600; line-height: 1.45; }
.hb-card--yellow { background: var(--hb-yellow); color: var(--hb-on-yellow); }
.hb-card--yellow .hb-card-label { color: var(--hb-red-on-yellow); }
.hb-bicycle { flex: none; width: 58px; height: auto; color: var(--hb-navy); }
.hb-card--white { background: var(--lb-surface); color: var(--lb-ink); border: 2px solid var(--hb-card-line); }
.hb-count { font-family: var(--lb-font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--hb-red-text); }
.hb-card--navy { background: var(--hb-navy); color: var(--hb-on-navy); }
.hb-card--navy .hb-card-label { color: var(--hb-on-navy-soft); }
.hb-dateblock { flex: none; padding: .3rem .6rem; border-radius: 10px; background: var(--hb-red); color: var(--hb-on-red);
  text-align: center; line-height: 1.2; }
.hb-dateblock-month { display: block; font-size: .7rem; }
.hb-dateblock-days { display: block; font-family: var(--lb-font-head); font-weight: 800; font-size: 1.15rem; }
@media (min-width: 720px) {
  .hb-card-big { font-size: 1.3rem; }
  .hb-count { font-size: 3rem; }
}

/* পাতা — সাদা কাগজ, মাথায় গাঢ় নীল দাগ; ভাঁজের কোণ এই থিমে নেই */
.lb-theme-handbill .lb-card { border: 0; border-top: 6px solid var(--hb-sheet-top); border-radius: 18px; padding: 1.2rem 1rem; }
.lb-theme-handbill .lb-card--tint { border-top-color: var(--hb-red); }
.lb-theme-handbill .lb-fold::before { display: none; }
@media (min-width: 720px) { .lb-theme-handbill .lb-card { border-top-width: 8px; padding: 1.75rem 2.25rem; } }
.lb-theme-handbill .lb-big { letter-spacing: 0; color: var(--hb-heading); font-size: clamp(1.6rem, 6vw, 2.2rem); }
.lb-theme-handbill .lb-tag { background: var(--hb-yellow); color: var(--hb-on-yellow); }

/* ফরম — ঘর ৪৮px (ছোঁয়ার জায়গা ৪৪-এর ওপরে), লেখা ১৬px; বড় বাছাই-বোতাম; হলুদ মূল বোতাম */
.lb-theme-handbill .lb-register { gap: 1.25rem; }
.lb-theme-handbill .lb-form-section { gap: .9rem; padding-top: 1.1rem; }
.lb-theme-handbill .lb-field label, .lb-theme-handbill .lb-legend { font-size: .95rem; }
.lb-theme-handbill .lb-field input:not([type="radio"]):not([type="checkbox"]),
.lb-theme-handbill .lb-field select, .lb-theme-handbill .lb-field textarea { min-height: 48px; border-width: 1.5px; border-radius: 10px;
  padding-inline: .85rem; font-size: 1rem; }
.lb-theme-handbill .lb-field .lb-dob-selects select { padding-inline: .6rem; }
.lb-theme-handbill .lb-seg-option > span { min-height: 48px; border-width: 1.5px; border-radius: 10px; font-size: .95rem; }
.lb-theme-handbill .lb-seg-sub { font-size: .8rem; }
.lb-theme-handbill .lb-check { font-size: .95rem; }
.lb-theme-handbill .lb-btn { min-height: 48px; border-radius: 12px; border-color: var(--hb-yellow); background: var(--hb-yellow); color: var(--hb-on-yellow);
  font-family: var(--lb-font-head); font-weight: 800; font-size: 1rem; }
.lb-theme-handbill .lb-btn--ghost { background: transparent; border-color: var(--hb-ghost-line); color: var(--hb-ghost-ink);
  font-family: var(--lb-font-body); font-weight: 600; font-size: .95rem; }
.lb-theme-handbill .lb-submit { min-height: 54px; font-size: 1.15rem; }
.lb-theme-handbill .lb-photo-frame { width: 168px; height: 192px; }
.lb-theme-handbill .lb-photo-tips { background: var(--hb-tips); color: var(--hb-tips-ink); border-radius: 14px; font-size: .9rem; }
.lb-theme-handbill .lb-photo-tip-private { color: var(--hb-tips-strong); }
@media (min-width: 960px) { .lb-theme-handbill .lb-register-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; } }

/* "এক নজরে" — লাল ফিতার শিরোনাম, ভারী হরফে ফি ও শেষ তারিখ, রঙিন আদ্যক্ষরে বিষয়, হলুদ যোগাযোগ-কার্ড */
.lb-theme-handbill .lb-glance-card { border: 2px solid var(--hb-red); box-shadow: none; }
.lb-theme-handbill .lb-glance-title { padding: .6rem 1.1rem; background: var(--hb-red); color: var(--hb-on-red); font-size: 1.1rem; }
.lb-theme-handbill .lb-glance-facts { gap: .7rem; padding: .9rem 1.1rem 1.1rem; }
.lb-theme-handbill .lb-glance-big { color: var(--hb-heading); font-size: 1.4rem; }
.lb-theme-handbill .lb-glance-deadline { color: var(--hb-red-text); font-size: 1.25rem; }
.lb-theme-handbill .lb-glance-days { font-size: .8rem; }
.lb-theme-handbill .lb-pill { min-height: 32px; font-size: .875rem; }
.lb-theme-handbill .lb-pill-initial { width: 24px; height: 24px; background: var(--hb-navy); color: var(--hb-on-navy); font-size: .8rem; }
.lb-theme-handbill .lb-pill--subject:nth-child(4n+2) .lb-pill-initial { background: var(--hb-red); color: var(--hb-on-red); }
.lb-theme-handbill .lb-pill--subject:nth-child(4n+3) .lb-pill-initial { background: var(--hb-yellow); color: var(--hb-on-yellow); }
.lb-theme-handbill .lb-glance-help { padding: .9rem 1.1rem; background: var(--hb-yellow); color: var(--hb-on-yellow); }
.lb-theme-handbill .lb-glance-help-title { font-size: .9rem; }
.lb-theme-handbill .lb-glance-phone { font-size: 1.2rem; }

/* পা — "আয়োজনে: নাম · ঠিকানা · নিবন্ধন নম্বর", ফোন, Facebook */
.hb-footer { background: var(--hb-navy); color: var(--hb-on-navy); font-size: .85rem; }
.hb-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1.25rem; padding-block: 1.2rem; }
.hb-footer a { color: var(--hb-yellow); }
.hb-footer a:hover { color: #ffffff; }

/* ছাপা — থিমের রং ও মাথা বাদ, কেবল লেখা (ভিতের ছাপার নিয়মের সাথে) */
@media print {
  .hb-header, .hb-hero, .hb-ribbon, .hb-cards, .hb-footer, .lb-glance { display: none !important; }
  .lb-theme-handbill .lb-card { border: 1px solid #000; }
}
