/*
Theme Name:   MEPCO GP Child
Theme URI:    https://mepcobillcheckonline.com/
Description:  GeneratePress child theme, port of approved design D (cream, deep green, saffron). System fonts only, no page builder, no external requests. The bill tool is styled by the plugin MEPCO Bill Checker 2.2.0 (mbc-* classes).
Author:       MEPCO Bill Check Online
Template:     generatepress
Version:      1.0.5
License:      GPL v2 or later
Text Domain:  mepco-gp-child
*/

:root {
  --cream: #fff8ec;
  --cream-deep: #f9ecd5;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #193326;
  --body: #354a3d;
  --muted: #526358;
  --primary: #14532d;
  --primary-dark: #0d3d21;
  --primary-soft: #e8f3e9;
  --accent: #f59e0b;
  --accent-dark: #7a4800;
  --accent-soft: #fff0c7;
  --border: #d9d2c3;
  --error: #a61b1b;
  --tip: #2563a5;
  --ad: #efede7;
  --shadow: 0 16px 44px rgba(44, 35, 17, 0.13);
  --shadow-sm: 0 7px 22px rgba(44, 35, 17, 0.08);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --wide: 1180px;
  --reading: 72ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ---------- Base (overrides GeneratePress defaults, same specificity, loaded after) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
button, input { font: inherit; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--primary-dark); }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3 { margin-top: 0; color: var(--ink); font-family: var(--font); font-weight: 700; line-height: 1.17; letter-spacing: -0.025em; }
h1 { margin-bottom: 16px; font-size: clamp(2rem, 5vw, 3.45rem); }
h2 { margin-bottom: 14px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { margin-bottom: 8px; font-size: 1.1rem; }
[lang="ur"] { font-family: var(--font-urdu); letter-spacing: 0; }
/* WordPress core "flow layout" adds a block gap between group children; D uses its own gaps. */
.wp-block-group > * { margin-block-start: 0; }

.wide-shell, .content-shell, .header-inner {
  width: min(100% - 32px, var(--wide));
  margin-inline: auto;
}
.content-shell { max-width: 820px; }
.screen-reader-text, .mbc-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--primary-dark);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { color: var(--white); transform: translateY(0); }
/* Two-colour focus ring: dark green outline (about 10:1 on cream/white) plus a white inner ring (about 10:1 on the dark green hero, CTA and footer). Both reach 3:1 on their own surfaces. */
:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 2px; box-shadow: 0 0 0 2px var(--white); }

/* ---------- Compact sticky header ---------- */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(20, 83, 45, 0.18);
  background: rgba(255, 248, 236, 0.97);
  backdrop-filter: blur(10px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-wrap { display: flex; min-width: 0; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: var(--cream);
  background: var(--primary);
  border-radius: 11px;
  place-items: center;
}
.brand-mark svg { width: 24px; height: 24px; }
.wordmark { overflow: hidden; color: var(--primary-dark); font-size: 0.96rem; font-weight: 850; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.guide-badge { display: none; padding: 3px 8px; border: 1px solid #c9a152; border-radius: 999px; color: #684000; background: var(--accent-soft); font-size: 0.62rem; font-weight: 850; white-space: nowrap; }
.menu-toggle { display: grid; width: 46px; height: 46px; padding: 0; border: 1px solid var(--border); border-radius: 12px; color: var(--primary); background: var(--paper); cursor: pointer; place-items: center; }
.menu-toggle:hover, .menu-toggle:focus { color: var(--primary); background: var(--paper); }
.menu-toggle svg { width: 24px; height: 24px; }
.site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; padding: 10px 16px 16px; border-bottom: 1px solid var(--border); background: var(--paper); box-shadow: var(--shadow-sm); }
.site-nav.is-open { display: block; }
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav li { margin: 0; }
.site-nav a { display: block; min-height: 44px; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-size: 0.82rem; font-weight: 750; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary-dark); background: var(--primary-soft); }
.site-nav a.nav-cta { color: #211804; background: var(--accent); }
.site-nav a.nav-cta:hover { color: #211804; background: #e99100; }

/* ---------- Hero (home blocks) ---------- */
.hero { overflow: hidden; padding: 46px 0 54px; color: var(--cream); background: var(--primary); }
.hero-grid { display: grid; align-items: center; gap: 34px; }
.hero-copy .eyebrow { color: #ffd878; }
.hero-copy h1 { color: var(--cream); }
.hero-lead { max-width: 54ch; margin-bottom: 20px; color: #e8f0e9; font-size: clamp(1rem, 1.8vw, 1.18rem); }
.hero-points { display: flex; flex-wrap: wrap; margin: 0; padding: 0; gap: 9px 18px; color: #e0ece2; font-size: 0.78rem; font-weight: 700; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent); }
.eyebrow { margin-bottom: 10px; color: var(--accent-dark); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.bilingual-heading span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.55em; font-weight: 700; line-height: 1.45; }
.hero-meta { margin: 12px auto 0; color: #d9e8dd; font-size: 0.67rem; text-align: center; }
.disclaimer-line { margin: 0; padding: 12px 16px; color: #4d4a3c; background: var(--accent-soft); border-bottom: 1px solid #e0c16e; font-size: 0.75rem; text-align: center; }

/* ---------- Shared sections ---------- */
.section { padding: clamp(54px, 7vw, 86px) 0; }
.section-paper { background: var(--paper); }
.section-soft { background: var(--primary-soft); }
.section-heading { max-width: 700px; margin-bottom: 28px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading p:last-child, .muted { color: var(--muted); }
.button, a.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 10px 18px; border: 0; border-radius: 11px; color: #201a0c; background: var(--accent); cursor: pointer; font-weight: 900; line-height: 1.25; text-align: center; text-decoration: none; }
.button:hover, a.button:hover { color: #171207; background: #e99100; }
.button-ghost, a.button-ghost { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.button-ghost:hover, a.button-ghost:hover { color: var(--white); background: var(--primary); }

/* Reserved ad slots: fixed heights, no script inside, never above or inside the tool */
.ad-wrap { padding: 24px 16px; background: var(--cream); }
.ad-slot { display: grid; width: min(100%, 970px); min-height: 120px; margin-inline: auto; border: 1px solid #d5d2cb; border-radius: 8px; color: #4f4c47; background: var(--ad); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; place-items: center; }
.ad-slot.article-ad { min-height: 250px; margin: 40px 0; }
.ad-slot.category-ad { grid-column: 1 / -1; min-height: 180px; width: 100%; }

.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.task-card { display: flex; min-width: 0; flex-direction: column; padding: 16px; border: 1px solid var(--border); border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.task-card:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); }
.task-icon { display: grid; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px; color: var(--primary); background: var(--primary-soft); place-items: center; }
.task-card:nth-child(even) .task-icon { color: #704200; background: var(--accent-soft); }
.task-icon svg { width: 24px; height: 24px; }
.task-card h3 { font-size: 0.92rem; }
.task-card p { margin-bottom: 10px; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.task-link { margin-top: auto; color: var(--primary); font-size: 0.7rem; font-weight: 850; }

.reference-grid { display: grid; align-items: center; gap: 34px; }
.compare-list { display: grid; margin: 22px 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 125px 1fr; padding: 11px 13px; gap: 14px; border-bottom: 1px solid var(--border); font-size: 0.77rem; }
.compare-row:last-child { border-bottom: 0; }
.compare-row span { color: var(--muted); }
.dummy-bill { width: 100%; max-width: 500px; margin-inline: auto; padding: 20px; border: 2px solid #cfc4ae; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.dummy-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 2px solid var(--ink); gap: 12px; }
.dummy-brand { min-width: 0; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.04em; }
.dummy-stamp { flex: 0 0 auto; padding: 3px 7px; border-radius: 5px; color: #33260a; background: var(--accent); font-size: 0.57rem; font-weight: 900; }
.dummy-details { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0; gap: 8px; }
.dummy-cell { min-width: 0; padding: 8px; border-radius: 8px; background: #f3f0e9; }
.dummy-cell small { display: block; color: var(--muted); font-size: 0.55rem; font-weight: 800; text-transform: uppercase; }
.dummy-cell strong { display: block; overflow: hidden; font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }
.dummy-field { position: relative; padding: 13px 9px 12px; border: 3px solid var(--accent); border-radius: 11px; background: var(--accent-soft); text-align: center; }
.dummy-field small { display: block; margin-bottom: 3px; color: #65400b; font-size: 0.56rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.dummy-number { display: block; color: var(--primary-dark); font-size: clamp(0.88rem, 4.2vw, 1.3rem); font-weight: 950; letter-spacing: clamp(0.02em, 0.45vw, 0.09em); line-height: 1.2; white-space: nowrap; }
.look-here { position: absolute; top: -13px; right: 9px; padding: 2px 7px; border-radius: 5px; color: var(--white); background: var(--primary); font-size: 0.48rem; font-weight: 900; letter-spacing: 0.05em; }
.dummy-secondary { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 8px; gap: 10px; font-size: 0.62rem; }
.dummy-note { margin: 12px 0 0; color: var(--muted); font-size: 0.58rem; text-align: center; }

.steps { display: grid; margin: 0; padding: 0; gap: 15px; list-style: none; }
.step { position: relative; padding: 19px 18px 17px 67px; border: 1px solid var(--border); border-radius: 15px; background: var(--paper); }
.step-number { position: absolute; top: 18px; left: 16px; display: grid; width: 38px; height: 38px; border-radius: 10px; color: #2b2008; background: var(--accent); font-size: 0.8rem; font-weight: 950; place-items: center; }
.step h3 { margin-bottom: 4px; font-size: 0.98rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.info-box { padding: 22px; border: 1px solid #c2d2c2; border-left: 6px solid var(--primary); border-radius: 14px; background: var(--primary-soft); }
.info-box h2 { font-size: 1.25rem; }
.info-box p { margin-bottom: 10px; color: var(--body); font-size: 0.86rem; }
.info-links { display: flex; flex-wrap: wrap; gap: 10px; }
.info-links a { font-size: 0.76rem; font-weight: 850; }

/* Cards: home guides, category/archive grid, related */
.guide-grid, .category-grid, .related-grid { display: grid; gap: 18px; }
.guide-card, .category-card, .related-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); transition: transform 160ms ease, box-shadow 160ms ease; }
.guide-card:hover, .category-card:hover, .related-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-illustration { position: relative; display: grid; min-height: 155px; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--primary-soft); place-items: center; }
.card-illustration.amber { background: var(--accent-soft); }
.card-illustration.cream { background: var(--cream-deep); }
.card-illustration svg { position: relative; z-index: 1; width: 120px; height: 96px; }
.card-illustration::before { position: absolute; top: -35px; left: -29px; width: 92px; height: 92px; border: 16px solid rgba(20, 83, 45, 0.08); border-radius: 50%; content: ""; }
.card-illustration::after { position: absolute; right: -28px; bottom: -35px; width: 94px; height: 94px; border-radius: 50%; background: rgba(245, 158, 11, 0.18); content: ""; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 19px; }
.card-kicker { margin-bottom: 6px; color: #526358; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.card-body h3 { font-size: 1.02rem; }
.card-body h3 a { color: var(--primary-dark); text-decoration: none; }
.card-body h3 a::after { position: absolute; inset: 0; content: ""; }
.card-body p { margin-bottom: 12px; color: var(--muted); font-size: 0.75rem; }
.card-meta { margin-top: auto; color: #53655a; font-size: 0.65rem; font-weight: 750; }

.faq-list { display: grid; max-width: 850px; margin-inline: auto; gap: 10px; }
.faq-list details { border: 1px solid var(--border); border-radius: 13px; background: var(--paper); }
.faq-list summary { position: relative; min-height: 58px; padding: 14px 50px 14px 17px; color: var(--primary-dark); cursor: pointer; font-size: 0.85rem; font-weight: 850; line-height: 1.45; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 50%; right: 15px; display: grid; width: 28px; height: 28px; border-radius: 9px; background: var(--primary-soft); content: "+"; font-size: 1.1rem; transform: translateY(-50%); place-items: center; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list .faq-item { padding: 16px 17px 3px; border: 1px solid var(--border); border-radius: 13px; background: var(--paper); }
.faq-list .faq-item h3 { margin: 0 0 8px; color: var(--primary-dark); font-size: 0.9rem; font-weight: 850; line-height: 1.45; }
.faq-list .faq-item .faq-answer { padding: 0 0 14px; }
.faq-answer { padding: 0 17px 17px; color: var(--muted); font-size: 0.82rem; }
.faq-answer p:last-child { margin-bottom: 0; }

.trust-strip { padding: 28px 0; color: var(--white); background: var(--primary-dark); }
.trust-items { display: grid; gap: 18px; }
.trust-item { display: flex; align-items: flex-start; gap: 11px; }
.trust-item svg { flex: 0 0 27px; width: 27px; height: 27px; color: var(--accent); }
.trust-item strong, .trust-item span { display: block; }
.trust-item strong { color: var(--white); font-size: 0.82rem; }
.trust-item span { color: #cfdfd3; font-size: 0.68rem; }

/* ---------- Article (single post and page) ---------- */
.page-hero, .category-hero { padding: 45px 0 38px; border-bottom: 1px solid var(--border); background: var(--paper); }
.page-hero h1 { max-width: 900px; }
.page-lead { color: var(--muted); }
.breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: 0.7rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; gap: 7px; list-style: none; }
.breadcrumb li:not(:last-child)::after { margin-left: 7px; content: "/"; }
.page-meta { display: flex; flex-wrap: wrap; margin-top: 18px; gap: 9px 18px; color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.page-meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-meta svg { width: 18px; height: 18px; color: var(--primary); }
.article-shell { display: grid; width: min(100% - 32px, 1060px); margin: 44px auto 70px; gap: 42px; }
.article-content { min-width: 0; max-width: var(--reading); color: var(--body); }
.article-content p, .article-content li { font-size: 18px; line-height: 1.72; }
.article-content h2 { margin-top: 50px; scroll-margin-top: 94px; }
.article-content h3 { margin-top: 30px; }
.article-disclaimer { display: flex; margin: 0 0 26px; padding: 13px 15px; border-left: 5px solid var(--accent); border-radius: 0 11px 11px 0; color: #4b4a39; background: var(--accent-soft); gap: 10px; font-size: 0.78rem; }
.article-content p.article-disclaimer { font-size: 0.78rem; line-height: 1.55; }
.article-disclaimer svg { flex: 0 0 20px; width: 20px; margin-top: 4px; }
.toc { align-self: start; padding: 19px; border: 1px solid #bfcfbe; border-radius: 16px; background: var(--primary-soft); }
.toc h2 { margin: 0 0 10px; font-size: 1rem; }
.toc ol { margin: 0; padding-left: 19px; }
.toc li { margin: 6px 0; font-size: 0.72rem; }
.callout { margin: 28px 0; padding: 20px; border: 1px solid #b7cde0; border-left: 6px solid var(--tip); border-radius: 13px; background: #eef7ff; }
.callout-important { border-color: #e1c16e; border-left-color: var(--accent); background: var(--accent-soft); }
.callout h3, .callout .callout-title { margin: 0 0 6px; font-size: 0.95rem; font-weight: 800; line-height: 1.4; }
.callout p:last-child { margin: 0; }
.article-bill { margin: 30px auto; }
.comparison-wrap { overflow-x: auto; }
.comparison-table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 0.78rem; }
.comparison-table th, .comparison-table td { padding: 11px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.comparison-table th { color: var(--primary-dark); background: var(--primary-soft); }
.source-box, .org-box { margin: 34px 0; padding: 20px; border: 1px solid var(--border); border-radius: 15px; background: var(--paper); }
.source-box h2, .org-box h2 { margin: 0 0 8px; font-size: 1.12rem; }
.source-box p, .org-box p { margin-bottom: 7px; color: var(--muted); font-size: 0.78rem; }
.article-cta { margin: 38px 0; padding: 23px; border-radius: 17px; color: var(--cream); background: var(--primary); }
.article-cta h2 { margin: 0 0 6px; color: var(--cream); font-size: 1.25rem; }
.article-cta p { margin-bottom: 14px; color: #dce9df; font-size: 0.82rem; }
.related-guides { padding: 58px 0; border-top: 1px solid var(--border); background: var(--paper); }
.related-card { padding: 19px; }
.related-card p { color: var(--muted); font-size: 0.76rem; }

/* ---------- Category / archive / guides hub ---------- */
.category-hero-inner { max-width: 820px; }
.filter-chips { display: flex; flex-wrap: wrap; margin: 23px 0 0; gap: 9px; }
.filter-chip { display: inline-flex; min-height: 42px; align-items: center; padding: 7px 14px; border: 1px solid #afc0b0; border-radius: 999px; color: var(--primary-dark); background: var(--cream); font-size: 0.72rem; font-weight: 850; text-decoration: none; }
.filter-chip:hover, .filter-chip.active { color: var(--white); background: var(--primary); }
.category-layout { padding: 54px 0 72px; }
.category-card .card-illustration { min-height: 175px; }
.pagination { display: flex; justify-content: center; margin-top: 38px; gap: 8px; }
.page-number { display: grid; min-width: 44px; min-height: 44px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 10px; color: var(--primary-dark); background: var(--paper); font-size: 0.75rem; font-weight: 850; text-decoration: none; place-items: center; }
.page-number.current, .page-number:hover { color: var(--white); background: var(--primary); }
.not-found { padding: 70px 0 90px; }
.not-found .button { margin: 6px 8px 6px 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 50px 0 22px; border-top: 6px solid var(--accent); color: #d8e6dc; background: #102c1d; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand .wordmark { display: inline-block; margin-bottom: 10px; color: var(--white); }
.footer-brand p { max-width: 520px; margin-bottom: 8px; color: #bfd0c4; font-size: 0.72rem; }
.footer-heading { margin: 0 0 10px; color: var(--white); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 6px 0; }
.footer-links a { color: #dbe8df; font-size: 0.72rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.15); color: #adc2b3; font-size: 0.65rem; }
.footer-bottom p { margin-bottom: 4px; }

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .guide-badge { display: inline-flex; }
  .guide-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid, .trust-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 780px) {
  .menu-toggle { display: none; }
  .site-nav { position: static; display: block; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: 2px; }
  .site-nav a { min-height: 42px; padding: 9px 10px; font-size: 0.72rem; }
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(430px, 1fr); gap: clamp(40px, 6vw, 78px); }
  .reference-grid { grid-template-columns: minmax(0, .9fr) minmax(390px, 1fr); gap: 64px; }
  .task-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .article-shell { grid-template-columns: minmax(0, var(--reading)) 250px; align-items: start; }
  .article-content { grid-column: 1; grid-row: 1; }
  .toc { position: sticky; top: 94px; grid-column: 2; grid-row: 1; }
  .admin-bar .toc { top: 126px; }
}

@media (min-width: 980px) {
  .guide-grid, .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 779px) {
  body { font-size: 16px; }
  .hero { padding: 18px 0 24px; }
  .hero-grid { gap: 14px; }
  .hero-copy .eyebrow { margin-bottom: 4px; }
  .hero-copy h1 { margin-bottom: 6px; font-size: 2rem; }
  .hero-lead { margin-bottom: 0; font-size: 0.87rem; line-height: 1.45; }
  .hero-points { display: none; }
  .hero-meta { margin-top: 8px; }
  .article-shell { margin-top: 28px; }
  .toc { grid-row: 1; }
  .article-content { grid-row: 2; }
}

@media (max-width: 390px) {
  .wide-shell, .content-shell, .header-inner { width: min(100% - 24px, var(--wide)); }
  .header-inner { min-height: 64px; }
  .wordmark { max-width: 182px; font-size: 0.82rem; }
  .guide-badge { display: none; }
  .task-grid { gap: 9px; }
  .task-card { padding: 13px; }
  .task-card p { display: none; }
  .compare-row { grid-template-columns: 105px 1fr; }
  .dummy-bill { padding: 14px; }
  .dummy-number { font-size: 0.84rem; letter-spacing: 0.018em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .mbc-tool, .related-guides, .filter-chips, .ad-wrap, .ad-slot { display: none !important; }
  body { color: #000; background: #fff; font-size: 12pt; }
  a { color: #000; }
}
