:root {
  --paper: #edf3fb;
  --paper-strong: #ffffff;
  --ink: #10233f;
  --muted: #536b8a;
  --line: rgba(16, 35, 63, 0.12);
  --line-strong: rgba(16, 35, 63, 0.2);
  --accent: #0f766e;
  --accent-2: #09102a;
  --accent-soft: #deefee;
  --gold: #9a6a00;
  --gold-soft: #fff6dd;
  --danger: #8a2f2a;
  --danger-soft: #fff0ef;
  --shadow: 0 20px 48px rgba(9, 16, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(20, 89, 217, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.14), transparent 28%),
    linear-gradient(180deg, #f6f9fe 0%, var(--paper) 44%, #f3f7fd 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.55;
}

a { color: var(--accent-2); }
img { max-width: 100%; }

.support-shell {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.site-topbar,
.site-footer,
.hero,
.panel,
.faq-block,
.article-shell,
.mini-note,
.callout,
.card,
.tool-card,
.article-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(255, 250, 242, 0.94);
  backdrop-filter: blur(12px);
}

.site-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 20px;
  position: sticky;
  top: 14px;
  z-index: 10;
  background: linear-gradient(135deg, #09102a, #10233f);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(9, 16, 42, 0.22);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff url("/favicon.ico") center/cover no-repeat;
  color: transparent;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(15, 108, 116, 0.14);
  overflow: hidden;
}

.brand-copy strong,
.hero h1,
.hero h2,
.section-title,
.article-shell h1,
.article-shell h2,
.article-shell h3,
.faq-block h2,
.faq-block h3 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 1.04rem; line-height: 1.1; }
.brand-copy span, .micro { color: var(--muted); font-size: 0.92rem; }
.site-topbar .brand-copy span,
.site-topbar .micro { color: rgba(232, 241, 255, 0.76); }

.top-links,
.button-row,
.chip-row,
.meta-row,
.route-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-topbar .top-links {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-visibility-dock {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.header-visibility-dock .header-toggle {
  background: rgba(9, 16, 42, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

.header-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.header-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.header-menu-toggle {
  display: none;
}

.top-links a,
.button,
.tab-button,
.chip,
.route-pill {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.top-links a,
.button {
  padding: 11px 16px;
  font-weight: 700;
}

.top-links a:hover,
.button:hover,
.tab-button:hover,
.chip:hover,
.route-pill:hover {
  transform: translateY(-1px);
}

.button.primary,
.top-links a.primary {
  background: linear-gradient(135deg, #1459d9, var(--accent));
  color: #fff;
}

.button.secondary,
.top-links a.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.button.ghost,
.top-links a.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #dbe7fb;
}

.site-topbar a.disable,
.site-topbar a.is-disabled,
.site-topbar .brand-mark.is-disabled {
  opacity: 0.56;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
  filter: saturate(0.7);
}

.site-topbar.is-hidden {
  display: none;
}

.hero {
  margin-top: 20px;
  border-radius: var(--radius-xl);
  padding: 34px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.99), rgba(239, 245, 253, 0.97)),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 32%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  margin-top: 18px;
}

.hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.95;
}

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

.hero-aside,
.callout,
.mini-note {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.callout strong,
.mini-note strong,
.faq-answer-title {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.callout.answer {
  background: linear-gradient(145deg, rgba(222, 239, 238, 0.94), rgba(255, 255, 255, 0.98));
}

.callout.warning {
  background: var(--gold-soft);
  border-color: rgba(211, 146, 47, 0.2);
}

.callout.alert {
  background: var(--danger-soft);
  border-color: rgba(142, 60, 45, 0.18);
}

.route-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(15, 108, 116, 0.08);
  border-color: rgba(15, 108, 116, 0.14);
  color: var(--accent-2);
  font-weight: 700;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 14px;
}

.tab-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 250, 242, 0.8);
  color: var(--ink);
  padding: 11px 15px;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  border-color: transparent;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.section-title {
  margin: 0 0 6px;
  font-size: 2rem;
}

.section-copy {
  margin: 0 0 20px;
  color: var(--muted);
}

.card-grid,
.tool-grid,
.article-grid,
.faq-grid,
.feature-grid {
  display: grid;
  gap: 16px;
}

.card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tool-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.article-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.faq-grid { grid-template-columns: 1fr; }

.card,
.tool-card,
.article-card {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.card h3,
.tool-card h3,
.article-card h3,
.mini-note h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.card p,
.tool-card p,
.article-card p,
.mini-note p,
.article-shell p,
.faq-block p,
.faq-block li,
.article-shell li {
  margin: 0;
  color: var(--muted);
}

.stack { display: grid; gap: 16px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.list-clean,
.article-shell ul,
.article-shell ol {
  margin: 12px 0 0;
  padding-left: 20px;
}

.list-clean li + li,
.article-shell li + li {
  margin-top: 8px;
}

.support-search {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 250, 242, 0.94);
  color: var(--ink);
  font: inherit;
}

.chip {
  padding: 9px 13px;
  background: rgba(15, 108, 116, 0.08);
  border-color: rgba(15, 108, 116, 0.14);
  color: var(--accent-2);
  font-weight: 700;
  cursor: pointer;
}

.chip.active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  border-color: transparent;
}

.search-empty {
  display: none;
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(217, 239, 241, 0.6);
  color: var(--muted);
}

.search-empty.visible { display: block; }

.category-tag,
.role-tag,
.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(23, 78, 118, 0.09);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-tag.warning {
  background: var(--gold-soft);
  color: #8b5d19;
}

.status-tag.alert {
  background: var(--danger-soft);
  color: var(--danger);
}

.faq-block {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.faq-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

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

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p,
.faq-item ul,
.faq-item ol { margin-top: 10px; }

.article-shell {
  margin-top: 22px;
  border-radius: var(--radius-xl);
  padding: 32px;
}

.article-shell h1 {
  margin: 14px 0 10px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.article-shell h2 {
  margin: 26px 0 8px;
  font-size: 1.64rem;
}

.article-shell h3 {
  margin: 18px 0 8px;
  font-size: 1.16rem;
}

.article-shell code,
.tool-card code,
.card code,
.callout code,
.path-card code,
.service-card code,
.incident-card code,
.problem-card code,
.page-guide-card code,
.visual-frame code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(23, 78, 118, 0.08);
  color: var(--accent-2);
}

.article-shell hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.article-shell .hero-answer { margin-top: 16px; }

.tableish {
  display: grid;
  gap: 10px;
}

.tableish-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.86);
  border: 1px solid var(--line);
}

.tableish-row strong { color: var(--ink); }

.page-switch-grid,
.problem-grid,
.service-grid,
.incident-grid,
.page-guide,
.section-stack {
  display: grid;
  gap: 16px;
}

.page-switch-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.problem-grid,
.service-grid,
.incident-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.path-card,
.service-card,
.incident-card,
.problem-card,
.page-guide-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.9);
  box-shadow: var(--shadow);
}

.path-card h3,
.service-card h3,
.incident-card h3,
.problem-card h3,
.page-guide-card h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.path-card p,
.service-card p,
.incident-card p,
.problem-card p,
.page-guide-card p {
  margin: 0;
  color: var(--muted);
}

.guide-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.doc-visual {
  margin: 0;
  display: grid;
  gap: 10px;
}

.visual-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 108, 116, 0.12);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.visual-frame {
  min-height: 220px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background:
    linear-gradient(135deg, rgba(217, 239, 241, 0.45), rgba(255, 241, 214, 0.38)),
    rgba(255, 250, 242, 0.88);
  display: grid;
  gap: 10px;
  align-content: start;
}

.visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.visual-caption {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(130deg, rgba(255, 250, 242, 0.98), rgba(217, 239, 241, 0.56)),
    rgba(255, 250, 242, 0.94);
}

.status-banner h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.status-summary,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-summary { margin-top: 14px; }
.support-actions { margin-top: 14px; }

.status-meta {
  display: grid;
  gap: 14px;
  align-content: start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill.good {
  background: rgba(15, 108, 116, 0.12);
  color: var(--accent-2);
}

.status-pill.warn {
  background: var(--gold-soft);
  color: #8b5d19;
}

.status-pill.bad {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pill.neutral {
  background: rgba(89, 109, 116, 0.12);
  color: var(--muted);
}

.site-footer {
  margin-top: 24px;
  border-radius: 20px;
  padding: 18px;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--accent-2);
  text-decoration: none;
}

.hidden-card { display: none; }

@media (max-width: 960px) {
  .site-topbar {
    border-radius: 22px;
    align-items: flex-start;
  }

  .header-menu-toggle {
    display: inline-flex;
  }

  .site-topbar .top-links {
    display: none;
    width: 100%;
    justify-content: flex-start;
  }

  .site-topbar.menu-open:not(.is-hidden) .top-links {
    display: flex;
  }

  .site-topbar .top-links a {
    flex: 1 1 180px;
    text-align: center;
  }

  .hero { padding: 24px; }
  .hero-grid,
  .split,
  .tableish-row,
  .guide-section,
  .status-banner { grid-template-columns: 1fr; }
  .panel,
  .faq-block,
  .article-shell { padding: 22px; }
}

@media (max-width: 620px) {
  .support-shell {
    width: min(var(--max), calc(100vw - 20px));
    padding-top: 16px;
  }

  .header-controls {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .site-topbar,
  .hero,
  .panel,
  .faq-block,
  .article-shell,
  .site-footer { border-radius: 18px; }

  .hero h1,
  .article-shell h1 { line-height: 1.02; }
}
