/*
Theme Name: jilibdt Guide
Theme URI: https://jilibdt.beer/
Author: jilibdt.beer
Description: A restrained Bengali editorial guide theme built for jilibdt.beer.
Version: 1.0.0
Text Domain: jilibdt-guide
*/

:root {
  --page: #071915;
  --surface: #0b211c;
  --surface-2: #102a24;
  --surface-3: #15372f;
  --accent: #e8c45b;
  --mint: #3bc29a;
  --text: #f4f8f6;
  --muted: #afc2ba;
  --border: #29483e;
  --focus: #79e0be;
  --warning: #e0a54b;
  --max: 1180px;
  --reading: 760px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 18px 42px rgba(0, 0, 0, .20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}
body.menu-open { overflow: hidden; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: #fff0b6; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
p, ul, ol { margin: 0 0 1.4rem; }
ul, ol { padding-inline-start: 1.35rem; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.018em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); margin: .55rem 0 1.25rem; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.65rem); margin: 0 0 1.25rem; }
h3 { color: var(--mint); font-size: 1.3rem; }
code { color: #c9f7e7; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 999; width: auto; height: auto; clip: auto; top: 8px; left: 8px; padding: 10px 14px; background: #fff; color: #071915; }
.site-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.reading-width { width: min(100%, var(--reading)); margin-inline: auto; }

.site-header { position: sticky; z-index: 100; top: 0; min-height: 68px; background: rgba(7,25,21,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { color: var(--text); text-decoration: none; font-size: 1.45rem; font-weight: 800; letter-spacing: .01em; }
.site-brand::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(232,196,91,.11); }
.primary-nav ul { display: flex; align-items: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 6px 12px; color: var(--text); text-decoration: none; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { border-color: var(--accent); }
.menu-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--surface-2); font: inherit; cursor: pointer; }

.article-hero { padding: clamp(58px, 8vw, 102px) 0 46px; border-bottom: 1px solid var(--border); background-image: linear-gradient(rgba(59,194,154,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(59,194,154,.025) 1px, transparent 1px); background-size: 36px 36px; }
.hero-inner { max-width: 930px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--mint); font-size: .9rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.hero-deck { max-width: 770px; color: #d6e4de; font-size: clamp(1.1rem, 2vw, 1.33rem); }
.hero-actions, .page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid var(--accent); border-radius: var(--radius); color: #071915; background: var(--accent); font-weight: 800; text-decoration: none; }
.button:hover { color: #071915; background: #f5d982; }
.button-secondary { color: var(--text); background: transparent; border-color: var(--border); }
.button-secondary:hover { color: var(--text); background: var(--surface-2); }

.hero-figure { width: min(calc(100% - 40px), var(--max)); margin: 42px auto 0; }
.hero-figure img, .section-figure img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; }
.intro { max-width: var(--reading); margin: 0 auto; padding: 58px 0 20px; color: #dce8e3; font-size: 1.08rem; }
.article-layout { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, var(--reading)) 240px; align-items: start; justify-content: center; gap: 64px; }
.article-body { min-width: 0; }
.guide-section { padding: 78px 0 10px; border-top: 1px solid var(--border); }
.guide-section h2::before { content: attr(data-section); display: block; margin-bottom: 12px; color: var(--accent); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.section-figure { margin: 30px 0 26px; }
.observed-list { background: var(--surface-2); border-left: 4px solid var(--mint); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 26px 8px; }
.notice { margin: 28px 0; padding: 22px 24px 7px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-3); }
.notice-warning { border-left: 4px solid var(--warning); }
.section-nav { position: sticky; top: 92px; padding: 20px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.section-nav strong { display: block; margin-bottom: 12px; color: var(--text); }
.section-nav ol { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .91rem; }
.section-nav a { color: var(--muted); }
.section-nav a:hover { color: var(--text); }
.faq-section { padding: 80px 0; }
.faq-section details { border-top: 1px solid var(--border); }
.faq-section details:last-of-type { border-bottom: 1px solid var(--border); }
.faq-section summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; color: var(--text); font-weight: 800; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; }
.faq-section details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 0 16px; color: #d6e4de; }
.trust-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 36px 0 82px; }
.trust-link { min-height: 110px; display: flex; align-items: end; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--surface-2); font-weight: 800; text-decoration: none; }
.trust-link:hover { border-color: var(--accent); background: var(--surface-3); }

.page-main { padding: clamp(60px, 8vw, 100px) 0 90px; }
.page-header { max-width: var(--reading); margin: 0 auto 42px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.page-content { max-width: var(--reading); margin-inline: auto; }
.page-content h2 { margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.page-content .notice { margin-top: 2rem; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }

.site-footer { padding: 58px 0 34px; border-top: 1px solid var(--border); background: #061410; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; }
.footer-note { max-width: 620px; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: start; }
.footer-nav a { min-height: 44px; display: flex; align-items: center; color: var(--text); }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }

@media (max-width: 1023px) {
  .article-layout { grid-template-columns: minmax(0, var(--reading)); }
  .section-nav { position: static; grid-row: 1; margin-top: 36px; }
  .section-nav ol { columns: 2; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-shell, .hero-figure, .article-layout { width: min(calc(100% - 32px), var(--max)); }
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: fixed; inset: 68px 0 auto 0; visibility: hidden; opacity: 0; transform: translateY(-8px); padding: 18px 16px 24px; border-bottom: 1px solid var(--border); background: var(--surface); transition: opacity .18s ease, transform .18s ease; }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .primary-nav ul { display: block; }
  .primary-nav a { width: 100%; }
  .hero-actions .button, .page-actions .button { width: 100%; }
  .article-hero { padding-top: 54px; }
  .intro { padding-top: 44px; }
  .guide-section { padding-top: 52px; }
  .section-nav ol { columns: 1; }
  .trust-links { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

