/*
Theme Name: 87BD Bangla Help
Theme URI: https://87bd.asia/
Author: 87BD তথ্য সহায়তা
Description: Independent Bangla information and troubleshooting theme.
Version: 1.1.0
Text Domain: 87bd-help
*/

:root {
  --bg: #0b0c0d;
  --surface: #141618;
  --card: #1b1d20;
  --accent: #f2c94c;
  --accent-2: #d8a928;
  --text: #f5f5f2;
  --muted: #b9bab6;
  --border: #303236;
  --notice: #20231f;
  --warning: #e1a64b;
  --danger: #df7777;
  --focus: #ffe28a;
  --container: 1240px;
  --reading: 820px;
  --radius: 18px;
  --button-radius: 999px;
  --section-space: 96px;
  --shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #fff0ad; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
p, li, a, code, span { overflow-wrap: anywhere; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); margin-inline: auto; }
.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; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; padding: 12px 18px; margin: 8px; background: #fff; color: #000; z-index: 10000; }

.site-header { position: sticky; top: 0; z-index: 1000; min-height: 70px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(11,12,13,.92); backdrop-filter: blur(16px); }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 24px; }
.site-logo { flex: 0 0 auto; color: var(--text); font-size: 1.1rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.site-logo span { color: var(--accent); }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 11px; color: var(--muted); font-size: .86rem; font-weight: 700; text-decoration: none; border-radius: 999px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--text); background: var(--card); }
.header-cta { flex: 0 0 auto; }
.mobile-menu-cta { display: none; }
.menu-toggle, .menu-close { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--card); color: var(--text); cursor: pointer; }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 20px; height: 2px; margin: auto; background: currentColor; content: ""; }
.menu-toggle-lines::before { transform: translateY(-6px); }
.menu-toggle-lines::after { transform: translateY(4px); }
.menu-overlay { display: none; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 22px; border: 1px solid var(--accent); border-radius: var(--button-radius); background: var(--accent); color: #16130a; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { color: #0b0c0d; background: #ffe286; transform: translateY(-2px); }
.button-secondary { border-color: var(--border); background: transparent; color: var(--text); }
.button-secondary:hover { color: var(--text); background: var(--card); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.breadcrumbs { padding-top: 28px; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: var(--muted); }
.hero { padding: 82px 0 40px; text-align: center; }
.hero .eyebrow, .section-label { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 980px; margin: 12px auto 24px; font-size: clamp(40px, 6vw, 76px); line-height: 1.08; letter-spacing: -.04em; }
.hero .lead { max-width: 820px; margin: 0 auto; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero .button-row { justify-content: center; }
.hero-visual { margin-top: 48px; }
.hero-visual img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }

.content-section { padding: var(--section-space) 0 0; scroll-margin-top: 90px; }
.content-section:last-child { padding-bottom: var(--section-space); }
.content-section h2 { margin: 8px 0 22px; font-size: clamp(32px, 4vw, 44px); line-height: 1.16; letter-spacing: -.025em; }
.content-section h3 { margin: 28px 0 10px; font-size: clamp(23px, 3vw, 29px); line-height: 1.25; }
.content-section p { margin: 0 0 18px; color: #e6e6e2; }
.content-section ul, .content-section ol { padding-left: 1.35em; }
.content-section li { margin-bottom: 10px; }
.section-visual { width: min(100%, 1080px); margin: 38px auto 42px; }
.section-visual img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.section-visual figcaption { margin-top: 12px; color: var(--muted); font-size: .88rem; text-align: center; }

.task-grid, .two-column, .related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.task-card, .fact-card, .related-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.task-card h3, .fact-card h3, .related-card h3 { margin-top: 0; }
.task-card p, .fact-card p, .related-card p { color: var(--muted); }
.task-card a, .related-card a { margin-top: auto; font-weight: 800; }
.checklist, .steps { list-style: none; counter-reset: guide-step; padding: 0 !important; margin: 28px 0; }
.steps li { position: relative; min-height: 58px; padding: 15px 18px 15px 68px; border-top: 1px solid var(--border); counter-increment: guide-step; }
.steps li::before { position: absolute; left: 10px; top: 12px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--accent); color: #121212; font-weight: 900; content: counter(guide-step); }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { position: absolute; left: 0; color: var(--accent); font-weight: 900; content: "✓"; }
.notice, .warning, .danger { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--notice); }
.warning { border-color: var(--warning); }
.danger { border-color: var(--danger); }
.notice p:last-child, .warning p:last-child, .danger p:last-child { margin-bottom: 0; }
.scenario { margin-top: 20px; padding: 18px 20px; border: 1px dashed #4a4d52; border-radius: 12px; color: var(--muted); }
.scenario strong { color: var(--text); }

.faq-list { margin-top: 24px; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); background: transparent; }
.faq-list summary { min-height: 58px; padding: 18px 48px 18px 4px; cursor: pointer; color: var(--text); font-weight: 800; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: 8px; top: 16px; width: 28px; height: 28px; color: var(--accent); font-size: 1.3rem; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 44px 22px 4px; color: var(--muted); }
.faq-answer p { color: var(--muted); }

.page-intro { padding: 66px 0 20px; }
.page-intro h1 { max-width: 960px; margin: 12px 0 20px; font-size: clamp(38px, 5.5vw, 66px); line-height: 1.08; letter-spacing: -.035em; }
.page-intro .lead { max-width: var(--reading); color: var(--muted); font-size: 1.16rem; }
.identity-note { max-width: var(--reading); margin: 28px 0 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(240px, 1fr); gap: 64px; align-items: start; }
.article-main { min-width: 0; }
.guide-sidebar { position: sticky; top: 100px; padding-top: var(--section-space); }
.guide-sidebar h2 { font-size: 1.18rem; }
.guide-sidebar ul { margin: 0; padding: 0; list-style: none; }
.guide-sidebar li { border-bottom: 1px solid var(--border); }
.guide-sidebar a { display: block; min-height: 44px; padding: 12px 0; color: var(--muted); text-decoration: none; }
.guide-sidebar a:hover { color: var(--accent); }
.page-end { margin-top: 58px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

/* Audit remediation: page-scoped density and decision components only. */
.page-id-13 .faq-jump { gap: 10px; margin-top: 24px; }
.page-id-13 .faq-jump .button { padding-inline: 18px; }
.page-id-9 .status-table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.page-id-9 .status-table { width: 100%; border-collapse: collapse; background: var(--card); }
.page-id-9 .status-table th, .page-id-9 .status-table td { padding: 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.page-id-9 .status-table th { color: var(--accent); font-size: .9rem; }
.page-id-9 .status-table tr:last-child td { border-bottom: 0; }
.guide-table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.guide-table { width: 100%; border-collapse: collapse; background: var(--card); }
.guide-table th, .guide-table td { padding: 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.guide-table th { color: var(--accent); font-size: .9rem; }
.guide-table tr:last-child td { border-bottom: 0; }

@media (min-width: 821px) {
  .home #login-summary, .home #registration-summary, .home #mobile-app-summary,
  .home #payment-summary, .home #product-summary, .home #security-summary,
  .home #responsible-summary { padding-top: 64px; }
  .page-id-6 .article-main > .content-section:first-child,
  .page-id-7 .article-main > .content-section:first-child,
  .page-id-8 .article-main > .content-section:first-child,
  .page-id-9 .article-main > .content-section:first-child,
  .page-id-10 .article-main > .content-section:first-child,
  .page-id-11 .article-main > .content-section:first-child,
  .page-id-12 .article-main > .content-section:first-child,
  .page-id-13 .article-main > .content-section:first-child,
  .page-id-52 .article-main > .content-section:first-child { padding-top: 64px; }
}

.site-footer { margin-top: 80px; border-top: 1px solid var(--accent-2); background: #090a0b; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 38px; padding: 64px 0 42px; }
.footer-brand p, .footer-note { color: var(--muted); }
.footer-title { margin: 0 0 14px; font-size: 1rem; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding: 24px 0 38px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.error-page { min-height: 60vh; padding: 100px 0; text-align: center; }

@media (max-width: 1050px) {
  .header-cta { display: none; }
  .task-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .article-layout { grid-template-columns: minmax(0,1fr); }
  .guide-sidebar { position: static; padding-top: 20px; }
  .guide-sidebar ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  :root { --section-space: 56px; }
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .site-header, .header-inner { min-height: 60px; }
  .primary-nav { position: fixed; inset: 0 0 0 auto; z-index: 1002; width: min(88vw, 380px); padding: 76px 20px 24px; border-left: 1px solid var(--border); background: #0b0c0d; transform: translateX(105%); transition: transform .24s ease; overflow-y: auto; }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { display: block; }
  .primary-nav a { width: 100%; min-height: 48px; padding: 10px 14px; }
  .menu-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .menu-close { display: grid; position: absolute; top: 12px; right: 16px; place-items: center; font-size: 1.5rem; }
  .menu-overlay { position: fixed; inset: 0; z-index: 1001; background: rgba(0,0,0,.65); }
  .menu-overlay.is-open { display: block; }
  .mobile-menu-cta { display: block; margin-top: 22px; }
  .mobile-menu-cta .button { width: 100%; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(36px, 11vw, 56px); }
  .page-intro { padding-top: 48px; }
  .task-grid, .two-column, .related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-id-9 .status-table-wrap { border: 0; overflow: visible; }
  .page-id-9 .status-table, .page-id-9 .status-table tbody, .page-id-9 .status-table tr, .page-id-9 .status-table td { display: block; width: 100%; }
  .page-id-9 .status-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .page-id-9 .status-table tr { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow: hidden; }
  .page-id-9 .status-table td { display: grid; grid-template-columns: minmax(96px, 35%) 1fr; gap: 12px; padding: 12px 14px; }
  .page-id-9 .status-table td::before { color: var(--accent); font-weight: 800; content: attr(data-label); }
  .guide-table-wrap { border: 0; overflow: visible; }
  .guide-table, .guide-table tbody, .guide-table tr, .guide-table td { display: block; width: 100%; }
  .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .guide-table tr { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow: hidden; }
  .guide-table td { display: grid; grid-template-columns: minmax(96px, 35%) 1fr; gap: 12px; padding: 12px 14px; }
  .guide-table td::before { color: var(--accent); font-weight: 800; content: attr(data-label); }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .task-grid, .two-column, .related-grid, .guide-sidebar ul, .footer-grid { grid-template-columns: 1fr; }
  .button-row { flex-direction: column; }
  .button-row .button { width: 100%; }
  .hero-visual img { aspect-ratio: 4 / 5; object-position: center; border-radius: 12px; }
  .section-visual img { border-radius: 12px; }
  .task-card, .fact-card, .related-card { padding: 22px; }
}

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