/* TK666 Bangladesh Guide — design system
   Light editorial theme. Serif display, crimson accent, square geometry.
   No external fonts, no trackers, no frameworks. */

:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #EDE9E0;
  --border: #DAD3C6;
  --border-strong: #B9AF9C;
  --text: #1C1B18;
  --muted: #5F5A50;
  --accent: #A61B2B;
  --accent-hi: #7E1220;
  --accent-ink: #FFFFFF;
  --danger: #A61B2B;
  --ok: #1F6B4A;
  --radius: 3px;
  --radius-sm: 2px;
  --shadow: 0 1px 0 var(--border), 0 10px 24px rgba(28, 27, 24, .07);
  --container: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Bengali",
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
          "Noto Serif Bengali", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  padding-bottom: 72px;
}

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.22; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.005em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); line-height: 1.12; }
h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem); margin-top: 2.1em;
  padding-bottom: .28em; border-bottom: 1px solid var(--border);
}
h3 { font-size: clamp(1.12rem, 1.8vw, 1.32rem); margin-top: 1.7em; }
p, ul, ol { margin: 0 0 1.05em; }
main p, main li { max-width: 70ch; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
strong { color: #000; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead {
  font-family: var(--font-display);
  font-size: 1.24rem; line-height: 1.55; color: var(--muted); max-width: 64ch;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: var(--accent-ink); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
/* Flat rule-under-active nav rather than pill backgrounds. */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--text);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.logo-mark {
  width: 26px; height: 26px; flex: none;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.14rem; letter-spacing: -.01em; font-weight: 600;
}
.logo-accent { color: var(--accent); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  display: block; padding: 8px 9px; border-bottom: 2px solid transparent;
  color: var(--text); text-decoration: none; font-size: .9rem;
}
.nav a:hover { border-bottom-color: var(--border-strong); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.lang {
  border: 1px solid var(--border-strong); padding: 5px 11px !important;
  color: var(--muted) !important; white-space: nowrap; font-size: .84rem !important;
}
.lang:hover { border-bottom-color: var(--border-strong) !important; }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

@media (max-width: 1060px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 2px solid var(--text);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 22px 18px;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 11px 4px; border-bottom: 1px solid var(--border); }
  .lang { text-align: center; margin-top: 8px; }
}

/* ---------- breadcrumbs ---------- */

.crumbs { padding: 14px 22px 0; max-width: var(--container); margin: 0 auto; }
.crumbs ol {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0;
  font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
}
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border-strong); }

/* ---------- sections & hero ---------- */

section { padding: 40px 0; }
section > .container > h2:first-child { margin-top: 0; }
@media (min-width: 900px) { section { padding: 54px 0; } }

/* Hero is left-aligned behind a heavy accent rule, not a centred banner. */
.hero { padding-top: 26px; }
.hero .container > h1,
.hero .container > .lead,
.hero .container > .btn-row,
.hero .container > .disclosure { position: relative; }
.hero h1 { border-left: 5px solid var(--accent); padding-left: 20px; margin-left: -25px; }
@media (max-width: 640px) { .hero h1 { margin-left: 0; padding-left: 14px; border-left-width: 4px; } }
.hero-grid { display: grid; gap: 26px; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 42px; } }
.hero img { width: 100%; height: auto; border: 1px solid var(--border); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 600;
  text-decoration: none; border: 1px solid transparent; line-height: 1.3;
  transition: background .12s ease, color .12s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn-secondary { border-color: var(--text); color: var(--text); background: transparent; }
.btn-secondary:hover { background: var(--text); color: var(--bg); }
.btn-sub { font-size: .75rem; font-weight: 400; opacity: .85; }

.disclosure {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--muted); margin: 4px 0 0;
}
.disclosure::before {
  content: "18+"; font-weight: 700; font-size: .68rem; letter-spacing: .02em;
  background: var(--accent); color: #fff; padding: 2px 7px; flex: none;
}

/* ---------- cards ---------- */
/* Flat bordered blocks with a top rule instead of raised rounded cards. */

.grid { display: grid; gap: 0; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: transparent; border-top: 2px solid var(--text);
  padding: 18px 22px 22px 0; margin-right: 22px;
}
.card h3 { margin-top: 0; font-size: 1.18rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .96rem; }
.card-link {
  display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none;
  font-size: .92rem; border-bottom: 1px solid var(--accent); padding-bottom: 1px;
}
.card-link::after { content: " →"; }
@media (max-width: 639px) { .card { margin-right: 0; } }

.fact { display: flex; flex-direction: column; gap: 2px; }
.fact-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--accent); }
.fact-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto; border-top: 2px solid var(--text); border-bottom: 2px solid var(--text);
  margin: 0 0 1.5em; background: transparent;
}
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th {
  background: transparent; font-family: var(--font); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  border-bottom: 1px solid var(--border-strong); padding-top: 10px;
}
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--accent); }

/* ---------- steps ---------- */
/* Square outlined numerals on a continuous left rule. */

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps > li {
  counter-increment: s; position: relative; padding: 0 0 24px 56px; max-width: 70ch;
}
.steps > li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  width: 34px; height: 30px;
  background: var(--bg); color: var(--accent);
  border-bottom: 2px solid var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px;
  width: 1px; background: var(--border);
}
.steps h3 { margin: 0 0 6px; font-size: 1.08rem; }
.steps p { margin-bottom: 0; }

/* ---------- callouts ---------- */

.callout {
  border: 1px solid var(--border-strong); border-left: 5px solid var(--danger);
  background: var(--surface);
  padding: 16px 20px; margin: 0 0 1.5em;
}
.callout.tip { border-left-color: var(--ok); }
.callout.note { border-left-color: var(--text); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong {
  display: block; margin-bottom: 5px; font-family: var(--font-display);
  font-size: 1.04rem; font-weight: 600;
}

/* ---------- figures ---------- */

figure { margin: 0 0 1.9em; }
figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border); background: var(--surface);
}
figcaption {
  font-size: .83rem; color: var(--muted); margin-top: 9px;
  max-width: 70ch; line-height: 1.5;
  border-left: 2px solid var(--border-strong); padding-left: 12px;
}

.fig-standard { max-width: 840px; }
.fig-wide     { max-width: 100%; }
.fig-square   { max-width: 600px; }
.fig-portrait { max-width: 450px; }
.fig-square, .fig-portrait { margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
  .fig-portrait { max-width: 320px; }
  .fig-square { max-width: 100%; }
}

.hero figure, .hero .fig-standard, .hero .fig-wide,
.hero .fig-square, .hero .fig-portrait { max-width: 100%; margin: 0; }

/* ---------- FAQ ---------- */

.faq details {
  background: transparent; border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.faq details:first-of-type { border-top: 2px solid var(--text); }
.faq summary {
  cursor: pointer; padding: 16px 46px 16px 0; font-weight: 600;
  list-style: none; position: relative; font-family: var(--font-display);
  font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 14px;
  font-family: var(--font); font-size: 1.4rem; font-weight: 400; line-height: 1;
  color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { padding: 0 46px 0 0; }
.faq details > *:last-child { padding-bottom: 18px; }

/* ---------- final CTA ---------- */
/* Solid ink block, reversed out — the opposite of the page around it. */

.cta-band {
  background: var(--text); color: #F2EFE8;
  border: 0; padding: 34px 30px; text-align: left;
}
.cta-band h2 { margin-top: 0; color: #fff; border-bottom: 0; padding-bottom: 0; }
.cta-band .muted { color: #B6B0A4; }
.cta-band a:not(.btn) { color: #E8B9BF; }
.cta-band .btn-secondary { border-color: #F2EFE8; color: #F2EFE8; }
.cta-band .btn-secondary:hover { background: #F2EFE8; color: var(--text); }
.cta-band .disclosure { color: #B6B0A4; }

.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--surface-2); border: 0; border-left: 5px solid var(--accent);
  padding: 17px 20px; margin: 0 0 1.7em;
}
.inline-cta p { margin: 0; flex: 1 1 260px; }
.inline-cta .btn { padding: 10px 18px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 2px solid var(--text); background: var(--surface-2);
  margin-top: 44px; padding: 42px 0 0;
}
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-h {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin: 0 0 12px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border-strong);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
.legal { border-top: 1px solid var(--border-strong); margin-top: 32px; padding-top: 18px; padding-bottom: 22px; }
.legal p { font-size: .78rem; color: var(--muted); max-width: none; margin: 0; }

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--text); border-top: 0;
  padding: 10px 16px;
}
.sticky-text { font-size: .9rem; color: #C6C0B4; }
.sticky-cta .btn { padding: 11px 20px; }
@media (max-width: 520px) { .sticky-text { display: none; } .sticky-cta .btn { width: 100%; } }
@media (min-width: 900px) { body { padding-bottom: 0; } .sticky-cta { display: none; } }

/* ---------- misc ---------- */

.pill-row { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 1.3em; padding: 0; list-style: none; }
.pill-row li {
  font-size: .8rem; color: var(--muted); background: transparent;
  border: 1px solid var(--border-strong); border-right: 0; padding: 5px 13px;
}
.pill-row li:last-child { border-right: 1px solid var(--border-strong); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: .6em;
  width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.toc {
  background: transparent; border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--border); padding: 16px 0 14px; margin-bottom: 30px;
}
.toc h2 {
  font-family: var(--font) !important; font-size: .76rem !important;
  text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
  margin: 0 0 10px !important; border-bottom: 0 !important; padding-bottom: 0 !important;
}
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Verification table — specific to this site's editorial angle. */
.verify-row { display: grid; gap: 4px 16px; grid-template-columns: 1fr; padding: 14px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 700px) { .verify-row { grid-template-columns: 200px 1fr auto; align-items: baseline; } }
.verify-row:first-of-type { border-top: 2px solid var(--text); }
.verify-k { font-weight: 650; }
.verify-v { color: var(--muted); }
.verify-s { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 2px 9px; white-space: nowrap; justify-self: start; }
.verify-s.yes { background: var(--ok); color: #fff; }
.verify-s.no  { background: var(--accent); color: #fff; }
.verify-s.part{ background: var(--border-strong); color: #1C1B18; }
