/*
Theme Name: 456db Editorial Help Center
Theme URI: https://456db.online/
Author: 456db Editorial Team
Description: A Bengali light editorial help-center theme for the independent 456db information site.
Version: 1.0.0
Text Domain: db456
*/

:root {
  --bg: #f7f4ee;
  --surface: #fff;
  --surface-2: #f0ebe2;
  --ink: #242321;
  --muted: #68645e;
  --line: #ddd5c8;
  --brand: #a83e32;
  --brand-dark: #8e332a;
  --amber: #d89a32;
  --sage: #2f7764;
  --info: #eef4f1;
  --warn-bg: #fff4d9;
  --warn: #9b6416;
  --shadow: 0 12px 32px rgba(58,45,30,.09);
  --radius: 12px;
  --container: 1160px;
  --reading: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.76;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-dark); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.reading { max-width: var(--reading); }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 9999; padding: 12px 18px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 1000; height: 68px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo { color: var(--ink); font-weight: 900; font-size: 27px; letter-spacing: -.045em; text-decoration: none; }
.site-logo span { color: var(--brand); }
.site-logo-image { display: inline-flex; align-items: center; height: 58px; max-width: 180px; }
.site-logo-image img { width: auto; height: 48px; max-width: 180px; object-fit: contain; }
.main-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 13px; color: var(--ink); text-decoration: none; border-radius: 9px; font-weight: 700; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--surface-2); color: var(--brand-dark); }
.main-nav .menu-register > a, .main-nav li:nth-last-child(3) > a[data-register] { background: var(--brand); color: #fff; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--ink); font: inherit; font-weight: 800; }

main { min-height: 60vh; }
.hero { padding: 64px 0; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(360px,.98fr); align-items: center; gap: 52px; }
.eyebrow { margin: 0 0 10px; color: var(--brand-dark); font-weight: 850; letter-spacing: .02em; }
h1, h2, h3 { margin: 0 0 .48em; line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.65rem); }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.35rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
.section-heading { position: relative; padding-top: 15px; }
.section-heading::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--brand); }
.lead { font-size: clamp(1.06rem, 1.8vw, 1.2rem); color: #403d38; }
.hero-media img, .content-figure img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid rgba(168,62,50,.12); }
.content-figure { margin: 28px 0 12px; }
.content-figure figcaption { margin-top: 9px; color: var(--muted); font-size: .9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border-radius: 10px; border: 2px solid var(--brand); background: var(--brand); color: #fff; text-decoration: none; font-weight: 800; line-height: 1.3; }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--brand-dark); }

.content-section { padding: 72px 0; scroll-margin-top: 88px; }
.content-section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-intro { max-width: var(--reading); margin-bottom: 28px; }
.snapshot-grid, .task-grid, .card-grid, .related-grid, .scenario-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.snapshot-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
.task-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 22px rgba(58,45,30,.05); }
.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 800; }
.snapshot-item { padding: 18px 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.snapshot-item strong { display: block; color: var(--brand-dark); font-size: .92rem; }
.snapshot-item span { display: block; margin-top: 5px; line-height: 1.5; }
.prose { max-width: var(--reading); }
.prose p { margin: 0 0 1.15em; }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.85fr); gap: 48px; align-items: start; }
.split.reverse > :first-child { order: 2; }
.feature-list { margin: 24px 0; padding: 0; list-style: none; }
.feature-list li { position: relative; margin: 10px 0; padding-left: 28px; }
.feature-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 11px; height: 11px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px #fff2d3; }
.notice { margin: 24px 0; padding: 18px 20px; background: var(--info); border-left: 4px solid var(--sage); border-radius: 0 var(--radius) var(--radius) 0; }
.notice.warning { background: var(--warn-bg); border-left-color: var(--amber); color: #5e461b; }
.steps { display: grid; gap: 16px; margin: 26px 0; counter-reset: step; }
.step { position: relative; padding: 20px 22px 20px 72px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 19px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; }
.step h3 { margin: 0 0 5px; }
.step p { margin: 0; }
.table-wrap { margin: 26px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); color: var(--brand-dark); }
tr:last-child td { border-bottom: 0; }
.faq-list { display: grid; gap: 12px; max-width: 900px; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
details[open] { border-left: 4px solid var(--brand); }
summary { display: flex; align-items: center; min-height: 54px; padding: 14px 18px; cursor: pointer; font-weight: 850; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--brand); font-size: 1.35rem; }
details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 18px; max-width: var(--reading); }
.breadcrumb { padding: 16px 0 0; color: var(--muted); font-size: .92rem; }
.breadcrumb a { color: var(--muted); }
.page-hero { padding: 46px 0 32px; }
.page-hero .lead { max-width: 820px; }
.editorial-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; color: var(--muted); font-size: .93rem; }
.related-links { padding: 25px; background: var(--surface-2); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; font-weight: 800; }
input, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #bfb5a7; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--muted); font-size: .92rem; }

.site-footer { padding: 50px 0 28px; background: var(--ink); color: #f7f4ee; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer a { color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; padding: 0; list-style: none; }
.footer-title { color: #fff; font-size: 1.55rem; }
.footer-note { color: #d8d2c8; }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); color: #c9c2b7; font-size: .9rem; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { position: absolute; top: 58px; left: 0; right: 0; display: none; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: grid; gap: 4px; }
  .main-nav a { width: 100%; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: initial; }
  .snapshot-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .task-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-media { max-width: 720px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .site-header, .header-inner { height: 58px; min-height: 58px; }
  .site-logo { font-size: 24px; }
  .site-logo-image { height: 50px; max-width: 150px; }
  .site-logo-image img { height: 40px; max-width: 150px; }
  .hero { padding: 42px 0; }
  .hero-grid { gap: 30px; }
  h1 { font-size: clamp(2.12rem, 10vw, 2.65rem); }
  .content-section { padding: 44px 0; }
  .snapshot-grid, .card-grid, .scenario-grid, .related-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .snapshot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .task-grid { grid-template-columns: 1fr; }
  .button-row { align-items: stretch; }
  .button { flex: 1 1 100%; }
  .step { padding-left: 66px; }
  .table-wrap { margin-inline: -4px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .form-field.full { grid-column: auto; }
}

@media (max-width: 380px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .snapshot-grid, .footer-links { grid-template-columns: 1fr; }
}

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