/*
Theme Name: 99xo Bangla Guide mrEpofCv
Theme URI: https://99xo.beer/
Author: 99xo বাংলা তথ্যগাইড
Description: Independent Bengali long-form editorial theme built for run mrEpofCv.
Version: 1.0.0
Text Domain: 99xo-bangla-guide
*/

:root {
  --paper: #f7faf9;
  --surface: #ffffff;
  --soft: #edf4f2;
  --ink: #15231f;
  --muted: #52655f;
  --line: #cfddd8;
  --green: #175d50;
  --green-dark: #0d453b;
  --amber: #a76216;
  --focus: #126b78;
  --wide: 1180px;
  --read: 760px;
  --sans: "Noto Sans Bengali", "Nirmala UI", "Vrinda", "FreeSans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); text-decoration-thickness: .09em; text-underline-offset: .16em; }
a:hover { color: var(--amber); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { width: min(var(--wide), calc(100% - 48px)); margin: auto; min-height: 72px; display: flex; align-items: center; gap: 28px; }
.site-brand { flex: 0 0 auto; display: flex; align-items: center; }
.custom-logo-link { display: inline-flex; align-items: center; min-height: 48px; }
.custom-logo { width: 235px; max-height: 54px; object-fit: contain; object-position: left center; }
.brand-fallback { color: var(--ink); font-weight: 800; font-size: 21px; text-decoration: none; }
.menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; align-items: center; justify-content: flex-end; gap: 5px 16px; margin: 0; padding: 0; }
.primary-nav a { display: flex; align-items: center; min-height: 48px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--green); border-color: var(--green); }

.page-shell { width: min(var(--wide), calc(100% - 48px)); margin: 0 auto; }
.article-head { max-width: 920px; padding: clamp(48px, 8vw, 104px) 0 38px; }
.eyebrow { color: var(--green); font-weight: 800; letter-spacing: .04em; margin: 0 0 12px; }
h1 { margin: 0; max-width: 900px; font-size: clamp(38px, 5.5vw, 68px); line-height: 1.1; letter-spacing: -.018em; text-wrap: balance; }
.breadcrumb { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.breadcrumb span { padding: 0 8px; }
.article-body { max-width: var(--read); margin-bottom: clamp(72px, 10vw, 120px); }
.article-body > p:first-child { font-size: 1.15em; color: #263b35; }
.article-body h2 { scroll-margin-top: 24px; margin: clamp(58px, 8vw, 96px) 0 18px; padding-top: 20px; border-top: 1px solid var(--line); font-size: clamp(28px, 3.5vw, 42px); line-height: 1.22; letter-spacing: -.012em; }
.article-body h3 { margin: 40px 0 14px; font-size: clamp(22px, 2.6vw, 29px); line-height: 1.3; }
.article-body p { margin: 0 0 1.35em; }
.article-body ul, .article-body ol { margin: 0 0 1.6em; padding-left: 1.45em; }
.article-body li { margin: .48em 0; }
.article-body blockquote, .editorial-note { margin: 32px 0; padding: 18px 22px; border-left: 4px solid var(--green); background: var(--soft); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 50px 0; }
.article-body table { width: 100%; margin: 28px 0 42px; border-collapse: collapse; background: var(--surface); font-size: 15px; line-height: 1.55; }
.article-body th, .article-body td { padding: 14px 13px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.article-body th { background: var(--soft); font-weight: 800; }
.table-wrap { width: min(960px, calc(100vw - 48px)); overflow-x: auto; margin: 28px 0 42px; box-shadow: 0 4px 16px rgba(30,55,65,.05); }
.table-wrap table { margin: 0; min-width: 680px; }
.editorial-image { width: min(980px, calc(100vw - 48px)); margin: 42px 0 54px; }
.editorial-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--soft); }
.editorial-image--hero img { aspect-ratio: 3 / 2; object-position: center; }
.editorial-image figcaption { color: var(--muted); font-size: 14px; margin-top: 9px; }
.asset-panel { width: min(920px, calc(100vw - 48px)); border: 1px solid var(--line); background: var(--surface); padding: clamp(18px, 3vw, 30px); margin: 28px 0 42px; }

.faq-section { margin-top: 76px; }
.faq-section h2 { margin-bottom: 22px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; min-height: 58px; padding: 16px 42px 16px 0; font-weight: 800; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 24px; color: var(--green); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 0 18px; }
.faq-answer p { margin: 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { width: min(var(--wide), calc(100% - 48px)); margin: auto; padding: 44px 0; }
.footer-statement { margin: 0 0 22px; max-width: 850px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }

@media (max-width: 1050px) {
  .header-inner { min-height: 68px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 24px 22px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { min-height: 48px; font-size: 16px; border-bottom: 1px solid var(--line); white-space: normal; }
}

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.72; }
  .header-inner, .page-shell, .footer-inner { width: min(100% - 32px, var(--wide)); }
  .custom-logo { width: 205px; max-height: 48px; }
  .article-head { padding: 42px 0 28px; }
  h1 { font-size: clamp(35px, 10.5vw, 44px); }
  .article-body h2 { margin-top: 54px; font-size: clamp(27px, 8.5vw, 34px); }
  .article-body h3 { font-size: 23px; }
  .editorial-image, .asset-panel, .table-wrap { width: calc(100vw - 32px); }
  .editorial-image img, .editorial-image--hero img { aspect-ratio: 5 / 4; }
  .article-body th, .article-body td { padding: 11px 10px; }
  .footer-inner { padding: 38px 0; }
}

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

