:root {
  --navy-950: #0a1d35;
  --navy-900: #102a4b;
  --navy-800: #17365d;
  --navy-700: #214b78;
  --navy-600: #2b6095;
  --blue-100: #eaf1f8;
  --blue-50: #f5f8fb;
  --paper: #fffefa;
  --ivory: #f7f4ec;
  --red-700: #9f2e2e;
  --red-600: #b53a36;
  --red-100: #f8e8e6;
  --gold-600: #a27a31;
  --gold-300: #d5b77d;
  --ink: #17212d;
  --ink-soft: #465466;
  --muted: #6c7886;
  --line: #d7dee6;
  --line-strong: #bbc6d2;
  --success: #237255;
  --warning: #945c16;
  --white: #fff;
  --shadow-sm: 0 2px 8px rgba(10, 29, 53, .08);
  --shadow-md: 0 12px 32px rgba(10, 29, 53, .13);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --container: 1240px;
  --base-font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f2f4f7;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #e0a433;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 50%;
  padding: 10px 22px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: var(--radius-sm);
  transform: translate(-50%, -150%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.site-container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.government-bar {
  color: #dbe6f1;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: .76rem;
}

.government-bar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.government-bar p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.government-mark {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--navy-950);
  background: #dbe6f1;
  border-radius: 50%;
  font-size: .55rem;
  font-weight: 800;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.utility-links > * {
  min-height: 25px;
  padding: 3px 10px;
  color: inherit;
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.utility-links a:hover,
.utility-links a:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: .72rem;
}

.site-header {
  position: relative;
  z-index: 100;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--navy-800), #143253);
  box-shadow: 0 2px 0 rgba(8, 31, 55, .22);
}

.masthead {
  min-height: 90px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 auto;
}

.brand__seal {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 5px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(213, 183, 125, .8);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}

.brand__seal img {
  width: 47px;
  height: 47px;
  object-fit: contain;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__copy strong {
  letter-spacing: -.05em;
  font-family: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  font-size: 1.48rem;
}

.brand__copy span {
  margin-top: 6px;
  color: #bfcde0;
  letter-spacing: .13em;
  font-family: Georgia, serif;
  font-size: .58rem;
}

.primary-nav {
  display: flex;
  align-items: stretch;
}

.primary-nav a {
  position: relative;
  min-width: 116px;
  display: grid;
  place-items: center;
  padding: 10px 17px;
  color: #dce7f3;
  font-weight: 650;
  letter-spacing: -.02em;
}

.primary-nav a::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 4px;
  content: "";
  background: var(--gold-300);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--white);
  background: rgba(5, 22, 40, .22);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.mobile-menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-self: center;
  place-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
}

.mobile-menu-button span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

#main-content {
  min-height: 62vh;
}

.initial-loader,
.page-loader {
  min-height: 420px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
}

.loader {
  width: 32px;
  height: 32px;
  display: inline-block;
  border: 3px solid var(--line);
  border-top-color: var(--navy-700);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 24%, rgba(213, 183, 125, .22), transparent 24%),
    radial-gradient(circle at 14% 90%, rgba(112, 157, 202, .2), transparent 23%),
    linear-gradient(135deg, #17375e 0%, #0f2847 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .14;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.25) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.25) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.25) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.25) 87.5%);
  background-size: 48px 84px;
}

.hero__inner {
  position: relative;
  min-height: 352px;
  display: grid;
  place-content: center;
  padding-block: 54px 62px;
  text-align: center;
}

.hero__kicker {
  margin: 0 0 9px;
  color: #dbc38f;
  letter-spacing: .16em;
  font-size: .77rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  letter-spacing: -.055em;
  font-family: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
}

.hero__description {
  margin: 13px 0 28px;
  color: #d5e0ec;
  font-size: 1rem;
}

.global-search {
  width: min(760px, 100%);
  margin-inline: auto;
}

.search-box {
  display: grid;
  grid-template-columns: 142px 1fr 66px;
  min-height: 64px;
  padding: 5px;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 5px;
  box-shadow: 0 12px 30px rgba(1, 15, 31, .28);
}

.search-box select,
.search-box input {
  min-width: 0;
  color: var(--ink);
  border: 0;
  background: transparent;
}

.search-box select {
  padding: 0 17px;
  border-right: 1px solid var(--line);
  font-size: .91rem;
}

.search-box input {
  width: 100%;
  padding: 0 20px;
  outline: 0;
  font-size: 1.04rem;
}

.search-box input::placeholder {
  color: #8995a2;
}

.search-box button {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red-700);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}

.search-box button:hover {
  background: #842525;
}

.search-box svg {
  width: 24px;
  height: 24px;
}

.hero__popular {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 16px;
  font-size: .8rem;
}

.hero__popular strong {
  color: #d8bd83;
}

.hero__popular button {
  padding: 0;
  color: #cfdae6;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(207, 218, 230, .4);
  cursor: pointer;
}

.hero__popular button:hover {
  color: var(--white);
}

.home-content {
  padding-block: 42px 66px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}

.service-card {
  position: relative;
  min-height: 144px;
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 25px 23px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #dbe1e8;
  border-top: 3px solid var(--navy-700);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.service-card:nth-child(2) { border-top-color: var(--red-600); }
.service-card:nth-child(3) { border-top-color: var(--gold-600); }
.service-card:nth-child(4) { border-top-color: var(--success); }

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  color: var(--navy-700);
  background: var(--blue-100);
  border-radius: 50%;
}

.service-card:nth-child(2) .service-card__icon {
  color: var(--red-700);
  background: var(--red-100);
}

.service-card:nth-child(3) .service-card__icon {
  color: #826224;
  background: #f7efde;
}

.service-card:nth-child(4) .service-card__icon {
  color: var(--success);
  background: #e4f2ed;
}

.service-card__icon svg {
  width: 23px;
  height: 23px;
}

.service-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-900);
  font-size: 1.02rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.55;
}

.home-row {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 24px;
  margin-top: 34px;
}

.content-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 21px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  letter-spacing: -.04em;
  font-size: 1.08rem;
}

.panel-head h2::before,
.panel-head h3::before {
  display: inline-block;
  width: 4px;
  height: 16px;
  margin: 0 9px -2px 0;
  content: "";
  background: var(--red-600);
}

.link-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  color: var(--navy-700);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
}

.link-button:hover,
.ghost-button:hover {
  background: var(--blue-50);
  border-color: var(--navy-600);
}

.law-compact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.law-compact-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  padding: 17px 21px;
  border-bottom: 1px solid #e8ecf0;
}

.law-compact-item:last-child {
  border-bottom: 0;
}

.law-compact-item button {
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.law-compact-item button:hover strong {
  color: var(--red-700);
  text-decoration: underline;
}

.law-compact-item strong {
  display: block;
  color: var(--navy-900);
  letter-spacing: -.03em;
  font-size: .95rem;
}

.law-compact-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .76rem;
}

.law-compact-item time {
  color: var(--muted);
  font-size: .73rem;
}

.archive-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 21px 21px;
}

.summary-stat {
  padding: 18px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.summary-stat:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.summary-stat:nth-last-child(-n+2) {
  border-bottom: 0;
}

.summary-stat strong {
  display: block;
  color: var(--navy-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.2;
}

.summary-stat span {
  color: var(--muted);
  font-size: .74rem;
}

.home-note {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 18px;
  color: #4f5d6d;
  background: #edf2f7;
  border-left: 4px solid var(--navy-600);
  font-size: .79rem;
}

.home-note svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--navy-600);
}

.page-banner {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--navy-900);
  border-bottom: 3px solid var(--gold-300);
}

.page-banner__inner {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 23px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 8px;
  color: #bfcddd;
  font-size: .73rem;
}

.breadcrumbs a:hover {
  color: var(--white);
  text-decoration: underline;
}

.page-banner h1 {
  margin: 0;
  letter-spacing: -.045em;
  font-family: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.page-banner__meta {
  margin: 6px 0 0;
  color: #ccd8e4;
  font-size: .78rem;
}

.page-banner__symbol {
  width: 70px;
  height: 70px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
}

.page-banner__symbol svg {
  width: 35px;
  height: 35px;
}

.search-page,
.detail-page,
.compare-page {
  padding-block: 31px 70px;
}

.search-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 23px;
  align-items: start;
}

.search-sidebar {
  position: sticky;
  top: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.filter-title {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  color: var(--white);
  background: var(--navy-800);
}

.filter-title h2 {
  margin: 0;
  font-size: 1rem;
}

.filter-reset {
  padding: 3px;
  color: #dce8f4;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.35);
  cursor: pointer;
  font-size: .7rem;
}

.filter-reset:hover {
  color: var(--white);
}

.filter-section {
  padding: 17px;
  border-bottom: 1px solid var(--line);
}

.filter-section:last-of-type {
  border-bottom: 0;
}

.filter-section legend,
.filter-label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  color: var(--navy-900);
  font-size: .79rem;
  font-weight: 700;
}

.filter-section fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: .78rem;
}

.check-label input,
.radio-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--navy-700);
}

.date-range {
  display: grid;
  gap: 7px;
}

.date-range input,
.filter-select,
.filter-text {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: .76rem;
}

.filter-label--spaced {
  margin-top: 13px;
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 15px 17px 18px;
  background: var(--blue-50);
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  color: var(--white);
  background: var(--navy-700);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .81rem;
  font-weight: 700;
}

.primary-button:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.secondary-button {
  color: var(--navy-800);
  background: var(--white);
  border-color: var(--line-strong);
}

.secondary-button:hover {
  background: var(--blue-50);
  border-color: var(--navy-600);
}

.danger-button {
  background: var(--red-700);
  border-color: var(--red-700);
}

.danger-button:hover {
  background: #812323;
}

.mobile-filter-toggle {
  display: none;
}

.result-search {
  padding: 18px;
  background: #e8eef5;
  border: 1px solid #ccd6e1;
  border-radius: var(--radius-sm);
}

.result-search form {
  display: grid;
  grid-template-columns: 120px 1fr 88px;
  min-height: 48px;
  background: var(--white);
  border: 2px solid var(--navy-700);
}

.result-search select,
.result-search input {
  min-width: 0;
  padding-inline: 13px;
  border: 0;
  background: transparent;
}

.result-search select {
  border-right: 1px solid var(--line);
  font-size: .79rem;
}

.result-search input {
  outline: 0;
}

.result-search button {
  color: var(--white);
  background: var(--navy-700);
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.result-toolbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 15px;
  padding: 13px 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--navy-800);
}

.result-count {
  margin: 0;
  color: var(--ink-soft);
  font-size: .84rem;
}

.result-count strong {
  color: var(--red-700);
  font-family: Georgia, serif;
  font-size: 1.14rem;
}

.result-options {
  display: flex;
  gap: 7px;
}

.result-options select {
  min-height: 35px;
  padding: 5px 28px 5px 10px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  font-size: .75rem;
}

.search-summary {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding: 11px 14px;
  color: var(--ink-soft);
  background: #fffaf0;
  border: 1px solid #e5d7b6;
  font-size: .75rem;
}

.search-summary svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--gold-600);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 4px 8px 4px 10px;
  color: var(--navy-800);
  background: var(--blue-100);
  border: 1px solid #c8d7e6;
  border-radius: 16px;
  font-size: .71rem;
}

.filter-chip button {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--navy-800);
  background: rgba(255,255,255,.7);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.result-list {
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 0;
  list-style: none;
}

.result-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 134px;
  gap: 24px;
  padding: 24px 22px;
  border-bottom: 1px solid var(--line);
}

.result-item:last-child {
  border-bottom: 0;
}

.result-item:hover {
  background: #fbfcfe;
}

.result-item__type {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 2px 7px;
  color: var(--navy-700);
  background: var(--blue-100);
  border: 1px solid #cbdae9;
  border-radius: 2px;
  font-size: .68rem;
  font-weight: 700;
}

.result-item__status {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  margin-left: 4px;
  padding: 2px 7px;
  color: var(--success);
  background: #e8f5f0;
  border: 1px solid #c4e4d8;
  border-radius: 2px;
  font-size: .68rem;
  font-weight: 700;
}

.result-item__status.is-draft {
  color: var(--warning);
  background: #fff4e5;
  border-color: #efd4a8;
}

.result-item h2 {
  margin: 9px 0 7px;
  letter-spacing: -.035em;
  line-height: 1.45;
  font-size: 1.07rem;
}

.result-item h2 button {
  padding: 0;
  text-align: left;
  color: var(--navy-900);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 750;
}

.result-item h2 button:hover {
  color: var(--red-700);
  text-decoration: underline;
}

mark {
  color: #5f2600;
  background: #ffe593;
  border-bottom: 1px solid #d8ad32;
}

.result-item__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 11px;
  color: var(--ink-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: .8rem;
  line-height: 1.7;
}

.result-item__match {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 11px;
  padding: 5px 9px;
  color: #76511b;
  background: #fff7e6;
  border: 1px solid #e7d1a5;
  border-radius: 3px;
  font-size: .7rem;
  font-weight: 650;
}

.result-item__match svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.result-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 0;
  margin: 0;
  color: var(--muted);
  font-size: .73rem;
}

.result-item__meta span {
  padding: 0 10px;
  border-right: 1px solid var(--line);
}

.result-item__meta span:first-child {
  padding-left: 0;
}

.result-item__meta span:last-child {
  border-right: 0;
}

.result-item__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.result-item__actions button {
  min-height: 34px;
  padding: 6px 9px;
  color: var(--navy-700);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  cursor: pointer;
  font-size: .73rem;
}

.result-item__actions button:first-child {
  color: var(--white);
  background: var(--navy-700);
  border-color: var(--navy-700);
}

.result-item__actions button:hover {
  border-color: var(--navy-700);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.empty-state,
.error-state {
  min-height: 320px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 50px 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
}

.empty-state__icon,
.error-state__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  background: #f0f3f6;
  border-radius: 50%;
}

.empty-state__icon svg,
.error-state__icon svg {
  width: 29px;
  height: 29px;
}

.empty-state h2,
.error-state h2 {
  margin: 0 0 5px;
  font-size: 1.05rem;
}

.empty-state p,
.error-state p {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: .8rem;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 24px;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-size: .76rem;
}

.pagination button:hover:not(:disabled) {
  color: var(--navy-800);
  border-color: var(--navy-700);
}

.pagination button.is-current {
  color: var(--white);
  background: var(--navy-800);
  border-color: var(--navy-800);
  font-weight: 700;
}

.pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  cursor: pointer;
  font-size: .78rem;
}

.toolbar-actions {
  display: flex;
  gap: 6px;
}

.icon-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 11px;
  color: var(--navy-800);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  cursor: pointer;
  font-size: .75rem;
}

.icon-button:hover {
  background: var(--blue-50);
  border-color: var(--navy-600);
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.law-heading-card {
  padding: 26px 28px 23px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.law-heading-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.law-heading-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

.law-heading-card h1 {
  margin: 0;
  color: var(--navy-950);
  letter-spacing: -.05em;
  font-family: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.4;
}

.law-heading-card__subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.law-heading-card__stamp {
  min-width: 78px;
  height: 78px;
  display: grid;
  flex: 0 0 auto;
  place-content: center;
  color: rgba(159, 46, 46, .78);
  border: 2px solid rgba(159, 46, 46, .62);
  border-radius: 50%;
  transform: rotate(-8deg);
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.25;
  text-align: center;
}

.law-metadata {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.law-metadata div {
  min-height: 65px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.law-metadata dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: .68rem;
}

.law-metadata dd {
  margin: 0;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
}

.source-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: var(--muted);
  font-size: .7rem;
}

.source-note a {
  color: var(--navy-700);
  text-decoration: underline;
}

.law-tabs {
  display: flex;
  margin-top: 18px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line-strong);
  list-style: none;
}

.law-tabs li {
  flex: 1;
  border-right: 1px solid var(--line);
}

.law-tabs li:last-child {
  border-right: 0;
}

.law-tabs button {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  color: var(--ink-soft);
  background: var(--white);
  border: 0;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 650;
}

.law-tabs button:hover {
  background: var(--blue-50);
}

.law-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--navy-800);
}

.law-tab-panel {
  margin-top: 15px;
}

.viewer-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.toc-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.toc-panel__head {
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  color: var(--white);
  background: var(--navy-800);
}

.toc-panel__head h2 {
  margin: 0;
  font-size: .85rem;
}

.toc-panel__head button {
  display: none;
  padding: 2px 5px;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
}

.toc-list {
  max-height: calc(100vh - 87px);
  overflow-y: auto;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  scrollbar-width: thin;
}

.toc-list button {
  width: 100%;
  display: block;
  padding: 7px 14px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-size: .74rem;
}

.toc-list button:hover,
.toc-list button.is-active {
  color: var(--navy-800);
  background: var(--blue-50);
  border-left-color: var(--red-600);
}

.document-viewer {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.document-viewer__tools {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  background: #f6f7f8;
  border-bottom: 1px solid var(--line);
}

.in-document-search {
  display: flex;
  align-items: center;
  min-width: min(360px, 60%);
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.in-document-search svg {
  width: 16px;
  height: 16px;
  margin-left: 10px;
  color: var(--muted);
}

.in-document-search input {
  min-width: 0;
  flex: 1;
  padding: 7px 8px;
  border: 0;
  outline: 0;
  font-size: .75rem;
}

.search-match-count {
  padding: 0 8px;
  color: var(--muted);
  white-space: nowrap;
  font-size: .68rem;
}

.in-document-search .match-button {
  width: 27px;
  min-width: 27px;
  height: 29px;
  padding: 0;
  color: var(--navy-700);
  background: #f7f9fb;
  border: 0;
  border-left: 1px solid var(--line);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.in-document-search .match-button:hover {
  color: var(--white);
  background: var(--navy-700);
}

.viewer-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.viewer-controls button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: .78rem;
}

.viewer-controls button:hover {
  border-color: var(--navy-600);
}

.document-content {
  --document-font-size: 16px;
  min-height: 600px;
  padding: 52px clamp(30px, 7vw, 84px) 76px;
  color: #171a1d;
  font-family: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  font-size: var(--document-font-size);
  line-height: 2;
}

.document-title {
  margin: 0 0 11px;
  color: var(--navy-950);
  letter-spacing: -.05em;
  text-align: center;
  font-size: 1.65em;
}

.document-promulgation {
  margin: 0 0 42px;
  color: #5c6671;
  text-align: center;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: .75em;
}

.law-article {
  scroll-margin-top: 74px;
  margin-bottom: 25px;
}

.law-article h2,
.law-article h3 {
  margin: 34px 0 13px;
  color: var(--navy-900);
  letter-spacing: -.03em;
  line-height: 1.55;
  font-size: 1em;
}

.law-article.is-division h2 {
  padding: 10px 12px;
  text-align: center;
  background: #eff3f7;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-size: 1.03em;
}

.law-article p {
  margin: 7px 0;
  white-space: pre-wrap;
}

.law-article mark.current-match {
  color: #fff;
  background: #b33b35;
}

.document-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  color: #8b9299;
  font-family: "Noto Sans KR", sans-serif;
  font-size: .68em;
}

.document-end::before,
.document-end::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--line);
}

.history-panel,
.version-panel {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.history-intro,
.version-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 25px;
  background: var(--blue-50);
  border-bottom: 1px solid var(--line);
}

.history-intro h2,
.version-intro h2 {
  margin: 0 0 5px;
  color: var(--navy-900);
  font-size: 1.05rem;
}

.history-intro p,
.version-intro p {
  margin: 0;
  color: var(--muted);
  font-size: .77rem;
}

.history-timeline {
  position: relative;
  margin: 0;
  padding: 27px 28px 31px 54px;
  list-style: none;
}

.history-timeline::before {
  position: absolute;
  top: 36px;
  bottom: 38px;
  left: 34px;
  width: 2px;
  content: "";
  background: #cbd6e1;
}

.history-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 0 0 25px 14px;
}

.history-item:last-child {
  padding-bottom: 0;
}

.history-item::before {
  position: absolute;
  top: 6px;
  left: -25px;
  width: 11px;
  height: 11px;
  content: "";
  background: var(--white);
  border: 3px solid var(--navy-600);
  border-radius: 50%;
}

.history-item:first-child::before {
  border-color: var(--red-600);
}

.history-date {
  color: var(--navy-800);
  font-family: Georgia, serif;
  font-size: .82rem;
  font-weight: 700;
}

.history-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: .85rem;
}

.history-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
}

.history-item button {
  align-self: start;
}

.version-table-wrap {
  overflow-x: auto;
}

.version-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}

.version-table th,
.version-table td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.version-table th {
  color: var(--navy-900);
  background: #f1f4f7;
  font-size: .72rem;
}

.version-table tr:last-child td {
  border-bottom: 0;
}

.version-table tbody tr:hover {
  background: #fbfcfd;
}

.version-actions {
  display: flex;
  gap: 5px;
  white-space: nowrap;
}

.version-actions button {
  min-height: 30px;
  padding: 4px 9px;
  color: var(--navy-700);
  background: var(--white);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-size: .7rem;
}

.compare-setup {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.1fr) auto;
  align-items: end;
  gap: 13px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--navy-800);
}

.compare-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-900);
  font-size: .75rem;
  font-weight: 700;
}

.compare-field select,
.compare-field input {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.compare-arrow {
  display: grid;
  width: 38px;
  height: 42px;
  place-items: center;
  color: var(--navy-600);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.compare-arrow svg {
  width: 24px;
  height: 24px;
}

.law-chooser {
  margin-bottom: 14px;
  padding: 20px 22px;
  background: #edf2f7;
  border: 1px solid #cbd6e1;
}

.law-chooser h2 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.law-chooser p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .77rem;
}

.law-chooser form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  max-width: 720px;
}

.law-chooser input {
  min-height: 44px;
  min-width: 0;
  padding: 8px 12px;
  background: var(--white);
  border: 2px solid var(--navy-700);
  outline: 0;
}

.law-chooser select {
  min-width: 0;
  min-height: 44px;
  padding: 8px 38px 8px 12px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--navy-700);
  outline: 0;
}

.law-chooser button {
  color: var(--white);
  background: var(--navy-700);
  border: 0;
}

.compare-summary {
  margin-top: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.amendment-notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 16px;
  padding: 16px 18px;
  color: #66420f;
  background: #fff8e7;
  border: 1px solid #e5c981;
  border-left: 5px solid #b57d22;
}

.amendment-notice__icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  color: #8c5a12;
  background: #f8e4b6;
  border-radius: 50%;
}

.amendment-notice__icon svg {
  width: 19px;
  height: 19px;
}

.amendment-notice strong {
  display: block;
  margin-bottom: 3px;
  color: #69440f;
  font-size: .84rem;
}

.amendment-notice p {
  margin: 0;
  font-size: .75rem;
  line-height: 1.65;
}

.compare-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 17px;
  color: var(--white);
  background: var(--navy-800);
}

.compare-summary__head h2 {
  margin: 0;
  font-size: .9rem;
}

.change-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: .72rem;
}

.change-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #e8b95a;
}

.compare-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}

.compare-stats div {
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.compare-stats div:last-child {
  border-right: 0;
}

.compare-stats dt {
  color: var(--muted);
  font-size: .68rem;
}

.compare-stats dd {
  margin: 2px 0 0;
  color: var(--navy-900);
  font-size: .88rem;
  font-weight: 700;
}

.compare-stats .added dd { color: var(--success); }
.compare-stats .removed dd { color: var(--red-700); }
.compare-stats .changed dd { color: var(--warning); }

.compare-view {
  margin-top: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.compare-columns-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--white);
  background: #314b69;
  border-bottom: 1px solid var(--navy-950);
}

.compare-columns-head div {
  padding: 13px 19px;
}

.compare-columns-head div:first-child {
  border-right: 1px solid rgba(255,255,255,.2);
}

.compare-columns-head strong {
  display: block;
  font-size: .84rem;
}

.compare-columns-head span {
  color: #cfdae6;
  font-size: .68rem;
}

.compare-section {
  border-bottom: 1px solid var(--line-strong);
}

.compare-section:last-child {
  border-bottom: 0;
}

.compare-section__label {
  margin: 0;
  padding: 8px 16px;
  color: var(--navy-800);
  background: #edf2f7;
  border-bottom: 1px solid var(--line);
  font-size: .73rem;
  font-weight: 700;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-cell {
  min-height: 82px;
  padding: 17px 19px;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: .79rem;
  line-height: 1.85;
  white-space: pre-wrap;
}

.compare-cell:first-child {
  border-right: 1px solid var(--line);
}

.compare-row.is-changed .compare-cell {
  background: #fffbef;
}

.compare-row.is-added .compare-cell:last-child {
  background: #eaf7f1;
}

.compare-row.is-removed .compare-cell:first-child {
  background: #fbedeb;
}

.diff-add {
  color: #15593f;
  background: #bce7d5;
  text-decoration: none;
}

.diff-remove {
  color: #842b27;
  background: #f4c9c5;
  text-decoration: line-through;
}

.muted-text {
  color: var(--muted);
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: .74rem;
}

.compare-row.is-unchanged[hidden],
.compare-section[hidden] {
  display: none;
}

.data-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 14px;
  padding: 13px 16px;
  color: #4f5d6d;
  background: #eef4f9;
  border: 1px solid #cfdce8;
  font-size: .76rem;
}

.data-notice svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.site-footer {
  color: #c8d3df;
  background: var(--navy-950);
  border-top: 4px solid var(--gold-600);
}

.footer-grid {
  min-height: 160px;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr .7fr;
  align-items: center;
  gap: 44px;
  padding-block: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand__seal {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 5px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
}

.footer-brand__seal img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.footer-brand strong {
  color: var(--white);
  font-family: "Noto Serif KR", "Batang", serif;
}

.footer-brand p,
.footer-info p {
  margin: 3px 0 0;
  font-size: .72rem;
}

.footer-info strong {
  color: var(--white);
  font-size: .78rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  font-size: .73rem;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8598ab;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .66rem;
}

.toast-region {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: 390px;
  padding: 12px 15px;
  color: var(--white);
  background: var(--navy-950);
  border-left: 4px solid var(--gold-300);
  box-shadow: var(--shadow-md);
  font-size: .78rem;
  animation: toast-in .2s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-shell {
    grid-template-columns: 225px minmax(0, 1fr);
  }

  .primary-nav a {
    min-width: auto;
    padding-inline: 14px;
    font-size: .87rem;
  }

  .brand__copy strong {
    font-size: 1.3rem;
  }

  .law-metadata {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .site-container {
    width: min(calc(100% - 28px), var(--container));
  }

  .government-bar p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .masthead {
    min-height: 74px;
  }

  .brand__seal {
    width: 48px;
    height: 48px;
  }

  .brand__seal img {
    width: 39px;
    height: 39px;
  }

  .brand__copy strong {
    font-size: 1.15rem;
  }

  .brand__copy span {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 7px 14px 14px;
    background: var(--navy-900);
    box-shadow: var(--shadow-md);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    min-height: 48px;
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .primary-nav a::after {
    right: auto;
    bottom: 10px;
    left: 14px;
    width: 30px;
  }

  .hero__inner {
    min-height: 330px;
  }

  .home-row {
    grid-template-columns: 1fr;
  }

  .search-shell {
    display: block;
  }

  .search-sidebar {
    position: fixed;
    z-index: 500;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(360px, 88vw);
    overflow-y: auto;
    border: 0;
    transform: translateX(105%);
    transition: transform .2s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.2);
  }

  .search-sidebar.is-open {
    transform: translateX(0);
  }

  .search-sidebar.is-open::before {
    position: fixed;
    z-index: -1;
    inset: 0 100% 0 auto;
    width: 100vw;
    content: "";
    background: rgba(7,20,35,.55);
  }

  .mobile-filter-toggle {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    color: var(--navy-800);
    background: var(--white);
    border: 1px solid var(--line-strong);
    font-size: .75rem;
  }

  .filter-title::after {
    content: "닫기";
    font-size: .7rem;
    text-decoration: underline;
  }

  .viewer-layout {
    display: block;
  }

  .toc-panel {
    position: static;
    max-height: none;
    margin-bottom: 12px;
  }

  .toc-panel__head button {
    display: block;
  }

  .toc-list {
    max-height: 260px;
  }

  .toc-panel.is-collapsed .toc-list {
    display: none;
  }

  .compare-setup {
    grid-template-columns: 1fr 34px 1fr;
  }

  .compare-setup .primary-button {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-container {
    width: min(calc(100% - 22px), var(--container));
  }

  .utility-links .text-button {
    display: none;
  }

  .government-bar__inner {
    gap: 5px;
  }

  .utility-links > * {
    padding-inline: 7px;
  }

  .hero__inner {
    min-height: 345px;
    padding-block: 42px 52px;
  }

  .hero__description {
    max-width: 320px;
    margin-inline: auto;
    font-size: .87rem;
  }

  .search-box {
    grid-template-columns: 1fr 58px;
  }

  .search-box select {
    display: none;
  }

  .search-box input {
    padding-inline: 14px;
    font-size: .92rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .service-card {
    min-height: 108px;
    padding: 19px;
  }

  .home-content {
    padding-top: 32px;
  }

  .page-banner__inner {
    min-height: 108px;
  }

  .page-banner__symbol {
    display: none;
  }

  .result-search {
    padding: 10px;
  }

  .result-search form {
    grid-template-columns: 1fr 70px;
  }

  .result-search select {
    display: none;
  }

  .result-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-options {
    width: 100%;
  }

  .result-options select {
    flex: 1;
    min-width: 0;
  }

  .result-item {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px 16px;
  }

  .result-item__actions {
    flex-direction: row;
  }

  .result-item__actions button {
    flex: 1;
  }

  .toolbar-actions .icon-button span {
    display: none;
  }

  .law-heading-card {
    padding: 21px 17px;
  }

  .law-heading-card__stamp {
    display: none;
  }

  .law-metadata {
    grid-template-columns: 1fr;
  }

  .law-tabs button {
    min-height: 47px;
    padding-inline: 8px;
    font-size: .76rem;
  }

  .document-viewer__tools {
    align-items: stretch;
    flex-direction: column;
  }

  .in-document-search {
    width: 100%;
    min-width: 0;
  }

  .viewer-controls {
    justify-content: flex-end;
  }

  .document-content {
    padding: 37px 20px 54px;
    line-height: 1.9;
  }

  .history-intro,
  .version-intro {
    padding: 19px 17px;
  }

  .history-timeline {
    padding: 24px 17px 27px 39px;
  }

  .history-timeline::before {
    left: 24px;
  }

  .history-item {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-left: 7px;
  }

  .history-item::before {
    left: -22px;
  }

  .history-item button {
    width: max-content;
    margin-top: 5px;
  }

  .compare-setup {
    grid-template-columns: 1fr;
  }

  .compare-arrow {
    width: 100%;
    height: 22px;
    transform: rotate(90deg);
  }

  .compare-stats {
    grid-template-columns: 1fr 1fr;
  }

  .compare-stats div {
    border-bottom: 1px solid var(--line);
  }

  .compare-stats div:nth-child(2) {
    border-right: 0;
  }

  .compare-columns-head {
    position: sticky;
    z-index: 10;
    top: 0;
  }

  .compare-columns-head div,
  .compare-cell {
    padding-inline: 11px;
  }

  .compare-columns-head strong {
    font-size: .74rem;
  }

  .compare-columns-head span {
    display: none;
  }

  .compare-cell {
    min-width: 0;
    word-break: break-all;
    font-size: .72rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding-block: 10px;
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  .government-bar,
  .site-header,
  .site-footer,
  .detail-toolbar,
  .law-tabs,
  .toc-panel,
  .document-viewer__tools,
  .source-note,
  .toast-region {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .detail-page,
  .law-tab-panel {
    padding: 0;
    margin: 0;
  }

  .law-heading-card,
  .document-viewer {
    border: 0;
    box-shadow: none;
  }

  .law-heading-card {
    padding: 0 0 10mm;
    border-bottom: 1px solid #777;
  }

  .viewer-layout {
    display: block;
  }

  .document-content {
    padding: 10mm 0 0;
    font-size: 10pt;
  }

  .law-article {
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 국가법령정보센터형 소형 화면 */
@media screen {
  :root {
    --navy-950: #153d69;
    --navy-900: #174f88;
    --navy-800: #1769b0;
    --navy-700: #1976c8;
    --navy-600: #3b87c8;
    --blue-100: #eaf4fc;
    --blue-50: #f5f9fc;
    --paper: #fff;
    --ivory: #fff;
    --red-700: #c32b21;
    --red-600: #d1453b;
    --gold-600: #8a6a21;
    --gold-300: #d8c38e;
    --ink: #333;
    --ink-soft: #555;
    --muted: #6e7780;
    --line: #d8d8d8;
    --line-strong: #bfc5ca;
    --white: #fff;
    --shadow-sm: none;
    --shadow-md: 0 3px 10px rgba(0, 0, 0, .16);
    --radius-sm: 0;
    --radius: 0;
    --radius-lg: 0;
    --container: none;
    --base-font-size: 13px;
  }

  html {
    min-width: 320px;
    font-size: var(--base-font-size);
  }

  body {
    color: #333;
    background: #fff;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    line-height: 1.45;
    word-break: normal;
  }

  button,
  input,
  select {
    font-size: 12px;
  }

  :focus-visible {
    outline: 2px solid #e29a16;
    outline-offset: 1px;
  }

  .site-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 9px;
  }

  .skip-link {
    top: 4px;
    padding: 5px 12px;
    font-size: 12px;
  }

  .government-bar {
    height: 25px;
    color: #4c5660;
    background: #f7f7f7;
    border-top: 4px solid #176fc1;
    border-bottom: 1px solid #c5c5c5;
    font-size: 11px;
  }

  .government-bar__inner {
    min-height: 20px;
    padding-left: 12px;
  }

  .government-bar p {
    gap: 0;
  }

  .government-mark {
    display: none;
  }

  .utility-links > * {
    min-height: 19px;
    padding: 1px 8px;
    border-left: 1px solid #d1d1d1;
  }

  .utility-links a:hover,
  .utility-links a:focus-visible,
  .text-button:hover,
  .text-button:focus-visible {
    color: #075ea8;
  }

  .text-button {
    font-size: 11px;
  }

  .site-header {
    color: #333;
    background: linear-gradient(#fff, #f2f2f2);
    border-bottom: 2px solid #2878ba;
    box-shadow: none;
  }

  .masthead {
    min-height: 38px;
    align-items: end;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 10px;
  }

  .brand {
    width: 250px;
    min-height: 36px;
    padding: 6px 8px 5px;
    gap: 0;
    color: #173e66;
  }

  .brand__seal {
    display: none;
  }

  .brand__copy strong {
    letter-spacing: -.04em;
    font-family: "Batang", "Noto Serif KR", serif;
    font-size: 16px;
  }

  .brand__copy span {
    display: none;
  }

  .primary-nav {
    align-items: end;
    height: 36px;
  }

  .primary-nav a {
    min-width: 94px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 13px;
    color: #444;
    background: linear-gradient(#fff, #ededed);
    border: 1px solid #c9c9c9;
    border-bottom: 0;
    font-size: 12px;
    font-weight: 400;
  }

  .primary-nav a + a {
    border-left: 0;
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav a:hover,
  .primary-nav a.is-active {
    color: #0769bb;
    background: #fff;
    border-top: 2px solid #1681d4;
    font-weight: 700;
  }

  #main-content {
    min-height: calc(100vh - 115px);
  }

  .initial-loader,
  .page-loader {
    min-height: 180px;
    gap: 7px;
    font-size: 12px;
  }

  .loader {
    width: 20px;
    height: 20px;
    border-width: 2px;
  }

  .hero {
    color: #333;
    background: #fff;
    border-bottom: 1px solid #cfcfcf;
  }

  .hero::before {
    display: none;
  }

  .hero__inner {
    min-height: 138px;
    padding: 15px 20px 18px;
  }

  .hero__kicker {
    margin: 0 0 2px;
    color: #1a6eae;
    letter-spacing: 0;
    font-size: 11px;
  }

  .hero h1 {
    color: #1b3654;
    letter-spacing: -.05em;
    font-family: "Batang", "Noto Serif KR", serif;
    font-size: 22px;
    line-height: 1.3;
  }

  .hero__description {
    margin: 3px 0 10px;
    color: #666;
    font-size: 12px;
  }

  .global-search {
    width: min(660px, 100%);
  }

  .search-box {
    grid-template-columns: 105px 1fr 55px;
    min-height: 38px;
    height: 38px;
    padding: 2px;
    background: #fff;
    border: 2px solid #1675ba;
    border-radius: 0;
    box-shadow: none;
  }

  .search-box select {
    padding: 0 8px;
    font-size: 12px;
  }

  .search-box input {
    padding: 0 10px;
    font-size: 13px;
  }

  .search-box button {
    background: #297db9;
    border-radius: 0;
  }

  .search-box button:hover {
    background: #125f9a;
  }

  .search-box svg {
    width: 16px;
    height: 16px;
  }

  .hero__popular {
    min-height: 17px;
    gap: 4px 11px;
    margin-top: 6px;
    color: #555;
    font-size: 11px;
  }

  .hero__popular strong {
    color: #8a5d16;
  }

  .hero__popular button {
    color: #356f9f;
    border-bottom-color: #9db7cb;
    font-size: 11px;
  }

  .hero__popular button:hover {
    color: #075d9d;
  }

  .home-content {
    padding: 8px 9px 18px;
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 0;
    border: 1px solid #bfc5ca;
  }

  .service-card {
    min-height: 46px;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    background: linear-gradient(#fff, #f6f6f6);
    border: 0;
    border-right: 1px solid #d4d4d4;
    border-top: 0;
    box-shadow: none;
  }

  .service-card:last-child {
    border-right: 0;
  }

  .service-card:hover {
    color: #075e9c;
    background: #edf6fc;
    transform: none;
    box-shadow: none;
  }

  .service-card__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 2px;
  }

  .service-card__icon svg {
    width: 14px;
    height: 14px;
  }

  .service-card strong {
    margin: 0;
    font-size: 12px;
  }

  .service-card p {
    display: none;
  }

  .home-row {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 8px;
    margin-top: 8px;
  }

  .content-panel {
    border-radius: 0;
    box-shadow: none;
  }

  .panel-head {
    min-height: 34px;
    padding: 5px 9px;
  }

  .panel-head h2,
  .panel-head h3 {
    font-size: 13px;
  }

  .panel-head h2::before,
  .panel-head h3::before {
    width: 3px;
    height: 11px;
    margin: 0 5px -1px 0;
  }

  .link-button,
  .ghost-button {
    min-height: 25px;
    padding: 3px 8px;
    font-size: 11px;
  }

  .link-button svg,
  .ghost-button svg {
    width: 12px;
    height: 12px;
  }

  .law-compact-item {
    gap: 6px 12px;
    padding: 8px 10px;
  }

  .law-compact-item strong {
    font-size: 12px;
  }

  .law-compact-item p,
  .law-compact-item time {
    margin-top: 2px;
    font-size: 10px;
  }

  .archive-summary {
    padding: 4px 8px 8px;
  }

  .summary-stat {
    padding: 10px 5px;
  }

  .summary-stat strong {
    font-size: 18px;
  }

  .summary-stat span {
    font-size: 10px;
  }

  .home-note,
  .data-notice,
  .search-summary {
    gap: 6px;
    margin-top: 7px;
    padding: 6px 8px;
    border-left-width: 3px;
    font-size: 11px;
  }

  .home-note svg,
  .data-notice svg,
  .search-summary svg,
  .source-note svg {
    width: 13px;
    height: 13px;
    min-width: 13px;
    max-width: 13px;
    flex: 0 0 13px;
  }

  .page-banner {
    color: #34495b;
    background: linear-gradient(#f9f9f9, #eeeeee);
    border-bottom: 1px solid #b9c2c9;
  }

  .page-banner__inner {
    min-height: 42px;
    padding: 5px 12px;
  }

  .breadcrumbs {
    gap: 4px;
    margin: 0;
    color: #6b7780;
    font-size: 10px;
  }

  .page-banner h1 {
    color: #204f77;
    font-family: "Malgun Gothic", sans-serif;
    font-size: 14px;
  }

  .page-banner__meta {
    display: inline;
    margin: 0 0 0 7px;
    color: #777;
    font-size: 10px;
  }

  .page-banner__symbol {
    display: none !important;
  }

  .search-page,
  .detail-page,
  .compare-page {
    padding: 6px 8px 18px;
  }

  .search-shell {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 0;
    border: 1px solid #b9bfc4;
  }

  .search-sidebar {
    top: 4px;
    border: 0;
    border-right: 1px solid #aaa;
    border-radius: 0;
    box-shadow: none;
  }

  .filter-title {
    min-height: 32px;
    padding: 5px 8px;
    color: #1d517b;
    background: #edf4f9;
    border-bottom: 1px solid #bfc9d0;
  }

  .filter-title h2 {
    font-size: 12px;
  }

  .filter-reset {
    color: #346b93;
    font-size: 10px;
  }

  .filter-section {
    padding: 8px 9px;
  }

  .filter-section legend,
  .filter-label {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .check-list {
    gap: 4px;
  }

  .check-label,
  .radio-label {
    gap: 5px;
    font-size: 11px;
  }

  .check-label input,
  .radio-label input {
    width: 13px;
    height: 13px;
  }

  .date-range {
    gap: 4px;
  }

  .date-range input,
  .filter-select,
  .filter-text {
    min-height: 27px;
    padding: 3px 5px;
    border-radius: 0;
    font-size: 11px;
  }

  .filter-label--spaced {
    margin-top: 7px;
  }

  .filter-actions {
    padding: 7px 8px;
  }

  .primary-button,
  .secondary-button,
  .danger-button {
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 0;
    font-size: 11px;
  }

  .result-search {
    padding: 5px;
    background: #f0f3f5;
    border: 0;
    border-bottom: 1px solid #bbc3c9;
    border-radius: 0;
  }

  .result-search form {
    grid-template-columns: 92px 1fr 54px;
    min-height: 31px;
    height: 31px;
    border: 1px solid #397dad;
  }

  .result-search select,
  .result-search input {
    padding-inline: 7px;
    font-size: 11px;
  }

  .result-toolbar {
    min-height: 35px;
    margin-top: 0;
    padding: 4px 8px;
    border: 0;
    border-bottom: 1px solid #8fa6b8;
  }

  .result-count {
    font-size: 11px;
  }

  .result-count strong {
    font-size: 13px;
  }

  .result-options select {
    min-height: 25px;
    padding: 2px 22px 2px 6px;
    font-size: 10px;
  }

  .search-summary {
    margin: 0;
    background: #fbfcfd;
    border-width: 0 0 1px;
  }

  .active-filters {
    gap: 3px;
    margin: 4px 6px;
  }

  .filter-chip {
    min-height: 22px;
    padding: 2px 5px 2px 7px;
    border-radius: 2px;
    font-size: 10px;
  }

  .filter-chip button {
    width: 14px;
    height: 14px;
  }

  .result-list {
    border: 0;
  }

  .result-item {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 10px;
    padding: 9px 10px;
  }

  .result-item__type,
  .result-item__status {
    min-height: 18px;
    padding: 1px 4px;
    font-size: 9px;
  }

  .result-item h2 {
    margin: 4px 0 3px;
    font-size: 13px;
    line-height: 1.35;
  }

  .result-item__excerpt {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.5;
  }

  .result-item__match {
    gap: 3px;
    margin: 0 0 4px;
    padding: 2px 5px;
    font-size: 10px;
  }

  .result-item__match svg {
    width: 11px;
    height: 11px;
  }

  .result-item__meta {
    font-size: 10px;
  }

  .result-item__meta span {
    padding: 0 6px;
  }

  .result-item__actions {
    gap: 4px;
  }

  .result-item__actions button {
    min-height: 26px;
    padding: 3px 5px;
    border-radius: 0;
    font-size: 10px;
  }

  .empty-state,
  .error-state {
    min-height: 150px;
    padding: 20px 12px;
  }

  .empty-state__icon,
  .error-state__icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
  }

  .empty-state__icon svg,
  .error-state__icon svg {
    width: 16px;
    height: 16px;
  }

  .empty-state h2,
  .error-state h2 {
    margin-bottom: 2px;
    font-size: 13px;
  }

  .empty-state p,
  .error-state p {
    margin-bottom: 9px;
    font-size: 11px;
  }

  .pagination {
    gap: 2px;
    margin-top: 8px;
  }

  .pagination button {
    min-width: 26px;
    height: 25px;
    padding: 0 5px;
    font-size: 10px;
  }

  .detail-toolbar {
    min-height: 27px;
    gap: 6px;
    margin-bottom: 4px;
  }

  .back-button {
    font-size: 11px;
  }

  .back-button svg,
  .icon-button svg {
    width: 12px;
    height: 12px;
  }

  .icon-button {
    min-height: 25px;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 0;
    font-size: 10px;
  }

  .law-heading-card {
    padding: 7px 10px 5px;
    border: 1px solid #b9c3ca;
    border-top: 2px solid #287dc0;
    box-shadow: none;
  }

  .law-heading-card__top {
    display: block;
  }

  .law-heading-card__badges {
    gap: 3px;
    margin-bottom: -14px;
  }

  .law-heading-card h1 {
    padding-inline: 150px;
    text-align: center;
    font-size: 17px;
    line-height: 1.35;
  }

  .law-heading-card__subtitle {
    margin: 2px 0 0;
    text-align: center;
    font-size: 10px;
  }

  .law-heading-card__stamp {
    display: none;
  }

  .law-metadata {
    margin-top: 6px;
  }

  .law-metadata div {
    min-height: 39px;
    padding: 5px 8px;
  }

  .law-metadata dt {
    margin-bottom: 1px;
    font-size: 9px;
  }

  .law-metadata dd {
    font-size: 11px;
  }

  .source-note {
    gap: 5px;
    margin-top: 4px;
    color: #69747c;
    font-size: 9px;
  }

  .source-note a {
    font-size: 9px;
  }

  .law-tabs {
    width: fit-content;
    min-width: 410px;
    margin-top: 4px;
    border: 1px solid #b6b6b6;
  }

  .law-tabs button {
    min-height: 29px;
    padding: 4px 15px;
    font-size: 11px;
    font-weight: 400;
  }

  .law-tabs button[aria-selected="true"] {
    color: #0667af;
    background: #fff;
    border-top: 2px solid #1581d1;
    font-weight: 700;
  }

  .law-tab-panel {
    margin-top: 3px;
  }

  .viewer-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 0;
    border: 1px solid #aeb4b8;
  }

  .toc-panel {
    top: 3px;
    max-height: calc(100vh - 12px);
    border: 0;
    border-right: 1px solid #aeb4b8;
  }

  .toc-panel__head {
    min-height: 30px;
    padding: 5px 8px;
    color: #214d70;
    background: #eef4f8;
    border-bottom: 1px solid #bdc8cf;
  }

  .toc-panel__head h2 {
    font-size: 11px;
  }

  .toc-list {
    max-height: calc(100vh - 42px);
    padding: 3px 0;
  }

  .toc-list button {
    padding: 4px 7px;
    border-left-width: 2px;
    font-size: 10px;
    line-height: 1.35;
  }

  .document-viewer {
    border: 0;
    box-shadow: none;
  }

  .document-viewer__tools {
    min-height: 32px;
    gap: 8px;
    padding: 3px 6px;
    background: #f5f5f5;
  }

  .in-document-search {
    min-width: min(300px, 55%);
    height: 25px;
  }

  .in-document-search svg {
    width: 12px;
    height: 12px;
    margin-left: 6px;
  }

  .in-document-search input {
    padding: 3px 5px;
    font-size: 10px;
  }

  .search-match-count {
    padding: 0 5px;
    font-size: 9px;
  }

  .in-document-search .match-button {
    width: 22px;
    min-width: 22px;
    height: 23px;
    font-size: 13px;
  }

  .viewer-controls button {
    width: auto;
    min-width: 27px;
    height: 25px;
    padding: 0 4px;
    font-size: 10px;
  }

  .document-content {
    --document-font-size: 13px;
    min-height: 550px;
    padding: 20px 26px 42px;
    font-family: "Batang", "Noto Serif KR", serif;
    line-height: 1.75;
  }

  .document-title {
    margin-bottom: 4px;
    font-size: 1.3em;
  }

  .document-promulgation {
    margin-bottom: 21px;
    font-size: .72em;
  }

  .law-article {
    scroll-margin-top: 38px;
    margin-bottom: 12px;
  }

  .law-article h2,
  .law-article h3 {
    margin: 15px 0 4px;
    color: #003f9a;
    font-size: 1em;
    line-height: 1.45;
  }

  .law-article.is-division h2 {
    padding: 5px 7px;
    color: #003f9a;
    background: #f6f8fa;
    font-size: 1.02em;
  }

  .law-article p {
    margin: 3px 0;
  }

  .document-end {
    gap: 7px;
    margin-top: 26px;
    font-size: .65em;
  }

  .history-panel,
  .version-panel {
    border-radius: 0;
  }

  .history-intro,
  .version-intro {
    gap: 10px;
    padding: 8px 10px;
  }

  .history-intro h2,
  .version-intro h2 {
    margin-bottom: 2px;
    font-size: 13px;
  }

  .history-intro p,
  .version-intro p {
    font-size: 10px;
  }

  .history-timeline {
    padding: 13px 14px 15px 38px;
  }

  .history-timeline::before {
    top: 18px;
    bottom: 19px;
    left: 24px;
  }

  .history-item {
    grid-template-columns: 100px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 0 10px 5px;
  }

  .history-item::before {
    top: 3px;
    left: -20px;
    width: 8px;
    height: 8px;
    border-width: 2px;
  }

  .history-date,
  .history-copy strong {
    font-size: 11px;
  }

  .history-copy p {
    font-size: 10px;
  }

  .version-table {
    font-size: 11px;
  }

  .version-table th,
  .version-table td {
    padding: 6px 8px;
  }

  .version-table th {
    font-size: 10px;
  }

  .version-actions button {
    min-height: 24px;
    padding: 2px 6px;
    font-size: 10px;
  }

  .law-chooser {
    margin-bottom: 5px;
    padding: 7px 9px;
  }

  .law-chooser h2 {
    margin-bottom: 2px;
    font-size: 13px;
  }

  .law-chooser p {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .law-chooser form {
    grid-template-columns: minmax(0, 1fr) 65px;
    max-width: 620px;
  }

  .law-chooser input,
  .law-chooser select {
    min-height: 30px;
    padding: 3px 7px;
    border-width: 1px;
    font-size: 11px;
  }

  .compare-setup {
    gap: 7px;
    padding: 8px;
    border-top-width: 2px;
  }

  .compare-field label {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .compare-field select,
  .compare-field input {
    min-height: 30px;
    padding: 4px 6px;
  }

  .compare-arrow {
    width: 28px;
    height: 30px;
  }

  .compare-arrow svg {
    width: 17px;
    height: 17px;
  }

  .amendment-notice {
    gap: 7px;
    margin-top: 6px;
    padding: 7px 9px;
    border-left-width: 3px;
  }

  .amendment-notice__icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .amendment-notice__icon svg {
    width: 13px;
    height: 13px;
  }

  .amendment-notice strong {
    font-size: 11px;
  }

  .amendment-notice p {
    font-size: 10px;
  }

  .compare-summary,
  .compare-view {
    margin-top: 6px;
  }

  .compare-summary__head {
    padding: 6px 9px;
  }

  .compare-summary__head h2 {
    font-size: 11px;
  }

  .change-toggle {
    font-size: 10px;
  }

  .change-toggle input {
    width: 13px;
    height: 13px;
  }

  .compare-stats div {
    padding: 6px 9px;
  }

  .compare-stats dt {
    font-size: 9px;
  }

  .compare-stats dd {
    font-size: 11px;
  }

  .compare-columns-head div {
    padding: 6px 10px;
  }

  .compare-columns-head strong {
    font-size: 11px;
  }

  .compare-columns-head span {
    font-size: 9px;
  }

  .compare-section__label {
    padding: 4px 8px;
    font-size: 10px;
  }

  .compare-cell {
    min-height: 50px;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.6;
  }

  .site-footer {
    color: #697682;
    background: #f2f3f4;
    border-top: 1px solid #aeb9c1;
  }

  .footer-grid {
    min-height: 54px;
    grid-template-columns: 1fr 1.6fr auto;
    gap: 20px;
    padding-block: 8px;
  }

  .footer-brand {
    gap: 0;
  }

  .footer-brand__seal {
    display: none;
  }

  .footer-brand strong,
  .footer-info strong {
    color: #314e66;
    font-size: 11px;
  }

  .footer-brand p,
  .footer-info p,
  .footer-links {
    margin-top: 1px;
    font-size: 9px;
  }

  .footer-links {
    flex-direction: row;
    gap: 8px;
  }

  .footer-links a:hover {
    color: #075e9c;
  }

  .footer-bottom {
    min-height: 25px;
    color: #7a858e;
    font-size: 9px;
  }

  .toast-region {
    right: 10px;
    bottom: 10px;
  }

  .toast {
    min-width: 220px;
    max-width: 340px;
    padding: 7px 9px;
    border-left-width: 3px;
    font-size: 11px;
  }
}

@media screen and (max-width: 820px) {
  .site-container {
    padding-inline: 7px;
  }

  .government-bar p {
    max-width: 55vw;
  }

  .masthead {
    min-height: 40px;
    align-items: center;
    padding-inline: 7px;
  }

  .brand {
    width: auto;
    min-height: 35px;
    padding-inline: 3px;
  }

  .brand__copy strong {
    font-size: 14px;
  }

  .mobile-menu-button {
    display: block;
    width: 31px;
    height: 30px;
    margin-left: auto;
    padding: 5px;
    color: #23587f;
    background: #f7f7f7;
    border: 1px solid #aaa;
    border-radius: 0;
  }

  .mobile-menu-button span:not(.sr-only) {
    width: 17px;
    height: 1px;
    margin: 3px auto;
    background: #23587f;
  }

  .primary-nav {
    top: 100%;
    height: auto;
    padding: 4px 7px 7px;
    background: #edf3f7;
  }

  .primary-nav a,
  .primary-nav a + a {
    min-height: 34px;
    justify-content: flex-start;
    color: #333;
    background: #fff;
    border: 1px solid #c5c5c5;
    border-bottom: 0;
  }

  .primary-nav a:last-child {
    border-bottom: 1px solid #c5c5c5;
  }

  .primary-nav a:hover,
  .primary-nav a.is-active {
    color: #075e9c;
    background: #eaf4fb;
    border-top: 1px solid #c5c5c5;
  }

  .hero__inner {
    min-height: 140px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card:nth-child(2) {
    border-right: 0;
  }

  .service-card:nth-child(-n+2) {
    border-bottom: 1px solid #d4d4d4;
  }

  .home-row {
    grid-template-columns: 1fr;
  }

  .search-shell {
    display: block;
    border: 0;
  }

  .search-sidebar {
    position: fixed;
    z-index: 500;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(330px, 88vw);
    border-right: 0;
    box-shadow: -4px 0 14px rgba(0, 0, 0, .24);
  }

  .mobile-filter-toggle {
    min-height: 25px;
    padding: 3px 7px;
    font-size: 10px;
  }

  .viewer-layout {
    display: block;
  }

  .toc-panel {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid #aeb4b8;
  }

  .toc-panel__head button {
    display: block;
    padding: 1px 5px;
    color: #1e5c8b;
    background: #fff;
    border: 1px solid #aab6be;
    font-size: 10px;
  }

  .toc-list {
    max-height: 180px;
  }

  .law-heading-card h1 {
    padding-inline: 0;
    margin-top: 4px;
  }

  .law-heading-card__badges {
    margin-bottom: 0;
  }

  .law-metadata {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1.6fr;
  }

  .footer-links {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .government-bar__inner {
    padding-left: 7px;
  }

  .utility-links .text-button {
    display: none;
  }

  .hero__inner {
    min-height: 154px;
    padding: 15px 10px;
  }

  .hero h1 {
    font-size: 19px;
  }

  .hero__description {
    font-size: 11px;
  }

  .search-box {
    grid-template-columns: 1fr 48px;
  }

  .search-box select {
    display: none;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card {
    min-height: 42px;
    padding: 5px 7px;
  }

  .page-banner__inner {
    min-height: 38px;
  }

  .page-banner__meta {
    display: none;
  }

  .result-search {
    padding: 4px;
  }

  .result-search form {
    grid-template-columns: 1fr 48px;
  }

  .result-toolbar {
    align-items: center;
    flex-direction: row;
  }

  .result-options {
    width: auto;
  }

  .result-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .result-item__actions {
    flex-direction: row;
  }

  .law-heading-card {
    padding-inline: 7px;
  }

  .law-metadata {
    grid-template-columns: 1fr 1fr;
  }

  .law-metadata div {
    min-height: 36px;
  }

  .law-tabs {
    width: 100%;
    min-width: 0;
  }

  .law-tabs button {
    padding-inline: 6px;
    font-size: 10px;
  }

  .document-viewer__tools {
    align-items: center;
    flex-direction: row;
  }

  .in-document-search {
    width: auto;
    min-width: 0;
    flex: 1;
  }

  .viewer-controls {
    flex: 0 0 auto;
  }

  .viewer-controls button:first-child,
  .viewer-controls button:last-child {
    display: none;
  }

  .document-content {
    padding: 17px 13px 32px;
    font-size: var(--document-font-size);
    line-height: 1.7;
  }

  .history-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .compare-setup {
    grid-template-columns: 1fr;
  }

  .compare-cell {
    padding: 6px;
    font-size: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .footer-info {
    display: none;
  }

  .footer-bottom {
    min-height: 38px;
    padding-block: 5px;
  }
}
