/* Blog / News – clean BauCockpit-ähnliche Surfaces (fa/RTL) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.content-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.75rem 0 3.5rem;
  align-items: stretch;
}

/* Mobile: News/Blog-Inhalte zuerst, Sidebar (Suche/Trends) darunter */
.content-layout > .content-main {
  order: 1;
  min-width: 0;
}

.content-layout > .content-sidebar {
  order: 2;
}

@media (min-width: 960px) {
  .content-layout,
  .content-layout--blog {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 2.75rem;
    align-items: start;
  }

  .content-layout > .content-main,
  .content-layout > .content-sidebar {
    order: unset;
  }
}

.content-hero--inline {
  padding: 0 0 1.5rem;
  margin: 0 0 0.5rem;
  background: none;
  border-bottom: 1px solid rgba(12, 28, 36, 0.08);
}

.content-hero--inline .eyebrow {
  margin: 0 0 0.45rem;
  color: var(--sea-deep);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content-hero--inline h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.25;
}

.content-hero__lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.7;
}

.section-label {
  margin: 2rem 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}

/* Sidebar */
.content-sidebar {
  display: grid;
  gap: 1.75rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(12, 28, 36, 0.1);
  border-radius: 10px;
}

.content-sidebar > section {
  display: grid;
  gap: 0.75rem;
}

.content-sidebar h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.search-bar--side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0;
}

.search-bar--side input {
  width: 100%;
  border: 1px solid rgba(12, 28, 36, 0.14);
  border-radius: 8px;
  background: #fff;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.search-bar--side button {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: var(--sea-deep);
  color: #fff;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search-bar--side button:hover {
  background: var(--ink);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.side-list--numbered {
  list-style: decimal;
  padding-inline-start: 1.2rem;
}

.side-list li {
  line-height: 1.45;
}

.side-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.side-list a:hover {
  color: var(--sea-deep);
}

.side-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Featured trio (BauCockpit-Stil: 100% + 2×50%) */
.featured-stack {
  display: grid;
  gap: 1.15rem;
  margin: 1.25rem 0 0.75rem;
}

.featured-pair {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 760px) {
  .featured-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.featured-card {
  background: #fff;
  border: 1px solid rgba(12, 28, 36, 0.1);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.featured-card__link {
  display: grid;
  gap: 0;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.featured-card__link--stack {
  grid-template-columns: 1fr;
}

.featured-card--lead .featured-card__media--lead .featured-card__img,
.featured-card--lead .featured-card__img {
  aspect-ratio: 21 / 9;
}

.featured-card--lead .featured-card__body h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.featured-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8eef1;
  display: block;
}

.featured-card__img--ph {
  background: linear-gradient(135deg, #d9e4e8, #f2efe9);
}

.featured-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.featured-card__body h2 {
  margin: 0.45rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--ink);
  line-height: 1.4;
}

.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--sea-deep);
  background: rgba(47, 111, 126, 0.1);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  text-decoration: none;
}

.snippet {
  color: var(--text-muted);
  margin: 0 0 0.65rem;
  line-height: 1.7;
}

.meta-line {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.read-more {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--sea-deep);
}

.card-grid {
  display: grid;
  gap: 1.35rem;
}

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

.content-card {
  background: #fff;
  border: 1px solid rgba(12, 28, 36, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.content-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.content-card a:hover h3 {
  color: var(--sea-deep);
}

.content-card__media {
  position: relative;
}

.content-card img,
.content-card__ph {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #e8eef1;
}

.content-card__ph {
  background: linear-gradient(135deg, #d9e4e8, #f2efe9);
}

.ai-badge {
  position: absolute;
  inset-inline-end: 0.55rem;
  bottom: 0.55rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(12, 28, 36, 0.55);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.content-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.content-card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.45;
}

.content-card p,
.empty-state {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.pager {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.25rem;
}

.pager a {
  text-decoration: none;
  font-weight: 700;
  color: var(--sea-deep);
}

.popular-bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(12, 28, 36, 0.1);
}

.popular-bottom h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  color: var(--ink);
}

/* Article detail – Lesefortschritt (fix, folgt dem Scroll) */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 6px;
  z-index: 120;
  background: rgba(12, 28, 36, 0.14);
  pointer-events: none;
}

.reading-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #2f6f7e 0%, #b8873b 100%);
  box-shadow: 0 1px 6px rgba(47, 111, 126, 0.35);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
  will-change: transform;
}

[dir="rtl"] .reading-progress__bar {
  transform-origin: right center;
  background: linear-gradient(270deg, #2f6f7e 0%, #b8873b 100%);
}

.article-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.5rem 0 3.5rem;
  align-items: stretch;
}

/* Mobile/Tablet: Artikel zuerst, Sidebar darunter (wie BauCockpit) */
.article-layout > .article-main {
  order: 1;
  min-width: 0;
}

.article-layout > .content-sidebar {
  order: 2;
}

@media (min-width: 960px) {
  .article-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
  }

  .article-layout > .article-main,
  .article-layout > .content-sidebar {
    order: unset;
  }
}

.article-main {
  min-width: 0;
}

.article-page__cover-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(12, 28, 36, 0.08);
  /* Immer volle Containerbreite; Höhe über aspect-ratio */
  aspect-ratio: 16 / 9;
  background: #e8eef1;
  align-self: stretch;
}

.article-page__cover {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #e8eef1;
}

@media (max-width: 720px) {
  .article-page__cover-wrap {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    /* Full-bleed innerhalb der Shell-Padding: echte 100%-Breite */
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
}

/* Listen-Cover: Desktop 16:9, Mobile 16:10 */
.content-card img,
.content-card__ph {
  aspect-ratio: 16 / 9;
}

@media (max-width: 720px) {
  .content-card img,
  .content-card__ph {
    aspect-ratio: 16 / 10;
  }

  .featured-card__img {
    aspect-ratio: 16 / 10;
  }

  .featured-card--lead .featured-card__media--lead .featured-card__img,
  .featured-card--lead .featured-card__img {
    aspect-ratio: 16 / 9;
  }
}

.article-page__header h1 {
  margin: 0.55rem 0 0.55rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.35;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.article-breadcrumb a {
  color: var(--sea-deep);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-page__meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.article-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.tool-btn {
  border: 1px solid rgba(12, 28, 36, 0.14);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--ink-soft);
}

.tool-btn:hover {
  border-color: var(--sea);
  color: var(--sea-deep);
}

.tts-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
  padding: 0.75rem 0.85rem;
  background: rgba(47, 111, 126, 0.08);
  border: 1px solid rgba(47, 111, 126, 0.18);
  border-radius: 10px;
}

.tts-bar__label {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.2;
}

.tts-bar__controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.tts-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.tts-bar__icon--ghost,
.tts-bar button[data-tts-pause] {
  background: #fff;
  color: var(--ink);
  border-color: rgba(12, 28, 36, 0.18);
}

.tts-bar__icon:disabled,
.tts-bar button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.tts-bar__select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 2.15rem;
  padding: 0 0.35rem 0 0.2rem;
  border: 1px solid rgba(12, 28, 36, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  flex-shrink: 0;
}

.tts-bar__mini-icon {
  display: inline-flex;
  color: var(--sea-deep);
}

.tts-bar select {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  background: transparent;
  padding: 0.2rem 0.15rem;
  color: var(--ink);
  max-width: 4.2rem;
}

.tts-bar__status {
  font-size: 0.85rem;
  color: var(--sea-deep);
}

.tts-bar__status.is-error {
  color: #9b2c2c;
}

.toc-wrap {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(12, 28, 36, 0.1);
  border-radius: 10px;
  border-inline-start: 3px solid var(--sea);
}

.toc-wrap ol {
  margin: 0.4rem 0 0;
  padding-inline-start: 1.2rem;
}

.prose {
  font-size: 1.06rem;
  line-height: 1.95;
  color: var(--text);
}

.prose h2,
.prose h3 {
  color: var(--ink);
  font-family: var(--font-display);
  margin-top: 1.7rem;
}

.prose a {
  word-break: break-word;
}

.faq {
  margin-top: 2.5rem;
}

.faq details {
  border-bottom: 1px solid rgba(12, 28, 36, 0.1);
  padding: 0.75rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.feedback-box {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(12, 28, 36, 0.1);
  border-radius: 12px;
  background: #fff;
}

.feedback-box h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(12, 28, 36, 0.14);
  background: #fff;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.feedback-btn:hover {
  border-color: var(--sea);
}

.feedback-btn.is-active {
  background: rgba(47, 111, 126, 0.12);
  border-color: var(--sea);
}

.feedback-btn__count {
  color: var(--text-muted);
  font-weight: 600;
}

.article-nav {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .article-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.article-nav a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(12, 28, 36, 0.1);
  border-radius: 12px;
  background: #fff;
}

.article-nav a:hover {
  border-color: var(--sea);
}

.article-nav__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.article-nav__title {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.share-print {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(12, 28, 36, 0.12);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.85);
}

.share-print__label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.share-print__icons {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
}

.share-print__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid rgba(12, 28, 36, 0.16);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.share-print__icon:hover {
  border-color: var(--sea);
  color: var(--sea-deep);
}

.share-print__icon--print {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.share-print__icon--print:hover {
  background: var(--sea-deep);
  color: #fff;
}

.share-print__status {
  font-size: 0.85rem;
  color: var(--sea-deep);
}

.article-cta {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--ink);
  color: rgba(255, 253, 249, 0.9);
  border-radius: 12px;
}

.article-cta p {
  margin: 0 0 0.9rem;
}

.article-cta .btn--primary {
  color: var(--ink);
}

.source-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  word-break: break-all;
}

.back-to-top {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 999px;
  background: var(--sea-deep);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(12, 28, 36, 0.2);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 720px) {
  .site-nav a:nth-child(n + 5):not(.nav-cta) {
    display: none;
  }
}

/* --- Print / PDF --- */
@media print {
  @page {
    margin: 14mm 12mm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  .site-header,
  .site-footer,
  .content-sidebar,
  .skip-link,
  .chat-modal,
  .cookie-banner,
  .cookie-reopen,
  .reading-progress,
  .tts-bar,
  .share-print,
  .feedback-box,
  .article-nav,
  .article-cta,
  .back-to-top,
  .ai-badge,
  .no-print,
  [data-open-chat],
  .nav-cta {
    display: none !important;
  }

  .shell,
  .article-layout,
  .article-main,
  .content-layout {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .article-page__cover-wrap,
  .article-page__cover {
    max-height: 280px;
    object-fit: cover;
    break-inside: avoid;
  }

  .prose a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }

  .prose a[href^="/"]::after,
  .prose a[href^="#"]::after {
    content: "";
  }

  /* .prose darf Seiten umbrechen — avoid-page erzeugte große Leerräume im PDF */
  .toc-wrap,
  .faq,
  .article-page__cover-wrap,
  .content-card,
  .feedback-box,
  details.faq__item {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .prose {
    break-inside: auto;
    page-break-inside: auto;
  }

  .prose h2,
  .prose h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .prose p,
  .prose li {
    orphans: 3;
    widows: 3;
  }

  h1, h2, h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .article-main::before {
    content: "مهاجران برتر — mohajerat-be-alman.de";
    display: block;
    font-size: 9pt;
    color: #444;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.4rem;
  }
}

/* —— Tools suite —— */
.tools-page {
  padding: 1.75rem 0 3.5rem;
}
.tools-page--narrow {
  max-width: 760px;
}
.tools-disclaimer {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid var(--amber);
  background: rgba(184, 135, 59, 0.1);
  color: var(--text);
  font-size: 0.95rem;
}
.tools-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tools-card {
  display: block;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(12, 28, 36, 0.1);
  background: rgba(255, 253, 249, 0.72);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tools-card:hover {
  border-color: var(--sea);
  transform: translateY(-2px);
  color: inherit;
}
.tools-card h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.tools-card p {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.tools-card__go {
  color: var(--sea-deep);
  font-weight: 700;
  font-size: 0.9rem;
}
.tools-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.tools-form label {
  font-weight: 600;
}
.tools-form label:not(.tools-radio):not(.tools-consent) {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.tools-form input,
.tools-form select,
.tools-form textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(12, 28, 36, 0.18);
  background: var(--white);
  width: 100%;
}
.tools-form--inline {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: end;
}
.tools-field {
  border: 1px solid rgba(12, 28, 36, 0.1);
  padding: 0.85rem 1rem;
  margin: 0;
}
.tools-field legend {
  padding: 0 0.35rem;
  font-weight: 700;
}
.tools-radio {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 500;
  margin: 0.35rem 0;
  cursor: pointer;
}
.tools-radio input {
  width: auto;
  margin-top: 0.35rem;
}
.tools-result {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(12, 28, 36, 0.12);
  background: rgba(255, 253, 249, 0.85);
  margin-bottom: 1.5rem;
}
.tools-result--ok {
  border-color: rgba(27, 122, 78, 0.35);
}
.tools-result--warn,
.tools-result--danger {
  border-color: rgba(154, 91, 0, 0.4);
}
.tools-result h2,
.tools-result h3 {
  font-family: var(--font-display);
}
.tools-gaps {
  color: #7a3e00;
}
.tools-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.tools-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.tools-error {
  color: #8b1e1e;
  font-weight: 600;
}
.tools-cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(12, 28, 36, 0.08);
}
.tools-cta .btn {
  margin-inline-end: 0.5rem;
  margin-top: 0.35rem;
}
.tools-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.tools-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: rgba(255, 253, 249, 0.8);
}
.tools-table th,
.tools-table td {
  border-bottom: 1px solid rgba(12, 28, 36, 0.1);
  padding: 0.65rem 0.55rem;
  vertical-align: top;
  text-align: start;
}
.tools-table th {
  background: rgba(47, 111, 126, 0.08);
}
.tools-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.78rem;
  background: #e7eef1;
}
.tools-badge--open,
.tools-badge--active {
  background: #d9f5e5;
}
.tools-badge--closed,
.tools-badge--suspended {
  background: #f3e7d6;
}
.tools-badge--waitlist,
.tools-badge--announced {
  background: #fff3d6;
}
.tools-empty {
  color: var(--text-muted);
}
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(12, 28, 36, 0.2);
  background: transparent;
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
@media print {
  .tools-form,
  .tools-cta,
  .site-header,
  .site-footer,
  .tools-disclaimer {
    display: none !important;
  }
  .tools-result {
    border: 0;
  }
}

.tools-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.75rem 0.85rem;
  background: rgba(47, 111, 126, 0.08);
  border: 1px solid rgba(47, 111, 126, 0.18);
}
.tools-consent input {
  width: auto;
  margin-top: 0.35rem;
}
.tools-compare-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .tools-compare-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.tools-pre {
  white-space: pre-wrap;
  background: rgba(12, 28, 36, 0.04);
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}
.tools-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tools-steps {
  margin: 0 0 1.25rem;
  padding: 0.85rem 0.85rem 0.85rem 1.5rem;
  background: rgba(255, 253, 249, 0.7);
  border: 1px solid rgba(12, 28, 36, 0.08);
}
.tools-steps li {
  margin: 0.35rem 0;
}

.tools-group {
  margin: 0 0 2.25rem;
}
.tools-group__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.tools-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.tools-continue {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(47, 111, 126, 0.25);
  background: rgba(47, 111, 126, 0.08);
}

.tools-row--stale td {
  background: rgba(184, 135, 59, 0.08);
}

.tools-progress-list {
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}
.tools-progress-list a {
  font-weight: 600;
}

.tools-guide {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.tools-guide__item {
  border: 1px solid rgba(12, 28, 36, 0.1);
  background: rgba(255, 253, 249, 0.8);
  padding: 0.9rem 1rem;
}
.tools-guide__item--done {
  border-color: rgba(27, 122, 78, 0.35);
  background: rgba(217, 245, 229, 0.35);
}
.tools-guide__head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.tools-guide__mark {
  flex: 0 0 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 111, 126, 0.12);
  font-weight: 700;
}
.tools-guide__item h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}
.tools-guide__item p {
  margin: 0 0 0.45rem;
}

.tools-lead-box {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(12, 28, 36, 0.12);
}
.tools-lead-box h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.tools-route-progress {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.tools-route-bar {
  height: 6px;
  background: rgba(12, 28, 36, 0.08);
  margin: 0 0 0.5rem;
  overflow: hidden;
}
.tools-route-bar span {
  display: block;
  height: 100%;
  background: var(--sea);
  transition: width 0.25s ease;
}
.tools-route-submit {
  position: sticky;
  bottom: 0.75rem;
  padding: 0.65rem 0;
  background: linear-gradient(180deg, transparent, rgba(247, 244, 239, 0.92) 35%);
  z-index: 2;
}
.tools-radio {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
}

.tools-faq {
  display: grid;
  gap: 0.55rem;
}
.tools-faq details {
  border: 1px solid rgba(12, 28, 36, 0.1);
  background: rgba(255, 253, 249, 0.75);
  padding: 0.7rem 0.9rem;
}
.tools-faq summary {
  cursor: pointer;
  font-weight: 700;
}
.tools-faq p {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
}

.tools-status-cards {
  display: none;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.tools-status-card {
  border: 1px solid rgba(12, 28, 36, 0.1);
  background: rgba(255, 253, 249, 0.85);
  padding: 0.9rem 1rem;
}
.tools-status-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}
@media (max-width: 720px) {
  .tools-table-wrap--desktop {
    display: none;
  }
  .tools-status-cards {
    display: grid;
  }
}

.tools-explain {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(12, 28, 36, 0.1);
  background: rgba(255, 253, 249, 0.9);
}
.tools-explain h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.tools-explain__intro {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.tools-glossary {
  margin: 0;
}
.tools-glossary dt {
  margin: 0.85rem 0 0.2rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.tools-glossary dt:first-child {
  margin-top: 0;
}
.tools-glossary dd {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.92rem;
}
.tools-glossary dd strong {
  color: var(--ink);
  font-weight: 600;
}
