/*
Theme Name: 6777bd বাংলা তথ্য নির্দেশিকা
Theme URI: https://6777bd.beer/
Author: 6777bd Editorial
Description: 6777bd-এর জন্য গভীর সবুজ দীর্ঘপাঠ বাংলা তথ্য থিম।
Version: 1.0.0
Text Domain: 6777bd-guide
*/

:root {
  --bg: #071a17;
  --surface: #0e2823;
  --card: #13342c;
  --accent: #f4c84a;
  --teal: #2fc79a;
  --text: #f7faf9;
  --muted: #b5c7c0;
  --border: #2b4a41;
  --notice: #193d34;
  --warning: #e3a23b;
  --danger: #d96c6c;
  --focus: #74e0bc;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(0, 0, 0, .22);
  --content: 1180px;
  --reading: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Nirmala UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body.nav-open { overflow: hidden; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
img, video, iframe { display: block; max-width: 100%; height: auto; }
.site-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 100; min-height: 68px; background: rgba(7, 26, 23, .97); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { color: var(--text); font-size: 25px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.site-brand span { color: var(--accent); }
.primary-menu { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 15px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { color: var(--accent); border-color: var(--accent); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.page-main { min-height: 60vh; }
.article-header { padding: 76px 0 34px; border-bottom: 1px solid rgba(43, 74, 65, .65); background: radial-gradient(circle at 15% 0%, rgba(47, 199, 154, .12), transparent 45%); }
.article-header-inner { max-width: var(--reading); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 14px; font-weight: 800; letter-spacing: .04em; }
h1, h2, h3 { margin-top: 0; color: var(--text); line-height: 1.18; letter-spacing: -.025em; }
h1 { margin-bottom: 22px; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; }
h2 { position: relative; margin: 72px 0 24px; padding-top: 8px; font-size: clamp(29px, 4vw, 39px); }
h2::before { content: ""; position: absolute; top: 0; left: 0; width: 54px; height: 4px; border-radius: 99px; background: var(--accent); }
h3 { margin: 38px 0 16px; color: #d9fff2; font-size: clamp(22px, 3vw, 26px); }
.article-intro, .lead { color: #d8e6e1; font-size: clamp(18px, 2vw, 21px); line-height: 1.72; }
.reviewed { color: var(--muted); font-size: 14px; }
.article-body { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; padding: 24px 0 84px; }
.article-body p { margin: 0 0 1.05em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.article-body li + li { margin-top: .45em; }
.article-body strong { color: #fff4c4; }
.toc { margin: 28px 0 48px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.toc summary { min-height: 52px; padding: 14px 18px; color: var(--text); font-weight: 800; cursor: pointer; }
.toc ol { margin: 0; padding: 0 24px 20px 48px; }
.toc a { display: inline-flex; min-height: 44px; align-items: center; }
.content-figure { margin: 36px -80px 46px; }
.content-figure img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.content-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.table-wrap { width: calc(100% + 40px); margin: 28px -20px 38px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--surface); }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
th { background: #102f28; color: var(--accent); font-size: 15px; }
tr:last-child td { border-bottom: 0; }
.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li { position: relative; min-height: 74px; margin: 0 0 14px; padding: 18px 18px 18px 72px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 900; }
.notice { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--warning); border-radius: 0 var(--radius) var(--radius) 0; background: var(--notice); }
.faq-list { margin-top: 28px; }
.faq-list details { border-top: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary { min-height: 56px; padding: 15px 42px 15px 0; color: var(--text); font-weight: 800; cursor: pointer; }
.faq-list details > div { padding: 0 0 20px; color: #d2e2dc; }
.text-link { display: inline-flex; min-height: 48px; align-items: center; gap: 8px; margin: 14px 0; padding: 0 18px; border-radius: 12px; background: var(--accent); color: var(--bg); font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--bg); transform: translateY(-2px); }
.editor-note { margin-top: 50px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 15px; }
.correction-form { margin-top: 28px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 7px; color: var(--text); font-weight: 700; }
.form-row input, .form-row textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.form-row textarea { min-height: 140px; resize: vertical; }
.form-submit { min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--accent); color: var(--bg); font: inherit; font-weight: 900; cursor: pointer; }
.form-status { padding: 14px 18px; border: 1px solid var(--teal); border-radius: 12px; background: var(--notice); }
.site-footer { border-top: 1px solid var(--border); background: #061512; }
.footer-inner { padding: 54px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; }
.footer-title { margin: 0 0 12px; color: var(--accent); font-size: 22px; }
.footer-nav { margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-boundary { max-width: 620px; color: var(--muted); }
.footer-meta { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.not-found { padding: 100px 0; text-align: center; }

@media (max-width: 900px) {
  .site-shell { width: min(calc(100% - 32px), var(--content)); }
  .site-header, .header-inner { min-height: 60px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: fixed; inset: 60px 0 auto 0; display: none; max-height: calc(100vh - 60px); overflow-y: auto; padding: 14px 16px 24px; border-bottom: 1px solid var(--border); background: var(--bg); }
  .site-nav.is-open { display: block; }
  .primary-menu { display: block; }
  .primary-menu li { border-bottom: 1px solid var(--border); }
  .primary-menu a { width: 100%; min-height: 52px; }
  .content-figure { margin-inline: -20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-shell, .article-body { width: calc(100% - 32px); }
  .article-header { padding: 48px 0 26px; }
  h1 { font-size: clamp(34px, 11vw, 42px); }
  h2 { margin-top: 52px; font-size: clamp(27px, 8vw, 32px); }
  .table-wrap { width: calc(100% + 16px); margin-left: -8px; margin-right: -8px; }
  th, td { padding: 13px 14px; }
  .text-link, .form-submit { width: 100%; justify-content: center; }
  .correction-form { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}

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