:root {
  --ink-950: #07251f;
  --ink-900: #0b3028;
  --ink-800: #123c32;
  --ink-700: #1c5244;
  --ink-100: #dce9e4;
  --gold-600: #b98932;
  --gold-500: #d3ab52;
  --gold-300: #ead39b;
  --paper: #f7f3ea;
  --paper-deep: #ece4d5;
  --white: #fffefa;
  --text: #202925;
  --muted: #65716c;
  --line: #ddd7ca;
  --danger: #9c3e35;
  --success: #1b6b4c;
  --shadow-sm: 0 8px 24px rgba(12, 48, 40, 0.07);
  --shadow-lg: 0 24px 70px rgba(7, 37, 31, 0.15);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Vazirmatn, IRANSansX, Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink-950); line-height: 1.45; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 930px; }
.container.narrow-wide { max-width: 1020px; }
.section-space { padding-block: 92px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus,
.skip-link:focus {
  z-index: 100000;
  top: 12px;
  right: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink-900);
  border-radius: 8px;
}
.skip-link { position: absolute; top: -100px; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink-800); color: #fff; }
.button-secondary { background: transparent; border-color: var(--line); color: var(--ink-800); }
.button-gold { background: var(--gold-500); color: var(--ink-950); }
.button-outline-light { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }
.button-block { width: 100%; margin-top: 10px; }
.text-link { color: var(--ink-700); font-weight: 800; white-space: nowrap; }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-4px); }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--gold-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.section-kicker > span { width: 28px; height: 2px; background: currentColor; }
.section-kicker.light { color: var(--gold-300); }
.eyebrow { color: var(--gold-600); font-size: 12px; font-weight: 800; }
.eyebrow.light { color: var(--gold-300); }

.site-header {
  position: relative;
  z-index: 100;
  background: rgba(247, 243, 234, .96);
  border-bottom: 1px solid rgba(18, 60, 50, .09);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 34px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  color: var(--gold-500);
  background: var(--ink-900);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(211, 171, 82, .13);
}
.brand-mark svg { width: 31px; height: 31px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { color: var(--ink-950); font-size: 21px; }
.brand-copy small { color: var(--muted); font-size: 10px; }
.primary-navigation { margin-inline: auto; }
.primary-navigation .menu { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0; }
.primary-navigation a { position: relative; color: #31433d; font-size: 14px; font-weight: 700; }
.primary-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width .2s ease;
}
.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after { width: 100%; }
.header-search-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-800); font-size: 13px; font-weight: 800; }
.header-search-link svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid var(--line); border-radius: 9px; }
.menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 4px 0; background: var(--ink-900); }

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(211,171,82,.15), transparent 30%),
    linear-gradient(135deg, var(--ink-950), var(--ink-800));
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
}
.hero-grid { position: relative; z-index: 1; min-height: 660px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); align-items: center; gap: 80px; padding-block: 90px; }
.hero-content { max-width: 740px; }
.hero-content h1 { margin-bottom: 22px; color: #fff; font-size: clamp(42px, 5.3vw, 76px); letter-spacing: -.045em; }
.hero-content h1 em { color: var(--gold-500); font-style: normal; }
.hero-content > p { max-width: 660px; margin-bottom: 34px; color: #cfddd8; font-size: 18px; }
.site-search-form { position: relative; display: flex; align-items: center; max-width: 730px; padding: 7px 8px 7px 16px; background: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; box-shadow: 0 16px 45px rgba(0,0,0,.2); }
.site-search-form .search-icon { display: grid; width: 42px; color: var(--ink-700); }
.site-search-form .search-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.site-search-form input { min-width: 0; flex: 1; height: 54px; color: var(--text); background: transparent; border: 0; outline: 0; }
.site-search-form button { height: 48px; padding-inline: 25px; color: #fff; background: var(--ink-800); border: 0; border-radius: 9px; font-weight: 800; cursor: pointer; }
.search-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 15px; color: #9fb5ad; font-size: 12px; }
.search-examples a { padding: 2px 10px; color: #d7e4df; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; }
.live-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 440px;
  overflow: auto;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.live-result { display: block; padding: 13px 18px; border-bottom: 1px solid #eeeae2; }
.live-result:last-child { border-bottom: 0; }
.live-result:hover { background: #f7f5ef; }
.live-result strong { display: block; color: var(--ink-900); font-size: 14px; }
.live-result span { display: block; color: var(--muted); font-size: 11px; }
.live-result p { margin: 4px 0 0; color: #4d5b55; font-size: 12px; line-height: 1.65; }
.live-search-message { padding: 16px; color: var(--muted); text-align: center; }
.hero-panel { position: relative; min-height: 450px; display: flex; flex-direction: column; justify-content: center; }
.hero-emblem { display: grid; place-items: center; width: 250px; height: 250px; margin: 0 auto -24px; color: var(--gold-500); }
.hero-emblem svg { width: 100%; }
.hero-emblem circle { fill: rgba(255,255,255,.025); stroke: rgba(211,171,82,.35); stroke-width: 1; }
.hero-emblem path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stat-list { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; padding: 22px 16px; background: rgba(6,31,26,.86); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); }
.stat-list > div { padding: 0 12px; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.stat-list > div:last-child { border-left: 0; }
.stat-list strong { display: block; color: var(--gold-500); font-size: 24px; }
.stat-list span { color: #b8cac3; font-size: 10px; white-space: nowrap; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(28px, 3vw, 42px); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { position: relative; min-height: 265px; padding: 27px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.category-card:hover { transform: translateY(-6px); border-color: var(--gold-300); box-shadow: var(--shadow-sm); }
.category-card::after { content: ""; position: absolute; width: 130px; height: 130px; left: -50px; bottom: -58px; border: 1px solid rgba(185,137,50,.14); border-radius: 50%; }
.category-number { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 28px; color: var(--ink-800); background: #e9efe9; border-radius: 50%; font-size: 12px; font-weight: 800; }
.category-card h3 { margin-bottom: 10px; font-size: 18px; }
.category-card p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.category-count { position: absolute; right: 27px; bottom: 23px; color: var(--gold-600); font-size: 12px; font-weight: 800; }
.category-count b { margin-right: 6px; }

.featured-section { color: #fff; background: var(--ink-900); }
.featured-section .section-heading h2 { color: #fff; }
.law-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.law-card { min-width: 0; }
.law-card-link { height: 100%; min-height: 345px; display: flex; flex-direction: column; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform .2s ease, box-shadow .2s ease; }
.law-card-link:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.law-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.document-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--gold-600); background: #f4ecdb; border-radius: 10px; }
.document-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.law-card h2 { margin-bottom: 12px; font-size: 21px; }
.law-card p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.law-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 18px; color: var(--muted); border-top: 1px solid #ece8df; font-size: 11px; }
.law-card-meta .text-link { font-size: 12px; }
.featured-section .law-card-link { background: #f8f4ea; border-color: rgba(255,255,255,.08); }

.how-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.how-grid > div h2 { font-size: 40px; }
.how-grid > div p { color: var(--muted); }
.step-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.step-list li { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step-list li > span { display: grid; place-items: center; flex: 0 0 44px; height: 44px; color: var(--gold-600); border: 1px solid var(--gold-300); border-radius: 50%; font-weight: 800; }
.step-list h3 { margin-bottom: 4px; font-size: 18px; }
.step-list p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.precedents-preview { background: #eee8dc; }
.precedent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.precedent-card > a { height: 100%; display: flex; align-items: flex-start; gap: 18px; padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform .2s ease, border-color .2s ease; }
.precedent-card > a:hover { transform: translateY(-4px); border-color: var(--gold-300); }
.file-badge { display: grid; place-items: center; flex: 0 0 50px; height: 58px; color: #fff; background: var(--danger); border-radius: 8px 8px 12px 12px; font-size: 10px; font-weight: 900; }
.precedent-card h2 { margin: 5px 0 8px; font-size: 18px; }
.precedent-card p { margin-bottom: 6px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.precedent-card small { color: var(--gold-600); }

.archive-hero,
.search-hero,
.law-hero,
.document-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--ink-950), var(--ink-700));
}
.archive-hero { padding-block: 72px 80px; text-align: center; }
.archive-hero h1, .search-hero h1, .law-hero h1, .document-hero h1 { color: #fff; }
.archive-hero h1 { margin-bottom: 15px; font-size: clamp(36px, 5vw, 57px); }
.archive-hero p { max-width: 750px; margin: 0 auto 30px; color: #cadad4; }
.archive-hero .site-search-form { margin-inline: auto; text-align: right; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: #77847f; font-size: 11px; }
.archive-hero .breadcrumbs, .search-hero .breadcrumbs, .law-hero .breadcrumbs, .document-hero .breadcrumbs { color: #a8bdb5; }
.breadcrumbs a:hover { color: var(--gold-500); }
.archive-law-grid { color: var(--text); }
.archive-precedent-grid { grid-template-columns: repeat(2, 1fr); }

.law-hero { padding-block: 48px 64px; }
.law-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.law-hero h1 { margin: 7px 0 13px; font-size: clamp(36px, 5vw, 60px); }
.law-hero p { max-width: 760px; margin-bottom: 0; color: #ccdad5; }
.law-facts { min-width: 210px; padding: 22px; text-align: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-md); }
.law-facts strong { display: block; color: var(--gold-500); font-size: 32px; }
.law-facts span { display: block; margin-bottom: 14px; color: #c5d5cf; font-size: 11px; }
.law-browser-grid { display: grid; grid-template-columns: 290px 1fr; gap: 40px; align-items: start; }
.sticky-panel { position: sticky; top: 24px; padding: 23px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.sticky-panel h2 { font-size: 19px; }
.article-number-form { margin-bottom: 22px; }
.article-number-form label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.article-number-form > div { display: flex; }
.article-number-form input { min-width: 0; width: 100%; height: 44px; padding: 8px 12px; background: #faf8f3; border: 1px solid var(--line); border-radius: 0 8px 8px 0; outline: 0; }
.article-number-form button { flex: none; padding-inline: 14px; color: #fff; background: var(--ink-800); border: 0; border-radius: 8px 0 0 8px; cursor: pointer; }
.law-structure { padding-top: 18px; border-top: 1px solid var(--line); }
.law-structure h3 { font-size: 13px; }
.law-structure ul { list-style: none; padding: 0; margin: 0; }
.law-structure > ul > li { margin-bottom: 7px; }
.law-structure a { display: block; padding: 8px 10px; color: #485650; border-radius: 7px; font-size: 12px; font-weight: 700; }
.law-structure a:hover, .law-structure a.is-active { color: var(--ink-900); background: #e7eee9; }
.law-structure li ul { margin: 5px 15px 10px 0; padding-right: 11px; border-right: 1px solid var(--line); }
.law-structure li ul a { padding: 4px 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
.law-structure .clear-filter { margin-top: 12px; color: var(--gold-600); text-align: center; border: 1px solid var(--gold-300); }
.article-index-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.article-index-head h2 { margin-bottom: 0; font-size: 30px; }
.result-total { flex: none; padding: 5px 11px; color: var(--muted); background: #eae5db; border-radius: 30px; font-size: 11px; }
.article-link-list { display: grid; gap: 10px; }
.article-link-card { position: relative; display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; align-items: center; min-height: 90px; padding: 15px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.article-link-card:hover { transform: translateX(-4px); border-color: var(--gold-300); box-shadow: var(--shadow-sm); }
.article-label { color: var(--ink-800); font-weight: 900; }
.article-snippet { color: #56625d; font-size: 12px; line-height: 1.8; }
.article-link-card small { grid-column: 2; margin-top: -14px; color: var(--gold-600); font-size: 9px; }
.article-link-card b { grid-column: 3; grid-row: 1 / span 2; color: var(--gold-600); font-size: 18px; }

.legal-article-page { padding-block: 34px 90px; background: #e9e2d5; }
.article-shell { max-width: 1140px; }
.article-breadcrumbs { color: var(--muted); }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: start; }
.legal-article-card { overflow: hidden; background: var(--white); border: 1px solid #d9d1c2; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.legal-article-header { position: relative; display: flex; justify-content: space-between; gap: 30px; padding: 38px 42px 30px; background: linear-gradient(180deg, #fff, #faf6ee); border-bottom: 1px solid var(--line); }
.legal-article-header h1 { margin: 5px 0 7px; font-size: clamp(36px, 5vw, 56px); }
.law-parent-title { margin: 0; }
.law-parent-title a { color: var(--ink-700); font-weight: 800; }
.article-seal { display: grid; place-items: center; align-content: center; flex: 0 0 88px; height: 88px; color: var(--ink-950); background: var(--gold-500); border: 5px solid #f1dfad; border-radius: 50%; box-shadow: 0 6px 20px rgba(185,137,50,.22); }
.article-seal small { font-size: 9px; line-height: 1; }
.article-seal strong { max-width: 70px; overflow: hidden; font-size: 22px; line-height: 1.35; text-overflow: ellipsis; }
.article-structure-path { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 15px 42px; color: var(--muted); background: #f3eee4; font-size: 11px; }
.article-structure-path strong { color: var(--ink-700); }
.legal-article-content { min-height: 280px; padding: 45px 48px 52px; color: #202622; font-family: "Noto Naskh Arabic", Tahoma, serif; font-size: 20px; line-height: 2.25; }
.legal-article-content p:last-child { margin-bottom: 0; }
.article-actions { display: flex; gap: 10px; padding: 20px 42px; background: #faf7f0; border-top: 1px solid var(--line); }
.action-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; color: var(--ink-800); background: #fff; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.action-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.article-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.article-neighbors a, .article-neighbors > span { min-height: 92px; padding: 20px 42px; background: #fff; }
.article-neighbors a:last-child { text-align: left; }
.article-neighbors small { display: block; color: var(--muted); font-size: 10px; }
.article-neighbors strong { color: var(--ink-800); }
.article-aside .sticky-panel { top: 20px; }
.article-aside dl { margin: 0 0 18px; }
.article-aside dl div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.article-aside dt { color: var(--muted); font-size: 9px; }
.article-aside dd { margin: 2px 0 0; color: var(--ink-800); font-size: 12px; font-weight: 800; }
.aside-note { margin: 17px 0 0; padding-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; line-height: 1.8; }

.search-hero { padding-block: 52px 65px; }
.search-hero h1 { margin-bottom: 25px; font-size: 40px; }
.advanced-search-form { display: grid; grid-template-columns: minmax(220px, 1.6fr) 180px 200px auto; gap: 8px; padding: 8px; background: #fff; border-radius: 14px; }
.advanced-search-form input, .advanced-search-form select { min-width: 0; height: 48px; padding: 8px 12px; color: var(--text); background: #f8f6f1; border: 1px solid #e8e3d9; border-radius: 8px; outline: 0; }
.advanced-search-form button { padding-inline: 22px; color: #fff; background: var(--ink-800); border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; }
.result-summary { margin-bottom: 18px; color: var(--muted); }
.result-summary strong { color: var(--ink-800); font-size: 21px; }
.search-result-list { display: grid; gap: 12px; }
.search-result-card { padding: 24px 27px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.search-result-type { color: var(--gold-600); font-size: 10px; font-weight: 900; }
.search-result-card h2 { margin: 4px 0; font-size: 20px; }
.search-result-card h2 a:hover { color: var(--ink-700); }
.result-parent { color: var(--ink-700); font-size: 11px; font-weight: 800; }
.search-result-card p { margin: 10px 0; color: var(--muted); font-size: 13px; }
.search-result-card .text-link { font-size: 12px; }

.document-hero { padding-block: 50px 68px; text-align: center; }
.document-hero .breadcrumbs { justify-content: center; }
.document-hero .file-badge.large { width: 62px; height: 70px; margin: 0 auto 18px; }
.document-hero h1 { margin: 5px 0 12px; font-size: clamp(34px, 5vw, 55px); }
.document-hero p { max-width: 680px; margin: 0 auto 15px; color: #c9d9d3; }
.document-meta { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; }
.document-meta span { padding: 4px 10px; color: #c7d8d2; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; font-size: 10px; }
.pdf-viewer { height: 780px; overflow: hidden; background: #525659; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.pdf-viewer iframe { width: 100%; height: 100%; border: 0; }
.viewer-fallback { color: var(--muted); font-size: 11px; text-align: center; }
.viewer-fallback a { color: var(--ink-700); font-weight: 800; }
.legal-note { display: flex; gap: 18px; margin-top: 30px; padding: 20px; color: #695b3d; background: #f4ead3; border: 1px solid #e6d4ac; border-radius: 12px; }
.legal-note p { margin-bottom: 0; font-size: 12px; }

.page-hero { padding-block: 52px; color: #fff; background: var(--ink-900); }
.page-hero h1 { margin: 0; color: #fff; font-size: 42px; }
.page-content { padding-block: 60px 90px; }
.entry-content h2 { margin: 35px 0 12px; font-size: 27px; }
.entry-content h3 { margin: 28px 0 10px; }
.entry-content a { color: var(--ink-700); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-right: 24px; }
.entry-content blockquote { margin: 25px 0; padding: 16px 22px; background: #f0ebdf; border-right: 4px solid var(--gold-500); }

.v23-contact-wrap { margin-top: 30px; }
.v23-contact-form { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.v23-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.v23-contact-form label { display: block; margin-bottom: 5px; color: var(--ink-800); font-size: 12px; font-weight: 800; }
.v23-contact-form input, .v23-contact-form textarea { width: 100%; padding: 11px 13px; background: #fbfaf7; border: 1px solid var(--line); border-radius: 8px; outline: 0; }
.v23-contact-form input:focus, .v23-contact-form textarea:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(211,171,82,.15); }
.v23-form-note { color: var(--muted); font-size: 10px; }
.v23-honeypot { position: absolute; left: -9999px; }
.v23-form-message { margin-bottom: 18px; padding: 13px 16px; border-radius: 8px; }
.v23-form-message.is-success { color: #145237; background: #ddefe5; border: 1px solid #b8ddc7; }
.v23-form-message.is-error { color: #7b2e27; background: #f3ddda; border: 1px solid #e6beb9; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 35px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding-inline: 10px; color: var(--ink-800); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.pagination .current { color: #fff; background: var(--ink-800); border-color: var(--ink-800); }
.empty-state { padding: 55px 25px; text-align: center; background: var(--white); border: 1px dashed #c9c1b3; border-radius: var(--radius-md); }
.empty-state h2 { font-size: 24px; }
.empty-state p { color: var(--muted); }
.generic-post { padding: 20px 0; border-bottom: 1px solid var(--line); }
.not-found-page { min-height: 70vh; display: grid; place-items: center; padding-block: 80px; text-align: center; }
.not-found-page .error-code { display: block; color: var(--gold-500); font-size: 80px; font-weight: 900; line-height: 1; }
.not-found-page h1 { font-size: 40px; }
.not-found-page p { color: var(--muted); }
.not-found-page .site-search-form { margin: 25px auto; }

.site-footer { padding-top: 65px; color: #bdcec8; background: var(--ink-950); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 70px; padding-bottom: 50px; }
.site-brand.is-footer .brand-copy strong { color: #fff; }
.site-brand.is-footer .brand-copy small { color: #aebfba; }
.footer-brand p { max-width: 420px; margin: 20px 0 0; color: #8fa69f; font-size: 12px; }
.footer-title { margin-bottom: 14px; color: #fff; font-size: 15px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #9db1aa; font-size: 12px; }
.footer-links a:hover { color: var(--gold-500); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-block: 18px; color: #758d85; border-top: 1px solid rgba(255,255,255,.08); font-size: 10px; }
.footer-bottom p { margin: 0; }

@media (max-width: 1050px) {
  .primary-navigation .menu { gap: 17px; }
  .hero-grid { grid-template-columns: 1fr 340px; gap: 35px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .law-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr 245px; }
  .advanced-search-form { grid-template-columns: 1fr 160px; }
  .advanced-search-form button { min-height: 46px; }
}

@media (max-width: 820px) {
  .section-space { padding-block: 68px; }
  .header-inner { min-height: 70px; }
  .menu-toggle { display: block; margin-right: auto; }
  .header-search-link { display: none; }
  .primary-navigation { position: fixed; inset: 70px 0 auto; display: none; padding: 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-navigation .menu a { display: block; padding: 11px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 70px; }
  .hero-panel { min-height: auto; }
  .hero-emblem { display: none; }
  .stat-list { max-width: 560px; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .precedent-grid { grid-template-columns: 1fr; }
  .law-browser-grid { grid-template-columns: 1fr; }
  .law-sidebar .sticky-panel { position: static; }
  .law-structure { max-height: 330px; overflow: auto; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { order: -1; }
  .article-aside .sticky-panel { position: static; }
  .article-aside dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .article-aside dl div { border-bottom: 0; }
  .article-aside .button, .article-aside .aside-note { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section-space { padding-block: 50px; }
  .brand-mark { width: 41px; height: 41px; }
  .brand-copy strong { font-size: 18px; }
  .hero-content h1 { font-size: 42px; }
  .hero-content > p { font-size: 15px; }
  .site-search-form { padding: 5px 9px; }
  .site-search-form .search-icon { width: 30px; }
  .site-search-form input { height: 48px; font-size: 12px; }
  .site-search-form button { padding-inline: 14px; font-size: 12px; }
  .stat-list { padding: 16px 5px; }
  .stat-list strong { font-size: 19px; }
  .stat-list span { white-space: normal; line-height: 1.5; }
  .section-heading { align-items: flex-start; }
  .section-heading .text-link { display: none; }
  .category-grid, .law-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 230px; }
  .law-card-link { min-height: 300px; }
  .how-grid > div h2 { font-size: 31px; }
  .archive-hero, .search-hero { padding-block: 45px 55px; }
  .archive-hero h1, .search-hero h1 { font-size: 34px; }
  .law-hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .law-facts { min-width: 0; }
  .article-link-card { grid-template-columns: 80px 1fr; gap: 12px; }
  .article-link-card b { display: none; }
  .article-link-card small { grid-column: 2; }
  .legal-article-page { padding-top: 20px; }
  .legal-article-header { padding: 27px 23px 22px; }
  .legal-article-header h1 { font-size: 37px; }
  .article-seal { flex-basis: 68px; height: 68px; border-width: 3px; }
  .article-seal strong { font-size: 17px; }
  .article-structure-path { padding-inline: 24px; }
  .legal-article-content { padding: 32px 25px 40px; font-size: 18px; line-height: 2.2; }
  .article-actions { padding: 15px 20px; }
  .action-button { flex: 1; justify-content: center; font-size: 11px; }
  .article-neighbors a, .article-neighbors > span { padding: 15px 20px; }
  .article-aside dl { grid-template-columns: 1fr 1fr; }
  .advanced-search-form { grid-template-columns: 1fr; }
  .archive-precedent-grid { grid-template-columns: 1fr; }
  .pdf-viewer { height: 560px; border-radius: 10px; }
  .v23-form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 5px; }
}

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

@media print {
  .site-header, .site-footer, .article-aside, .breadcrumbs, .article-actions, .article-neighbors { display: none !important; }
  body, .legal-article-page { background: #fff; }
  .legal-article-page { padding: 0; }
  .container, .article-shell { width: 100%; max-width: none; }
  .article-layout { display: block; }
  .legal-article-card { border: 0; box-shadow: none; }
  .legal-article-content { font-size: 16pt; }
}
