@import url("https://fonts.googleapis.com/css2?family=Anuphan:wght@400..700&family=Noto+Sans+Thai:wght@400..800&display=swap");

:root {
  --bma-green: #007a53;
  --bma-green-dark: #00593c;
  --bma-green-light: #e6f4ef;
  --accent-gold: #d97706;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --radius: 14px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sarabun", "IBM Plex Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
}

a {
  color: var(--bma-green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  background: var(--bma-green-dark);
  color: #e2f2ec;
  font-size: 13px;
  padding: 8px 20px;
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--bma-green);
  padding: 18px 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bma-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--bma-green-dark);
  line-height: 1.2;
}

.brand-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.nav-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  transition: all 0.15s ease;
}

.nav-pill:hover,
.nav-pill.active {
  background: var(--bma-green);
  color: #fff;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 28px auto;
  padding: 0 20px;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 32px;
}

.hero-media {
  position: relative;
  min-height: 320px;
  background: #0f172a;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-badge {
  display: inline-block;
  background: var(--bma-green-light);
  color: var(--bma-green-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 24px;
  line-height: 1.38;
  margin-bottom: 12px;
  color: var(--text);
}

.hero-excerpt {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}

.btn-read {
  display: inline-block;
  background: var(--bma-green);
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  margin-top: 14px;
  align-self: flex-start;
}

.btn-read:hover {
  background: var(--bma-green-dark);
  text-decoration: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  border-left: 4px solid var(--bma-green);
  padding-left: 12px;
}

.section-head h2 {
  font-size: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.info-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Article Page */
.article-wrap {
  max-width: 820px;
  margin: 28px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.article-wrap h1 {
  font-size: 30px;
  line-height: 1.35;
  margin: 12px 0 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.figure-box {
  margin: 24px 0;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.figure-box img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.figure-caption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.article-content p {
  margin-bottom: 18px;
}

.article-content h2 {
  font-size: 22px;
  margin: 30px 0 14px;
  color: var(--bma-green-dark);
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.table-scroll {
  overflow-x: auto;
  margin: 22px 0;
}

table.rule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

table.rule-table th,
table.rule-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

table.rule-table th {
  background: var(--bma-green-light);
  color: var(--bma-green-dark);
  font-weight: 700;
}

table.rule-table tr:nth-child(even) {
  background: #f8fafc;
}

.takeaway-box {
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 22px 24px;
  margin: 28px 0;
}

.takeaway-box h3 {
  color: #065f46;
  font-size: 19px;
  margin-bottom: 12px;
}

.caution-box {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 14.5px;
  color: #78350f;
}

.sources-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 28px;
  font-size: 14.5px;
}

.sources-box h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.share-bar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.btn-copy {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.btn-copy:hover {
  background: #1e293b;
}

footer.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 32px 20px;
  margin-top: 48px;
  font-size: 14px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Division portal */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.page-hero { margin: 8px 0 22px; }
.page-hero h1 { font-size: 30px; line-height: 1.35; margin: 6px 0 8px; color: var(--bma-green-dark); }
.page-hero p { color: var(--text-muted); max-width: 760px; }
.small-muted { font-size: 14px; color: var(--text-muted); margin: 10px 0 20px; }
.home-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; box-shadow: 0 6px 24px rgba(15,23,42,.06); }
.home-hero h1 { font-size: 32px; line-height: 1.35; color: var(--bma-green-dark); margin-bottom: 10px; }
.home-hero p { color: var(--text-muted); }
.home-hero img { width: 100%; height: 300px; object-fit: cover; border-radius: 12px; display: block; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 34px; }
.quick { background: var(--bma-green); color: #fff; border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.quick strong { font-size: 19px; }
.quick span { font-size: 14px; color: #d1fae5; }
.quick:hover { background: var(--bma-green-dark); text-decoration: none; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 32px; }
.center-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 110px; }
.center-card h3, .project-card h3 { font-size: 18px; color: var(--bma-green-dark); line-height: 1.4; }
.center-card:target, .info-card:target { outline: 3px solid var(--accent-gold); }
.info-card { scroll-margin-top: 110px; }
.info-card .kv { margin-top: 6px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; min-height: 4px; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bma-green-light); color: var(--bma-green-dark); }
.chip-soft { background: #f1f5f9; color: var(--text-muted); }
.chip-warn { background: #fef3c7; color: #92400e; font-weight: 600; }
.kv { display: grid; grid-template-columns: 78px 1fr; gap: 8px; font-size: 14.5px; }
.kv .k { color: var(--text-muted); font-weight: 600; }
.center-note { font-size: 13.5px; background: #fffbeb; border-left: 3px solid #f59e0b; padding: 6px 10px; border-radius: 6px; color: #78350f; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 8px; }
.card-actions .btn-read { margin-top: 0; }
.home-hero .card-actions .btn-ghost { padding: 9px 18px; font-size: 15px; }
.btn-ghost { display: inline-block; border: 1.5px solid var(--bma-green); color: var(--bma-green-dark); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 9px; }
.btn-ghost:hover { background: var(--bma-green-light); text-decoration: none; }
.fee-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.fee { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.fee strong { font-size: 20px; color: var(--bma-green-dark); }
.fee span { font-size: 13.5px; color: var(--text-muted); }
.search-row { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; }
.search-input { width: 100%; font: inherit; font-size: 16px; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; }
.search-input:focus { outline: 2px solid var(--bma-green); border-color: var(--bma-green); }
.zone-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.zone-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text-muted); cursor: pointer; }
.zone-btn.active, .zone-btn:hover { background: var(--bma-green); color: #fff; border-color: var(--bma-green); }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.jump-links a { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--bma-green-light); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 34px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.news-media img { width: 100%; height: 160px; object-fit: cover; display: block; }
.news-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-body .cat-badge { margin-bottom: 0; align-self: flex-start; }
.news-body h3 { font-size: 16px; line-height: 1.5; }
.news-body h3 a { color: var(--text); }
.news-body .meta-row { margin-top: auto; gap: 8px; font-size: 12.5px; }
.section-head a { font-size: 14px; font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.quote { font-size: 17px; color: var(--bma-green-dark); font-weight: 600; }
.plain-ol { margin: 6px 0 0 20px; font-size: 14.5px; color: var(--text-muted); }
.plain-ol li { margin-bottom: 6px; }
.org { margin-bottom: 32px; }
.org-top { background: var(--bma-green-dark); color: #fff; font-weight: 800; text-align: center; padding: 12px; border-radius: 12px; max-width: 320px; margin: 0 auto 14px; }
.org-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.org-unit { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.org-unit span { font-size: 13.5px; color: var(--text-muted); }
.org-active { border: 2px solid var(--bma-green); background: var(--bma-green-light); }
.footer-links a { color: #a7f3d0; }

@media (max-width: 768px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .home-hero, .two-col { grid-template-columns: 1fr; }
  .home-hero h1, .page-hero h1 { font-size: 25px; }
  .site-header { position: static; }
  .article-wrap {
    padding: 22px 18px;
  }
  .article-wrap h1 {
    font-size: 24px;
  }
}

/* BMA Green */
:root {
  --display-font: "Anuphan";
  --display-weight: 700;
  --body-font: "Noto Sans Thai";
  --bma-green: #00694b;
  --bma-green-dark: #104637;
  --bma-green-light: #e2f1e8;
  --bg: #f5f8f5;
  --surface: #ffffff;
  --text: #182f27;
  --text-muted: #465e55;
  --border: #d2dfd7;
  --control-border: #7c9387;
  --soft-bg: #edf2ee;
  --topbar-bg: #104637;
  --topbar-text: #e0f0e8;
  --footer-link: #c4f2da;
  --button-bg: #00694b;
  --button-text: #ffffff;
  --button-hover: #104637;
  --hero-bg: #e2f1e8;
  --hero-text: #104637;
  --hero-copy: #304e42;
  --hero-button-bg: #00694b;
  --hero-button-text: #ffffff;
  --hero-button-hover: #104637;
  --hero-control-border: #638575;
  --hero-ghost-hover: #cfe7d9;
  --quick-bg: #ffffff;
  --quick-hover: #e2f1e8;
  --quick-title: #104637;
  --quick-copy: #465e55;
  --fee-bg: #ffffff;
  --hero-radius: 18px;
  --radius: 12px;
  --control-radius: 8px;
  --badge-radius: 11px;
  --tag-radius: 999px;
  --max-width: 1216px;
}

/* Portal layout, navigation and reusable news slots. */
[hidden] { display: none !important; }
html { scroll-padding-top: 16px; }
body {
  font-family: var(--body-font), "Leelawadee UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
h1, h2, h3, .brand-title, .brand-badge, .quick strong, .fee strong {
  font-family: var(--display-font), var(--body-font), "Leelawadee UI", Tahoma, sans-serif;
}
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--bma-green); outline-offset: 4px; }
a, button { -webkit-tap-highlight-color: transparent; }
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  padding: 5px 20px;
  font-size: 14px;
}
.topbar-inner { flex-wrap: nowrap; }
.topbar-inner > :last-child { white-space: nowrap; }
.site-header {
  position: relative;
  padding: 13px max(20px, calc((100% - var(--max-width)) / 2));
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.brand { min-width: 0; gap: 10px; }
.brand-badge {
  flex: 0 0 43px;
  height: 43px;
  border-radius: var(--badge-radius);
  background: var(--button-bg);
  color: var(--button-text);
}
.brand-title { font-size: 23px; font-weight: var(--display-weight); line-height: 1.35; }
.brand-sub { margin-top: 1px; font-size: 12px; line-height: 1.4; }
.nav-pills {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  flex-wrap: nowrap;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.nav-pill {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: var(--control-radius);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
}
.nav-pill:hover, .nav-pill.active {
  background: var(--bma-green-light);
  color: var(--bma-green-dark);
}
.nav-pill.active { box-shadow: inset 0 -3px var(--bma-green); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  min-height: 44px;
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--bma-green-dark);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.nav-icon {
  width: 16px;
  height: 12px;
  border-block: 2px solid currentColor;
  position: relative;
}
.nav-icon::after {
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  border-top: 2px solid currentColor;
}
.nav-toggle[aria-expanded="true"] .nav-icon { border-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-icon::after {
  background: currentColor;
  border: 0;
  height: 2px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-icon::before {
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  border-top: 2px solid currentColor;
  transform: rotate(-45deg);
}
.nav-ready .nav-toggle { display: flex; }
.nav-ready .nav-toggle[aria-expanded="false"] + .nav-pills { display: none; }
.container {
  box-sizing: content-box;
  max-width: var(--max-width);
  padding-inline: 20px;
  margin-block: 24px 52px;
}
.home-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  background: var(--hero-bg);
  border: 0;
  border-radius: var(--hero-radius);
  padding: 0;
  box-shadow: none;
  overflow: clip;
  margin-bottom: 22px;
}
.home-hero > div { padding: 25px 20px 22px; }
.home-hero h1 {
  margin: 0 0 11px;
  max-width: 13ch;
  font-size: clamp(35px, 5.25vw, 68px);
  line-height: 1.14;
  font-weight: var(--display-weight);
  color: var(--hero-text);
  overflow-wrap: normal;
}
.home-hero p { max-width: 41ch; color: var(--hero-copy); }
.home-hero .card-actions { margin-top: 11px; }
.home-hero img {
  border-radius: 0;
  width: 100%;
  height: clamp(185px, 51vw, 255px);
  object-position: center 46%;
}
.btn-read, .btn-ghost, .btn-copy {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--control-radius);
  font-size: 16px;
  line-height: 1.4;
  padding: 9px 14px;
}
.btn-read { background: var(--button-bg); color: var(--button-text); }
.btn-read:hover { background: var(--button-hover); color: var(--button-text); }
.home-hero .btn-read {
  background: var(--hero-button-bg);
  color: var(--hero-button-text);
}
.home-hero .btn-read:hover { background: var(--hero-button-hover); }
.home-hero .card-actions .btn-ghost {
  padding: 9px 12px;
  font-size: 16px;
  color: var(--hero-text);
  border-color: var(--hero-control-border);
}
.home-hero .btn-ghost:hover { background: var(--hero-ghost-hover); }
.home-hero :focus-visible { outline-color: var(--hero-text); }
.quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 34px; }
.quick {
  position: relative;
  min-height: 103px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--quick-bg);
  color: var(--quick-title);
  gap: 3px;
}
.quick strong {
  font-size: 21px;
  font-weight: var(--display-weight);
  line-height: 1.35;
}
.quick span { font-size: 15px; line-height: 1.5; color: var(--quick-copy); }
.quick:hover { background: var(--quick-hover); }
.page-hero { margin: 0 0 20px; }
.page-hero h1 {
  font-size: clamp(31px, 4.6vw, 56px);
  line-height: 1.2;
  font-weight: var(--display-weight);
  margin: 4px 0 8px;
  overflow-wrap: normal;
}
.page-hero p { max-width: 68ch; }
.page-hero .cat-badge { margin-bottom: 4px; }
.section-head {
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 0 12px;
  column-gap: 10px;
}
.section-head h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
  font-weight: var(--display-weight);
}
.section-head a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.card-grid, .news-grid, .grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.news-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 244px), 1fr)); }
.center-card, .news-card, .info-card, .org-unit, .figure-box, .sources-box {
  border-radius: var(--radius);
}
.center-card, .info-card { padding: 17px; }
.center-card, .info-card { scroll-margin-top: 16px; }
.center-card h3, .info-card h3 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: var(--display-weight);
  color: var(--bma-green-dark);
}
.center-card h3 { margin-block: 3px 5px; }
.center-card .card-actions { padding-top: 12px; }
.center-card .v a, .article-content p a, .sources-box a { text-decoration: underline; text-underline-offset: 3px; }
.kv { grid-template-columns: minmax(64px, .32fr) minmax(0, 1fr); font-size: 16px; line-height: 1.55; }
.kv .k { overflow-wrap: normal; }
.info-card .kv { grid-template-columns: minmax(76px, .48fr) minmax(0, 1fr); }
.cat-badge, .chip { border-radius: var(--tag-radius); font-size: 14px; line-height: 1.5; }
.chip { padding: 3px 9px; }
.chip-soft { background: var(--soft-bg); color: var(--text-muted); }
.chip-warn { background: #fef3c7; color: #78350f; font-weight: 700; max-width: 100%; }
.center-note, .caution-box {
  background: #fff4d7;
  color: #722f07;
  border-color: #a65316;
  font-size: 16px;
}
.center-note { border-radius: var(--control-radius); }
.center-note strong { display: block; }
.fee-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fee {
  padding: 8px 11px;
  border-radius: var(--radius);
  background: var(--fee-bg);
}
.fee strong {
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1.4;
  font-weight: var(--display-weight);
}
.fee span { font-size: 15px; line-height: 1.5; }
.small-muted { margin-block: 12px 19px; }
.small-muted, .info-card p, .hero-excerpt, .plain-ol, .org-unit span { font-size: 16px; }
.search-row { gap: 9px; margin-bottom: 20px; }
.search-input {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  padding: 10px 12px;
  min-height: 48px;
  font-size: 17px;
}
.search-input::placeholder { color: var(--text-muted); opacity: 1; }
.zone-filter { gap: 6px; }
.zone-btn {
  min-height: 44px;
  padding: 5px 10px;
  border-radius: var(--control-radius);
  background: var(--surface);
  border-color: var(--control-border);
  color: var(--text);
  font-size: 16px;
}
.zone-btn.active, .zone-btn:hover {
  background: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
}
.jump-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; }
.news-media img { height: auto; aspect-ratio: 16 / 9; }
.news-body { padding: 14px; gap: 8px; }
.news-body h3 { font-size: 19px; line-height: 1.43; }
.meta-row, .news-body .meta-row, .figure-caption, .sources-box { font-size: 15px; }
.figure-box, .figure-caption, .sources-box, table.rule-table tr:nth-child(even) { background: var(--soft-bg); }
.takeaway-box { background: var(--bma-green-light); border-color: var(--bma-green); }
.takeaway-box h3 { color: var(--bma-green-dark); }
footer.site-footer { background: var(--topbar-bg); color: var(--topbar-text); font-size: 16px; }
.footer-links a { color: var(--footer-link); }
.site-footer :focus-visible, .site-header .nav-toggle:focus-visible { outline-color: currentColor; }

.urgent-banner {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-inline-start: 4px solid #a65316;
  border-radius: var(--control-radius);
  background: #fff4d7;
  color: #722f07;
  font-size: 16px;
  line-height: 1.45;
}
.urgent-banner a, .urgent-banner :focus-visible, .center-note :focus-visible { color: inherit; outline-color: currentColor; }
.urgent-banner a, .related-news a { text-decoration: underline; text-underline-offset: 3px; }
.urgent-banner a { display: inline-flex; align-items: center; min-height: 36px; }
.related-news {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
.related-news h4 { font-size: 16px; line-height: 1.45; }
.related-news ul { list-style: none; }
.related-news li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 9px; }
.related-news li + li { margin-top: 3px; }
.related-news a { padding-block: 3px; font-weight: 600; }
.related-news time { color: var(--text-muted); font-size: 14px; white-space: nowrap; }
.news-filters { margin-bottom: 20px; }
.prototype-example { display: none; }
.prototype-example:target { display: block; }

@media (max-width: 619px) {
  .topbar { display: none; }
  .urgent-banner { align-items: center; }
}
@media (max-width: 379px) {
  .container { padding-inline: 14px; }
  .site-header { padding-inline: 14px; }
  .brand-badge { flex-basis: 35px; height: 35px; font-size: 16px; }
  .brand-title { font-size: 21px; }
  .brand-sub { font-size: 11px; }
  .nav-toggle { padding-inline: 8px; }
  .home-hero > div { padding-inline: 15px; }
  .home-hero h1 { font-size: 32px; }
}
@media (min-width: 680px) {
  .container { margin-top: 32px; }
  .home-hero { grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); }
  .home-hero > div { align-self: center; padding: clamp(26px, 4vw, 56px); }
  .home-hero img { height: 100%; min-height: 315px; max-height: 570px; }
  .home-hero h1 { font-size: clamp(38px, 4.5vw, 68px); }
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick { padding: 16px; min-height: 110px; }
  .fee-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fee { padding: 12px 15px; }
  .zone-btn { padding-inline: 15px; }
}
@media (min-width: 1050px) {
  html { scroll-padding-top: 82px; }
  .header-inner { gap: 16px; }
  .site-header { position: sticky; top: 0; }
  .nav-ready .nav-toggle { display: none; }
  .nav-pills, .nav-ready .nav-toggle[aria-expanded] + .nav-pills {
    display: flex;
    grid-column: auto;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
  }
  .nav-pill { white-space: nowrap; }
  .card-grid { gap: 18px; }
  .center-card, .info-card { padding: 20px; }
  .home-hero h1 { max-width: 17ch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}


.home-hero { border: 1px solid #cddfd2; }
.quick { border-top: 3px solid #537c69; }
.fee { border-bottom: 3px solid #b2d2c0; }
.page-hero .cat-badge { color: var(--bma-green-dark); }
@media (min-width: 680px) {
  .home-hero > div { padding-inline: clamp(26px, 3.65vw, 52px) 27px; }
  .home-hero img {
    width: calc(100% - 16px);
    height: calc(100% - 32px);
    align-self: center;
    border-radius: 12px;
  }
}
