/*
 * Content & Information Pages Layout — consumes tokens.css exclusively
 */
.dc-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-l);
  box-sizing: border-box;
  width: 100%;
  margin: var(--space-l) auto var(--section-space-m);
  padding-inline: var(--site-padding);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: var(--text-s);
  line-height: 1.65;
}

.dc-content-layout #content h1 {
  margin: 0;
  color: var(--heading-color);
  font: 700 var(--h1)/1.2 var(--font-heading);
  letter-spacing: -0.02em;
  text-wrap: var(--heading-text-wrap);
}

.dc-content-sidebar {
  min-width: 0;
}

.dc-content-nav-desktop { display: none; }

.dc-content-nav-mobile {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface-subtle);
  padding-inline: var(--space-m);
}

.dc-content-nav-mobile summary {
  padding-block: var(--space-s);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-s);
  color: var(--heading-color);
}

.dc-content-nav-mobile[open] {
  padding-bottom: var(--space-m);
}

.dc-content-nav-group + .dc-content-nav-group {
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--border-subtle);
}

.dc-content-nav-label {
  margin: 0 0 var(--space-xs);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dc-content-sidebar ul {
  display: grid;
  gap: var(--space-xxs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.dc-content-layout .dc-content-sidebar a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-s);
  color: var(--text-secondary);
  font: 600 14px/1.4 var(--font-heading);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dc-content-layout .dc-content-sidebar a:hover {
  background: var(--surface-muted);
  color: var(--primary);
}

.dc-content-layout .dc-content-sidebar a[aria-current="page"] {
  background: var(--primary-100);
  color: var(--primary);
  font-weight: 700;
}

.dc-content-sidebar :is(a, summary):focus-visible {
  outline: var(--focus-width) var(--focus-style) var(--focus-color);
  outline-offset: var(--focus-offset);
}

.dc-information-article {
  min-width: 0;
  max-width: 820px;
}

.dc-information-body {
  margin-top: var(--space-l);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.dc-information-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-m);
}

.dc-information-body p {
  margin: 0 0 14px;
}

.dc-information-body .dc-info-lead {
  font-size: clamp(16px, 1.02rem + 0.15vw, 18px);
  line-height: 1.65;
  color: var(--neutral-700);
  margin-bottom: var(--space-l);
}

.dc-information-body h2 {
  margin: var(--space-xl) 0 var(--space-s);
  color: var(--heading-color);
  font: 700 var(--h3)/1.25 var(--font-heading);
  letter-spacing: -0.015em;
}

.dc-information-body h3 {
  margin: var(--space-m) 0 var(--space-xs);
  color: var(--heading-color);
  font: 700 var(--h5)/1.35 var(--font-heading);
}

.dc-information-body :is(ol, ul) {
  padding-inline-start: 22px;
  margin-block: 0 16px;
}

.dc-information-body li {
  margin-bottom: 8px;
}

.dc-information-body a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dc-information-body a:hover {
  color: var(--link-color-hover);
}

/* Structured info cards grid */
.dc-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-m);
  margin: var(--space-m) 0 var(--space-l);
}

@media (min-width: 640px) {
  .dc-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dc-info-card {
  padding: var(--space-m);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface-subtle);
}

.dc-info-card h3 {
  margin: 0 0 var(--space-xs);
  font-size: 16px;
  color: var(--heading-color);
}

.dc-info-card p:last-child,
.dc-info-card ul:last-child {
  margin-bottom: 0;
}

.dc-info-card ul {
  margin-top: var(--space-xs);
  font-size: 14px;
}

/* Callout & warning banners */
.dc-info-callout {
  margin: var(--space-l) 0;
  padding: var(--space-m);
  border: 1px solid var(--primary-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-m);
  background: var(--primary-100);
  color: var(--neutral-700);
  font-size: 14px;
}

.dc-info-callout--warning {
  border-color: #fcd34d;
  border-left-color: var(--warning);
  background: var(--warning-surface);
  color: var(--warning-text);
}

/* Inline CTA banner */
.dc-info-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  margin-top: var(--space-xl);
  padding: var(--space-l);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface-subtle);
}

.dc-info-cta h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.dc-info-cta p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.dc-information-body a.dc-info-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--btn-radius);
  background: var(--primary);
  color: var(--white);
  font-family: var(--btn-font-family);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast);
}

.dc-information-body a.dc-info-cta__btn:hover {
  background: var(--primary-300);
  color: var(--white);
}

/* Accessible FAQ Accordion (<details>/<summary>, no headings inside <summary>) */
.dc-faq-list {
  display: grid;
  gap: var(--space-s);
  margin: var(--space-s) 0 var(--space-l);
}

.dc-faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.dc-faq-item[open] {
  border-color: var(--border-light);
}

.dc-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.dc-faq-item summary::-webkit-details-marker,
.dc-faq-item summary::marker {
  display: none;
  content: "";
}

.dc-faq-item summary::after {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 2px, 2px 14px;
  color: var(--text-muted);
  transition: background-size var(--transition-fast), color var(--transition-fast);
}

.dc-faq-item[open] summary::after {
  background-size: 14px 2px, 0 14px;
  color: var(--primary);
}

.dc-faq-item summary:hover {
  background: var(--surface-subtle);
}

.dc-faq-item summary:focus-visible {
  outline: var(--focus-width) var(--focus-style) var(--focus-color);
  outline-offset: -2px;
}

.dc-faq-body {
  padding: 0 18px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.dc-faq-body p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .dc-faq-item {
      interpolate-size: allow-keywords;
    }
    .dc-faq-item::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size var(--motion-duration) var(--motion-ease), content-visibility var(--motion-duration) allow-discrete;
    }
    .dc-faq-item[open]::details-content {
      block-size: auto;
    }
  }
}

@media (min-width: 768px) {
  .dc-content-layout {
    max-width: var(--content-width);
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
  }
  .dc-content-layout:not(:has(.dc-content-sidebar)) {
    grid-template-columns: minmax(0, 1fr);
  }
  .dc-content-sidebar nav {
    position: sticky;
    top: calc(var(--doncen-header-offset, 90px) + 24px);
    max-height: calc(100dvh - var(--doncen-header-offset, 90px) - 48px);
    overflow-y: auto;
    padding: 2px;
  }
  .dc-content-nav-mobile { display: none; }
  .dc-content-nav-desktop { display: block; }
}

@media (min-width: 1024px) {
  .dc-content-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--space-xxl);
  }
}
