.document-guide-page {
  --doc-blue: #1d5789;
  --doc-blue-dark: #123f64;
  --doc-ink: #1f3040;
  --doc-muted: #526474;
  --doc-line: #d8e4ec;
  --doc-soft: #f4f8fb;
  --doc-green: #176b50;
  --doc-green-soft: #e8f5ef;
  --doc-amber: #76520c;
  --doc-amber-soft: #fff5d8;
  background: #f7f9fb;
  color: var(--doc-ink);
}

.doc-skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 220px;
  padding: 12px 18px;
  border-radius: 6px;
  background: #fff;
  color: var(--doc-blue-dark);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(18, 63, 100, 0.22);
  transform: translateY(-160%);
}

.doc-skip-link:focus {
  transform: translateY(0);
}

.document-guide-page :where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid #f5b82e;
  outline-offset: 3px;
}

.doc-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto 26px;
  color: var(--doc-muted);
  font-size: 15px;
}

.doc-breadcrumbs a {
  color: var(--doc-blue);
  font-weight: 700;
}

.doc-hero {
  padding-bottom: 54px;
}

.doc-hero h1 {
  max-width: 760px;
}

.doc-updated {
  font-size: 15px !important;
}

.doc-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.doc-hero__facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #c9dce9;
  border-radius: 999px;
  background: #fff;
  color: var(--doc-blue-dark);
  font-size: 14px;
  font-weight: 700;
}

.doc-hero__facts strong {
  font-size: 18px;
}

.doc-hero__panel {
  border-top: 5px solid var(--doc-blue);
}

.doc-panel__label {
  margin: 0 0 8px !important;
  color: var(--doc-blue) !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-panel__title {
  margin: 0 0 18px !important;
  color: var(--doc-ink) !important;
  font-size: 23px !important;
  font-weight: 800;
  line-height: 1.25 !important;
}

.doc-hero__panel li + li {
  margin-top: 8px;
}

.doc-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 58px 0;
  border-top: 1px solid var(--doc-line);
}

.doc-section__heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.doc-section__heading h2 {
  margin: 0;
  color: var(--doc-blue-dark);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.doc-section__heading > p:not(.home-section-kicker) {
  margin: 14px 0 0;
  color: var(--doc-muted);
  font-size: 17px;
  line-height: 1.65;
}

.doc-published-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.doc-scan-card,
.doc-resource-card,
.doc-result,
.doc-checker__form {
  border: 1px solid var(--doc-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 63, 100, 0.07);
}

.doc-scan-card,
.doc-resource-card {
  padding: 26px;
}

.doc-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 20px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.doc-card__status--published {
  background: var(--doc-green-soft);
  color: var(--doc-green);
}

.doc-card__status--reference {
  background: #eaf2f9;
  color: var(--doc-blue-dark);
}

.doc-scan-card__layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.doc-scan-card__image {
  display: block;
  overflow: hidden;
  border: 1px solid #c9d5dc;
  border-radius: 8px;
  background: #eef2f4;
}

.doc-scan-card__image img {
  display: block;
  width: 100%;
  height: auto;
}

.doc-scan-card h3,
.doc-resource-card h3 {
  margin: 0 0 12px;
  color: var(--doc-blue-dark);
  font-size: 23px;
  line-height: 1.3;
}

.doc-scan-card p,
.doc-resource-card p,
.doc-resource-list span {
  color: var(--doc-muted);
  line-height: 1.6;
}

.doc-boundary {
  padding: 13px 15px;
  border-left: 4px solid var(--doc-blue);
  background: var(--doc-soft);
}

.doc-text-link {
  color: var(--doc-blue);
  font-weight: 800;
  text-underline-offset: 3px;
}

.doc-resource-list {
  display: grid;
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.doc-resource-list li {
  padding-top: 15px;
  border-top: 1px solid var(--doc-line);
}

.doc-resource-list a,
.doc-resource-list span {
  display: block;
}

.doc-resource-list a {
  color: var(--doc-blue);
  font-weight: 800;
  line-height: 1.4;
  text-underline-offset: 3px;
}

.doc-resource-list span {
  margin-top: 5px;
  font-size: 14px;
}

.doc-honesty-note {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid #ead69b;
  border-left: 5px solid #b98617;
  border-radius: 9px;
  background: var(--doc-amber-soft);
  color: #60450f;
  font-size: 16px;
  line-height: 1.6;
}

.doc-section--visual {
  padding-bottom: 64px;
}

.doc-visual {
  margin: 0;
}

.doc-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--doc-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(18, 63, 100, 0.08);
}

.doc-visual figcaption {
  margin-top: 12px;
  color: var(--doc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.doc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--doc-line);
  border-radius: 12px;
  background: #fff;
}

.doc-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--doc-ink);
}

.doc-table th,
.doc-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--doc-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.doc-table thead th {
  background: var(--doc-blue-dark);
  color: #fff;
  font-size: 15px;
}

.doc-table tbody th {
  width: 24%;
  color: var(--doc-blue-dark);
  font-size: 16px;
}

.doc-table tbody tr:last-child > * {
  border-bottom: 0;
}

.doc-checker__form {
  padding: 28px;
}

.doc-checker__progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 9px;
  background: var(--doc-soft);
}

.doc-checker__progress label {
  color: var(--doc-blue-dark);
  font-weight: 800;
}

.doc-checker__progress progress {
  width: 100%;
  height: 16px;
  accent-color: var(--doc-blue);
}

.doc-checker fieldset {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid var(--doc-line);
}

.doc-checker legend {
  display: block;
  width: 100%;
  color: var(--doc-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.doc-checker legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border-radius: 50%;
  background: #e6f0f7;
  color: var(--doc-blue-dark);
  font-size: 14px;
  font-weight: 900;
}

.doc-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 620px;
  margin: 16px 0 0 44px;
}

.doc-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid #bfd0dc;
  border-radius: 7px;
  background: #fff;
  color: var(--doc-blue-dark);
  font-weight: 800;
  cursor: pointer;
}

.doc-options label:has(input:checked) {
  border-color: var(--doc-blue);
  background: #e8f2f9;
  box-shadow: inset 0 0 0 1px var(--doc-blue);
}

.doc-options input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--doc-blue);
}

.doc-checker__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.doc-button {
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--doc-blue);
  border-radius: 7px;
  background: var(--doc-blue);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.doc-button:hover {
  background: var(--doc-blue-dark);
  border-color: var(--doc-blue-dark);
}

.doc-button--secondary {
  background: #fff;
  color: var(--doc-blue);
}

.doc-button--quiet {
  border-color: #aebfcb;
  background: #fff;
  color: var(--doc-ink);
}

.doc-button--secondary:hover,
.doc-button--quiet:hover {
  background: var(--doc-soft);
  color: var(--doc-blue-dark);
}

.doc-noscript {
  padding: 14px 16px;
  border-radius: 7px;
  background: var(--doc-amber-soft);
  color: #60450f;
}

.doc-result {
  margin-top: 18px;
  padding: 26px;
  border-left: 6px solid var(--doc-blue);
}

.doc-result[data-state="complete"] {
  border-left-color: var(--doc-green);
}

.doc-result[data-state="missing"] {
  border-left-color: #b6403a;
}

.doc-result[data-state="unknown"] {
  border-left-color: #b98617;
}

.doc-result__eyebrow {
  margin: 0 0 7px;
  color: var(--doc-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-result h3 {
  margin: 0 0 10px;
  color: var(--doc-blue-dark);
  font-size: 25px;
}

.doc-result p,
.doc-result li {
  color: var(--doc-muted);
  line-height: 1.6;
}

.doc-result ul:empty {
  display: none;
}

.doc-result__limit {
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid var(--doc-line);
  font-size: 14px;
}

.doc-faq {
  display: grid;
  gap: 12px;
}

.doc-faq details {
  border: 1px solid var(--doc-line);
  border-radius: 9px;
  background: #fff;
}

.doc-faq summary {
  min-height: 54px;
  padding: 17px 48px 17px 20px;
  color: var(--doc-blue-dark);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.doc-faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--doc-muted);
  line-height: 1.65;
}

.doc-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.doc-related__grid a {
  display: grid;
  gap: 7px;
  min-height: 128px;
  padding: 22px;
  border: 1px solid var(--doc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--doc-blue-dark);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(18, 63, 100, 0.05);
}

.doc-related__grid a:hover {
  border-color: var(--doc-blue);
  transform: translateY(-2px);
}

.doc-related__grid strong {
  font-size: 19px;
}

.doc-related__grid span {
  color: var(--doc-muted);
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .doc-published-grid {
    grid-template-columns: 1fr;
  }

  .doc-options {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .doc-skip-link {
    left: 12px;
  }

  .doc-breadcrumbs {
    margin-bottom: 20px;
  }

  .doc-hero {
    gap: 24px;
    padding-bottom: 42px;
  }

  .doc-hero__facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .doc-hero__facts span {
    justify-content: flex-start;
  }

  .doc-section {
    padding: 44px 0;
  }

  .doc-section__heading > p:not(.home-section-kicker) {
    font-size: 16px;
  }

  .doc-scan-card,
  .doc-resource-card,
  .doc-checker__form,
  .doc-result {
    padding: 20px;
  }

  .doc-scan-card__layout {
    grid-template-columns: 1fr;
  }

  .doc-scan-card__image {
    width: min(100%, 260px);
  }

  .doc-checker__progress {
    grid-template-columns: 1fr;
  }

  .doc-options {
    grid-template-columns: 1fr;
  }

  .doc-options label {
    justify-content: flex-start;
    padding: 0 15px;
  }

  .doc-checker__actions,
  .doc-checker__actions .doc-button {
    width: 100%;
  }

  .doc-related__grid {
    grid-template-columns: 1fr;
  }

  .doc-related__grid a {
    min-height: 0;
  }
}

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

@media print {
  .document-guide-page .header,
  .document-guide-page .footfix,
  .document-guide-page .doc-skip-link,
  .document-guide-page .home-link-boost,
  .document-guide-page .doc-checker__actions {
    display: none !important;
  }

  body.document-guide-page main {
    margin: 0;
    padding: 0;
  }

  .doc-section,
  .doc-checker__form,
  .doc-result,
  .doc-scan-card,
  .doc-resource-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .doc-visual img {
    box-shadow: none;
  }
}
