:root {
  --bg:#f7f7f2;
  --paper:#fff;
  --ink:#202e29;
  --muted:#667169;
  --line:#dde2da;
  --brand:#254e3e;
  --brand-dark:#173729;
  --accent:#b7512c;
  --soft:#edf1e9;
  --radius:8px;
  --mark:#f9e6a5;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:24px;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;
  line-height:1.6;
}

a {
  color:var(--brand);
  text-underline-offset:4px;
}

a:hover {
  color:var(--accent);
}

button,input,select {
  font:inherit;
}

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

:focus-visible {
  outline:3px solid #b7512c;
  outline-offset:4px;
}

button {
  cursor:pointer;
}

[hidden] {
  display:none!important;
}

h1,h2,h3,p {
  margin-top:0;
}

h1,h2,h3 {
  line-height:1.2;
}

mark {
  background:var(--mark);
  color:inherit;
  padding:0 2px;
  border-radius: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;
  top:-70px;
  left:16px;
  padding:12px;
  background:var(--brand);
  color:#fff;
  z-index:10;
}

.skip-link:focus {
  top:8px;
}

.site-header {
  max-width:1440px;
  margin:auto;
  padding:23px 48px;
  display:flex;
  align-items:center;
  gap:48px;
  border-bottom:1px solid var(--line);
}

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

.brand-mark {
  display:grid;
  grid-auto-flow:column;
  place-content:center;
  width:43px;
  height:43px;
  border-radius:4px;
  background:var(--brand);
  color:#fff;
  font-family:Georgia,serif;
  font-size:28px;
  font-weight:bold;
  letter-spacing:-2px;
}

.brand-mark span {
  color:#e9b67c;
}

.brand-text {
  display:flex;
  flex-direction:column;
  line-height:1.4;
}

.brand-text strong {
  font-size:15px;
  letter-spacing:-.3px;
}

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

.site-nav {
  display:flex;
  gap:28px;
  font-size:12px;
  font-weight:600;
}

.site-nav a {
  text-decoration:none;
}

.site-nav a[href="/acerca"] {
  color:var(--muted);
}

.header-note {
  display:flex;
  align-items:center;
  gap:7px;
  margin-left:auto;
  font-size:10px;
  color:var(--muted);
}

.status-dot {
  width:6px;
  height:6px;
  background:var(--brand);
  border-radius:50%;
  flex-shrink:0;
}

.container {
  max-width:1320px;
  margin:auto;
  padding:0 40px 64px;
}

.hero {
  padding:44px 0 32px;
  position:relative;
  border-bottom:1px solid var(--line);
}

.eyebrow {
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 14px;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.8px;
  text-transform:uppercase;
  color:var(--brand);
}

.eyebrow-line {
  width:24px;
  height:2px;
  background:var(--accent);
}

.hero h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:clamp(32px,3.7vw,49px);
  letter-spacing:-1.6px;
  line-height:1.12;
  margin-bottom:16px;
}

.hero h1 em {
  color:var(--brand);
  font-weight:400;
}

.lede {
  max-width:780px;
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
  margin-bottom:0;
}

.hero-index {
  position:absolute;
  right:4px;
  top:57px;
  width:160px;
  height:132px;
  border:1px solid #cbd4c5;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  transform:rotate(-4deg);
  color:#73856d;
  background:repeating-linear-gradient(0deg,transparent,transparent 5px,#dee5d744 6px);
}

.hero-index span {
  font:9px ui-monospace,monospace;
  letter-spacing:1px;
}

.hero-index strong {
  font:29px Georgia,serif;
  letter-spacing:4px;
}

.search-box {
  display:flex;
  gap:8px;
  margin-top:27px;
}

.search-input-wrap {
  display:flex;
  align-items:center;
  flex:1;
  min-width:0;
  gap:15px;
  padding:0 17px;
  background:var(--paper);
  border:1px solid #c9d2c8;
  border-radius:6px;
}

.search-input-wrap:focus-within {
  outline:2px solid var(--brand);
  outline-offset:2px;
}

.search-icon {
  display:block;
  width:15px;
  height:15px;
  border:1.6px solid var(--muted);
  border-radius:50%;
  position:relative;
  flex-shrink:0;
}

.search-icon:after {
  content:"";
  position:absolute;
  width:6px;
  height:1.6px;
  background:var(--muted);
  right:-5px;
  bottom:-2px;
  transform:rotate(45deg);
}

.search-box input[type=search] {
  width:100%;
  min-width:0;
  background:transparent;
  border:0;
  outline:0;
  padding:15px 0;
  color:var(--ink);
  font-size:14px;
}

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

.search-box kbd {
  border:1px solid var(--line);
  padding:0 6px;
  border-radius:3px;
  color:var(--muted);
  font-size:12px;
}

.search-box button {
  min-width:125px;
  justify-content:space-between;
}

.button,button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border:1px solid transparent;
  border-radius:5px;
  padding:11px 17px;
  background:var(--brand);
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
  line-height:1.5;
}

.button:hover,button:hover {
  background:var(--brand-dark);
  color:#fff;
}

.button.secondary {
  background:transparent;
  border-color:var(--line);
  color:var(--ink);
}

.button.secondary:hover {
  background:var(--soft);
  border-color:#99ab98;
}

.button.small {
  padding:8px 12px;
  font-size:11px;
}

.search-help {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:13px;
  margin-top:12px;
  font-size:11px;
  color:var(--muted);
}

.search-help a {
  text-decoration:none;
  border-bottom:1px solid #c8cebf;
}

.search-tip {
  margin-left:auto;
  font-size:10px;
}

.workspace {
  display:grid;
  grid-template-columns:246px minmax(0,1fr);
  gap:36px;
  padding-top:30px;
}

.search-sidebar {
  min-width:0;
}

.filter-panel {
  background:#f0f2eb;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.section-heading h2 {
  font-size:14px;
  margin:0;
}

.section-heading>span {
  color:var(--muted);
}

.sidebar-caption {
  font-size:11px;
  line-height:1.6;
  color:var(--muted);
  margin:7px 0 21px;
}

.filters {
  display:grid;
  gap:17px;
}

.filters label {
  font-size:11px;
  font-weight:600;
  color:#47564a;
}

.filters select {
  display:block;
  margin-top:6px;
  width:100%;
  height:40px;
  padding:0 25px 0 10px;
  border:1px solid #d3dace;
  border-radius:4px;
  background:#fff;
  color:var(--ink);
  font-size:12px;
  text-overflow:ellipsis;
}

.filter-actions {
  margin-top:22px;
  padding-top:15px;
  border-top:1px solid #d9dfd3;
}

.clear-filters {
  font-size:11px;
}

.sidebar-guide {
  padding:24px 3px 0;
}

.sidebar-guide .eyebrow {
  font-size:9px;
  letter-spacing:1.2px;
  color:var(--muted);
  margin-bottom:9px;
}

.sidebar-guide a {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
  text-decoration:none;
  padding:13px 0;
  border-bottom:1px solid var(--line);
  font-size:12px;
  font-weight:600;
}

.sidebar-guide small {
  display:block;
  font-size:10px;
  line-height:1.5;
  font-weight:400;
  color:var(--muted);
  margin-top:4px;
}

.sidebar-note {
  display:flex;
  gap:10px;
  padding:18px 4px;
  font-size:11px;
  line-height:1.7;
  color:var(--muted);
}

.sidebar-note>span {
  color:var(--accent);
  font-size:20px;
}

.results-column {
  min-width:0;
}

.search-feedback {
  font-size:12px;
  color:var(--brand);
}

.search-feedback:not(:empty) {
  padding:10px 0;
}

.results-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:21px;
}

.results-head .eyebrow {
  font-size:9px;
  letter-spacing:1.5px;
  margin-bottom:7px;
  color:var(--muted);
}

.results-head h2 {
  font-size:19px;
  letter-spacing:-.4px;
  margin:0;
  overflow-wrap:anywhere;
}

.results-count {
  color:var(--muted);
  font-size:11px;
  margin:7px 0 0;
}

.results-count strong {
  color:var(--ink);
}

.results-count>span {
  margin:0 6px;
}

.results-head button {
  flex-shrink:0;
}

.active-filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}

.chip {
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:4px;
  background:var(--paper);
  font-size:11px;
  text-decoration:none;
}

.chip span {
  font-variant-numeric:tabular-nums;
  color:var(--muted);
}

.active-chip {
  background:var(--soft);
  border-color:#cbd7c4;
  max-width:100%;
  overflow-wrap:anywhere;
}

.active-chip span {
  font-size:16px;
}

.cards {
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}

.card {
  padding:20px 23px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  transition:border-color .15s,box-shadow .15s;
}

.card:hover,.card:focus-within {
  border-color:#9caf99;
  box-shadow:0 3px 12px #233e2708;
}

.card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.card-id {
  min-width:0;
}

.record-label {
  display:block;
  font:9px ui-monospace,SFMono-Regular,monospace;
  letter-spacing:.8px;
  color:var(--muted);
  margin-bottom:3px;
}

.card-title {
  font:600 14px ui-monospace,SFMono-Regular,monospace;
  letter-spacing:-.4px;
  text-decoration:none;
  overflow-wrap:anywhere;
}

.card-title span {
  display:inline-block;
  margin-left:7px;
  color:#768772;
  font-size:14px;
}

.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  background:#eff0ed;
  color:#5f695e;
  border-radius:4px;
  padding:3px 8px;
  font-size:10px;
  white-space:nowrap;
  font-weight:600;
}

.badge:before {
  content:"";
  height:4px;
  width:4px;
  border-radius:50%;
  background:currentColor;
}

.badge.ok {
  background:#e9f1e7;
  color:#3e6538;
}

.badge.warn {
  background:#fbf0df;
  color:#84601d;
}

.badge.bad {
  background:#f5e9e5;
  color:#935044;
}

.snippet {
  font-size:13px;
  line-height:1.65;
  margin:13px 0 17px;
  overflow-wrap:anywhere;
}

.card-bottom {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  padding-top:14px;
  border-top:1px solid #edf0e9;
  align-items:end;
}

.meta {
  display:grid;
  grid-template-columns:1.3fr 1fr .8fr;
  gap:16px;
  margin:0;
}

.meta div {
  min-width:0;
}

.meta dt,.amount-label {
  display:block;
  font-size:9px;
  color:var(--muted);
  line-height:1.4;
  margin-bottom:4px;
}

.meta dd {
  margin:0;
  font-size:11px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.meta-unit dd {
  font-size:10px;
  letter-spacing:.1px;
}

.card-amount {
  text-align:right;
  border-left:1px solid var(--line);
  padding-left:20px;
}

.card-amount strong {
  display:block;
  font-size:17px;
  line-height:1.4;
  letter-spacing:-.4px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.currency {
  font-size:9px;
  color:var(--muted);
}

.card-amount .amount-missing {
  font-size:11px;
  letter-spacing:0;
  color:var(--muted);
  font-weight:500;
  white-space:normal;
}

.pager {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid var(--line);
  font-size:11px;
}

.pager a,.pager-disabled {
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:4px;
  text-decoration:none;
}

.pager a {
  background:var(--paper);
}

.pager-disabled {
  color:#92998e;
}

.query-note {
  text-align:center;
  margin:13px 0 0;
  font-size:10px;
  color:var(--muted);
}

.results.is-loading {
  opacity:.55;
  pointer-events:none;
}

.empty {
  padding:52px 24px;
  border:1px dashed #bdc8b7;
  border-radius:var(--radius);
  background:var(--paper);
  text-align:center;
}

.empty h3 {
  font-size:21px;
}

.empty p {
  color:var(--muted);
  font-size:13px;
}

.empty-symbol {
  display:block;
  font-size:48px;
  color:var(--brand);
  line-height:1;
  margin-bottom:20px;
}

.data-overview {
  margin-top:50px;
  padding-top:30px;
  border-top:1px solid var(--line);
}

.data-overview h2 {
  font-family:Georgia,serif;
  font-size:27px;
  font-weight:400;
}

.data-overview .eyebrow {
  font-size:9px;
  margin-bottom:8px;
}

.data-scope {
  font-size:10px;
}

.stats-grid {
  display:grid;
  grid-template-columns:1fr 1.35fr;
  margin:24px 0;
  gap:0;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--paper);
}

.stat {
  padding:22px 25px;
  min-width:0;
}

.stat+.stat {
  border-left:1px solid var(--line);
}

.stat-label {
  display:block;
  font-size:11px;
  color:var(--muted);
}

.stat-value {
  display:block;
  font-size:29px;
  letter-spacing:-1px;
  line-height:1.4;
  font-variant-numeric:tabular-nums;
  margin:8px 0;
}

.stat-money {
  font-size:clamp(19px,2.2vw,29px);
}

.stat-note {
  font-size:10px;
  color:var(--muted);
}

.data-notes {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  font-size:12px;
  color:var(--muted);
}

.data-notes strong {
  display:block;
  color:var(--ink);
  font-weight:600;
  margin-bottom:4px;
}

.unit-strip {
  margin-top:10px;
  font-size:12px;
}

.unit-strip summary {
  cursor:pointer;
}

.chips {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}

.site-footer {
  background:var(--soft);
  border-top:1px solid var(--line);
  padding:44px 40px 24px;
  color:var(--muted);
  font-size:13px;
}

.footer-inner {
  max-width:1240px;
  margin:auto;
}

.footer-main {
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:48px;
  padding-bottom:36px;
}

.footer-brand-name {
  font-size:15px;
  font-weight:650;
  color:var(--ink);
}

.site-footer p {
  margin:0;
}

.site-footer .footer-statement {
  font:normal 26px/1.25 Georgia,serif;
  color:var(--brand-dark);
  margin:22px 0 12px;
}

.footer-description {
  max-width:320px;
  line-height:1.7;
}

.site-footer .footer-credit {
  margin-top:18px;
  font-size:12px;
}

.footer-nav h2 {
  margin:12px 0 18px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1.3px;
  color:var(--ink);
}

.footer-nav ul {
  list-style:none;
  padding:0;
  margin:0;
}

.footer-nav li a {
  display:inline-block;
  padding:6px 0;
  text-decoration:none;
}

.footer-nav a:hover {
  text-decoration:underline;
}

.footer-socials {
  display:flex;
  gap:22px;
  margin-top:18px;
}

.footer-socials a {
  padding:6px 0;
  text-decoration:none;
}

.footer-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding-top:22px;
  border-top:1px solid #cdd6c8;
  font-size:11px;
  line-height:1.8;
}

.footer-bottom p:last-child {
  text-align:right;
}

.detail {
  padding-top:30px;
}

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

.back {
  font-size:12px;
  text-decoration:none;
}

.detail-head {
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:32px;
  padding:30px;
  background:var(--paper);
  border:1px solid var(--line);
  border-top:3px solid var(--brand);
  border-radius:var(--radius);
}

.detail-head h1 {
  font-family:Georgia,serif;
  font-size:32px;
  font-weight:400;
  letter-spacing:-.8px;
  overflow-wrap:anywhere;
  margin-bottom:18px;
}

.detail-head .lede {
  font-size:14px;
}

.detail-side {
  border-left:1px solid var(--line);
  padding-left:26px;
}

.amount {
  margin:15px 0 0;
  font-size:26px;
  font-weight:600;
  letter-spacing:-1px;
  font-variant-numeric:tabular-nums;
}

.side-label {
  font-size:10px;
  color:var(--muted);
  margin-bottom:18px;
}

.detail-notice {
  border-left:3px solid #b99755;
  padding:12px 16px;
  font-size:12px;
  background:#f1eddf;
  color:#6a6046;
  margin:18px 0;
}

.detail-nav {
  display:flex;
  gap:24px;
  flex-wrap:wrap;
  border-bottom:1px solid var(--line);
  padding:15px 0;
  font-size:12px;
}

.detail-nav a {
  text-decoration:none;
}

.detail-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:18px;
  margin:20px 0;
}

.panel {
  min-width:0;
  padding:25px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--paper);
  margin:18px 0;
}

.detail-grid .panel {
  margin:0;
}

.panel h2 {
  font-size:17px;
  margin:0 0 20px;
  letter-spacing:-.3px;
}

.facts {
  margin:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}

.facts div {
  min-width:0;
}

.facts dt {
  font-size:10px;
  color:var(--muted);
  margin-bottom:3px;
}

.facts dd {
  margin:0;
  overflow-wrap:anywhere;
  font-size:12px;
}

.facts dd:empty:after {
  content:"No disponible";
  color:var(--muted);
}

.doc-list,.related {
  list-style:none;
  margin:0;
  padding:0;
}

.doc-list li {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}

.doc-list li:last-child,.related li:last-child {
  border:0;
}

.related li {
  display:grid;
  grid-template-columns:200px minmax(0,1fr) auto;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  align-items:center;
}

.related a {
  font-size:12px;
  font-weight:600;
  overflow-wrap:anywhere;
}

.related-desc {
  font-size:11px;
  color:var(--muted);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

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

table {
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}

th,td {
  padding:13px 10px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}

th {
  font-size:10px;
  color:var(--muted);
  font-weight:500;
}

td.right {
  text-align:right;
}

.muted {
  color:var(--muted);
}

.copy-status {
  font-size:11px;
  color:var(--muted);
}

@media(min-width:1400px) {
  .hero {
    padding-top:52px;
    padding-bottom:36px;
  }
  .workspace {
    gap:40px;
  }
}

@media(max-width:1100px) {
  .site-header {
    padding:20px 30px;
    gap:25px;
  }
  .header-note {
    display:none;
  }
  .site-nav {
    margin-left:auto;
  }
  .container {
    padding-left:30px;
    padding-right:30px;
  }
  .workspace {
    grid-template-columns:220px minmax(0,1fr);
    gap:24px;
  }
  .card-bottom {
    grid-template-columns:1fr;
  }
  .card-amount {
    border-left:0;
    padding-left:0;
    text-align:left;
    display:flex;
    align-items:baseline;
    gap:8px;
    flex-wrap:wrap;
  }
  .meta {
    grid-template-columns:1.2fr 1fr .7fr;
  }
  .site-footer {
    padding-left:30px;
    padding-right:30px;
  }
  .footer-main {
    gap:28px;
  }
  .hero-index {
    right:5px;
    top:64px;
    width:140px;
  }
  .results-head {
    align-items:flex-start;
  }
  .results-head button {
    max-width:100px;
  }
  .search-tip {
    display:none;
  }
  .stat {
    padding:20px;
  }
  .detail-head {
    grid-template-columns:minmax(0,1fr) 230px;
  }
}

@media(max-width:760px) {
  .site-header {
    padding:16px 20px;
    flex-wrap:wrap;
    row-gap:16px;
  }
  .site-nav {
    font-size:11px;
    gap:15px;
    width:100%;
    margin-left:0;
    flex-wrap:wrap;
  }
  .container {
    padding:0 20px 40px;
  }
  .hero {
    padding:30px 0 24px;
  }
  .hero-index {
    display:none;
  }
  .hero h1 {
    font-size:37px;
    letter-spacing:-1px;
  }
  .hero .lede {
    font-size:13px;
  }
  .desktop-break {
    display:none;
  }
  .workspace {
    grid-template-columns:1fr;
    gap:24px;
    padding-top:22px;
  }
  .filter-panel {
    padding:16px;
  }
  .sidebar-caption {
    margin-bottom:14px;
  }
  .filters {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .filter-actions {
    margin-top:14px;
    padding-top:11px;
  }
  .sidebar-guide,.sidebar-note {
    display:none;
  }
  .results-head button {
    max-width:none;
  }
  .results-head h2 {
    font-size:18px;
  }
  .card-bottom {
    grid-template-columns:minmax(0,1fr) auto;
  }
  .card-amount {
    display:block;
    text-align:right;
    border-left:1px solid var(--line);
    padding-left:16px;
  }
  .meta {
    grid-template-columns:1fr 1fr;
  }
  .meta-unit {
    grid-column:1/-1;
  }
  .data-scope {
    max-width:130px;
    text-align:right;
  }
  .stats-grid {
    grid-template-columns:1fr;
  }
  .stat+.stat {
    border-left:0;
    border-top:1px solid var(--line);
  }
  .stat {
    padding:18px 20px;
  }
  .stat-value,.stat-money {
    font-size:28px;
    margin:5px 0;
  }
  .data-notes {
    grid-template-columns:1fr;
    gap:4px;
  }
  .data-overview h2 {
    font-size:24px;
  }
  .site-footer {
    padding:32px 20px 24px;
  }
  .footer-main {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 24px;
    padding-bottom:28px;
  }
  .footer-project {
    grid-column:1/-1;
  }
  .footer-nav h2 {
    margin-top:0;
    line-height:1.6;
  }
  .footer-bottom {
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .footer-bottom p:last-child {
    text-align:left;
  }
  .detail-head,.detail-grid {
    grid-template-columns:1fr;
  }
  .detail-head {
    padding:23px;
    gap:22px;
  }
  .detail-side {
    border-left:0;
    padding-left:0;
    border-top:1px solid var(--line);
    padding-top:20px;
  }
  .detail-head h1 {
    font-size:28px;
  }
  .related li {
    grid-template-columns:1fr;
    gap:7px;
  }
  .related .badge {
    justify-self:start;
  }
}

@media(max-width:420px) {
  .footer-main {
    grid-template-columns:1fr;
  }
  .brand-text strong {
    font-size:13px;
  }
  .brand-text small {
    font-size:10px;
  }
  .site-header {
    gap:12px;
  }
  .site-nav {
    font-size:10px;
  }
  .site-nav a {
    max-width:none;
  }
  .hero h1 {
    font-size:32px;
  }
  .search-box {
    gap:6px;
  }
  .search-box button {
    min-width:76px;
    padding:10px;
  }
  .search-box button span,.search-box kbd {
    display:none;
  }
  .search-input-wrap {
    padding:0 12px;
    gap:12px;
  }
  .search-box input[type=search] {
    font-size:12px;
  }
  .search-help {
    gap:10px;
    font-size:10px;
  }
  .card {
    padding:17px;
  }
  .card-top {
    align-items:flex-start;
    gap:9px;
  }
  .card-title {
    font-size:12px;
  }
  .card-title span {
    display:none;
  }
  .badge {
    font-size:9px;
  }
  .card-bottom {
    grid-template-columns:1fr;
    gap:14px;
  }
  .card-amount {
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    gap:8px;
    text-align:left;
    border-left:0;
    padding-left:0;
  }
  .snippet {
    font-size:12px;
  }
  .results-head button {
    font-size:10px;
    padding:7px;
  }
  .pager {
    font-size:10px;
    gap:4px;
  }
  .pager a,.pager-disabled {
    padding:7px;
  }
  .facts {
    grid-template-columns:1fr;
  }
  .panel {
    padding:20px;
  }
}

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

@media print {
  .site-header,.site-footer,.detail-toolbar,.detail-nav,.button {
    display:none;
  }
  .container {
    max-width:none;
    padding:0;
  }
  body {
    background:#fff;
  }
  .panel,.detail-head {
    break-inside:avoid;
  }
  .detail-head,.detail-grid {
    display:block;
  }
  .detail-side {
    border:0;
    padding:0;
  }
  .detail-notice {
    background:none;
  }
  .panel {
    margin:12px 0;
  }
}

.filter-panel summary {
  cursor: pointer;
  list-style: none;
}

.filter-panel summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 760px) {
  .search-box input[type=search] {
    font-size: 16px;
  }

  .filters select {
    font-size: 16px;
  }
}

/* A readable field guide for connecting the archive to an assistant. */
.mcp-guide { padding-top:52px; }
.mcp-hero { display:grid; grid-template-columns:1.2fr 1fr; gap:64px; align-items:center; padding-bottom:56px; }
.mcp-hero h1 { font:normal clamp(40px,4.6vw,64px)/1.06 Georgia,serif; letter-spacing:-2px; margin-bottom:24px; }
.mcp-hero h1 em { color:var(--brand); font-weight:normal; }
.mcp-hero .lede { max-width:590px; font-size:17px; }
.mcp-actions { display:flex; align-items:center; flex-wrap:wrap; gap:24px; margin:28px 0 18px; }
.mcp-actions > a:not(.button) { font-size:13px; }
.mcp-caption { color:var(--muted); font-size:12px; margin:16px 0; }
.mcp-example { background:var(--brand-dark); color:#fff; border-radius:var(--radius); padding:34px; }
.mcp-kicker { display:block; font-size:10px; letter-spacing:1.5px; font-weight:700; }
.mcp-example .mcp-kicker { color:#c8d9c5; }
.mcp-example blockquote { font:normal 29px/1.3 Georgia,serif; margin:22px 0 28px; }
.mcp-path { padding:0; margin:0; list-style:none; }
.mcp-path li { display:flex; gap:16px; padding:15px 0; border-top:1px solid #ffffff26; }
.mcp-path li > span { color:#dfb98e; font:18px Georgia,serif; padding-top:3px; }
.mcp-path strong { font-size:13px; }
.mcp-path p { margin:3px 0 0; color:#d0dace; font-size:12px; }
.mcp-example-note { color:#d0dace; font-size:11px; margin:20px 0 0; }
.mcp-intro { display:grid; grid-template-columns:1fr 1.4fr; gap:64px; border-block:1px solid var(--line); padding:30px 0; }
.mcp-intro h2 { font:26px/1.25 Georgia,serif; max-width:300px; margin:0; }
.mcp-intro p { margin:0; color:var(--muted); font-size:15px; }
.mcp-section { padding:54px 0 0; scroll-margin-top:24px; }
.mcp-section h2 { font:normal 36px/1.18 Georgia,serif; letter-spacing:-.7px; margin-bottom:14px; }
.mcp-section > p:not(.eyebrow) { max-width:760px; }
.mcp-connection { background:var(--soft); border:1px solid var(--line); border-radius:var(--radius); padding:26px; margin:26px 0; }
.mcp-connection-heading { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin-bottom:12px; }
.mcp-connection-heading label { font-weight:700; }
.mcp-copy-row { display:flex; gap:10px; }
.mcp-copy-row input { width:100%; min-width:0; border:1px solid #b8c7b7; border-radius:4px; background:var(--paper); padding:14px; font-size:14px; color:var(--brand-dark); }
.mcp-copy-row button { flex-shrink:0; }
.mcp-settings { display:flex; flex-wrap:wrap; gap:20px 48px; margin:22px 0 16px; }
.mcp-settings dt { font-size:11px; color:var(--muted); }
.mcp-settings dd { margin:2px 0 0; font-size:13px; font-weight:600; }
#mcp-network-note { font-size:12px; max-width:820px; color:var(--muted); margin:0; }
.mcp-unavailable { border-left:3px solid var(--accent); background:#f7ede3; padding:24px; margin:26px 0; }
.mcp-unavailable p { margin:8px 0; }
.mcp-clients { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.mcp-client { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:28px; display:flex; flex-direction:column; }
.mcp-client .mcp-kicker,.mcp-prompt .mcp-kicker { color:var(--accent); }
.mcp-client h3,.mcp-prompt h3 { font:25px/1.25 Georgia,serif; margin:12px 0 18px; }
.mcp-client ol { padding-left:20px; margin:0 0 24px; }
.mcp-client li { padding-left:6px; margin-bottom:14px; }
.mcp-client li::marker { color:var(--accent); font-weight:700; }
.mcp-doc-link { margin-top:auto; font-size:12px; }
.mcp-faq { border-bottom:1px solid var(--line); }
.mcp-faq summary { padding:20px 0; cursor:pointer; font-weight:600; }
.mcp-faq > div { max-width:850px; padding:0 0 12px 20px; }
.mcp-prompts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; margin-top:26px; }
.mcp-prompt { padding:26px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); display:flex; flex-direction:column; }
.mcp-prompt p { font-size:14px; line-height:1.8; color:#49564c; }
.mcp-prompt button { margin-top:auto; align-self:flex-start; }
.mcp-verify { display:grid; grid-template-columns:1fr 1.3fr; gap:64px; border-top:1px solid var(--line); margin-top:54px; padding-bottom:32px; }
.mcp-verify h2 { margin-bottom:25px; }
.mcp-limits h3 { font-size:15px; margin-bottom:8px; }
.mcp-limits p { color:var(--muted); margin-bottom:26px; }
.mcp-tools dt { font-weight:700; margin-top:16px; }
.mcp-tools dd { margin:4px 0 0; }
.mcp-guide code { overflow-wrap:anywhere; }
@media(max-width:1100px) {
  .mcp-hero { gap:32px; }
  .mcp-hero h1 { font-size:46px; }
  .mcp-prompts { gap:14px; }
  .mcp-prompt { padding:20px; }
}
@media(max-width:760px) {
  .mcp-guide { padding-top:30px; }
  .mcp-hero,.mcp-intro,.mcp-clients,.mcp-prompts,.mcp-verify { grid-template-columns:1fr; gap:24px; }
  .mcp-hero { padding-bottom:32px; }
  .mcp-hero h1 { font-size:42px; letter-spacing:-1.3px; }
  .mcp-hero .lede { font-size:16px; }
  .mcp-example { padding:26px; }
  .mcp-intro h2 { max-width:none; }
  .mcp-section { padding-top:36px; }
  .mcp-section h2 { font-size:30px; }
  .mcp-connection,.mcp-client,.mcp-prompt { padding:20px; }
  .mcp-copy-row { flex-direction:column; }
  .mcp-copy-row button { align-self:flex-start; }
  .mcp-settings { gap:16px 28px; }
  .mcp-verify { margin-top:36px; }
}

.about-page { padding-top:52px; }
.about-hero { padding-bottom:44px; border-bottom:1px solid var(--line); }
.about-hero h1 { max-width:1050px; font:normal clamp(38px,4.5vw,64px)/1.12 Georgia,serif; letter-spacing:-1.8px; margin:20px 0 26px; }
.about-hero h1 em { color:var(--brand); }
.about-hero .lede { max-width:740px; font-size:18px; margin-bottom:0; }
.about-columns { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:80px; align-items:start; padding:48px 0; }
.about-story h2 { font:normal 32px/1.2 Georgia,serif; margin-bottom:22px; }
.about-story p:not(.eyebrow) { font-size:16px; line-height:1.8; }
.about-story blockquote { margin:32px 0; padding:4px 0 4px 24px; border-left:3px solid var(--accent); color:var(--brand); font:italic 28px/1.4 Georgia,serif; }
.about-section { border-top:1px solid var(--line); margin-top:36px; padding-top:32px; }
.about-source-link { display:inline-block; font-size:13px; margin-top:6px; }
.about-author { background:var(--soft); border:1px solid var(--line); border-radius:var(--radius); padding:34px; }
.about-monogram { width:64px; height:64px; display:grid; grid-auto-flow:column; place-content:center; background:var(--brand); color:#fff; border-radius:4px; font:bold 40px Georgia,serif; letter-spacing:-3px; margin-bottom:28px; }
.about-monogram span { color:#e9b67c; }
.about-author h2 { font:normal 30px/1.2 Georgia,serif; margin-bottom:20px; }
.about-author > p:not(.eyebrow) { font-size:15px; }
.about-socials { margin-top:26px; }
.about-socials a { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid #cdd6c8; padding:14px 0; font-weight:600; text-decoration:none; }
.about-socials small { display:block; font-size:12px; font-weight:400; color:var(--muted); margin-top:3px; }
.about-related { margin-top:22px; padding-top:26px; border-top:1px solid #cdd6c8; }
.about-related h3 { font:normal 23px/1.3 Georgia,serif; margin-bottom:12px; }
.about-related p:last-child { color:var(--muted); font-size:13px; margin:0; }
.about-invitation { display:flex; align-items:center; justify-content:space-between; gap:32px; border-top:1px solid var(--line); padding-top:36px; }
.about-invitation h2 { font:normal 28px/1.3 Georgia,serif; max-width:600px; margin:0; }
.about-invitation .button { flex-shrink:0; }
.site-nav a[aria-current="page"] { color:var(--brand); text-decoration:underline; text-underline-offset:6px; }
@media(max-width:1100px) {
  .about-columns { gap:36px; }
  .about-author { padding:26px; }
}
@media(max-width:760px) {
  .about-page { padding-top:30px; }
  .about-hero { padding-bottom:30px; }
  .about-hero h1 { letter-spacing:-1px; }
  .about-hero .lede { font-size:16px; }
  .about-columns { grid-template-columns:1fr; gap:32px; padding:32px 0; }
  .about-story h2 { font-size:29px; }
  .about-story blockquote { font-size:25px; padding-left:20px; }
  .about-invitation { flex-direction:column; align-items:flex-start; gap:24px; }
}

/* Review signal: a reference amount, never a finding about compliance. */
.review-legend { display:flex; align-items:flex-start; gap:9px; margin:0 0 18px; font-size:12px; color:#66562b; line-height:1.6; }
.review-symbol { color:#946000; font-size:18px; line-height:1.25; }
.review-legend a { white-space:nowrap; }
.card-review { border-color:#d8bc6b; border-left:4px solid #c69424; background:#fffcf3; }
.card-review:hover,.card-review:focus-within { border-color:#a27615; }
.review-card-note { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; padding-bottom:12px; margin-bottom:14px; border-bottom:1px solid #ead9a7; color:#70500b; font-size:12px; }
.review-card-note strong { display:inline-flex; align-items:center; gap:6px; }
.review-card-note > span { font-size:11px; }
.review-card-note a { margin-left:6px; white-space:nowrap; }
.review-callout { margin:22px 0; padding:24px 28px; background:#fff7df; border:1px solid #d8bc6b; border-left:4px solid #c69424; border-radius:var(--radius); color:#51401d; }
.review-callout h2 { display:flex; align-items:center; gap:9px; font-size:18px; color:#70500b; margin-bottom:14px; }
.review-callout p { max-width:960px; margin-bottom:12px; }
.review-callout .review-data-note { font-size:12px; }
.review-callout > a { display:inline-block; font-size:13px; font-weight:600; }
.review-methodology { max-width:920px; margin:auto; padding:44px 0 0; }
.review-methodology h1 { font:normal clamp(30px,4vw,46px)/1.15 Georgia,serif; color:var(--brand-dark); }
.review-methodology .lede { font-size:17px; }
.review-methodology section { margin:30px 0; padding-top:26px; border-top:1px solid var(--line); }
.review-methodology h2 { font:normal 27px/1.25 Georgia,serif; }
.review-methodology p { line-height:1.8; }
.review-law-table { min-width:580px; margin-bottom:18px; }
.review-law-table caption { text-align:left; font-weight:600; padding:0 0 12px; color:var(--ink); }
.review-law-table th[scope=row] { text-align:left; font-size:13px; color:var(--ink); font-weight:600; text-transform:none; letter-spacing:normal; }
.review-law-table td { vertical-align:top; }
@media(max-width:760px) {
  .review-callout { padding:20px; }
  .review-callout h2 { font-size:17px; }
  .review-methodology { padding-top:30px; }
}
