* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #06111d 0%, #09182b 42%, var(--bg) 100%);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  padding-inline: var(--page-pad);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 0.65rem 0 0.35rem;
  background: transparent;
  border-bottom: none;
}

.topbar-inner {
  display: grid;
  grid-template-columns: minmax(5.75rem, 7.5rem) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: clamp(0.5rem, 1vw, 1rem);
  padding: 0.85rem 1rem;
  border-radius: 24px;
  background: rgba(8, 15, 29, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(125, 211, 252, 0.14);
  box-shadow:
    0 18px 42px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
  margin-left: 0.45rem;
}

.brand:hover,
.brand:focus-visible {
  text-decoration-color: rgba(125, 211, 252, 0.86);
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-badge::before {
  content: "🏠";
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.brand-label {
  font-size: 0.72rem;
  line-height: 1.1;
  color: var(--muted);
  white-space: nowrap;
}

.brand h1 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.brand p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.top-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(17, 36, 58, 0.96));
  color: var(--text);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(145deg, #0ea5e9, #0284c7);
  color: #f8fbff;
  border-color: rgba(125, 211, 252, 0.42);
}

.hero {
  padding: 1.4rem 0 1.1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.9fr);
  gap: var(--content-gap);
  align-items: stretch;
}

.hero-card,
.panel,
.section-card,
.faq-item,
.footer-card {
  backdrop-filter: blur(6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(1.4rem, 2vw, 2rem);
  min-height: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.hero h2 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0 0 0.8rem;
}

.hero p.lead {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.hero-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.mini-card {
  padding: 0.95rem;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.mini-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.mini-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel {
  padding: clamp(1.2rem, 1.7vw, 1.7rem);
  min-height: 100%;
}

.panel h3,
.toc h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.95rem;
  background: rgba(15, 23, 42, 0.52);
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.layout {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: var(--content-gap);
  padding-bottom: 3rem;
  align-items: start;
}

.toc,
.manual-toc {
  position: static;
  z-index: 1;
  align-self: stretch;
  max-height: none;
  overflow: visible;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 0.5rem;
}

.toc a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 72px;
  padding: 0.8rem 0.5rem;
  border-radius: 18px;
  color: var(--text);
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(17, 36, 58, 0.92));
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.2);
  transition: all 0.25s ease;
  position: relative;
}

.toc a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.28);
  border-color: rgba(125, 211, 252, 0.4);
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(17, 36, 58, 0.96));
}

.toc a:active {
  transform: scale(0.97);
}

.toc a:hover,
.toc a:focus-visible {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(17, 36, 58, 0.96));
  border-color: rgba(125, 211, 252, 0.4);
  text-decoration: none;
  outline: none;
}

.toc-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(59, 130, 246, 0.18));
  border: 1px solid rgba(125, 211, 252, 0.16);
  color: #7dd3fc;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.toc-label {
  display: block;
  font-size: 0.74rem;
  line-height: 1.15;
  font-weight: 700;
}

.toc small {
  display: none;
}

.content {
  display: grid;
  gap: var(--content-gap);
  min-width: 0;
  max-width: 1180px;
  margin: 0 auto;
}

.section-card {
  padding: var(--card-pad);
  scroll-margin-top: 170px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.1);
}

.section-title-wrap {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.section-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.section-card p,
.section-card li {
  color: rgba(226, 232, 240, 0.9);
  max-width: 90ch;
}

.muted {
  color: var(--muted);
}

.list,
.checklist {
  padding-left: 1.2rem;
  margin: 0.75rem 0 0;
}

.checklist li + li,
.list li + li {
  margin-top: 0.45rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-box {
  padding: 1.15rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(17, 36, 58, 0.92));
  border: 1px solid rgba(125, 211, 252, 0.14);
  transition: all 0.25s ease;
}

.info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.28);
}

.info-box strong {
  display: block;
  margin-bottom: 0.35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.18);
  color: var(--success);
  border: 1px solid rgba(153, 246, 228, 0.24);
}

.tag.warn {
  background: rgba(127, 29, 29, 0.24);
  color: var(--danger);
  border-color: rgba(254, 202, 202, 0.28);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.faq-item {
  padding: 1.1rem 1.2rem;
}

.faq-item h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

footer.site-footer {
  width: 100%;
  margin-top: 1.35rem;
  padding: 1rem 1.35rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-radius: 0;
  background: var(--bg-base);
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  align-items: start;
  justify-content: space-between;
  position: static;
  z-index: 1;
}

footer.site-footer span.brand {
  display: block;
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.4;
}

footer.site-footer .footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.42rem 0.78rem;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(15, 23, 42, 0.38);
  color: #7dd3fc;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
  text-decoration: none;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

footer.site-footer .footer-link::after {
  display: none;
}

footer.site-footer .footer-link:hover,
footer.site-footer .footer-link:focus-visible {
  color: #dff7ff;
  text-decoration: none;
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(125, 211, 252, 0.42);
  transform: translateY(-1px);
}

.site-footer .footer-domain-note {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.42rem 0;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.82rem;
  text-decoration: none;
}

.site-footer .footer-domain-note:hover,
.site-footer .footer-domain-note:focus-visible {
  color: rgba(226, 232, 240, 0.94);
}

footer.site-footer .footer-link--scroll-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  color: #ffffff;
  font-size: 18px;
  line-height: 48px;
  flex: 0 0 auto;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100px);
  transition: all 0.5s ease;
}

footer.site-footer .footer-link--scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

footer.site-footer .footer-link--scroll-top::before {
  display: none;
}

footer.site-footer .footer-link--scroll-top::after {
  display: none;
}

footer.site-footer .footer-link__scroll-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
  filter: none;
}

footer.site-footer .footer-link__scroll-icon::before {
  display: none;
}

footer.site-footer .footer-link--scroll-top:hover,
footer.site-footer .footer-link--scroll-top:focus-visible {
  color: #ffffff;
  background-color: transparent;
  box-shadow: none;
}

footer.site-footer .footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  margin-left: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.9rem;
  }

  .brand {
    margin-left: 0;
  }

}

@media (max-width: 1024px) {
  .topbar {
    position: static;
    padding: 0.75rem 0 0.25rem;
  }

  .topbar-inner {
    padding: 0.9rem;
    border-radius: 22px;
  }

  .toc,
  .manual-toc {
    width: 100%;
  }

  .toc ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .toc a {
    min-height: 68px;
    padding: 0.7rem 0.45rem;
  }

  .content {
    gap: 1.1rem;
  }

  .section-card {
    scroll-margin-top: 110px;
  }

  .section-header {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    padding: 0.8rem;
  }

  .hero {
    padding: 1rem 0 0.9rem;
  }

  .hero-card,
  .panel,
  .section-card,
  .faq-item,
  .footer-card {
    border-radius: 16px;
  }

  .hero-card,
  .panel {
    padding: 1.15rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding-top: 0.55rem;
  }

  .topbar-inner,
  .section-header,
  .section-title-wrap {
    align-items: flex-start;
  }

  .topbar-inner {
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 20px;
  }

  .hero-list,
  .info-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .panel,
  .section-card,
  .faq-item,
  .toc {
    border-radius: 16px;
  }

  .top-actions {
    width: 100%;
    justify-content: stretch;
  }

  .top-actions .btn {
    flex: 1 1 180px;
  }

  .toc ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .toc a {
    min-height: 64px;
    padding: 0.65rem 0.35rem;
    border-radius: 16px;
  }

  .toc-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 14px;
    font-size: 1rem;
  }

  .toc-label {
    font-size: 0.68rem;
  }

  .brand-label {
    font-size: 0.68rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p.lead {
    font-size: 0.98rem;
  }

  .content {
    gap: 0.95rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 0.85rem;
  }

  .topbar-inner {
    padding: 0.7rem;
  }

  .brand-badge {
    width: 40px;
    height: 40px;
  }

  .toc ol {
    gap: 0.45rem;
  }

  .toc a {
    min-height: 58px;
    padding: 0.55rem 0.25rem;
  }

  .toc-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
  }

  .toc-label {
    font-size: 0.62rem;
  }

  .hero-card,
  .panel,
  .section-card,
  .faq-item {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }
}

@media (max-width: 56rem) {
  footer.site-footer {
    width: 100%;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  footer.site-footer .footer-meta {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.55rem 0.75rem;
    margin-left: 0;
  }

  footer.site-footer .footer-link,
  .site-footer .footer-domain-note {
    justify-content: flex-start;
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 30rem) {
  footer.site-footer {
    padding-inline: 0.9rem;
  }

  footer.site-footer .footer-meta {
    grid-template-columns: 1fr;
  }
}

/* Shelf layout refresh */
body.manual-page {
  --bg: #111412;
  --surface: #171d1a;
  --surface-2: #1f2a24;
  --text: #eef7f0;
  --muted: #b6c4ba;
  --primary: #45d6b5;
  --primary-soft: rgba(69, 214, 181, 0.14);
  --border: rgba(190, 232, 212, 0.24);
  --bg-base: #0c0f0d;
  --text-light: #eef7f0;
  --text-muted: #aab8ae;
  --border-soft: rgba(190, 232, 212, 0.32);
  --success: #86efac;
  --danger: #ffb4a8;
  --accent-warm: #f2c14e;
  --accent-hot: #ff6b5f;
  --shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  --radius: 8px;
  --page-pad: clamp(1rem, 2vw, 2rem);
  --content-gap: clamp(0.75rem, 1.4vw, 1.35rem);
  --card-pad: clamp(1rem, 1.55vw, 1.45rem);
}

html {
  background: #0c0f0d;
}

body {
  min-height: 100vh;
  color: var(--text);
  letter-spacing: 0;
  background:
    linear-gradient(90deg, rgba(242, 193, 78, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(69, 214, 181, 0.05) 1px, transparent 1px),
    linear-gradient(145deg, #101311 0%, #1b211d 46%, #10110f 100%);
  background-size: 64px 64px, 64px 64px, auto;
}

a {
  color: var(--primary);
}

.container {
  max-width: 1480px;
}

.topbar {
  padding: 0.75rem 0 0.2rem;
}

.topbar-inner {
  grid-template-columns: minmax(5.75rem, 7.5rem) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  gap: clamp(0.55rem, 0.9vw, 0.9rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.manual-toc {
  min-height: 4.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 28px),
    rgba(16, 19, 17, 0.88);
  box-shadow: var(--shadow);
}

.brand {
  justify-content: center;
  margin-left: 0;
  min-height: 4.75rem;
  padding: 0.75rem 0.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  text-decoration: none;
}

.brand-badge {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  background: transparent;
}

.brand-label {
  color: var(--muted);
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.btn {
  min-height: 2.35rem;
  border-radius: 8px;
  background: rgba(238, 247, 240, 0.07);
}

.btn-primary {
  background: #1fb997;
  color: #08110e;
  border-color: rgba(134, 239, 172, 0.8);
}

.btn:hover {
  transform: translateY(-1px);
}

.toc,
.manual-toc {
  padding: 0.6rem;
}

.toc ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(4.8rem, 1fr));
  gap: 0.5rem;
  height: 100%;
}

.toc a {
  min-height: 3.4rem;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  background: rgba(238, 247, 240, 0.07);
  border-color: rgba(190, 232, 212, 0.18);
  box-shadow: none;
}

.toc a:hover,
.toc a:focus-visible {
  transform: translateY(-1px);
  background: rgba(69, 214, 181, 0.16);
  border-color: rgba(69, 214, 181, 0.52);
}

.toc-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(242, 193, 78, 0.16);
  border-color: rgba(242, 193, 78, 0.34);
}

.toc-label {
  font-size: 0.72rem;
}

.hero {
  padding: 0.75rem 0 0.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(5rem, auto);
  gap: var(--content-gap);
  align-items: stretch;
}

.hero-card,
.panel,
.section-card,
.faq-item,
.footer-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 2.3rem),
    rgba(17, 20, 18, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card::before,
.panel::before,
.section-card::before,
.faq-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2.1rem;
  border-bottom: 1px solid rgba(190, 232, 212, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 107, 95, 0.92) 0 0.55rem, transparent 0.55rem 0.78rem),
    linear-gradient(90deg, rgba(242, 193, 78, 0.92) 0 0.55rem, transparent 0.55rem 0.78rem),
    linear-gradient(90deg, rgba(69, 214, 181, 0.92) 0 0.55rem, transparent 0.55rem);
  background-position: 0.85rem 0.75rem, 1.7rem 0.75rem, 2.55rem 0.75rem;
  background-repeat: no-repeat;
  background-size: 0.78rem 0.55rem;
  pointer-events: none;
}

.hero-card::after,
.panel::after,
.section-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0.45rem;
  background: rgba(242, 193, 78, 0.18);
  pointer-events: none;
}

.hero-card {
  grid-column: span 8;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(12rem, 0.75fr);
  gap: 1rem;
  padding: calc(var(--card-pad) + 1.8rem) var(--card-pad) var(--card-pad);
  min-height: 100%;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  border-radius: 8px;
  background: rgba(69, 214, 181, 0.14);
  color: var(--primary);
}

.hero h2 {
  font-size: 2.4rem;
  line-height: 1.08;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.02rem;
}

.manual-visual-window {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 11rem;
  margin: 0;
  border-radius: 8px;
  border: 1px solid rgba(242, 193, 78, 0.35);
  background:
    linear-gradient(135deg, rgba(242, 193, 78, 0.18), transparent 44%),
    rgba(238, 247, 240, 0.07);
}

.manual-visual-window img {
  width: min(11rem, 70%);
  max-height: 11rem;
  object-fit: contain;
  filter: drop-shadow(0 1rem 1.4rem rgba(0, 0, 0, 0.22));
}

.hero-list {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card,
.stat,
.info-box {
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(190, 232, 212, 0.18);
  background: transparent;
  box-shadow: none;
}

.mini-card {
  padding: 0.85rem 0 0;
}

.mini-card span,
.stat span {
  color: var(--muted);
}

.panel {
  grid-column: span 4;
  padding: calc(var(--card-pad) + 1.8rem) var(--card-pad) var(--card-pad);
}

.stats {
  grid-template-columns: 1fr;
}

#inhalt {
  padding-top: 0.75rem !important;
}

.content {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: minmax(6rem, auto);
  gap: var(--content-gap);
  max-width: 1480px;
  margin: 0 auto;
}

.section-card {
  padding: calc(var(--card-pad) + 1.8rem) var(--card-pad) var(--card-pad);
  scroll-margin-top: 7rem;
}

.section-card:hover {
  transform: translateY(-2px);
}

.section-card h3 {
  font-size: 1.28rem;
}

.section-card p,
.section-card li {
  color: rgba(238, 247, 240, 0.9);
}

#hinweise {
  grid-column: span 7;
}

#registrierung {
  grid-column: span 5;
}

#kontaktaufnahme {
  grid-column: span 4;
}

#leistungen {
  grid-column: span 8;
}

#tools {
  grid-column: span 5;
}

#faq {
  grid-column: span 7;
}

.section-header {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom-color: rgba(190, 232, 212, 0.16);
}

.tag {
  border-radius: 8px;
  background: rgba(134, 239, 172, 0.12);
}

.info-grid {
  gap: 0.9rem;
}

.info-box {
  padding: 0.85rem 0 0;
}

.info-box:hover {
  transform: none;
  box-shadow: none;
}

.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item {
  padding: 3rem 1rem 1rem;
}

footer.site-footer,
footer.site-footer .footer-link {
  border-radius: 0;
}

footer.site-footer .footer-link {
  border-radius: 8px;
}

footer.site-footer .footer-link--scroll-top {
  border-radius: 8px;
}

@media (max-width: 1180px) {
  .topbar-inner {
    grid-template-columns: 1fr;
  }

  .manual-toc {
    grid-column: auto;
  }

  .hero-card,
  .panel,
  #hinweise,
  #registrierung,
  #kontaktaufnahme,
  #leistungen,
  #tools,
  #faq {
    grid-column: 1 / -1;
  }

  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar-inner,
  .hero-grid,
  .content {
    grid-template-columns: 1fr;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero-list,
  .info-grid,
  .stats,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .toc ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 0.8rem;
  }

  .brand,
  .manual-toc,
  .hero-card,
  .panel,
  .section-card,
  .faq-item {
    border-radius: 8px;
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h2 {
    font-size: 1.75rem;
  }
}
