/* ============================================================
   ThaiLAW.net — Design System "หอกฎหมาย" (Legal Archive)
   หมึกน้ำเงินเข้ม × ทองราชการ บนพื้นกระดาษอุ่น
   ฟอนต์: Noto Serif Thai (หัวเรื่อง) + Sarabun (ตัวบท/UI)
   ============================================================ */

:root {
  /* พื้นผิว */
  --paper: #faf7f1;
  --surface: #ffffff;
  --surface-2: #f3efe7;
  --line: #e5dfd2;
  --line-strong: #d3cab7;

  /* หมึก */
  --ink: #1c2637;
  --ink-2: #4a5568;
  --ink-3: #8b93a3;

  /* แบรนด์ */
  --navy: #12305e;
  --navy-2: #1d4380;
  --navy-deep: #0b1f3f;
  --gold: #b8892e;
  --gold-2: #d4a94a;
  --gold-soft: #f6edd8;

  /* ความหมาย */
  --amber-bg: #fdf3dd;
  --amber-line: #e6c471;
  --amber-ink: #7a5a10;
  --teal: #0e6e62;
  --teal-soft: #e2f1ee;
  --blue-soft: #e8eef8;
  --red: #a83232;

  --font-serif: 'Noto Serif Thai', 'Sarabun', serif;
  --font-sans: 'Sarabun', -apple-system, sans-serif;

  --shadow-sm: 0 1px 3px rgba(18, 33, 61, .07);
  --shadow-md: 0 4px 16px rgba(18, 33, 61, .09);
  --shadow-lg: 0 12px 40px rgba(18, 33, 61, .14);
  --radius: 12px;
  --radius-sm: 8px;

  --header-h: 60px;
}

html[data-theme="dark"] {
  --paper: #10151f;
  --surface: #1a2130;
  --surface-2: #212a3c;
  --line: #2c3547;
  --line-strong: #3b4557;
  --ink: #e8e6e0;
  --ink-2: #b0b6c2;
  --ink-3: #7c8494;
  --navy: #7ea4dd;
  --navy-2: #9dbcec;
  --navy-deep: #0b1f3f;
  --gold: #d4a94a;
  --gold-2: #e2bd66;
  --gold-soft: #2c2717;
  --amber-bg: #2b2312;
  --amber-line: #6b541f;
  --amber-ink: #e2bd66;
  --teal: #5cc0b2;
  --teal-soft: #14302c;
  --blue-soft: #1c2a42;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-2); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1400px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px;
}

.site-logo {
  display: flex; align-items: center; gap: 9px;
  color: var(--ink); flex-shrink: 0;
}
.logo-mark { width: 28px; height: 28px; color: var(--gold); }
.logo-text {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem;
  letter-spacing: .01em;
}
.logo-text em { font-style: normal; color: var(--gold); }
.logo-tld { font-size: .85rem; font-weight: 400; color: var(--ink-3); }

/* ค้นหา */
.header-search { position: relative; flex: 1; max-width: 620px; margin: 0 auto; }
.search-box { position: relative; display: flex; align-items: center; }
.search-icon {
  position: absolute; left: 13px; width: 17px; height: 17px;
  color: var(--ink-3); pointer-events: none;
}
.search-input {
  width: 100%; height: 40px;
  padding: 0 44px 0 40px;
  font-family: var(--font-sans); font-size: .95rem;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search-input:focus {
  background: var(--surface);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent);
}
.search-input::placeholder { color: var(--ink-3); }
.search-kbd {
  position: absolute; right: 12px;
  font-family: var(--font-sans); font-size: .72rem;
  color: var(--ink-3);
  border: 1px solid var(--line-strong); border-radius: 5px;
  padding: 0 6px; line-height: 1.5;
  background: var(--surface);
}

.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: min(480px, 70vh); overflow-y: auto;
  display: none;
}
.search-results.visible { display: block; }
.sr-group-label {
  padding: 10px 16px 4px; font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
}
.sr-item {
  display: block; padding: 10px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.sr-item:hover, .sr-item.active { background: var(--surface-2); }
.sr-item-title { font-weight: 600; font-size: .92rem; color: var(--ink); }
.sr-item-title mark, .sr-item-snippet mark {
  background: var(--gold-soft); color: var(--amber-ink);
  border-radius: 3px; padding: 0 2px;
}
.sr-item-snippet { font-size: .82rem; color: var(--ink-2); line-height: 1.55; margin-top: 2px; }
.sr-item-law { font-size: .75rem; color: var(--gold); font-weight: 600; margin-top: 2px; }
.sr-empty { padding: 20px; text-align: center; color: var(--ink-3); font-size: .9rem; }

/* ปุ่มธีม */
.theme-toggle {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink-2);
  transition: background .15s;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
html:not([data-theme="dark"]) .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(212, 169, 74, .16), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(29, 67, 128, .35), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, #14345f 70%, #1a3f6f 100%);
  color: #eef2f8;
  padding: 64px 20px 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* ลายเส้นตราชั่งจางๆ */
  content: '';
  position: absolute; right: -40px; bottom: -60px;
  width: 380px; height: 380px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg stroke='%23d4a94a' stroke-width='.6' fill='none' opacity='.5'%3E%3Cpath d='M16 3v26M8 29h16'/%3E%3Cpath d='M16 6L5 10h22L16 6z'/%3E%3Cpath d='M5 10l-3 8a5 5 0 0 0 10 0l-3-8M27 10l-3 8a5 5 0 0 0 10 0l-3-8'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .18;
  pointer-events: none;
}
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; position: relative; }
.hero-eyebrow {
  display: inline-block;
  font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  color: var(--gold-2);
  border: 1px solid rgba(212, 169, 74, .4); border-radius: 99px;
  padding: 3px 16px; margin-bottom: 18px;
  background: rgba(212, 169, 74, .08);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  font-weight: 700; line-height: 1.35;
}
.hero h1 span { color: var(--gold-2); }
.hero-sub {
  max-width: 620px; margin: 16px auto 0;
  font-size: 1.02rem; font-weight: 300; line-height: 1.8;
  color: #c4cedd;
}

.hero-stats {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 34px; flex-wrap: wrap;
}
.stat {
  min-width: 118px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 12px 20px 10px;
  backdrop-filter: blur(4px);
}
.stat strong {
  display: block;
  font-family: var(--font-serif); font-size: 1.65rem; font-weight: 700;
  color: var(--gold-2); line-height: 1.2;
}
.stat span { font-size: .8rem; color: #b6c2d4; }

/* ============================================================
   Home — ผังกฎหมาย (law tree)
   ============================================================ */
.law-directory { max-width: 980px; margin: 0 auto; padding: 48px 20px 8px; }

.section-heading {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
  margin-bottom: 22px;
  display: flex; align-items: baseline; gap: 12px;
}
.heading-note { font-family: var(--font-sans); font-size: .82rem; font-weight: 400; color: var(--ink-3); }

.law-tree-loading { color: var(--ink-3); padding: 30px 0; }

.law-family { margin-bottom: 26px; }

.law-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
.law-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.law-card.parent { border-left: 4px solid var(--navy); }
.law-card.child { border-left: 4px solid var(--teal); }
.law-card.amendment { border-left: 4px solid var(--gold); padding: 14px 20px; }

.law-children { margin: 0 0 0 26px; padding-left: 22px; border-left: 2px dashed var(--line-strong); }
.law-children .law-card { margin-top: 14px; }
.law-child-connector {
  font-size: .75rem; color: var(--ink-3); margin: 14px 0 -6px;
  display: flex; align-items: center; gap: 6px;
}

.law-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.law-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  border-radius: 6px; padding: 2px 10px;
}
.badge-act { background: var(--blue-soft); color: var(--navy-2); }
.badge-reg { background: var(--teal-soft); color: var(--teal); }
.badge-amend { background: var(--gold-soft); color: var(--amber-ink); }
.law-year { font-size: .8rem; color: var(--ink-3); }

.law-card-name {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.06rem;
  color: var(--ink); line-height: 1.55;
}
.law-card.amendment .law-card-name { font-size: .95rem; }
.law-card-meta {
  display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap;
  font-size: .82rem; color: var(--ink-2);
}
.law-card-meta .m { display: inline-flex; align-items: center; gap: 5px; }

/* ============================================================
   Home — features
   ============================================================ */
.features {
  max-width: 980px; margin: 0 auto;
  padding: 34px 20px 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 8px; }
.feature h3 { font-family: var(--font-serif); font-size: 1.02rem; margin-bottom: 6px; }
.feature p { font-size: .87rem; color: var(--ink-2); line-height: 1.7; }

/* ============================================================
   Reader — layout
   ============================================================ */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  z-index: 110;
  transition: width .1s linear;
}

.breadcrumb {
  max-width: 1400px; margin: 0 auto;
  padding: 14px 20px 0;
  font-size: .85rem; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--line-strong); }

.reader-layout {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 18px 20px 60px;
  align-items: start;
}

/* ── สารบัญ (TOC) ── */
.toc-panel {
  position: sticky; top: calc(var(--header-h) + 14px);
  max-height: calc(100vh - var(--header-h) - 28px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.toc-filter { padding: 12px; border-bottom: 1px solid var(--line); }
.toc-filter input {
  width: 100%; padding: 7px 12px;
  font-family: var(--font-sans); font-size: .85rem;
  color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 7px; outline: none;
}
.toc-filter input:focus { border-color: var(--gold); }
.toc-list { overflow-y: auto; padding: 8px 0 14px; flex: 1; }

.toc-chapter {
  padding: 10px 16px 4px;
  font-size: .78rem; font-weight: 700; color: var(--navy);
  letter-spacing: .01em;
}
html[data-theme="dark"] .toc-chapter { color: var(--navy-2); }
.toc-chapter small { display: block; font-weight: 500; color: var(--ink-3); font-size: .73rem; }
.toc-item {
  display: flex; align-items: baseline; gap: 8px;
  padding: 4px 16px 4px 22px;
  font-size: .84rem; color: var(--ink-2);
  cursor: pointer;
  border-left: 3px solid transparent;
  line-height: 1.5;
}
.toc-item:hover { background: var(--surface-2); color: var(--ink); }
.toc-item.active {
  border-left-color: var(--gold);
  background: var(--gold-soft);
  color: var(--amber-ink); font-weight: 600;
}
.toc-item .toc-num { font-weight: 600; white-space: nowrap; }
.toc-item .toc-flag { font-size: .7rem; }

/* ── ตัวบท ── */
.law-content { max-width: 780px; min-width: 0; }

.law-header {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  padding: 26px 30px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.law-header .law-card-top { margin-bottom: 10px; }
.law-header h1 {
  font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700;
  line-height: 1.55; margin-bottom: 10px;
}
.law-source { font-size: .82rem; color: var(--ink-3); }
.law-desc { font-size: .9rem; color: var(--ink-2); margin-top: 6px; }

.law-preamble {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: .92rem; color: var(--ink-2); line-height: 1.85;
  margin-bottom: 26px;
  border-left: 3px solid var(--line-strong);
}
.law-preamble p { margin-bottom: .7em; }
.law-preamble p:last-child { margin-bottom: 0; }

.chapter-heading {
  text-align: center;
  margin: 40px 0 8px;
  font-family: var(--font-serif);
}
.chapter-heading .ch-level {
  font-size: .95rem; font-weight: 600; color: var(--gold);
  letter-spacing: .05em;
}
.chapter-heading .ch-title {
  font-size: 1.2rem; font-weight: 700; color: var(--ink);
  margin-top: 2px;
}
.chapter-heading::after {
  content: '';
  display: block; width: 70px; height: 2px;
  background: var(--gold-2); opacity: .5;
  margin: 12px auto 0;
}

.section-block {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 26px;
  margin: 14px 0;
  scroll-margin-top: calc(var(--header-h) + 20px);
  transition: box-shadow .2s, border-color .2s, background .6s;
  position: relative;
}
.section-block:hover { border-color: var(--line-strong); }
.section-block.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent);
}
.section-block.flash { background: var(--gold-soft); }

.section-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.section-num {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.02rem;
  color: var(--navy);
  background: var(--blue-soft);
  border-radius: 7px; padding: 1px 12px;
  white-space: nowrap;
}
html[data-theme="dark"] .section-num { color: var(--navy-2); }
.section-tools { margin-left: auto; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.section-block:hover .section-tools, .section-block.selected .section-tools { opacity: 1; }
.section-tools button {
  font-size: .72rem; color: var(--ink-3);
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 9px;
}
.section-tools button:hover { color: var(--gold); border-color: var(--gold); }

.amendment-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: .85rem; color: var(--amber-ink); line-height: 1.6;
}
.amendment-banner .ab-icon { flex-shrink: 0; }
.amendment-banner a { color: inherit; font-weight: 700; text-decoration: underline; }

.section-body { font-size: .98rem; line-height: 1.95; }
.section-body p { margin-bottom: .65em; text-align: justify; }
.section-body p:last-child { margin-bottom: 0; }

.law-link {
  color: var(--navy-2);
  border-bottom: 1px dashed color-mix(in srgb, var(--navy-2) 45%, transparent);
  cursor: pointer;
  transition: background .12s;
}
.law-link:hover { background: var(--blue-soft); }
.law-link.cross { color: var(--teal); border-bottom-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.law-link.cross:hover { background: var(--teal-soft); }

.law-postamble {
  margin-top: 30px;
  padding: 18px 22px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--ink-2); line-height: 1.8;
  border-left: 3px solid var(--line-strong);
  white-space: pre-line;
}

/* ── แผงจุดเชื่อมโยง ── */
.relations-panel {
  position: sticky; top: calc(var(--header-h) + 14px);
  max-height: calc(100vh - var(--header-h) - 28px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.relations-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--line);
}
.relations-header h2 { font-family: var(--font-serif); font-size: 1rem; }
.relations-close { display: none; background: none; border: none; font-size: 1rem; color: var(--ink-3); }
.relations-body { overflow-y: auto; padding: 12px 14px 18px; flex: 1; }
.relations-hint { font-size: .84rem; color: var(--ink-3); line-height: 1.7; }
.relations-context {
  font-size: .8rem; color: var(--ink-3); margin-bottom: 10px;
}
.relations-context strong { color: var(--gold); font-family: var(--font-serif); }

.rel-group-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  color: var(--ink-3); text-transform: uppercase;
  margin: 12px 2px 6px;
}
.rel-card {
  display: block;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.rel-card:hover { border-color: var(--gold); transform: translateX(2px); }
.rel-card.amendment { background: var(--amber-bg); border-color: var(--amber-line); }
.rel-card.cross { background: var(--teal-soft); }
.rel-type {
  font-size: .7rem; font-weight: 700;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 5px;
}
.rel-card.amendment .rel-type { color: var(--amber-ink); }
.rel-card.cross .rel-type { color: var(--teal); }
.rel-target { font-weight: 600; font-size: .88rem; color: var(--ink); margin-top: 2px; }
.rel-desc { font-size: .78rem; color: var(--ink-2); line-height: 1.55; margin-top: 3px; }

.relations-fab {
  position: fixed; right: 18px; bottom: 20px; z-index: 90;
  display: none;
  background: var(--navy); color: #fff;
  border: none; border-radius: 99px;
  padding: 12px 20px;
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
}
html[data-theme="dark"] .relations-fab { background: var(--navy-2); color: var(--navy-deep); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 20px;
}
.footer-inner {
  max-width: 980px; margin: 0 auto;
  padding: 34px 20px 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
  font-size: .85rem; color: var(--ink-2);
}
.footer-brand strong { font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink); }
.footer-brand p { margin-top: 6px; line-height: 1.7; }
.footer-note p { line-height: 1.7; }
.disclaimer { color: var(--gold); margin-top: 6px; font-weight: 500; }
.footer-bottom {
  max-width: 980px; margin: 0 auto;
  padding: 14px 20px 26px;
  border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--ink-3);
}
.footer-bottom a { color: var(--ink-2); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1150px) {
  .reader-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .relations-panel {
    position: fixed; right: 0; top: var(--header-h); bottom: 0;
    width: min(360px, 92vw);
    max-height: none;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
    z-index: 95;
  }
  .relations-panel.open { transform: translateX(0); }
  .relations-close { display: block; }
  .relations-fab { display: flex; align-items: center; gap: 6px; }
}

@media (max-width: 820px) {
  .header-inner { gap: 10px; }
  .logo-text { display: none; }
  .search-kbd { display: none; }
  .reader-layout { grid-template-columns: minmax(0, 1fr); padding-top: 10px; }
  .toc-panel {
    position: static; max-height: 260px;
    margin-bottom: 4px;
  }
  .section-block { padding: 16px 18px; }
  .section-body { font-size: .95rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .hero { padding: 44px 16px 40px; }
  .stat { min-width: 100px; padding: 10px 14px 8px; }
  .stat strong { font-size: 1.3rem; }
}

/* ============================================================
   Print — พิมพ์เฉพาะตัวบท สะอาดๆ
   ============================================================ */
@media print {
  .site-header, .toc-panel, .relations-panel, .relations-fab,
  .site-footer, .breadcrumb, .reading-progress, .section-tools { display: none !important; }
  .reader-layout { display: block; padding: 0; }
  .law-content { max-width: none; }
  .section-block { border: none; box-shadow: none; padding: 6px 0; margin: 0; page-break-inside: avoid; }
  body { background: #fff; }
}
