@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&family=Montserrat:wght@400;500;700&family=Bitter:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --tuva-green:        #004445;
  --tuva-green-hover:  #005f64;
  --tuva-green-light:  #e0f0f4;
  --tuva-green-mid:    #b1dbe2;
  --tuva-gold:         #ecb606;
  --tuva-text:         #1c2025;
  --tuva-text-muted:   #5c6065;
  --tuva-border:       #dadfe5;
  --tuva-border-light: #e9eef4;
  --tuva-bg:           #f5faff;
  --tuva-white:        #ffffff;
  --header-h:          46px;
  --sidebar-w:         280px;
  --radius-sm:         4px;
  --radius-md:         6px;
  --radius-lg:         10px;
}

.a11y-docs, .a11y-docs *, .a11y-docs *::before, .a11y-docs *::after { box-sizing: border-box; }
.a11y-docs header.index-hero,
.a11y-docs header.page-hero { height: auto; z-index: auto; }
.a11y-docs :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd) { margin: 0; padding: 0; }
.a11y-docs :where(ul, ol) { list-style: none; }

.a11y-docs {
  font-family: 'Source Sans Pro', Arial, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  color: var(--tuva-text);
  line-height: 1.6;
  background: var(--tuva-white);
  position: relative;
  z-index: 0;
  isolation: isolate;
}

/* ── SKIP LINK ── */
.a11y-docs .skip-link {
  position: fixed;
  top: -60px;
  left: 0;
  background: var(--tuva-gold);
  color: var(--tuva-text);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 var(--radius-md) 0;
}
.a11y-docs .skip-link:focus { top: var(--header-h); }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--tuva-green);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  font-family: 'Montserrat', 'Source Sans Pro', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-brand img { height: 22px; }

.navbar-brand-text { font-size: 17px; }

.navbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.navbar-section-label {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-left: auto;
}

.navbar-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.navbar-nav a:hover { color: var(--tuva-gold); }
.navbar-nav a.active { color: var(--tuva-gold); }

/* ── PAGE WRAPPER ── */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HERO (section pages) ── */
.page-hero {
  background: var(--tuva-green);
  padding: 44px 40px;
  color: white;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Bitter', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  line-height: 1.6;
  margin: 0 auto;
}

/* ── BODY LAYOUT ── */
.page-body {
  flex: 1;
  display: flex;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--tuva-bg);
  border-right: 1px solid var(--tuva-border);
  padding: 24px 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.sidebar-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tuva-text-muted);
  text-decoration: none;
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--tuva-border);
  margin-bottom: 16px;
  transition: color 0.15s;
}
.sidebar-back:hover { color: var(--tuva-green); }

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tuva-text-muted);
  padding: 0 16px 6px;
  margin-top: 12px;
  display: block;
}

.sidebar-nav { list-style: none; }

.sidebar-nav a {
  display: block;
  padding: 7px 16px;
  color: var(--tuva-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-nav a:hover {
  background: var(--tuva-green-light);
  color: var(--tuva-green);
  border-left-color: var(--tuva-green);
}

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  padding: 36px 48px;
  min-width: 0;
  max-width: 860px;
}

/* ── CONTENT SECTIONS ── */
.content-section {
  scroll-margin-top: calc(var(--header-h) + 16px);
  margin-bottom: 52px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--tuva-border-light);
}
.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.content-section > h2 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--tuva-green);
  margin-bottom: 10px;
}

.section-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  background: var(--tuva-bg);
  border: 1px solid var(--tuva-border);
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tuva-green);
}

.content-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--tuva-text);
  margin: 24px 0 8px;
}

.content-section p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
  color: var(--tuva-text);
}

.content-section p:last-child { margin-bottom: 0; }

.content-section ul,
.content-section ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.content-section li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ── VIDEO ── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 16px 0;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-caption {
  font-size: 12px;
  color: var(--tuva-text-muted);
  margin-top: 6px;
  margin-bottom: 20px;
  font-style: italic;
}

/* ── DOC IMAGES ── */
.doc-img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--tuva-border);
  border-radius: var(--radius-md);
  margin: 14px 0;
}

.a11y-docs .a11y-zoomable-image {
  cursor: zoom-in;
  transition: box-shadow 0.15s ease;
}

.a11y-docs .a11y-zoomable-image:hover,
.a11y-docs .a11y-zoomable-image:focus {
  box-shadow: 0 0 0 3px rgba(0, 95, 100, 0.18);
  outline: none;
}

.feature-pair-img img {
  max-width: 100%;
  height: auto;
  display: block;
}

body.a11y-lightbox-open {
  overflow: hidden;
}

.a11y-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 22, 31, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.a11y-lightbox[hidden] {
  display: none;
}

.a11y-lightbox__dialog {
  position: relative;
  width: min(100%, 1120px);
  max-height: calc(100vh - 56px);
  background: var(--tuva-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.a11y-lightbox__close {
  align-self: flex-end;
  margin: 14px 14px 0 0;
  border: 1px solid var(--tuva-border);
  background: var(--tuva-white);
  color: var(--tuva-text);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.a11y-lightbox__close:hover,
.a11y-lightbox__close:focus {
  background: var(--tuva-green-light);
  border-color: var(--tuva-green-mid);
  color: var(--tuva-green);
  outline: none;
}

.a11y-lightbox__figure {
  margin: 0;
  padding: 12px 20px 20px;
  overflow: auto;
}

.a11y-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
}

.a11y-lightbox__caption {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tuva-text-muted);
}

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

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder {
  background: var(--tuva-bg);
  border: 1px dashed var(--tuva-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.img-placeholder .ph-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--tuva-text-muted);
}
.img-placeholder .ph-note {
  font-size: 11px;
  color: #989da3;
  font-family: monospace;
}

/* ── STEPS ── */
.steps { list-style: none; padding: 0; counter-reset: step; margin: 16px 0; }
.steps li {
  position: relative;
  padding: 0 0 14px 44px;
  counter-increment: step;
  font-size: 16px;
  line-height: 1.65;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 26px; height: 26px;
  background: var(--tuva-green);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── KEYBOARD KEYS ── */
kbd {
  display: inline-block;
  background: white;
  border: 1px solid #c4cdd6;
  border-bottom: 3px solid #a8b4be;
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 12px;
  font-family: 'Source Sans Pro', monospace;
  white-space: nowrap;
  color: var(--tuva-text);
}

.shortcut-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.shortcut-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tuva-text-muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--tuva-border);
}
.shortcut-table td {
  padding: 10px 12px;
  font-size: 15px;
  border-bottom: 1px solid var(--tuva-border-light);
  vertical-align: middle;
}
.shortcut-table tr:last-child td { border-bottom: none; }
.shortcut-table .key-cell { white-space: nowrap; }
.shortcut-table .key-cell kbd + kbd { margin-left: 4px; }

/* ── CALLOUT ── */
.callout {
  background: var(--tuva-green-light);
  border-left: 3px solid var(--tuva-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  margin: 20px 0;
  color: var(--tuva-text);
}
.callout-coming {
  background: #fff7dc;
  border-left-color: var(--tuva-gold);
}
.callout strong:first-child { display: block; margin-bottom: 4px; }

/* ── LANGUAGE CHIPS ── */
.language-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}
.language-chip {
  background: var(--tuva-green-light);
  color: var(--tuva-green);
  border: 1px solid var(--tuva-green-mid);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* ── FEATURE PAIR (before/after) ── */
.feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.feature-pair-item {
  border: 1px solid var(--tuva-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature-pair-label {
  background: var(--tuva-bg);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-bottom: 1px solid var(--tuva-border);
  color: var(--tuva-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.feature-pair-img { padding: 12px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--tuva-bg);
  border-top: 1px solid var(--tuva-border);
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--tuva-text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a {
  color: var(--tuva-green);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* ── INDEX PAGE ── */
.index-hero {
  background: var(--tuva-green);
  padding: 64px 40px;
  color: white;
  text-align: center;
}
.index-hero .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tuva-gold);
  margin-bottom: 12px;
  display: block;
}
.index-hero h1 {
  font-family: 'Bitter', Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}
.index-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.compliance-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 99px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.04em;
}

.index-body { max-width: 1100px; margin: 0 auto; padding: 48px 40px; }

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.section-card {
  background: white;
  border: 1px solid var(--tuva-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--tuva-text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-card:hover {
  border-color: var(--tuva-green);
  box-shadow: 0 4px 16px rgba(0,68,69,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.section-card:hover h3, .section-card:hover p { text-decoration: none; }
.section-card-icon {
  width: 44px; height: 44px;
  background: var(--tuva-green-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.section-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--tuva-green);
}
.section-card p {
  font-size: 14px;
  color: var(--tuva-text-muted);
  line-height: 1.55;
}
.section-card .feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.feature-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--tuva-text-muted);
  background: var(--tuva-bg);
  border: 1px solid var(--tuva-border);
  border-radius: 99px;
  padding: 2px 9px;
}

.index-divider { border: 0; border-top: 1px solid var(--tuva-border-light); margin: 48px 0; }

.promise-section { max-width: 680px; }
.promise-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--tuva-green);
  margin-bottom: 12px;
}
.promise-section p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--tuva-text);
  margin-bottom: 14px;
}
.promise-section a { color: var(--tuva-green); }
.contact-callout {
  background: var(--tuva-green-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
}
.contact-callout strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--tuva-green); }
.contact-callout a { color: var(--tuva-green); font-weight: 600; }

/* ── TREE SIDEBAR ── */
.sidebar-tree-root {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--tuva-text-muted);
  text-decoration: none;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--tuva-border);
  margin-bottom: 10px;
  transition: color 0.15s;
}
.sidebar-tree-root:hover { color: var(--tuva-green); }

.sidebar-hr {
  border: 0;
  border-top: 1px solid var(--tuva-border);
  margin: 10px 0;
}

.sidebar-section-header {
  display: block;
  padding: 6px 16px 6px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tuva-text);
  text-decoration: none;
  border-left: 4px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color 0.15s;
}
a.sidebar-section-header:hover { color: var(--tuva-green); }
a.sidebar-section-header.active,
a.sidebar-section-header[aria-current="page"] {
  color: var(--tuva-green);
  font-weight: 700;
  background: var(--tuva-green-light);
  border-left-color: var(--tuva-green);
}
.sidebar-section-header--muted {
  color: var(--tuva-text-muted);
  cursor: default;
}

.sidebar-tree-items {
  list-style: none;
  padding: 2px 0 4px 28px;
}
.sidebar-tree-items a {
  display: block;
  padding: 5px 10px;
  font-size: 15px;
  color: var(--tuva-text);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all 0.15s;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.sidebar-tree-items a:hover {
  color: var(--tuva-green);
  background: var(--tuva-green-light);
  border-left-color: var(--tuva-green);
}
.sidebar-tree-items a.active,
.sidebar-tree-items a[aria-current="page"] {
  color: var(--tuva-green);
  font-weight: 700;
  background: var(--tuva-green-light);
  border-left-color: transparent;
  box-shadow: inset 4px 0 0 var(--tuva-green);
}

.sidebar-tree-placeholder {
  display: block;
  font-size: 13px;
  color: #a0a8b0;
  font-style: italic;
  padding: 4px 10px 4px 38px;
}

.sidebar-commitment {
  display: block;
  padding: 6px 16px 6px 12px;
  font-size: 15px;
  color: var(--tuva-text);
  text-decoration: none;
  font-weight: 600;
  border-left: 4px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color 0.15s;
}
.sidebar-commitment:hover { color: var(--tuva-green); }
.sidebar-commitment.active,
.sidebar-commitment[aria-current="page"] {
  color: var(--tuva-green);
  font-weight: 700;
  background: var(--tuva-green-light);
  border-left-color: var(--tuva-green);
}

.sidebar-on-page {
  list-style: none;
  margin: 2px 0 4px 20px;
  padding: 4px 0 4px 10px;
  border-left: 2px solid var(--tuva-green-mid);
}
.sidebar-on-page a {
  display: block;
  padding: 3px 8px;
  font-size: 15px;
  color: var(--tuva-text-muted);
  text-decoration: none;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.sidebar-on-page a:hover {
  color: var(--tuva-green);
  background: var(--tuva-green-light);
}

/* ── AUDIT SAMPLE LINKS ── */
.sample-list {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sample-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--tuva-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--tuva-text);
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.sample-list li a:hover {
  border-color: var(--tuva-green);
  box-shadow: 0 2px 8px rgba(0,68,69,0.08);
  color: var(--tuva-green);
}
.sample-label {
  font-size: 15px;
  font-weight: 600;
}
.sample-ext {
  font-size: 12px;
  color: var(--tuva-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.sample-list li a:hover .sample-ext { color: var(--tuva-green); }

/* ── LANDING PAGE ── */
.landing-body {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 56px;
  width: 100%;
}

.landing-section {
  margin-bottom: 52px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--tuva-border-light);
}
.landing-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.landing-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--tuva-green);
  margin-bottom: 12px;
}

.landing-section p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--tuva-text);
  margin-bottom: 14px;
}
.landing-section p:last-child { margin-bottom: 0; }

.mission-tagline {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--tuva-green-light);
  border-left: 3px solid var(--tuva-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--tuva-green);
  line-height: 1.5;
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.tool-card {
  display: block;
  background: white;
  border: 1px solid var(--tuva-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--tuva-text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
}
.tool-card:hover {
  border-color: var(--tuva-green);
  box-shadow: 0 4px 16px rgba(0,68,69,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.tool-card:hover h3, .tool-card:hover p { text-decoration: none; }
.tool-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--tuva-green);
  margin-bottom: 8px;
}
.tool-card p {
  font-size: 14px;
  color: var(--tuva-text-muted);
  line-height: 1.6;
}
.tool-card.placeholder {
  opacity: 0.6;
  cursor: default;
}
.tool-card.placeholder:hover {
  border-color: var(--tuva-border);
  box-shadow: none;
  transform: none;
}

.coming-soon-tag {
  display: inline-block;
  margin-top: 12px;
  background: #fff7dc;
  color: #8a6800;
  border: 1px solid #f0d060;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.reports-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.report-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: white;
  border: 1px solid var(--tuva-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--tuva-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.report-item:hover {
  border-color: var(--tuva-green);
  box-shadow: 0 2px 8px rgba(0,68,69,0.08);
}
.report-item.coming-soon {
  opacity: 0.65;
  cursor: default;
}
.report-item.coming-soon:hover {
  border-color: var(--tuva-border);
  box-shadow: none;
}
.report-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--tuva-text);
  margin-bottom: 3px;
}
.report-item-meta {
  font-size: 13px;
  color: var(--tuva-text-muted);
}
.report-badge {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.report-badge.download {
  background: var(--tuva-green-light);
  color: var(--tuva-green);
}
.report-badge.view {
  background: var(--tuva-green-light);
  color: var(--tuva-green);
}
.report-badge.pending {
  background: #fff7dc;
  color: #8a6800;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-content { padding: 28px 24px; }
  .feature-pair { grid-template-columns: 1fr; }
  .landing-body { padding: 32px 24px; }
  .tool-cards { grid-template-columns: 1fr; }
  .a11y-lightbox { padding: 16px; }
  .a11y-lightbox__dialog { max-height: calc(100vh - 32px); }
  .a11y-lightbox__image { max-height: calc(100vh - 190px); }
}
@media (max-width: 700px) {
  .navbar-nav { display: none; }
  .index-hero h1 { font-size: 32px; }
  .index-hero { padding: 48px 24px; }
  .index-body { padding: 32px 20px; }
  .landing-body { padding: 32px 20px; }
  .site-footer { flex-direction: column; text-align: center; }
}

/* ── SELF-ASSESSMENT: LEGEND, CRITERIA TABLE, STATUS CHIPS ── */
.a11y-docs .legend {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.a11y-docs .legend > li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
}
.a11y-docs .legend > li > span:last-child { flex: 1; }

.a11y-docs .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  flex-shrink: 0;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}
.a11y-docs .status-badge.supports {
  background: #e0f0e8;
  color: #1a5c33;
  border-color: #9ecdb2;
}
.a11y-docs .status-badge.partial {
  background: #fdf2d8;
  color: #7a5400;
  border-color: #e5c77a;
}
.a11y-docs .status-badge.no-support {
  background: #fbe1dc;
  color: #8a2014;
  border-color: #e0a398;
}
.a11y-docs .status-badge.na {
  background: #eceff2;
  color: #5c6065;
  border-color: #c9cdd2;
}

.a11y-docs .criteria-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tuva-border);
  border-radius: var(--radius-md);
  margin-top: 20px;
  background: var(--tuva-white);
}

.a11y-docs .criteria-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.a11y-docs .criteria-table caption {
  text-align: left;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tuva-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  caption-side: top;
  background: var(--tuva-bg);
  border-bottom: 1px solid var(--tuva-border);
}
.a11y-docs .criteria-table thead th {
  position: sticky;
  top: 0;
  background: var(--tuva-green);
  color: var(--tuva-white);
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 1;
}
.a11y-docs .criteria-table tbody td {
  padding: 12px 14px;
  border-top: 1px solid var(--tuva-border-light);
  vertical-align: top;
  color: var(--tuva-text);
}
.a11y-docs .criteria-table tbody tr:nth-child(even) td {
  background: var(--tuva-bg);
}
.a11y-docs .criteria-table tbody tr:hover td {
  background: #eef6f8;
}
.a11y-docs .criteria-table td.sc-number {
  white-space: nowrap;
  font-family: 'Source Sans Pro', Arial, monospace;
  font-weight: 700;
  color: var(--tuva-green);
}
.a11y-docs .criteria-table td.sc-name { font-weight: 600; }
.a11y-docs .criteria-table td.sc-level {
  text-align: center;
  font-weight: 700;
  color: var(--tuva-text-muted);
  white-space: nowrap;
}
.a11y-docs .criteria-table td.sc-status { white-space: nowrap; }
.a11y-docs .criteria-table td.sc-notes {
  font-size: 13px;
  line-height: 1.6;
  color: var(--tuva-text);
}
.a11y-docs .criteria-table td.sc-notes code {
  font-size: 12px;
  background: #eceff2;
  padding: 1px 5px;
  border-radius: 3px;
}

@media (max-width: 700px) {
  .a11y-docs .criteria-table { min-width: 560px; }
  .a11y-docs .criteria-table thead th,
  .a11y-docs .criteria-table tbody td { padding: 10px; }
}

/* ── SELF-ASSESSMENT: REPORT-ITEM HOVER, FILTER, TECH TOGGLE ── */
.a11y-docs .report-item { text-decoration: none; }
.a11y-docs .report-item:hover { text-decoration: none; }
.a11y-docs .report-item:hover .report-item-title,
.a11y-docs .report-item:hover .report-item-meta { text-decoration: none; }

.a11y-docs .criteria-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 14px 16px;
  margin-top: 20px;
  border: 1px solid var(--tuva-border);
  border-radius: var(--radius-md);
  background: var(--tuva-bg);
}
.a11y-docs .criteria-toolbar-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--tuva-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.a11y-docs .criteria-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.a11y-docs .criteria-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tuva-white);
  border: 1px solid var(--tuva-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tuva-text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s, background 0.12s;
}
.a11y-docs .criteria-filter-btn:hover { border-color: var(--tuva-green-mid); }
.a11y-docs .criteria-filter-btn[aria-pressed="true"] {
  background: var(--tuva-green);
  border-color: var(--tuva-green);
  color: var(--tuva-white);
}
.a11y-docs .criteria-filter-btn[aria-pressed="true"] .status-badge { border-color: transparent; }
.a11y-docs .criteria-filter-count {
  font-size: 13px;
  color: var(--tuva-text-muted);
  margin-left: auto;
}

.a11y-docs .criteria-tech-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tuva-text);
  cursor: pointer;
  user-select: none;
}
.a11y-docs .criteria-tech-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--tuva-green);
  cursor: pointer;
}

/* Default: hide technical evidence. Toggle `.show-technical` on the table to show it. */
.a11y-docs .criteria-table:not(.show-technical) .sc-notes .tech { display: none; }

/* ── SELF-ASSESSMENT: HERO META, INTERIM BANNER, COUNT STATS, METHODOLOGY ── */
.a11y-docs .page-hero-meta {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.a11y-docs .page-banner {
  background: #fff8e0;
  border-top: 3px solid var(--tuva-gold);
  border-bottom: 1px solid #e8dcb0;
  padding: 14px 40px;
  color: #4a3800;
}
.a11y-docs .page-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.55;
}
.a11y-docs .page-banner strong { color: #6a4c00; margin-right: 4px; }
.a11y-docs .page-banner a { color: #6a4c00; text-decoration: underline; }
.a11y-docs .page-banner a:hover { color: #3a2a00; }

.a11y-docs .count-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}
.a11y-docs .count-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--tuva-border);
  background: var(--tuva-white);
}
.a11y-docs .count-stat strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: var(--tuva-text);
  font-family: 'Bitter', Georgia, serif;
}
.a11y-docs .count-stat span {
  font-size: 13px;
  color: var(--tuva-text-muted);
  font-weight: 600;
}
.a11y-docs .count-stat.supports   { border-left: 4px solid #1a5c33; background: #f4f9f6; }
.a11y-docs .count-stat.partial    { border-left: 4px solid #c79412; background: #fdf8e7; }
.a11y-docs .count-stat.no-support { border-left: 4px solid #a82a1a; background: #fbf0ec; }
.a11y-docs .count-stat.na         { border-left: 4px solid #8a9096; background: #f4f6f8; }

.a11y-docs .method-details {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 10px 20px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--tuva-border);
  border-radius: var(--radius-md);
  background: var(--tuva-bg);
}
.a11y-docs .method-details dt {
  font-weight: 700;
  font-size: 13px;
  color: var(--tuva-green);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.a11y-docs .method-details dd {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tuva-text);
}
@media (max-width: 700px) {
  .a11y-docs .method-details { grid-template-columns: 1fr; }
  .a11y-docs .method-details dd { margin-bottom: 6px; }
}

@media (max-width: 700px) {
  .a11y-docs .criteria-filter-count { margin-left: 0; width: 100%; }
}

/* ── SELF-ASSESSMENT: GLOSSARY, DOWNLOAD PDF BUTTON ── */
.a11y-docs .glossary-details {
  margin-top: 14px;
  border: 1px solid var(--tuva-border);
  border-radius: var(--radius-md);
  background: var(--tuva-white);
}
.a11y-docs .glossary-details > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--tuva-green);
  list-style: none;
}
.a11y-docs .glossary-details > summary::-webkit-details-marker { display: none; }
.a11y-docs .glossary-details > summary::before {
  content: "\25B6";
  display: inline-block;
  margin-right: 8px;
  color: var(--tuva-text-muted);
  font-size: 10px;
  transition: transform 0.15s;
}
.a11y-docs .glossary-details[open] > summary::before { transform: rotate(90deg); }
.a11y-docs .glossary {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 12px 24px;
  padding: 6px 20px 20px;
  margin: 0;
  border-top: 1px solid var(--tuva-border-light);
}
.a11y-docs .glossary dt {
  font-weight: 700;
  font-size: 14px;
  color: var(--tuva-text);
  padding-top: 10px;
}
.a11y-docs .glossary dd {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tuva-text);
  padding-top: 10px;
}
.a11y-docs .glossary dd code {
  font-size: 12px;
  background: #eceff2;
  padding: 1px 5px;
  border-radius: 3px;
}
@media (max-width: 700px) {
  .a11y-docs .glossary { grid-template-columns: 1fr; gap: 4px 0; }
  .a11y-docs .glossary dd { padding-top: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--tuva-border-light); }
}

.a11y-docs .criteria-table-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  margin-bottom: 8px;
}

.a11y-docs .btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--tuva-white);
  border: 1px solid var(--tuva-green);
  color: var(--tuva-green);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.a11y-docs .btn-download-pdf:hover {
  background: var(--tuva-green);
  color: var(--tuva-white);
  text-decoration: none;
}
.a11y-docs .btn-download-pdf:focus-visible {
  outline: 3px solid var(--tuva-gold);
  outline-offset: 2px;
}

/* ── PRINT / SAVE-AS-PDF ── */
@media print {
  /* Kill site chrome */
  body > header,
  header.bg-blue,
  body > footer,
  #footer,
  .a11y-docs .skip-link,
  .a11y-docs .sidebar,
  .a11y-docs .criteria-toolbar,
  .a11y-docs .btn-download-pdf,
  .a11y-docs .glossary-details > summary::before {
    display: none !important;
  }

  /* Unwind the fixed-header padding from the site base */
  .content-root { padding-top: 0 !important; }
  body { background: #fff !important; color: #000 !important; }

  /* Expand the main column to full width */
  .a11y-docs .page-body { display: block; }
  .a11y-docs .main-content { max-width: none; padding: 0 0.4in; }

  /* Hero: keep colors but drop fixed positioning artifacts */
  .a11y-docs .page-hero {
    background: var(--tuva-green) !important;
    color: #fff !important;
    padding: 24pt 0.4in !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .a11y-docs .page-hero-meta { color: rgba(255, 255, 255, 0.85) !important; }

  .a11y-docs .page-banner {
    background: #fff8e0 !important;
    border-top: 2pt solid var(--tuva-gold) !important;
    padding: 10pt 0.4in !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Table: show everything, allow natural width, avoid mid-row breaks */
  .a11y-docs .criteria-table-wrap { overflow: visible !important; border: none !important; }
  .a11y-docs .criteria-table { min-width: 0 !important; font-size: 9pt; }
  .a11y-docs .criteria-table caption { background: transparent !important; border-bottom: 1pt solid #000 !important; }
  .a11y-docs .criteria-table thead th {
    position: static !important;
    background: #004445 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .a11y-docs .criteria-table tbody tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  /* Filter-hidden rows: unhide for print so the PDF captures the full table */
  .a11y-docs .criteria-table tbody tr[hidden] { display: table-row !important; }
  /* Always include technical evidence in print */
  .a11y-docs .criteria-table .sc-notes .tech { display: inline !important; }

  /* Status badges: keep the color coding in print */
  .a11y-docs .status-badge {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    border: 1pt solid currentColor !important;
  }

  /* Glossary: auto-open when printing */
  .a11y-docs .glossary-details,
  .a11y-docs .glossary-details > .glossary { display: block !important; }
  .a11y-docs .glossary-details > summary { font-weight: 700; }

  /* Links: underline and show URL for non-mailto, non-anchor external links */
  .a11y-docs a { color: #000 !important; text-decoration: underline; }
  .a11y-docs a[href^="http"]::after,
  .a11y-docs a[href^="/"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }

  /* Remove shadows and transforms */
  * { box-shadow: none !important; transform: none !important; }

  /* Page breaks */
  .a11y-docs .content-section { break-before: avoid; }
  .a11y-docs h2 { break-after: avoid; }

  @page { size: Letter; margin: 0.5in; }
}
