:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --sidebar: #1f2a3a;
  --sidebar-hover: #263246;
  --sidebar-accent: #0f1724;
  --text: #1a1f2c;
  --muted: #4d5b6c;
  --card: #ffffff;
  --border: #d8dee8;
  --primary: #415a77;
  --primary-dark: #2f4058;
  --warning: #fef3c7;
  --warning-border: #f6c453;
  --info: #e0f2fe;
  --info-border: #7dd3fc;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --sidebar-width: 16rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.layout.nav-collapsed .main {
  margin-left: 0;
}

.sidenav {
  height: 100vh;
  width: var(--sidebar-width);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--sidebar);
  color: #fff;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.layout.nav-collapsed .sidenav {
  width: 0;
}

.sidebar-header {
  padding: 0 1.5rem 1.5rem;
}

.logo {
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.nav-search {
  padding: 0 1.5rem 1.25rem;
}

.nav-search input[type='search'] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--sidebar-accent);
  color: #fff;
  font-size: 0.85rem;
}

.nav-search input[type='search']::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-results {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  border-radius: 10px;
  background: var(--sidebar-accent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 260px;
  overflow-y: auto;
}

.search-results li a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #e6ebf3;
}

.search-results li a:hover,
.search-results li a:focus {
  background: var(--sidebar-hover);
}

.hidden {
  display: none;
}

.nav-backdrop[hidden] {
  display: none;
}

.no-break {
  white-space: nowrap;
}

.crs-nowrap {
  white-space: nowrap;
}

.nav-section {
  margin-bottom: 1rem;
}

.nav-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.accordion-panel[hidden] {
  display: none;
}

.accordion-button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-button::after {
  content: '+';
  font-weight: 600;
}

.accordion-button[aria-expanded='true']::after {
  content: '–';
}

.accordion-panel {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.3rem 0 0.8rem;
  overflow: visible;
}

.accordion-panel a {
  padding: 0.45rem 1.8rem;
  font-size: 0.85rem;
  color: #e6ebf3;
  border-left: 2px solid transparent;
  border-radius: 8px;
}

.accordion-panel a:hover {
  background-color: var(--sidebar-accent);
  color: #ffffff;
}

.accordion-panel a:focus-visible {
  outline: 2px solid #c7d2fe;
  outline-offset: 2px;
  background-color: var(--sidebar-accent);
}

.accordion-panel a.active,
.accordion-panel a[aria-current='page'] {
  background-color: var(--sidebar-hover);
  border-left-color: #9fb3c8;
  color: #ffffff;
  font-weight: 600;
}

.accordion-panel a.is-active-section {
  background-color: var(--sidebar-accent);
  border-left-color: #c7d2fe;
  color: #ffffff;
  font-weight: 600;
}

.accordion-panel a.nav-sub {
  padding-left: 2.6rem;
  font-size: 0.8rem;
  color: rgba(230, 235, 243, 0.78);
}

.accordion-panel a[href$='.html'] + a[href^='#'] {
  margin-top: 0.35rem;
}

.accordion-panel a[href^='#'] + a[href$='.html'] {
  margin-top: 0.35rem;
}

.main {
  margin-left: var(--sidebar-width);
  padding: 1.5rem 2.5rem 3rem;
  transition: margin-left 0.3s ease;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.nav-toggle {
  border: none;
  background: var(--card);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.nav-toggle img {
  width: 28px;
  height: 28px;
}

.topbar-title h1 {
  margin: 0.2rem 0 0;
  font-size: 1.75rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--muted);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  border: none;
}

.button-secondary {
  background: #dde4ef;
  color: var(--primary-dark);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tryit {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.tryit-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tryit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.tryit-pill {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.tryit-pill.secondary {
  background: #f8fafc;
}

.tryit-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.18);
}

.tryit-input,
.tryit-output {
  width: 100%;
  min-height: 220px;
  font-family: 'Courier New', monospace;
  padding: 12px;
  line-height: 1.4;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  resize: vertical;
}

.tryit input.tryit-input,
.tryit select.tryit-input {
  min-height: 0;
  height: auto;
  font-family: inherit;
  padding: 0.55rem 0.7rem;
}

.tryit-output {
  white-space: pre-wrap;
  min-height: 120px;
}

.tryit-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.tryit-button {
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.tryit-button.secondary {
  background: #dde4ef;
  color: var(--primary-dark);
}

.card h3 {
  margin: 0;
}

.link {
  color: var(--primary);
  font-weight: 600;
}

.wizard {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.wizard h2 {
  margin-top: 0;
}

.wizard-section {
  margin-top: 1.2rem;
}

.wizard-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.wizard-option {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.wizard-option.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.wizard-steps,
.wizard-links,
.wizard-escalate {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.wizard-links a {
  color: var(--primary);
  font-weight: 600;
}

.doc-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  line-height: 1.6;
}

.playbook-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.playbook-summary {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.playbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.playbook-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: #f8fafc;
}

.playbook-card h3 {
  margin-top: 0;
}

.playbook-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.playbook-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.playbook-list input[type=\"checkbox\"] {
  margin-top: 0.2rem;
}

.gridset-explorer {
  margin-top: 1rem;
}

.gridset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.5rem 0 0.75rem;
}

.gridset-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.gridset-map {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 12px;
  min-height: 460px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.gridset-panel {
  padding: 1rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.gridset-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 0.85rem;
  margin: 0.5rem 0;
  background: #fff;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  white-space: pre-wrap;
}

.gridset-map .ol-attribution {
  left: 12px !important;
  bottom: 12px !important;
  top: auto !important;
  background: transparent !important;
  border: 0 !important;
}

.gridset-map .ol-attribution ul {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 60%;
  margin: 0 !important;
  padding: 6px 10px !important;
  list-style: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.gridset-map .ol-attribution li {
  margin: 0 !important;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gridset-map .ol-attribution a {
  color: #0f172a;
  text-decoration: none;
}

.gridset-map .ol-attribution a:hover {
  text-decoration: underline;
}

.gridset-map .ol-attribution button {
  margin: 0 !important;
  padding: 2px 8px !important;
  font-size: 12px !important;
  line-height: 1 !important;

  border-radius: 999px !important;
  border: 1px solid #e5e7eb !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.gridset-map .ol-zoom,
.gridset-map .ol-rotate {
  left: 12px !important;
  top: 12px !important;
}

.gridset-map .ol-zoom button,
.gridset-map .ol-rotate button {
  width: 36px !important;
  height: 36px !important;
  margin: 0 0 8px 0 !important;

  border-radius: 12px !important;
  border: 1px solid rgba(229, 231, 235, 0.9) !important;
  background: rgba(255, 255, 255, 0.92) !important;

  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 34px !important;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.gridset-map .ol-zoom button:hover,
.gridset-map .ol-rotate button:hover {
  transform: translateY(-1px);
}

.gridset-map .ol-zoom button:focus,
.gridset-map .ol-rotate button:focus {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.gridset-map .ol-zoom {
  padding: 0 !important;
}

.gridset-map .ol-control {
  background: transparent !important;
}

.gridset-map .ol-control button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-weight: 600;
  line-height: 1;
}

.gridset-map .ol-control button:hover {
  background: #ffffff;
}

@media (max-width: 900px) {
  .gridset-layout {
    grid-template-columns: 1fr;
  }

  .gridset-map {
    min-height: 280px;
  }
}

.code-block {
  position: relative;
  margin: 1.2rem 0 2rem;
}

.code-block pre {
  margin: 0;
}

.code-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.copy-btn:hover,
.copy-btn:focus {
  background: var(--primary);
  color: #fff;
}

.copy-btn.copied {
  background: #e8f5e9;
  border-color: #a7d7b1;
  color: #1b5e20;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.table-wrap table {
  min-width: 560px;
}

.troubleshoot-toggle {
  margin-top: 0.6rem;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.troubleshoot-toggle:hover,
.troubleshoot-toggle:focus {
  text-decoration: underline;
}

.troubleshoot-panel {
  margin-top: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #f3f6fb;
  border: 1px solid var(--border);
  color: var(--text);
}

.troubleshoot-panel h4 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.troubleshoot-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}

.doc-content h2 {
  margin-top: 1.8rem;
}

.doc-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 2.4rem 1.2rem 1rem;
  border-radius: 12px;
  overflow-x: auto;
}

.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.doc-content th,
.doc-content td {
  border: 1px solid var(--border);
  padding: 0.6rem;
  text-align: left;
}

.doc-content th {
  background: #eef2f7;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.troubleshooting-symptoms .symptom-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.troubleshooting-symptoms .symptom-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}

.troubleshooting-symptoms .symptom-row:last-child {
  border-bottom: none;
}

.troubleshooting-symptoms .symptom-col {
  min-width: 0;
}

.troubleshooting-symptoms .symptom-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.troubleshooting-symptoms .symptom-cause {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.troubleshooting-symptoms .symptom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
}

.troubleshooting-symptoms .symptom-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

.troubleshooting-symptoms .symptom-header {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: #f9fafb;
}

.troubleshooting-symptoms .symptom-row:nth-child(even) {
  background: #fafafa;
}

.troubleshooting-symptoms .symptom-row:hover {
  background: #f4f8ff;
}

.troubleshooting-symptoms .symptom-row:hover .symptom-title {
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.15);
}

.troubleshooting-symptoms .symptom-chip:hover {
  background: #eef2f7;
}

.troubleshooting-symptoms .symptom-chip.is-static {
  color: var(--muted);
  background: #f3f4f6;
}

.troubleshooting-symptoms .symptom-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid;
}

@media (max-width: 820px) {
  .troubleshooting-symptoms .symptom-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .troubleshooting-symptoms .symptom-links {
    margin-top: 0.1rem;
  }
}

@media (max-width: 820px) {
  .troubleshooting-symptoms .symptom-col--mid::before {
    content: "Orsak";
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }

  .troubleshooting-symptoms .symptom-col--right::before {
    content: "Nästa steg";
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }
}

.troubleshooting-symptoms .symptom-table {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.troubleshooting-symptoms .symptom-header {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.troubleshooting-symptoms .symptom-col {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.troubleshooting-symptoms .symptom-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.troubleshooting-symptoms .symptom-row:last-child {
  border-bottom: none;
}

.troubleshooting-symptoms .symptom-cell {
  padding: 0.9rem 1rem;
}

.troubleshooting-symptoms .symptom-col--cause {
  color: var(--muted);
  font-style: italic;
}

.troubleshooting-symptoms .symptom-cell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.troubleshooting-symptoms .symptom-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.25;
}

.troubleshooting-symptoms .symptom-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
  flex: 0 0 auto;
}

.troubleshooting-symptoms .tag-frontend { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; }
.troubleshooting-symptoms .tag-gwc      { background: #f0fdf4; color: #166534; border-color: #86efac; }
.troubleshooting-symptoms .tag-gs       { background: #fff7ed; color: #7c2d12; border-color: #fdba74; }
.troubleshooting-symptoms .tag-data     { background: #f3e8ff; color: #6b21a8; border-color: #d8b4fe; }

.troubleshooting-symptoms .symptom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.troubleshooting-symptoms .symptom-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.troubleshooting-symptoms .symptom-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

.troubleshooting-symptoms .symptom-pill.is-static {
  opacity: 0.85;
  cursor: default;
}

.troubleshooting-symptoms .symptom-row:hover {
  background: #fbfdff;
}

@media (max-width: 860px) {
  .troubleshooting-symptoms .symptom-header {
    display: none;
  }

  .troubleshooting-symptoms .symptom-row {
    grid-template-columns: 1fr;
  }

  .troubleshooting-symptoms .symptom-cell {
    padding: 0.8rem 1rem;
  }

  .troubleshooting-symptoms .symptom-cell::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .troubleshooting-symptoms .symptom-col--cause {
    font-style: normal;
  }

  .troubleshooting-symptoms .symptom-actions {
    gap: 0.5rem;
  }

  .troubleshooting-symptoms .symptom-pill {
    white-space: normal;
  }
}

.troubleshooting-page .ts-steps {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.troubleshooting-page .ts-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  gap: 0.9rem;
}

.troubleshooting-page .ts-step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--text);
  flex: 0 0 auto;
}

.troubleshooting-page .ts-step-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.troubleshooting-page .ts-step-text {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.troubleshooting-page .ts-issues {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.troubleshooting-page .ts-issue {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.95rem 1rem;
}

.troubleshooting-page .ts-issue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.troubleshooting-page .ts-issue-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}

.troubleshooting-page .ts-issue-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.troubleshooting-page .ts-issue-text {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.troubleshooting-page .ts-issue-actions {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.troubleshooting-page .ts-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.85rem;
}

.troubleshooting-page .ts-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

.troubleshooting-page .ts-accordion {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.25rem 0.75rem;
}

.troubleshooting-page .ts-accordion > summary {
  cursor: pointer;
  padding: 0.75rem 0.25rem;
  font-weight: 750;
  color: var(--text);
  list-style: none;
}

.troubleshooting-page .ts-accordion > summary::-webkit-details-marker {
  display: none;
}

.troubleshooting-page .ts-accordion > summary::after {
  content: "▾";
  float: right;
  opacity: 0.7;
}

.troubleshooting-page .ts-accordion[open] > summary::after {
  content: "▴";
}

.troubleshooting-page .ts-bullets {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  color: var(--text);
}

.troubleshooting-page .ts-bullets li {
  margin: 0.35rem 0;
  color: var(--muted);
}

.troubleshooting-page .ts-bullets strong {
  color: var(--text);
}

@media (max-width: 860px) {
  .troubleshooting-page .ts-steps {
    grid-template-columns: 1fr;
  }

  .troubleshooting-page .ts-issues {
    grid-template-columns: 1fr;
  }
}

.troubleshooting-page .ts-mini-cards {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.troubleshooting-page .ts-mini-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.troubleshooting-page .ts-mini-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text);
}

.troubleshooting-page .ts-mini-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.troubleshooting-page .ts-mini-link {
  margin-top: 0.35rem;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.troubleshooting-page .ts-mini-link:hover {
  text-decoration: underline;
}

.troubleshooting-page .ts-mini-hint {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .troubleshooting-page .ts-mini-cards {
    grid-template-columns: 1fr;
  }
}

.troubleshooting-symptoms .symptom-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.troubleshooting-symptoms .symptom-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.troubleshooting-symptoms .symptom-title {
  font-weight: 600;
}

.troubleshooting-symptoms .symptom-cause {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.15rem;
}

.troubleshooting-symptoms .symptom-next {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.troubleshooting-symptoms .muted {
  color: #666;
  font-size: 0.9rem;
  margin-top: -0.5rem;
}

.troubleshooting-symptoms .symptom-list li:hover {
  background: #f9fafb;
}

.troubleshooting-symptoms .symptom-next a {
  font-weight: 500;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.callout {
  border-radius: var(--radius);
  padding: 1rem 1.2rem 1rem 3rem;
  margin: 1.5rem 0;
  position: relative;
}

.offline-note {
  background: var(--info);
  border: 1px solid var(--info-border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin: 1rem 0 1.4rem;
  font-size: 0.9rem;
  color: var(--text);
}

.callout strong {
  display: block;
  margin-bottom: 0.4rem;
}

.callout-warning {
  background: var(--warning);
  border: 1px solid var(--warning-border);
}

.callout-info {
  background: var(--info);
  border: 1px solid var(--info-border);
}

.callout-check {
  background: #f1f7e8;
  border: 1px solid #cfe1b9;
}

.callout-warn {
  background: #fff5e5;
  border: 1px solid #f1c27d;
}

.callout-tip {
  background: #f0f7ff;
  border: 1px solid #c3d9f6;
}

.callout-check::before,
.callout-warn::before,
.callout-tip::before {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1rem;
}

.callout-check::before {
  content: '✓';
  color: #2f855a;
}

.callout-warn::before {
  content: '!';
  color: #b45309;
}

.callout-tip::before {
  content: '💡';
}

@media (max-width: 960px) {
  :root {
    --sidebar-width: 14rem;
  }

  .main {
    margin-left: 0;
    padding: 1.2rem 1.6rem 2.5rem;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    align-self: flex-start;
  }
}

@media (max-width: 560px) {
  .sidenav {
    width: 100%;
  }
}

@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }

  .sidenav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(85vw, 360px);
    height: 100dvh;
    min-height: 100vh;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 200ms ease,
      visibility 0s linear 200ms;
  }

  body.nav-open .sidenav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 200ms ease;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 200ms ease,
      visibility 0s linear 200ms;
    z-index: 900;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 200ms ease;
  }
}

.doc-content .code-block {
  background: linear-gradient(135deg, #141e2e 0%, #1a2636 100%);
  border: 1px solid rgba(65, 90, 119, 0.2);
  border-radius: 16px;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.doc-content .code-block pre {
  margin: 0;
  padding: 1.2rem;
  overflow-x: auto;
  overflow-y: visible;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(65, 90, 119, 0.3) transparent;
}

.doc-content .code-block pre::-webkit-scrollbar {
  height: 6px;
}

.doc-content .code-block pre::-webkit-scrollbar-track {
  background: transparent;
}

.doc-content .code-block pre::-webkit-scrollbar-thumb {
  background: rgba(65, 90, 119, 0.3);
  border-radius: 3px;
}

.doc-content .code-block pre::-webkit-scrollbar-thumb:hover {
  background: rgba(65, 90, 119, 0.5);
}

.doc-content .code-block code {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #e2e8f0;
  display: block;
  white-space: pre;
}

.code-badge {
  display: none;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(65, 90, 119, 0.15) 0%, rgba(47, 64, 88, 0.1) 100%);
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid rgba(65, 90, 119, 0.15);
  gap: 1rem;
  flex-wrap: wrap;
}

.code-lang {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #a3b5cc;
  font-family: 'Montserrat', sans-serif;
  background: rgba(65, 90, 119, 0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(65, 90, 119, 0.25);
}

.copy-btn {
  border: none;
  background: rgba(65, 90, 119, 0.2);
  color: #b0c4de;
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all 150ms ease;
  border: 1px solid rgba(65, 90, 119, 0.3);
  white-space: nowrap;
  order: 2;
}

.copy-btn:hover {
  background: rgba(65, 90, 119, 0.35);
  border-color: rgba(65, 90, 119, 0.5);
  color: #d8e7f5;
}

.copy-btn:active {
  background: rgba(65, 90, 119, 0.15);
  border-color: rgba(65, 90, 119, 0.2);
}

.copy-btn.copied {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(125, 211, 252, 0.1);
}

.troubleshoot-toggle {
  display: none;
}

.troubleshoot-panel {
  display: none !important;
}

.code-block pre code .tok-key { color: #9cdcfe; }
.code-block pre code .tok-string { color: #ce9178; }
.code-block pre code .tok-number { color: #b5cea8; }
.code-block pre code .tok-boolean { color: #569cd6; }
.code-block pre code .tok-null { color: #c586c0; }
.code-block pre code .tok-punct { color: #d4d4d4; opacity: 0.9; }

.code-block pre code .tok-tag { color: #4ec9b0; }
.code-block pre code .tok-attr { color: #9cdcfe; }
.code-block pre code .tok-value { color: #ce9178; }
.code-block pre code .tok-comment { color: #6a9955; }

.code-block pre code .tok-keyword { color: #c586c0; }
.code-block pre code .tok-operator { color: #d4d4d4; opacity: 0.9; }

.code-block pre code .tok-prompt { color: #4fc1ff; }
.code-block pre code .tok-flag { color: #dcdcaa; }
.code-block pre code .tok-path { color: #b5cea8; }

@media (max-width: 768px) {
  .doc-content .code-block {
    margin: 1.2rem 0;
  }

  .doc-content .code-block pre {
    padding: 1rem;
  }

  .doc-content .code-block code {
    font-size: 0.9rem;
  }

  .copy-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }
}

.troubleshooting-symptoms {
  margin-top: 2rem;
}

.troubleshooting-symptoms .symptom-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.troubleshooting-symptoms .symptom-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background-color 150ms ease;
}

.troubleshooting-symptoms .symptom-item:hover {
  background-color: #f8fafc;
}

.troubleshooting-symptoms .symptom-item:last-child {
  border-bottom: none;
}

.troubleshooting-symptoms .symptom-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.troubleshooting-symptoms .symptom-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin: 0;
}

.troubleshooting-symptoms .symptom-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid;
}

.troubleshooting-symptoms .symptom-badge.badge-frontend {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.troubleshooting-symptoms .symptom-badge.badge-backend {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

.troubleshooting-symptoms .symptom-badge.badge-geoserver {
  background: #fff7ed;
  color: #7c2d12;
  border-color: #fdba74;
}

.troubleshooting-symptoms .symptom-badge.badge-data {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #d8b4fe;
}

.troubleshooting-symptoms .symptom-cause {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

.troubleshooting-symptoms .symptom-next {
  font-size: 0.92rem;
  margin-top: 0.15rem;
  color: var(--text);
}

.troubleshooting-symptoms .symptom-next a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.troubleshooting-symptoms .symptom-next a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .troubleshooting-symptoms .symptom-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .troubleshooting-symptoms .symptom-badge {
    height: 20px;
    font-size: 0.66rem;
    padding: 0 0.5rem;
  }
}

.troubleshoot-toc {
  background: linear-gradient(135deg, #f0f4f8 0%, #e8f0f6 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
}

.troubleshoot-toc strong {
  flex-basis: 100%;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.35rem 0;
}

.troubleshoot-toc a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 150ms ease;
}

.troubleshoot-toc a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .troubleshoot-toc {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .troubleshoot-toc strong {
    flex-basis: auto;
    margin: 0;
  }

  .troubleshoot-toc a {
    width: 100%;
    text-align: left;
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
  }
}

.card,
.hero-card,
.playbook-card,
.tryit,
.wizard,
.gridset-panel {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.card:hover,
.hero-card:hover,
.playbook-card:hover,
.tryit:hover,
.wizard:hover,
.gridset-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.status-pill,
.symptom-pill,
.symptom-chip,
.troubleshooting-symptoms button,
.troubleshooting-symptoms .chip {
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.status-pill:hover,
.symptom-pill:hover,
.symptom-chip:hover,
.troubleshooting-symptoms button:hover,
.troubleshooting-symptoms .chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.hero-card a,
.card a.button,
.card a.cta,
.doc-content a.button {
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}

.hero-card a:hover,
.card a.button:hover,
.card a.cta:hover,
.doc-content a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.accordion-panel a {
  position: relative;
}

.accordion-panel a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height 120ms ease;
  border-radius: 2px;
}

.accordion-panel a:hover::before {
  height: 60%;
}

.accordion-panel a.active::before {
  height: 100%;
}

table tbody tr {
  transition:
    background-color 120ms ease,
    transform 120ms ease;
}

table tbody tr:hover {
  background-color: #f4f7fb;
  transform: translateY(-1px);
}

.hero-actions .button {
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}

.hero-actions .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.hero-actions .button-secondary:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

@media (max-width: 900px) {
  .sidenav {
    transition: transform 180ms ease, box-shadow 180ms ease;
    transform: translateX(-101%);
    box-shadow: none;
  }

  body.nav-open .sidenav,
  .sidenav.open {
    transform: translateX(0);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.20);
  }

  .nav-backdrop {
    transition: opacity 180ms ease;
  }
}

.page-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: -0.25rem 0 1rem;
  padding: 0 0.1rem;
  flex-wrap: wrap;
}

.breadcrumbs {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.92rem;
  color: #5b677a;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover {
  border-bottom-color: currentColor;
}

.breadcrumbs .sep {
  opacity: 0.6;
}

.last-updated {
  font-size: 0.85rem;
  color: #6b7280;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  margin-left: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin: 0.8rem 0;
  overflow: hidden;
}

.faq-question {
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 600;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.faq-answer {
  padding: 0.9rem 1rem 1rem;
  color: var(--muted);
}

.tryit-quick {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem 1rem 1.1rem;
  margin: 1rem 0 1.6rem;
}

.tryit-quick-title {
  margin: 0;
  font-size: 1.15rem;
}

.tryit-quick-subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.tryit-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.tryit-quick-actions .button {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.1rem;
  margin: 1.2rem 0;
}

.tool-card-head h2,
.tool-card-head h3 {
  margin-top: 0;
}

.tool-card-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.tool-card .tryit {
  margin-top: 0.9rem;
}

html {
  scroll-behavior: smooth;
}

#main [id] {
  scroll-margin-top: 50px;
}

.gridset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}