:root {
  --ink: #15232a;
  --muted: #66767c;
  --soft: #eff3f1;
  --paper: #f8faf8;
  --white: #ffffff;
  --line: #dce5e1;
  --teal: #0b6967;
  --teal-dark: #074e50;
  --orange: #ee8357;
  --reader-scale: 1;
  --topbar-height: 78px;
  --library-offset: 0px;
  --jump-offset: 0px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; min-width: 320px; background: var(--paper); }

button, input { font: inherit; }

button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 78px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 248, .88);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--teal); border-radius: 50%; color: var(--teal); font-family: Georgia, serif; font-size: 20px; font-weight: 700; }
.brand strong { display: block; letter-spacing: -.02em; font-size: 17px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.status-dot { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.status-dot i, .live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(238, 131, 87, .12); }
.icon-button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--teal); font-size: 17px; }

.app-shell { width: min(1400px, calc(100% - 48px)); margin: 0 auto; }

.intro-panel { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 300px; padding: 58px clamp(10px, 4vw, 60px) 50px; overflow: hidden; }
.intro-panel::before { position: absolute; top: 50%; right: 11%; width: 270px; height: 270px; border-radius: 50%; background: radial-gradient(circle, rgba(11, 105, 103, .055), transparent 68%); content: ""; transform: translateY(-50%); pointer-events: none; }
.intro-panel::after { position: absolute; right: 0; bottom: 25px; left: 0; height: 1px; background: var(--line); content: ""; }
.intro-heading { position: relative; z-index: 1; }
.eyebrow, .section-kicker { margin: 0 0 16px; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(40px, 4.8vw, 62px); font-weight: 400; letter-spacing: -.055em; line-height: 1.06; }
h1 em { color: var(--teal); font-style: normal; }
.intro-side { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 15px; margin-right: clamp(10px, 7vw, 100px); }
.intro-compass { position: relative; flex: 0 0 auto; width: 154px; height: 154px; opacity: .9; }
.compass-ring { position: absolute; inset: 16px; border: 1px solid #b9cdc6; border-radius: 50%; }
.compass-ring::before, .compass-ring::after { position: absolute; inset: 18px; border: 1px solid #cddbd6; border-radius: 50%; content: ""; }
.compass-ring::after { inset: 0; border-style: dashed; opacity: .7; }
.compass-cross, .compass-cross::after { position: absolute; top: 18px; bottom: 18px; left: 50%; width: 1px; background: #bed1ca; content: ""; }
.compass-cross::after { top: 50%; right: -60px; bottom: auto; left: -60px; width: 121px; height: 1px; }
.compass-needle { position: absolute; top: 38px; left: calc(50% - 6px); width: 12px; height: 64px; background: linear-gradient(145deg, transparent 47%, var(--orange) 48%, var(--orange) 52%, transparent 53%); transform: rotate(35deg); }
.compass-label { position: absolute; color: var(--teal); font-family: Georgia, serif; font-size: 11px; font-weight: 700; }
.compass-n { top: 0; left: 50%; transform: translateX(-50%); }.compass-e { top: 50%; right: 0; transform: translateY(-50%); }.compass-s { bottom: 0; left: 50%; transform: translateX(-50%); }.compass-w { top: 50%; left: 0; transform: translateY(-50%); }
.intro-note { display: flex; gap: 7px; margin: 0; color: #84958f; font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.intro-note span { padding: 4px 7px; border: 1px solid #d5e2dd; border-radius: 20px; background: rgba(255, 255, 255, .55); }

.workspace { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 700px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 15px 50px rgba(27, 55, 53, .07); }
.sidebar { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #f3f7f4; border-radius: 12px 0 0 12px; }
.sidebar-inner { position: sticky; top: var(--topbar-height); z-index: 6; display: flex; flex-direction: column; max-height: calc(100vh - var(--topbar-height)); overflow: auto; overscroll-behavior: contain; padding: 30px 22px 20px; background: #f3f7f4; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: flex-start; margin: 0 8px 25px; }
.sidebar-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.04em; }.sidebar-heading .section-kicker { margin-bottom: 7px; }
.count-pill { min-width: 27px; padding: 5px 8px; border-radius: 20px; background: #dcebe5; color: var(--teal); font-size: 11px; text-align: center; }
.search-box { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--muted); }
.search-box span { font-size: 22px; line-height: 1; transform: rotate(-20deg); }.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }.search-box kbd { padding: 3px 5px; border: 1px solid var(--line); border-radius: 3px; color: #91a09d; font-size: 9px; }
.regulation-list { display: flex; flex: 1; flex-direction: column; gap: 10px; margin-top: 20px; }
.regulation-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 100%; padding: 16px 34px 15px 15px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; transition: .2s ease; }.regulation-card:hover, .regulation-card.is-active { border-color: #bdd9ce; background: var(--white); box-shadow: 0 6px 15px rgba(24, 74, 64, .05); }.regulation-card.is-active::before { position: absolute; top: 15px; bottom: 15px; left: -1px; width: 3px; border-radius: 4px; background: var(--orange); content: ""; }.regulation-card strong { font-size: 13px; line-height: 1.5; }.regulation-code, .regulation-meta { color: var(--teal); font-size: 10px; letter-spacing: .05em; }.regulation-meta { color: var(--muted); font-size: 10px; }.arrow { position: absolute; top: 17px; right: 15px; color: var(--orange); font-size: 16px; }
.sidebar-footer { display: flex; gap: 9px; align-items: flex-start; padding: 18px 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }.mini-icon { display: grid; flex: 0 0 auto; place-items: center; width: 15px; height: 15px; border: 1px solid #9aaca6; border-radius: 50%; font-family: Georgia, serif; font-size: 10px; }

.reader { position: relative; min-width: 0; overflow: visible; border-radius: 0 12px 12px 0; background: var(--white); }.reader-header { padding: 31px clamp(25px, 5vw, 72px) 25px; border-bottom: 1px solid var(--line); }.breadcrumb { display: flex; gap: 10px; margin-bottom: 26px; color: #91a09d; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }.breadcrumb b { color: var(--orange); font-weight: 400; }.reader-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.reader-code { margin-bottom: 8px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .1em; }.reader-code span { display: inline-block; margin-left: 8px; padding: 3px 6px; border-radius: 3px; background: #fff1ea; color: #d46e49; font-size: 9px; font-weight: 500; letter-spacing: .03em; }.reader-title-row h2 { margin-bottom: 14px; font-family: Georgia, "Songti SC", serif; font-size: clamp(27px, 3vw, 38px); font-weight: 400; letter-spacing: -.045em; }.reader-summary { max-width: 680px; margin-bottom: 24px; color: var(--muted); font-size: 13px; line-height: 1.75; }.outline-button { flex: 0 0 auto; padding: 10px 13px; border: 1px solid #bad3ca; border-radius: 5px; background: transparent; color: var(--teal); font-size: 11px; }.outline-button span { margin-left: 7px; color: var(--orange); }.version-strip { display: flex; gap: clamp(26px, 5vw, 70px); padding-top: 20px; border-top: 1px solid var(--line); }.version-strip > div { display: flex; flex-direction: column; gap: 6px; }.strip-label { color: #92a19d; font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }.version-strip strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.reader-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); background: #fcfdfc; }
.reader-main { min-width: 0; background: var(--white); }
.toc { position: sticky; top: calc(var(--topbar-height) + var(--library-offset)); z-index: 5; align-self: start; max-height: calc(100vh - var(--topbar-height) - var(--library-offset)); overflow: auto; overscroll-behavior: contain; padding: 28px 18px 35px 27px; border-right: 1px solid var(--line); background: #fcfdfc; scrollbar-width: thin; scrollbar-color: #b7c9c3 transparent; }
.toc::-webkit-scrollbar { width: 8px; }
.toc::-webkit-scrollbar-thumb { border-radius: 8px; background: #c3d4ce; }.toc-heading { display: flex; justify-content: space-between; margin: 0 0 23px; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: .12em; }.toc-heading span:last-child { color: #9baba6; font-weight: 400; letter-spacing: 0; }.toc-chapter { margin-bottom: 23px; }.chapter-name { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; color: var(--ink); font-size: 11px; font-weight: 700; }.chapter-name span { color: var(--orange); font-size: 10px; }.toc-article { display: block; width: 100%; padding: 7px 5px 7px 18px; border: 0; border-left: 1px solid #d7e3de; background: transparent; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: left; }.toc-article span { display: inline-block; min-width: 31px; color: #9caeaa; }.toc-article:hover, .toc-article.is-active { border-left: 2px solid var(--orange); color: var(--teal); font-weight: 600; }.toc-section { padding-left: 30px; font-size: 9.5px; line-height: 1.6; }
.article-content { position: relative; padding: 26px clamp(25px, 5vw, 80px) 70px; }.article-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; color: #9baaa5; font-size: 10px; }.toolbar-button { padding: 5px 7px; border: 0; background: transparent; color: var(--teal); font-size: 12px; }.chapter-section { max-width: 700px; margin: 0 auto; }.chapter-heading { display: flex; align-items: baseline; gap: 14px; margin: 0 0 29px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }.chapter-heading span { color: var(--orange); font-family: Georgia, serif; font-size: 14px; }.chapter-heading h3 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 21px; font-weight: 400; }.article-block { position: relative; margin-bottom: 38px; padding: 0 0 28px 24px; border-bottom: 1px solid #edf1ef; scroll-margin-top: calc(var(--topbar-height) + var(--library-offset) + var(--jump-offset) + 12px); }.article-block::before { position: absolute; top: 4px; bottom: 28px; left: 0; width: 2px; background: transparent; content: ""; }.article-block.is-focused::before { background: var(--orange); }.article-heading { display: flex; gap: 14px; align-items: baseline; margin-bottom: 15px; }.article-number { color: var(--teal); font-family: Georgia, "Songti SC", serif; font-size: 16px; font-weight: 700; }.article-heading h4 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 650; }.article-block p { margin-bottom: 17px; color: #40545a; font-size: calc(14px * var(--reader-scale)); line-height: 2.05; }.article-actions { display: flex; justify-content: space-between; align-items: center; }.text-link { padding: 0; border: 0; background: transparent; color: var(--teal); font-size: 10px; }.text-link span { margin-left: 4px; color: var(--orange); }.article-anchor { color: #adbab5; font-family: monospace; font-size: 10px; }.reference-panel { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 15px; padding: 11px; border: 1px solid #d8e8e0; border-radius: 5px; background: #f4faf6; }.reference-label { margin-right: 4px; color: #8a9e97; font-size: 10px; }.reference-panel button { padding: 6px 8px; border: 1px solid #c5ddd2; border-radius: 4px; background: white; color: var(--teal); font-size: 10px; }.reference-panel button strong { margin-right: 5px; font-family: Georgia, serif; }
.history-drawer { position: fixed; z-index: 25; top: var(--topbar-height); right: 0; bottom: 0; width: min(340px, 100%); padding: 30px; border-left: 1px solid var(--line); background: var(--white); box-shadow: -16px 0 38px rgba(22, 48, 42, .12); overflow: auto; }.drawer-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }.drawer-header h3 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }.close-button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }.history-item { padding: 17px 0; border-top: 1px solid var(--line); }.history-item > div { display: flex; gap: 8px; align-items: center; }.history-item strong { color: var(--teal); font-family: Georgia, serif; font-size: 18px; }.history-item > span { display: block; margin-top: 5px; color: #93a19c; font-size: 10px; }.history-item p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.current-tag { padding: 3px 6px; border-radius: 3px; background: #e8f4ec; color: #3f8b62; font-size: 9px; }.drawer-note { margin: 22px 0 0; color: #93a19c; font-size: 10px; line-height: 1.6; }
.empty-state, .error-state, .reader-loading { display: grid; place-items: center; min-height: 500px; align-content: center; text-align: center; }.empty-icon { color: var(--orange); font-size: 30px; }.empty-state h2, .error-state h2 { margin: 15px 0 8px; font-family: Georgia, serif; font-weight: 400; }.empty-state p, .error-state p, .reader-loading { color: var(--muted); font-size: 13px; }.error-state { color: #b65d43; }.search-result-heading, .no-results, .error-state { padding: 20px 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }.search-result { display: block; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; text-align: left; text-decoration: none; }.search-result:hover, .search-result.is-active { border-color: #c7ddd4; background: var(--white); }.search-result-kicker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--teal); font-size: 9px; }.search-result-status { padding: 2px 6px; border-radius: 3px; font-size: 9px; letter-spacing: .02em; }.search-result-status.is-verified { background: #e8f4ec; color: #2f7a58; }.search-result-status.is-demo { background: #fff1ea; color: #d46e49; }.search-result strong { display: block; margin: 4px 0; color: var(--ink); font-size: 11px; }.search-result p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }.search-result mark { padding: 0 1px; background: #fff1ea; color: inherit; }.regulation-list:has(.search-result), .regulation-list:has(.search-result-heading), .regulation-list:has(.no-results) { flex-direction: column; }.site-footer { display: flex; justify-content: space-between; width: min(1400px, calc(100% - 48px)); margin: 24px auto; color: #9ca9a5; font-size: 9px; letter-spacing: .1em; }

.content-block { margin: 0 0 10px; color: #40545a; font-size: calc(14px * var(--reader-scale)); line-height: 2.05; }
.content-block .content-block { margin-top: 8px; }
.kind-item { padding-left: 1.25em; }
.kind-subitem { padding-left: 2.5em; }
.kind-detail { padding-left: 1.25em; }
.block-marker { margin-right: .45em; color: var(--teal); font-weight: 650; }
.attachment-heading { margin: 26px 0 12px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.8; overflow-wrap: anywhere; }
.attachment-heading:first-child { margin-top: 0; }
.attachment-subheading { margin: 20px 0 10px; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.8; overflow-wrap: anywhere; }
.article-note { margin: 8px 0 14px; color: #66767c; font-size: calc(13px * var(--reader-scale)); }
.table-wrap { overflow-x: auto; margin: 12px 0 18px; }
.article-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: calc(12px * var(--reader-scale)); }
.article-table th, .article-table td { padding: 7px 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.article-table th { background: #f3f7f4; color: var(--teal); font-weight: 650; }
.article-table.wide-table { min-width: 1050px; }
.wide-table th:first-child, .wide-table td:first-child { min-width: 70px; white-space: nowrap; }
.article-anchor { max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-strip a { color: var(--teal); }
.status-dot.is-official i { background: var(--teal); box-shadow: 0 0 0 3px rgba(11, 105, 103, .12); }
.status-dot.is-verified i { background: #3f8b62; box-shadow: 0 0 0 3px rgba(63, 139, 98, .14); }
.reader-code span.is-verified { background: #e8f4ec; color: #2f7a58; }
.reader-code span.is-demo { background: #fff1ea; color: #d46e49; }
.mobile-jump { display: none; margin: 0 0 22px; }
.mobile-jump span { display: block; margin-bottom: 6px; color: #9baaa5; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.mobile-jump select { width: 100%; max-width: 700px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); }
.version-strip { flex-wrap: wrap; row-gap: 14px; }
.chapter-section { scroll-margin-top: calc(var(--topbar-height) + var(--library-offset) + var(--jump-offset) + 12px); }
.article-ref { border-bottom: 1px dashed var(--teal); color: var(--teal); cursor: help; }
.article-ref:hover, .article-ref:focus { background: rgba(11, 105, 103, .08); outline: none; }
.article-preview { position: fixed; z-index: 30; display: none; flex-direction: column; overflow: hidden; width: min(440px, calc(100vw - 24px)); max-height: min(70vh, 560px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 16px 40px rgba(21, 35, 42, .16); }
.article-preview.is-open { display: flex; }
.article-preview[hidden] { display: none !important; }
.article-preview-main { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.preview-handle { position: absolute; z-index: 4; }
.preview-handle[data-edge="n"] { top: -3px; right: 10px; left: 10px; height: 8px; cursor: ns-resize; }
.preview-handle[data-edge="s"] { right: 10px; bottom: -3px; left: 10px; height: 8px; cursor: ns-resize; }
.preview-handle[data-edge="e"] { top: 10px; right: -3px; bottom: 10px; width: 8px; cursor: ew-resize; }
.preview-handle[data-edge="w"] { top: 10px; bottom: 10px; left: -3px; width: 8px; cursor: ew-resize; }
.preview-handle[data-edge="ne"] { top: -4px; right: -4px; width: 14px; height: 14px; cursor: nesw-resize; }
.preview-handle[data-edge="nw"] { top: -4px; left: -4px; width: 14px; height: 14px; cursor: nwse-resize; }
.preview-handle[data-edge="se"] { right: -4px; bottom: -4px; width: 14px; height: 14px; cursor: nwse-resize; }
.preview-handle[data-edge="sw"] { bottom: -4px; left: -4px; width: 14px; height: 14px; cursor: nesw-resize; }
body.is-preview-resizing { cursor: grabbing; user-select: none; }
.article-preview-header { flex: 0 0 auto; padding: 14px 16px 8px; }
.article-preview-kicker { margin: 0 0 6px; color: var(--teal); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.article-preview-title { margin: 0; color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.4; }
.article-preview-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 8px; color: #40545a; font-size: 13px; line-height: 1.75; -webkit-overflow-scrolling: touch; }
.article-preview-scroll .content-block { margin-bottom: 8px; font-size: 13px; line-height: 1.75; }
.article-preview-note { flex: 0 0 auto; margin: 0; padding: 8px 16px 12px; border-top: 1px solid var(--line); color: #93a19c; font-size: 10px; line-height: 1.5; }

.dark-mode { --ink: #e4eeea; --muted: #a5b5b0; --soft: #192c2d; --paper: #102022; --white: #172a2b; --line: #294344; --teal: #7bc7b5; --teal-dark: #9ddbc9; }.dark-mode .topbar, .dark-mode .sidebar, .dark-mode .sidebar-inner, .dark-mode .toc, .dark-mode .reader-layout { background: #142627; }.dark-mode .workspace, .dark-mode .search-box, .dark-mode .history-drawer, .dark-mode .reference-panel button, .dark-mode .reader-main, .dark-mode .reader { background: var(--white); }.dark-mode .article-block p, .dark-mode .content-block { color: #b4c3bd; }.dark-mode .regulation-card:hover, .dark-mode .regulation-card.is-active, .dark-mode .search-result:hover, .dark-mode .search-result.is-active { background: #203738; }.dark-mode .search-result mark { background: #3a2a22; }.dark-mode .search-result-status.is-verified { background: #1b3431; color: #9ddbc9; }.dark-mode .search-result-status.is-demo { background: #3a2a22; color: #e0a48c; }.dark-mode .reference-panel { background: #1b3431; }.dark-mode .outline-button, .dark-mode .icon-button { color: var(--teal); }.dark-mode .article-table th { background: #1b3431; }.dark-mode .article-preview { box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }.dark-mode .article-preview-scroll, .dark-mode .article-preview-scroll .content-block { color: #b4c3bd; }

@media (max-width: 850px) {
  .intro-panel { min-height: 240px; padding: 45px 12px 35px; }.intro-side { margin-right: 2%; }.intro-compass { transform: scale(.82); }.workspace { grid-template-columns: 1fr; }.sidebar { position: sticky; top: var(--topbar-height); z-index: 6; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; box-shadow: 0 8px 18px rgba(27, 55, 53, .06); }.sidebar-inner { position: static; max-height: none; overflow: visible; padding: 14px 16px 12px; }.regulation-list { flex-direction: row; overflow-x: auto; }.regulation-card { min-width: 215px; }.sidebar-footer { display: none; }.reader { border-radius: 0 0 12px 12px; }.reader-layout { grid-template-columns: 170px minmax(0, 1fr); }.toc { padding-left: 18px; }.site-footer { padding: 0 12px; }
}

@media (max-width: 600px) {
  :root { --topbar-height: 68px; }
  .topbar { padding: 0 18px; }.status-dot { display: inline-flex; align-items: center; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.app-shell, .site-footer { width: calc(100% - 24px); }.intro-panel { min-height: 220px; padding: 38px 6px 32px; }.intro-panel::before { right: -50px; width: 220px; height: 220px; }.intro-panel::after { bottom: 10px; }.intro-side { position: absolute; right: -22px; bottom: 10px; margin: 0; opacity: .28; }.intro-note { display: none; }.reader-header { padding: 24px 20px 20px; }.reader-title-row { display: block; }.outline-button { margin-bottom: 14px; }.version-strip { gap: 18px; }.reader-layout { display: block; }.toc { display: none; }.mobile-jump { position: sticky; top: calc(var(--topbar-height) + var(--library-offset)); z-index: 4; display: block; margin: 0 -20px 22px; padding: 10px 20px 12px; background: var(--white); border-bottom: 1px solid var(--line); }.article-content { padding: 24px 20px 55px; }.article-block { padding-left: 17px; }.article-heading { flex-wrap: wrap; }.article-anchor { max-width: 100%; }.site-footer { display: block; line-height: 2; }.site-footer span { display: block; }.history-drawer { padding: 25px 20px; }
}

/* Official hierarchy and original text share one expandable reading tree. */
.reading-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.reading-controls .outline-button { margin: 0; }
.article-toolbar { flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.reading-hint { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.reading-node { min-width: 0; color: var(--ink); scroll-margin-top: calc(var(--topbar-height) + var(--library-offset) + var(--jump-offset) + 16px); }
.reading-node > summary { display: flex; align-items: baseline; gap: 10px; padding: 16px 0; cursor: pointer; list-style: none; }
.reading-node > summary::-webkit-details-marker { display: none; }
.reading-node > summary:hover { color: var(--teal); }
.reading-node > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.reading-node > summary h3, .reading-node > summary h4 { flex: 1; min-width: 0; margin: 0; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.reading-node > summary h3 { font-size: 20px; font-family: Georgia, "Songti SC", serif; font-weight: 500; }
.fold-icon { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 24px; height: 24px; align-self: flex-start; margin-top: 3px; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); font-size: 17px; }
.fold-icon::before { content: '+'; }
.reading-node[open] > summary .fold-icon::before { content: '−'; }
.fold-label { flex-shrink: 0; color: var(--teal); font-size: 12px; }
.article-topic-label { flex: 0 1 auto; max-width: 150px; padding: 3px 6px; border-radius: 3px; background: #eff3f1; color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.reading-node:not([open]) > summary .when-open, .reading-node[open] > summary .when-closed { display: none; }
.reading-children { margin-left: 12px; padding-left: 18px; border-left: 1px solid var(--line); }
.reading-node.chapter-section { margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.reading-node.article-block { margin: 0 0 6px; padding: 0; border-bottom: 1px solid var(--line); }
.reading-node.article-block::before { left: -19px; bottom: 6px; }
.article-body { padding: 4px 0 22px 34px; }
@media (max-width: 600px) {
  .reading-children { margin-left: 4px; padding-left: 10px; }
  .reading-node > summary { gap: 8px; }
  .reading-node > summary h3 { font-size: 18px; }
  .reading-node > summary h4 { font-size: 15px; }
  .article-body { padding-left: 0; }
  .reading-node.article-block::before { left: -11px; }
}

/* Collapse the regulation library into a small, persistent reopen rail. */
.library-content { display: flex; flex-direction: column; min-width: 0; }
.library-content[hidden] { display: none; }
.library-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; align-self: flex-end; margin: -14px 0 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--teal); font: inherit; font-size: 12px; cursor: pointer; }
.library-toggle-icon { font-size: 20px; line-height: 1; }
.library-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.workspace.is-library-collapsed { grid-template-columns: 48px minmax(0, 1fr); }
.is-library-collapsed .sidebar-inner { padding: 16px 7px; }
.is-library-collapsed .library-toggle { flex-direction: column; align-self: center; margin: 0; padding: 8px 5px; }
.is-library-collapsed .library-toggle-label { writing-mode: vertical-rl; letter-spacing: .15em; }
@media (min-width: 851px) {
  .is-library-collapsed .reading-node.chapter-section { max-width: none; }
}
@media (max-width: 850px) {
  .library-toggle { margin-top: 0; margin-bottom: 10px; }
  .workspace.is-library-collapsed { grid-template-columns: minmax(0, 1fr); }
  .is-library-collapsed .sidebar-inner { padding: 8px 16px; }
  .is-library-collapsed .library-toggle { flex-direction: row; align-self: flex-start; padding: 6px 8px; }
  .is-library-collapsed .library-toggle-label { writing-mode: horizontal-tb; letter-spacing: normal; }
}

.official-figure { margin: 1.2rem 0; }
.official-figure img { display: block; max-width: 100%; height: auto; background: white; }
