/* Sistema visual local: sin fuentes, imágenes decorativas ni bibliotecas externas. */
:root {
  color-scheme: light dark;
  --bg: #f4f7f9;
  --surface: #fff;
  --surface-soft: #f8fafb;
  --ink: #142e3a;
  --muted: #526774;
  --line: #dce5e9;
  --accent: #106755;
  --accent-soft: #edf7f3;
  --navy: #123f41;
  --focus: #0878c4;
  --shadow: 0 8px 28px #183c4c07;
  --green: #147454;
  --green-bg: #eaf6ef;
  --yellow: #78580b;
  --yellow-bg: #fff4d4;
  --orange: #9b4715;
  --orange-bg: #fff0e6;
  --red: #b33343;
  --red-bg: #fcecef;
  --gray: #56646d;
  --gray-bg: #eef1f3;
  --demo-bg: #fff5d9;
  --demo-text: #694b0d;
  --radius: 14px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101a21;
    --surface: #19272f;
    --surface-soft: #202f37;
    --ink: #edf4f6;
    --muted: #b3c5ce;
    --line: #354954;
    --accent: #8ad5bc;
    --accent-soft: #203f37;
    --navy: #193f40;
    --focus: #82c5ff;
    --shadow: none;
    --green: #9ddcba;
    --green-bg: #203c31;
    --yellow: #efcf7d;
    --yellow-bg: #403721;
    --orange: #ffbb88;
    --orange-bg: #483126;
    --red: #ffacb7;
    --red-bg: #492b34;
    --gray: #c5cfd4;
    --gray-bg: #303d45;
    --demo-bg: #3d331c;
    --demo-text: #f4d78e;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.6;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
svg {
  display: block;
}
svg path,
svg circle {
  vector-effect: non-scaling-stroke;
}
.container {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  background: var(--surface);
  padding: 12px 18px;
  border: 2px solid var(--accent);
  border-radius: 8px;
}
.skip-link:focus {
  transform: none;
}
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.brand strong {
  font-weight: 750;
}
.brand-mark {
  width: 46px;
  height: 49px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent);
  flex: none;
}
.brand-mark svg {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-caption {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  margin-top: 4px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.9rem;
  font-weight: 600;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 0;
}
.main-nav a:hover,
.main-nav a[aria-current] {
  color: var(--accent);
}
.main-nav a[aria-current] {
  box-shadow: 0 2px var(--accent);
}
.demo-banner {
  background: var(--demo-bg);
  color: var(--demo-text);
  border-bottom: 1px solid color-mix(in srgb, var(--demo-text) 16%, transparent);
  font-size: 0.875rem;
}
.demo-banner > .container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 11px;
}
.demo-tag {
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  flex: none;
}
.demo-tag:before {
  content: "◈";
  margin-right: 8px;
}
.hero {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  align-items: center;
  gap: 72px;
  padding-block: 58px 44px;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 13px;
}
.country-mark {
  display: inline-block;
  width: 20px;
  height: 13px;
  margin-right: 9px;
  vertical-align: middle;
  border-radius: 2px;
  background: linear-gradient(#f5cc4c 0 50%, #315b98 50% 75%, #b84e51 75%);
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  letter-spacing: -0.055em;
  line-height: 1.14;
  font-weight: 750;
  margin-bottom: 23px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
h2 {
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.3;
  margin-bottom: 0;
}
h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.hero-description {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 23px;
}
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--muted);
}
.hero-meta strong {
  font-weight: 600;
}
.meta-icon {
  font-size: 1.15rem;
}
.meta-divider {
  height: 12px;
  border-left: 1px solid var(--line);
  margin-inline: 8px;
}
.principle-card {
  position: relative;
  background: var(--navy);
  color: #f0fbf7;
  padding: 28px 28px 25px;
  border-radius: var(--radius);
  overflow: hidden;
}
.principle-card:after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -85px;
  border: 1px solid #c7f3e51c;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
}
.principle-icon {
  display: block;
  width: 43px;
  color: #afdbca;
  margin-bottom: 17px;
}
.principle-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.principle-card .eyebrow {
  color: #c5e3d7;
  font-size: 0.7rem;
  margin-bottom: 8px;
}
.principle-card h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.principle-card p:not(.eyebrow) {
  font-size: 0.9rem;
  color: #d9e8e6;
  line-height: 1.6;
  margin-bottom: 16px;
}
.principle-card a {
  color: #e3f5eb;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}
.section-heading .eyebrow {
  font-size: 0.7rem;
  margin-bottom: 7px;
}
.section-note {
  font-size: 0.8rem;
  color: var(--muted);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1.05fr repeat(5, 1fr);
  gap: 10px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  min-width: 0;
  padding: 17px 16px 14px;
  text-align: left;
  color: var(--ink);
  box-shadow: var(--shadow);
}
button.stat:hover,
button.stat[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.stat-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 32px;
}
.stat-value {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.25;
  margin: 13px 0 5px;
}
.stat-value small {
  font-size: 0.8rem;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
}
.stat-caption {
  font-size: 0.73rem;
  color: var(--muted);
}
.stat-total {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
}
.status-symbol {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  flex: none;
}
.verificado {
  --state-color: var(--green);
  --state-bg: var(--green-bg);
}
.pendiente {
  --state-color: var(--yellow);
  --state-bg: var(--yellow-bg);
}
.inconsistencia {
  --state-color: var(--orange);
  --state-bg: var(--orange-bg);
}
.confirmada {
  --state-color: var(--red);
  --state-bg: var(--red-bg);
}
.no_aplica {
  --state-color: var(--gray);
  --state-bg: var(--gray-bg);
}
.stat .status-symbol,
.legend-symbol {
  color: var(--state-color);
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-heading {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}
.panel-heading h3 {
  margin: 0;
}
.soft-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 450;
}
.distribution-panel {
  padding: 22px 24px;
}
.distribution-content {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 20px;
}
.donut-wrap {
  width: 154px;
  flex: none;
  position: relative;
}
.donut {
  width: 100%;
  height: auto;
  transform: rotate(-90deg);
}
.donut-track {
  stroke: var(--line);
}
.donut-segment {
  stroke: var(--state-color);
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.donut-center strong {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.04em;
}
.donut-center span {
  font-size: 0.75rem;
  color: var(--muted);
}
.chart-legend {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 9px;
}
.legend-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  font-size: 0.8rem;
  line-height: 1.4;
}
.legend-row .status-symbol {
  width: 16px;
  height: 16px;
  font-size: 0.7rem;
}
.legend-row strong {
  font-weight: 650;
  white-space: nowrap;
}
.legend-row small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 7px;
}
.reading-panel {
  padding: 24px 26px;
  background: var(--surface-soft);
}
.reading-panel .eyebrow {
  font-size: 0.67rem;
  margin-bottom: 6px;
}
.reading-panel h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}
.reading-panel p:not(.eyebrow),
.reading-points {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.reading-points {
  padding-left: 18px;
  display: grid;
  gap: 4px;
}
.reading-panel a {
  font-size: 0.8rem;
  font-weight: 650;
}
.calculation-note {
  font-size: 0.77rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 2px 19px;
  max-width: 1050px;
}
.breakdown summary {
  padding: 17px 22px;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}
.breakdown summary .soft-label {
  margin-left: 12px;
}
.breakdown[open] summary {
  border-bottom: 1px solid var(--line);
}
.breakdown-body {
  padding: 20px;
}
.segmented {
  display: inline-flex;
  gap: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.segmented button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 4px #183c4c15;
  font-weight: 700;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.8rem;
}
caption {
  text-align: left;
  font-weight: 650;
  padding-bottom: 12px;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-weight: 650;
  background: var(--surface-soft);
}
tbody th {
  font-weight: 550;
  min-width: 200px;
}
td small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.directory {
  margin-top: 49px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  min-height: 43px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.4;
}
.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}
.button-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.button-primary {
  color: var(--surface);
  background: var(--accent);
}
.button-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.filters {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 17px 14px;
}
.filters label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.search-field {
  grid-column: 1/-1;
}
.input-with-icon {
  position: relative;
}
.input-with-icon svg {
  width: 19px;
  position: absolute;
  top: 14px;
  left: 13px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}
.filters input {
  width: 100%;
  padding: 11px 15px 11px 42px;
  min-height: 47px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
}
.filters input::placeholder {
  color: var(--muted);
}
select {
  appearance: none;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23667881' stroke-width='2'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  padding: 10px 35px 10px 12px;
  font-size: 0.84rem;
  max-width: 100%;
  min-height: 43px;
}
.filters select {
  width: 100%;
}
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 20px 16px;
  color: var(--muted);
  font-size: 0.8rem;
}
.results-toolbar p {
  margin: 0;
}
.results-toolbar strong {
  color: var(--ink);
}
.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-controls select {
  font-size: 0.78rem;
  min-height: 38px;
  padding-block: 8px;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px;
  font-size: 0.8rem;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
}
.profile-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 8px 24px #183c4c0b;
}
.profile-main {
  padding: 22px 22px 17px;
}
.profile-identity {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}
.avatar {
  height: 48px;
  width: 48px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
}
.avatar img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-identity h3 {
  margin: 2px 0 3px;
  font-size: 1rem;
  letter-spacing: -0.025em;
}
.demo-person {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.profile-job {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 7px;
  margin-bottom: 9px;
}
.profile-entity {
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 5px;
}
.profile-info {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.profile-info span {
  display: block;
}
.profile-checks {
  border-top: 1px solid var(--line);
  padding: 15px 22px 17px;
  display: grid;
  gap: 11px;
  flex: 1;
  align-content: start;
}
.check-line {
  display: grid;
  gap: 4px;
}
.check-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  align-items: flex-start;
  padding: 5px 8px;
  background: var(--state-bg);
  color: var(--state-color);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.5;
}
.badge .status-symbol {
  margin-top: 1px;
  width: 14px;
  height: 14px;
  font-size: 0.65rem;
}
.badge-neutral {
  --state-bg: var(--gray-bg);
  --state-color: var(--gray);
}
.profile-footer {
  margin-top: auto;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}
.profile-date {
  font-size: 0.71rem;
  color: var(--muted);
  line-height: 1.5;
}
.profile-date time {
  display: block;
  color: var(--ink);
  font-weight: 550;
}
.profile-footer button {
  font-size: 0.77rem;
  padding: 8px 11px;
  min-height: 38px;
}
.empty-state {
  text-align: center;
  padding: 45px 20px;
}
.empty-state > span {
  font-size: 2.5rem;
  color: var(--muted);
}
.empty-state h3 {
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--muted);
}
.directory-note {
  font-size: 0.77rem;
  max-width: 1000px;
  color: var(--muted);
  margin: 18px 2px 0;
}
.rectification-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-block: 43px;
  padding: 25px 28px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rectification-strip h2 {
  font-size: 1.05rem;
  margin-bottom: 5px;
}
.rectification-strip p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
.rectification-strip .button {
  flex: none;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding-block: 27px;
  font-size: 0.8rem;
}
.footer-inner strong {
  font-size: 0.9rem;
}
.footer-inner p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 0.75rem;
}
.footer-links {
  display: flex;
  gap: 23px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
}
.footer-links > span {
  color: var(--muted);
  font-size: 0.75rem;
}
.error-panel {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  overflow-wrap: anywhere;
}
.error-panel p {
  margin-bottom: 0;
}
.icon-button {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 1.65rem;
  line-height: 1;
}
.icon-button:hover {
  background: var(--accent-soft);
}
/* El diálogo nativo mantiene el foco dentro de la ficha y permite cerrar con Escape. */
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  width: min(850px, calc(100% - 30px));
  max-height: 90dvh;
  box-shadow: 0 30px 100px #0004;
}
dialog::backdrop {
  background: #0a202bc2;
  backdrop-filter: blur(3px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-shell {
  padding: 26px 32px 32px;
}
.dialog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 17px;
}
.dialog-toolbar .eyebrow {
  margin: 0;
}
.dialog-person {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}
.dialog-person .avatar {
  height: 61px;
  width: 61px;
  font-size: 1.2rem;
}
.dialog-person h2 {
  font-size: 1.6rem;
  margin-bottom: 3px;
}
.dialog-person p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}
.dialog-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.detail-demo {
  background: var(--demo-bg);
  color: var(--demo-text);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 0.8rem;
  margin-bottom: 22px;
}
.evidence-section {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 23px;
}
.evidence-section h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.evidence-item {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  padding: 18px;
  margin-block: 12px;
}
.evidence-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.evidence-item > .badge {
  margin-bottom: 13px;
}
.evidence-item p {
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.evidence-data {
  display: grid;
  grid-template-columns: 140px 1fr;
  font-size: 0.83rem;
  gap: 8px 14px;
  margin: 0;
}
.evidence-data dt {
  color: var(--muted);
}
.evidence-data dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.evidence-data a {
  font-weight: 550;
}
.evidence-result {
  padding-top: 13px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}
.evidence-result p {
  margin-bottom: 0;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 17px 0 0;
}
.timeline li {
  position: relative;
  padding: 0 0 22px 25px;
  border-left: 2px solid var(--line);
  margin-left: 5px;
  font-size: 0.85rem;
}
.timeline li:before {
  content: "";
  position: absolute;
  top: 5px;
  left: -5px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline time {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.timeline p {
  margin: 4px 0;
  color: var(--muted);
}
.official-links {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}
.official-links li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.86rem;
}
.official-links span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}
.detail-actions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.detail-actions p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  max-width: 390px;
}
.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: 60px;
  padding-block: 48px 65px;
  justify-content: center;
}
.article-nav {
  align-self: start;
  position: sticky;
  top: 25px;
}
.article-nav p {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.article-nav a {
  display: block;
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 0;
}
.article-nav a:hover {
  color: var(--accent);
}
.legal-article h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
.legal-article .lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}
.legal-article section {
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.legal-article h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.legal-article h3 {
  margin-top: 20px;
}
.legal-article p,
.legal-article li {
  font-size: 0.96rem;
}
.legal-article ul,
.legal-article ol {
  padding-left: 22px;
}
.legal-article li {
  margin-bottom: 10px;
}
.legal-article .badge {
  font-size: 0.85rem;
  margin-bottom: 5px;
}
.legal-note {
  padding: 20px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}
.legal-note p:last-child {
  margin: 0;
}
.contact-pending {
  padding: 17px;
  background: var(--yellow-bg);
  color: var(--yellow);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 1500px) {
  .container {
    width: min(1280px, calc(100% - 120px));
  }
  .hero {
    padding-top: 65px;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 35px;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-heading {
    min-height: 0;
  }
  .stat-value {
    margin-top: 9px;
  }
  .overview-grid {
    grid-template-columns: 1.15fr 1fr;
  }
  .distribution-content {
    gap: 17px;
  }
  .donut-wrap {
    width: 125px;
  }
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .search-field {
    grid-column: span 2;
  }
  .article-layout {
    gap: 35px;
    grid-template-columns: 180px 1fr;
  }
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-inner {
    min-height: 90px;
    gap: 14px;
    flex-wrap: wrap;
    padding-block: 17px;
  }
  .brand {
    font-size: 1rem;
  }
  .brand-mark {
    width: 40px;
    height: 44px;
  }
  .main-nav {
    gap: 20px;
    font-size: 0.8rem;
  }
  .main-nav a {
    padding-block: 5px;
  }
  .demo-banner > .container {
    align-items: flex-start;
    gap: 4px;
    flex-direction: column;
    padding-block: 10px;
  }
  .demo-banner {
    font-size: 0.78rem;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 35px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .principle-card {
    padding: 23px;
  }
  .principle-icon {
    float: right;
    width: 37px;
    margin-left: 20px;
  }
  .section-heading {
    margin-bottom: 17px;
    align-items: flex-end;
  }
  .section-note {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .stat {
    padding: 13px 11px;
  }
  .stat-heading {
    font-size: 0.72rem;
    min-height: 32px;
    align-items: flex-start;
  }
  .stat-value {
    font-size: 1.75rem;
  }
  .stat-value small {
    font-size: 0.7rem;
    margin-left: 5px;
  }
  .stat-caption {
    font-size: 0.69rem;
  }
  .stat .status-symbol {
    width: 15px;
    height: 15px;
    font-size: 0.65rem;
    margin-top: 2px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 13px;
  }
  .distribution-panel {
    padding: 20px;
  }
  .distribution-content {
    gap: 25px;
  }
  .donut-wrap {
    width: 143px;
  }
  .reading-panel {
    padding: 21px;
  }
  .breakdown summary .soft-label {
    display: none;
  }
  .directory {
    margin-top: 35px;
  }
  .directory .section-heading {
    align-items: center;
  }
  .directory .section-heading .eyebrow {
    max-width: 180px;
    font-size: 0.6rem;
  }
  .directory .section-heading .button {
    font-size: 0.76rem;
    padding: 9px 12px;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 17px;
    gap: 15px 11px;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .filters label {
    font-size: 0.73rem;
  }
  .filters input {
    font-size: 0.84rem;
  }
  .results-toolbar {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .sort-controls {
    justify-content: space-between;
    width: 100%;
  }
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .profile-main,
  .profile-checks {
    padding: 16px;
  }
  .profile-identity {
    flex-direction: column;
    gap: 7px;
  }
  .profile-identity h3 {
    font-size: 0.95rem;
  }
  .profile-footer {
    flex-wrap: wrap;
    padding: 13px 16px;
  }
  .profile-footer .button {
    width: 100%;
  }
  .profile-date time {
    display: inline;
    margin-left: 5px;
  }
  .rectification-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    margin-block: 30px;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .footer-links {
    gap: 17px;
  }
  .dialog-shell {
    padding: 20px;
  }
  .evidence-data {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .evidence-data dd {
    margin-bottom: 10px;
  }
  .dialog-person h2 {
    font-size: 1.3rem;
  }
  .dialog-person .avatar {
    height: 50px;
    width: 50px;
  }
  .article-layout {
    display: block;
    padding-block: 30px;
  }
  .article-nav {
    position: static;
    display: flex;
    gap: 8px 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
  }
  .article-nav p {
    width: 100%;
    margin: 0;
  }
  .article-nav a {
    font-size: 0.8rem;
    padding: 3px 0;
  }
  .legal-article h1 {
    font-size: 2rem;
  }
}
@media (max-width: 470px) {
  .brand-caption {
    font-size: 0.62rem;
  }
  .header-inner {
    gap: 12px;
  }
  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero .eyebrow {
    font-size: 0.64rem;
  }
  .hero-description br {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-heading {
    min-height: 0;
  }
  .stat-value {
    font-size: 1.9rem;
  }
  .distribution-content {
    gap: 16px;
  }
  .donut-wrap {
    width: 113px;
  }
  .legend-row {
    font-size: 0.73rem;
    gap: 6px;
  }
  .legend-row small {
    margin-left: 3px;
    font-size: 0.68rem;
  }
  .donut-center strong {
    font-size: 1.7rem;
  }
  .panel-heading .soft-label {
    display: none;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-identity {
    flex-direction: row;
    gap: 12px;
  }
  .profile-main {
    padding: 20px 20px 14px;
  }
  .profile-checks {
    padding: 15px 20px;
  }
  .check-line {
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }
  .check-label {
    padding-top: 5px;
  }
  .profile-footer {
    flex-wrap: nowrap;
    padding-inline: 20px;
  }
  .profile-footer .button {
    width: auto;
  }
  .profile-date time {
    display: block;
    margin-left: 0;
  }
  .hero-meta {
    font-size: 0.75rem;
  }
  .directory .section-heading .eyebrow {
    display: none;
  }
  .directory .section-heading h2 {
    font-size: 1.3rem;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .search-field {
    grid-column: auto;
  }
  .filters label {
    font-size: 0.8rem;
  }
  .filters select {
    font-size: 0.9rem;
  }
  .badge {
    font-size: 0.74rem;
  }
  .results-toolbar {
    font-size: 0.85rem;
  }
  .sort-controls {
    flex-wrap: wrap;
  }
  .rectification-strip h2 {
    line-height: 1.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .site-header,
  .demo-banner,
  .hero,
  .filters,
  .sort-controls,
  .button,
  .site-footer,
  .rectification-strip,
  .overview-grid,
  .breakdown {
    display: none;
  }
  .container {
    width: 100%;
  }
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-card {
    break-inside: avoid;
    box-shadow: none;
  }
  dialog[open] {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
  }
  body:has(dialog[open]) main {
    display: none;
  }
  .dialog-toolbar {
    display: none;
  }
}
