/* Страницы руководства и глоссария доступности */
.a11y-guide .container,
.a11y-decl-card {
  width: min(900px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.a11y-guide .hero {
  padding: 1.2rem 0 0.6rem;
}

.a11y-guide .section {
  padding: 0.5rem 0 1.2rem;
}

.a11y-decl-card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
}

.a11y-decl-card h2 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.12rem;
}

.a11y-decl-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.02rem;
}

.a11y-decl-card p,
.a11y-decl-card li {
  line-height: 1.65;
  color: var(--theme-text, #18243d);
}

.a11y-decl-card ul,
.a11y-decl-card ol {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.a11y-decl-card .breadcrumb {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--theme-muted, #3d4f72);
}

.a11y-decl-card .breadcrumb [aria-current="page"] {
  font-weight: 700;
  color: var(--theme-text, #18243d);
}

.a11y-decl-card .breadcrumb a {
  color: var(--theme-primary, #1f57c3);
  font-weight: 650;
  text-decoration: none;
}

.a11y-decl-card .breadcrumb a:hover {
  text-decoration: underline;
}

.a11y-decl-card .back-link {
  margin-top: 1.5rem;
  font-weight: 700;
}

.a11y-decl-card .back-link a {
  color: var(--theme-primary, #1f57c3);
  text-decoration: none;
}

.a11y-decl-card .back-link a:hover {
  text-decoration: underline;
}

.a11y-decl-card kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--theme-border, #7a8fb0);
  border-radius: 4px;
  background: var(--theme-surface-soft, #f7f9ff);
  font-size: 0.9em;
  font-family: inherit;
}

.a11y-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0.55rem;
}

.a11y-subnav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.95rem;
  border: 1.5px solid color-mix(in srgb, var(--theme-primary, #1f57c3) 35%, var(--theme-border, #c8d0de));
  border-radius: 10px;
  background: var(--theme-surface-soft, #f7f9ff);
  color: var(--theme-primary, #1f57c3) !important;
  -webkit-text-fill-color: var(--theme-primary, #1f57c3) !important;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.a11y-subnav__link:hover {
  background: color-mix(in srgb, var(--theme-primary, #1f57c3) 12%, #fff);
  border-color: var(--theme-primary, #1f57c3);
}

.a11y-subnav__link:focus-visible {
  outline: 3px solid var(--theme-primary, #243b84);
  outline-offset: 3px;
}

.a11y-subnav__link--cta,
.a11y-subnav__link--current,
.a11y-subnav__link[aria-current="page"] {
  border-color: #1e3270 !important;
  background: #1e3270 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.a11y-subnav__link--cta:hover,
.a11y-subnav__link--current:hover,
.a11y-subnav__link[aria-current="page"]:hover {
  background: #16275a !important;
  border-color: #16275a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.a11y-subnav-lead {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--theme-muted, #5f6d8c);
}

.a11y-glossary-wrap {
  margin-top: 1rem;
}

.a11y-glossary__title {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
}

.a11y-glossary {
  margin: 0;
  padding: 0;
  border: 1px solid var(--theme-border, #7a8fb0);
  border-radius: 10px;
  overflow: hidden;
}

.a11y-glossary__row {
  display: grid;
  grid-template-columns: minmax(8rem, 28%) 1fr;
  gap: 0;
  border-bottom: 1px solid var(--theme-border, #7a8fb0);
}

.a11y-glossary__row:last-child {
  border-bottom: none;
}

.a11y-glossary dt,
.a11y-glossary dd {
  margin: 0;
  padding: 0.65rem 0.75rem;
  line-height: 1.55;
}

.a11y-glossary dt {
  font-weight: 700;
  color: var(--theme-text, #18243d);
  background: color-mix(in srgb, var(--theme-surface-soft, #f7f9ff) 70%, #fff);
  border-right: 1px solid var(--theme-border, #7a8fb0);
}

.a11y-glossary dd {
  color: var(--theme-text, #18243d);
  background: var(--theme-surface, #fff);
}

@media (max-width: 640px) {
  .a11y-glossary__row {
    grid-template-columns: 1fr;
  }

  .a11y-glossary dt {
    border-right: none;
    border-bottom: 1px solid var(--theme-border, #7a8fb0);
  }
}

.a11y-norm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.98rem;
}

.a11y-norm-table th,
.a11y-norm-table td {
  border: 1px solid var(--theme-border, #7a8fb0);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.a11y-norm-table thead th {
  background: var(--theme-surface-soft, #f7f9ff);
}
