:root {
  --bg: #11181c;
  --bg-step: #131a1f;
  --bg-light: #1a2329;
  --bg2: #1a2329;
  --text: #c8d5cd;
  --muted: #8b9a8e;
  --dim: #657a62;
  --accent: #34b27b;
  --amber: #d4a574;
  --red: #e57373;
  --accent-dim: rgba(52, 178, 123, 0.15);
  --border: #2d3b36;
  --border-light: #3d4d46;
  --mono: "JetBrains Mono", "Fira Code", monospace;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-md: 8px;
  --radius-rounded: 1em;
  --radius-pill: 1.25em;
  --transition-fast: 150ms ease;
  --max-width: 1400px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --text-hero: clamp(2.5rem, 5vw, 4rem);
  --text-body: 1.125rem;
  --text-small: 0.875rem;
  --text-code: 0.9375rem;

  /* Legacy landing aliases for shared public pill and chrome styling */
  --color-bg: var(--bg);
  --color-bg-step: var(--bg-step);
  --color-bg-light: var(--bg-light);
  --color-text: var(--text);
  --color-text-muted: var(--muted);
  --color-text-dim: var(--dim);
  --color-accent: var(--accent);
  --color-accent-dim: var(--accent-dim);
  --color-accent-hover: #3fc68a;
  --color-border: var(--border);
  --color-border-light: var(--border-light);
  --font-body: var(--body);
  --font-mono: var(--mono);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100vh;
  font-size: 20px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  overflow: hidden;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

body {
  height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  scrollbar-width: none;
  overflow: hidden;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

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

a:hover {
  text-decoration: underline;
}

strong {
  color: var(--text);
  font-weight: 600;
}

code {
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.hl,
.prefix,
.pf {
  color: var(--accent);
}

.prefix-line {
  display: flex;
  align-items: center;
  gap: 0;
}

.prefix,
.pf {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  padding-bottom: 0.16em;
}

.doc-sub-title {
  font-family: var(--font-mono);
  font-size: var(--text-body);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}

.doc-sub-title .prefix {
  position: static;
  margin-right: 0;
  padding-bottom: 0;
  transform: translateY(-0.05em);
}

.doc-title {
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  text-align: center;
}

.doc-title .title-prefix {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  position: relative;
  top: -0.05em;
}

.doc-title .title-accent {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 600;
}

.doc-title .title-secondary {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

.doc-title .title-arrow {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.6em;
  position: relative;
  top: -0.15em;
}

.content-title {
  margin-bottom: 1em;
  font-size: 1.9em;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  text-align: center;
}

.content-title .title-prefix {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-weight: 600;
  position: relative;
  top: -0.1em;
}

.content-title .title-main {
  color: var(--text);
  margin-right: 0.35em;
}

.content-title .hl {
  color: var(--accent);
}

.content-title .title-accent {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-weight: 600;
}

.content-title .title-secondary {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

.content-title .title-arrow {
  color: var(--color-text-dim);
  font-family: var(--font-mono);
  font-size: 0.6em;
  position: relative;
  top: -0.15em;
}

.hero-title {
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 1em;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--color-text);
}

.hero-highlight {
  color: var(--color-accent);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1em;
  margin-bottom: 1.25em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  flex: 0 0 auto;
}

.hero-badge .badge-prefix {
  color: var(--accent);
}

.hero-badges-group {
  margin-top: 1em;
  margin-bottom: 1.25em;
}

.hero-badges-group .hero-badges {
  margin-top: 0;
  margin-bottom: 0;
}

.hero-badges-group .hero-badges + .hero-badges {
  margin-top: 0.375rem;
}

.badge-prefix {
  color: var(--dim);
  margin-right: 0;
  position: relative;
  top: -0.05em;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5em 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.section-divider--left {
  justify-content: flex-start;
  text-align: left;
}

.section-divider--center {
  justify-content: center;
  text-align: center;
}

.section-divider--center::before {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.learn-doc {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.learn-doc[href]:hover {
  color: var(--color-text);
  text-decoration: none;
  transform: translateX(0.15rem);
}

.learn-doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.learn-doc-icon svg {
  width: 100%;
  height: 100%;
}

.learn-doc-text {
  color: inherit;
  white-space: nowrap;
}

.post-body .bullet-list {
  white-space: normal;
}

.bullet-list {
  list-style: none;
  margin: 0.6em 0 0;
  padding: 0;
  display: grid;
  gap: 0.45em;
}

.bullet-list li {
  position: relative;
  padding-left: 1.1em;
  color: var(--muted);
  line-height: 1.6;
}

.bullet-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.bullet-list--compact {
  gap: 0.25em;
}

.bullet-list--arrow li::before {
  content: "->";
}

.bullet-list-arrow {
  color: var(--accent);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.bullet-list--completed li::before {
  content: "\2022";
}

.bullet-list--cross li::before {
  content: "\2717";
  color: var(--red);
}

.bullet-list--tick li::before {
  content: "\2713";
  color: var(--accent);
}

.case-study-text {
  font-family: var(--font-mono);
  font-size: 1.1875rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
}

.learn {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: 1.5em;
}

.learn .doc-sub-title {
  margin-bottom: 0.25em;
  white-space: nowrap;
}

.hero {
  padding: 0 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.hero-content {
  text-align: left;
  max-width: 900px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.ctx,
.market-context,
.callout,
.guide-quote {
  display: block;
  background: var(--bg-step);
  border-left: 3px solid var(--dim);
  padding: 1em 1.25em;
  margin: 1.25em 0;
  border-radius: 0 6px 6px 0;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.callout,
a.guide-quote {
  text-decoration: none;
  color: inherit;
}

a.callout:hover,
a.guide-quote:hover {
  text-decoration: none;
  color: inherit;
}

.ctx:hover,
.market-context:hover,
.callout:hover,
.guide-quote:hover {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--bg-step) 82%, var(--accent) 18%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.callout--alert,
.guide-quote--alert,
.ctx--alert,
.market-context--alert {
  border-left-color: var(--red);
}

.callout--highlight,
.guide-quote--highlight,
.ctx--highlight,
.market-context--highlight {
  border-left-color: var(--accent);
}

.callout--soft-accent,
.guide-quote--soft-accent,
.ctx--soft-accent,
.market-context--soft-accent {
  border-left-color: var(--dim) !important;
}

.callout--panel,
.guide-quote--panel,
.ctx--panel,
.market-context--panel {
  cursor: default;
  transition: none;
  border-left-color: var(--dim);
  background: var(--bg-step);
  box-shadow: none;
}

.callout--panel:hover,
.guide-quote--panel:hover,
.ctx--panel:hover,
.market-context--panel:hover {
  border-left-color: var(--dim);
  background: var(--bg-step);
  box-shadow: none;
  transform: none;
}

.callout--panel-ghost,
.guide-quote--panel-ghost,
.ctx--panel-ghost,
.market-context--panel-ghost {
  background: transparent;
}

.callout--panel-ghost:hover,
.guide-quote--panel-ghost:hover,
.ctx--panel-ghost:hover,
.market-context--panel-ghost:hover {
  background: transparent;
}

.guide-quote--static-link,
.guide-quote--static-link:hover {
  cursor: default;
  text-decoration: none;
  color: inherit;
  border-left-color: var(--accent);
  background: var(--bg-step);
  box-shadow: none;
}

.guide-quote--static-link p {
  pointer-events: none;
}

.callout--warning,
.guide-quote--warning,
.ctx--warning,
.market-context--warning {
  border-left-color: var(--amber);
}

.callout--static,
.guide-quote--static,
.ctx--static,
.market-context--static {
  cursor: default;
  transition: none !important;
  background: var(--bg-step) !important;
  box-shadow: none !important;
}

.callout.callout--static:hover,
.guide-quote.guide-quote--static:hover,
.ctx.ctx--static:hover,
.market-context.market-context--static:hover {
  border-left-color: inherit !important;
  background: var(--bg-step) !important;
  box-shadow: none !important;
  transform: none !important;
}

.callout.callout--soft-accent.callout--static:hover,
.guide-quote.guide-quote--soft-accent.guide-quote--static:hover,
.ctx.ctx--soft-accent.ctx--static:hover,
.market-context.market-context--soft-accent.market-context--static:hover {
  border-left-color: var(--dim) !important;
  background: var(--bg-step) !important;
  box-shadow: none !important;
  transform: none !important;
}

.callout .attribution,
.guide-quote .attribution {
  display: block;
  margin-top: 0.45em;
  font-family: var(--mono);
  font-size: 0.6875em;
  color: var(--dim);
  text-align: right;
  position: relative;
  z-index: 1;
}

.callout .attribution-name,
.guide-quote .attribution-name {
  color: var(--dim);
}

.callout .attribution-name:only-child,
.guide-quote .attribution-name:only-child {
  color: var(--accent);
}

.callout .attribution-role,
.guide-quote .attribution-role {
  color: var(--accent);
}

.callout p,
.guide-quote p {
  color: var(--text);
}

.callout a,
.guide-quote a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, text-decoration-color 0.15s ease;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: block;
}

.callout a:hover,
.guide-quote a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

html.standalone-page,
body.standalone-page {
  height: 100vh;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: color-mix(in srgb, var(--bg) 74%, rgb(28 40 36) 26%);
}

html.standalone-page::-webkit-scrollbar,
body.standalone-page::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.report-main-content,
body.standalone-page .report-main-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.report-content,
body.standalone-page .report-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.report-body,
body.standalone-page .report-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.report-header,
body.standalone-page .report-header {
  height: 3.5em;
  padding: 0 1.5em;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1em;
  background: rgba(17, 24, 28, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.report-header::before,
body.standalone-page .report-header::before {
  display: none;
}

.report-brand,
body.standalone-page .report-brand {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  text-decoration: none;
  flex-shrink: 0;
}

.report-brand:hover,
body.standalone-page .report-brand:hover {
  text-decoration: none;
}

.report-brand-prefix,
body.standalone-page .report-brand-prefix {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.2em;
  position: relative;
  top: -0.1em;
  margin-right: 0.1em;
}

.report-brand-text,
body.standalone-page .report-brand-text {
  color: var(--text);
  font-weight: 500;
}

.report-brand-suffix,
body.standalone-page .report-brand-suffix {
  color: var(--muted);
  font-weight: 500;
}

.report-header-title {
  flex: 1;
  font-family: var(--mono);
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  margin-top: 0.45em;
}

.report-close,
body.standalone-page .report-close {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 1px solid var(--border-light, var(--border));
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75em;
  font-weight: 500;
  padding: 0.4em 1em;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.report-close:hover,
body.standalone-page .report-close:hover {
  text-decoration: none;
  color: var(--accent);
  border-color: var(--accent);
}

.report-content,
.report-body,
.guide-layout,
.guide-content {
  min-height: 0;
}

.icon {
  display: inline-block;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  vertical-align: middle;
}

.icon-sm {
  width: 12px;
  height: 12px;
}

.icon-chevron {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.guide-layout,
body.standalone-page .guide-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 0;
  overflow: hidden;
}

.guide-nav {
  width: 350px;
  flex-shrink: 0;
  padding: 1em;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.site-main .guide-layout {
  align-items: flex-start;
  overflow: visible;
}

.site-main .guide-nav {
  position: sticky;
  top: 0.75rem;
  align-self: flex-start;
  max-height: calc(100vh - 8.75rem);
}

.site-main .guide-content {
  overflow: visible;
}

.guide-nav-item {
  display: block;
  padding: 0.5em 0.75em;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.guide-nav-item:hover,
.guide-nav-item:focus,
.guide-nav-item:active,
.guide-nav-item.active {
  text-decoration: none;
}

.guide-nav-item:hover {
  color: var(--text);
  background: rgba(75, 85, 99, 0.2);
}

.guide-nav-item.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.guide-nav-divider {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0.75em 0.75em;
  font-size: 0.6875em;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.guide-nav-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.guide-nav-divider:hover {
  color: var(--muted);
}

.guide-nav-group {
  max-height: 3000px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}

.guide-nav-group.collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-0.25em);
}

.guide-nav-group .guide-nav-item {
  padding-left: 1.75em;
}

.vertical-nav-chevron {
  transition: transform 0.2s ease;
  opacity: 0.5;
}

.guide-nav-divider.collapsed .vertical-nav-chevron {
  transform: rotate(-90deg);
}

.guide-nav-chevron {
  transition: transform 0.2s ease;
  opacity: 0.5;
}

.guide-nav-divider.collapsed .guide-nav-chevron {
  transform: rotate(-90deg);
}

.guide-badges {
  margin-bottom: 0.75em;
}

.guide-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.guide-badges--inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0 0 0 auto;
  flex-shrink: 0;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  margin-right: 0.4em;
}

.guide-badges--inline .guide-badge {
  margin-right: 0;
}

.guide-badge--ai {
  color: #c5a0f5;
  background: rgba(197, 160, 245, 0.08);
  border-color: rgba(197, 160, 245, 0.25);
}

.guide-badge--data {
  color: var(--accent);
  background: rgba(78, 204, 163, 0.08);
  border-color: rgba(78, 204, 163, 0.25);
}

.guide-badge--security {
  color: #f0a050;
  background: rgba(240, 160, 80, 0.08);
  border-color: rgba(240, 160, 80, 0.25);
}

.guide-callout-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.75rem;
  row-gap: 1rem;
  margin-top: 1.25rem;
}

.guide-callout-grid::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 50%;
  width: 1px;
  background: color-mix(in srgb, var(--accent) 28%, var(--border) 72%);
  transform: translateX(-0.5px);
  pointer-events: none;
}

.guide-callout-grid .callout,
.guide-callout-grid .guide-quote {
  margin: 0;
}

.guide-callout-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.guide-callout-title {
  display: block;
  color: var(--text);
}

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

  .guide-callout-grid::before {
    display: none;
  }
}

.guide-content,
body.standalone-page .guide-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2em;
  scroll-behavior: smooth;
  background: transparent;
}

.guide-section {
  margin-bottom: 3em;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--border);
}

.guide-section:last-child {
  border-bottom: none;
}

.guide-section > .doc-sub-title {
  display: flex;
  margin-bottom: 1em;
}

.section-number {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  scroll-margin-top: 3em;
}

.guide-used-in {
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex-wrap: wrap;
}

.guide-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}

.guide-note {
  font-size: 0.875em;
  color: var(--muted);
  margin: 1em 0 0;
  line-height: 1.6;
}

.guide-note--right {
  text-align: right;
}

.guide-diagram-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--dim);
  font-size: 0.8125em;
  margin-top: 1.5em;
}

.guide-section h3 {
  font-size: 1em;
  font-weight: 600;
  color: var(--text);
  margin: 1.5em 0 0.75em;
}

.guide-stats {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25em 0;
  font-size: 0.875em;
}

.guide-stats th,
.guide-stats td {
  padding: 0.5em 0.75em;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.guide-stats th {
  color: var(--text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75em;
}

.guide-stats td {
  color: var(--muted);
}

.guide-stats td:first-child {
  color: var(--muted);
  font-weight: 500;
}

.guide-stats .stat-number {
  color: var(--accent);
  font-weight: 600;
}

.guide-stats a {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 0;
  transition: color 0.15s ease;
}

.guide-stats a:hover {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 0;
}

.dataroles-view {
  border-left: 3px solid var(--accent);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: var(--accent-dim);
  border-radius: 0 4px 4px 0;
}

.dataroles-view-header {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875em;
  margin-bottom: 0.5em;
}

.dataroles-view p {
  color: var(--text);
  margin: 0;
}

.guide-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1em;
}

.guide-sources {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
  font-size: 0.8125em;
  color: var(--dim);
}

.guide-sources strong {
  color: var(--muted);
  margin-right: 0.5em;
}

.guide-sources a {
  color: var(--accent);
  text-decoration: none;
}

.guide-sources a:hover {
  text-decoration: underline;
}

.guide-diagram {
  text-align: center;
  margin: 1.5em 0;
  overflow-x: auto;
}

.guide-diagram svg {
  max-width: 100%;
  height: auto;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
  margin: 1.5em 0;
}

.compare-col {
  background: var(--bg-step);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1em 1.25em;
}

.compare-col.col-problem {
  border-color: color-mix(in srgb, var(--red) 30%, var(--border));
}

.compare-col.col-solution {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.compare-col-header {
  font-family: var(--mono);
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--border);
}

.col-problem .compare-col-header {
  color: var(--red);
}

.col-solution .compare-col-header {
  color: var(--accent);
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  font-size: 0.8125em;
  color: var(--muted);
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.compare-item:last-child {
  margin-bottom: 0;
}

.inline-code {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 0.9em;
}

.console-container {
  --console-bg: #151e22;
  margin-top: 1.5em;
  border-radius: var(--radius-card);
  overflow: visible;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5em;
}

.console-toolbar {
  display: flex;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.console-tabs {
  display: flex;
  flex: 1;
  gap: 0;
}

.console-tab {
  font-size: 0.8125em;
  font-weight: 400;
  color: var(--color-text-muted);
  padding: 0.625em 1.125em;
  cursor: pointer;
  border-right: 1px solid var(--color-border);
  transition: color 0.15s, background 0.15s;
  user-select: none;
  white-space: nowrap;
}

.console-tab:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

.console-tab.active {
  color: var(--color-accent);
  background: var(--console-bg);
  border-bottom: 1px solid var(--color-accent);
  margin-bottom: -1px;
}

.console-copy-btn {
  font-size: 0.6875em;
  font-weight: 400;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-left: 1px solid var(--color-border);
  padding: 0 1em;
  cursor: pointer;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.3125em;
  white-space: nowrap;
}

.console-copy-btn:hover,
.console-copy-btn.copied {
  color: var(--color-accent);
}

.console-copy-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.console-panel {
  display: none;
  background: var(--console-bg);
  padding: 1.25em 1.5em;
  overflow-x: auto;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.console-panel.active {
  display: block;
}

.console-panel pre {
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
  white-space: pre;
}

.console-panel .kw {
  color: var(--color-accent);
}

.console-panel .str {
  color: #e8a848;
}

.console-panel .cmt {
  color: var(--color-text-dim);
  font-style: italic;
}

.console-panel .val {
  color: #7ec8e3;
}

.console-cli {
  margin-top: 1em;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 0.75em 1.125em;
  display: flex;
  align-items: center;
  gap: 0.625em;
}

.console-cli + .console-cli {
  margin-top: 0.375em;
}

.console-cli-prompt {
  font-size: 0.8125em;
  color: var(--color-text-muted);
  user-select: none;
  flex-shrink: 0;
}

.console-cli-command {
  font-size: 0.8125em;
  color: var(--color-accent);
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
}

.console-cli-note {
  font-size: 0.6875em;
  color: var(--color-text-muted);
  margin-top: 0.375em;
  font-style: italic;
}

.console-rule-breakdown {
  background: var(--console-bg, #151e22);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.75em 1.5em;
  margin-bottom: 1.5em;
  overflow-x: auto;
}

.console-rule-line {
  color: var(--color-text);
  margin-bottom: 1em;
  white-space: pre;
}

.console-rule-arrows {
  font-size: 0.6875em;
  color: var(--color-text-muted);
  white-space: pre;
  line-height: 1.5;
}

.console-tab-combo {
  position: relative;
  font-size: 0.8125em;
  font-weight: 400;
  color: var(--color-text-muted);
  padding: 0.625em 1.125em;
  cursor: pointer;
  border-right: 1px solid var(--color-border);
  transition: color 0.15s, background 0.15s;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.375em;
  white-space: nowrap;
}

.console-tab-combo:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

.console-tab-combo.active {
  color: var(--color-accent);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-accent);
  margin-bottom: -1px;
}

.console-combo-chevron {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.console-tab-combo.open .console-combo-chevron {
  transform: rotate(180deg);
}

.console-combo-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--console-bg, #151e22);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-badge);
  min-width: 100%;
  z-index: 20;
  margin-top: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.console-tab-combo.open .console-combo-popup {
  display: block;
}

.console-combo-option {
  font-size: 0.8125em;
  color: var(--color-text-muted);
  padding: 0.5em 1em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.1s, background 0.1s;
  display: block;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
}

.console-combo-option:hover {
  color: var(--color-accent);
  background: var(--color-bg);
}

.console-combo-option.selected {
  color: var(--color-accent);
}

.console-combo-option:first-child {
  border-radius: var(--radius-badge) var(--radius-badge) 0 0;
}

.console-combo-option:last-child {
  border-radius: 0 0 var(--radius-badge) var(--radius-badge);
}

.console-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625em;
  margin-top: 1.5em;
}

.console-badge {
  font-size: 0.8125em;
  font-weight: 500;
  border: 1px solid var(--color-border-light);
  background: var(--color-bg);
  border-radius: var(--radius-badge);
  padding: 0.375em 0.875em;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  letter-spacing: 0.3px;
}

.console-badge .prefix {
  color: var(--color-accent);
  font-weight: 600;
}

.console-badge-explain {
  color: var(--color-text-muted);
  margin-top: 0.5em;
  font-style: italic;
}

.cta-form {
  margin-top: 0.25em;
}

.cta-pill {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-card);
  overflow: hidden;
  animation: glow-pulse 2s ease-in-out infinite;
}

.cta-pill-input {
  flex: 1;
  padding: 0.75em 1em;
  font-size: 0.875em;
  background: var(--color-bg);
  border: none;
  color: var(--color-text);
  outline: none;
  min-width: 400px;
}

.cta-pill-input::placeholder {
  color: var(--color-text-muted);
}

.cta-pill-input:-webkit-autofill,
.cta-pill-input:-webkit-autofill:hover,
.cta-pill-input:-webkit-autofill:focus,
.cta-pill-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--color-bg) inset !important;
  -webkit-text-fill-color: var(--color-text) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.cta-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 1em;
  background: var(--color-accent);
  border: none;
  color: var(--color-bg);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cta-pill-btn:hover {
  background: var(--color-accent-hover);
}

.cta-form-content {
  display: block;
}

.cta-form.htmx-request .cta-form-content {
  display: none;
}

.cta-form.htmx-request + .cta-text {
  display: none;
}

.cta-waiting {
  display: none;
  color: var(--color-text-muted);
  font-size: 0.9em;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.cta-waiting span {
  color: var(--color-text-muted);
}

.cta-form.htmx-request .cta-waiting {
  display: flex;
}

.cta-cancel {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 0.875em;
  margin-left: 1em;
  transition: color 0.15s ease;
}

.cta-cancel:hover {
  color: var(--color-text-muted);
  text-decoration: underline;
}

.cta-callout {
  text-align: center;
}

.cta-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  color: var(--color-accent);
  font-weight: 500;
}

.cta-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  color: var(--color-text-muted);
  font-size: 0.9em;
  margin-top: 0.75em;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

.confirmed-state {
  text-align: center;
  padding: 3em 1em;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.confirmed-state svg {
  margin-bottom: 1em;
}

.confirmed-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5em;
}

.confirmed-sub {
  color: var(--muted);
  font-size: 0.95em;
  margin-bottom: 2em;
}

.step-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2em 0;
  width: 100%;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  min-width: 100px;
}

.step-text {
  font-size: 0.8em;
  color: var(--dim);
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: var(--bg);
}

.step--done .step-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.step--done .step-text {
  color: var(--accent);
}

.step--active .step-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 178, 123, 0.2);
}

.step--active .step-text {
  color: var(--muted);
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--border-light);
  margin: 0 0.25em;
  margin-bottom: 1.75em;
}

.step-links {
  margin-top: 1.5em;
  display: flex;
  justify-content: center;
  gap: 0.75em;
  font-size: 0.9em;
  flex-wrap: wrap;
}

.step-links span {
  color: var(--dim);
}

.step-link {
  color: var(--accent);
  text-decoration: none;
}

.step-link:hover {
  text-decoration: underline;
}

.section-action {
  display: flex;
  align-items: center;
  gap: 0.375em;
  padding: 0.375em 0.75em;
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-rounded);
  color: var(--color-accent);
  font-size: var(--text-small);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.section-action:hover {
  background: var(--color-accent-dim);
  transform: translateY(-2px);
  text-decoration: none;
}

.section-action.muted {
  border-color: var(--color-border-light);
  color: var(--color-text-muted);
}

.section-action.muted:hover {
  background: rgba(75, 85, 99, 0.2);
}

.section-action.glow {
  border-color: var(--color-border-light);
  color: var(--color-text-muted);
  animation: action-glow 2s ease-in-out infinite;
}

.section-action.glow:hover {
  background: rgba(75, 85, 99, 0.2);
  animation: none;
}

.ai-team-concept-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 1.75em;
}

.ai-team-concept-grid--single {
  grid-template-columns: minmax(320px, 760px);
  justify-content: center;
}

.ai-team-member-single {
  max-width: 1180px;
  margin: 0 auto;
  overflow: visible;
  height: auto;
  padding: 0 1.25rem 3.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-light) rgba(17, 24, 28, 0.65);
}

.ai-team-member-single.guide-content {
  padding-top: 0.75em;
}

.ai-team-member-single .doc-sub-title {
  margin-bottom: 0.55em;
}

.ai-team-member-single .ai-team-lead {
  margin-bottom: 0.18em;
}

.ai-team-member-single .ai-team-lead + .ai-team-lead {
  margin-top: 0;
}

.ai-team-member-single::-webkit-scrollbar {
  width: 10px;
}

.ai-team-member-single::-webkit-scrollbar-track {
  background: rgba(17, 24, 28, 0.65);
}

.ai-team-member-single::-webkit-scrollbar-thumb {
  background: rgba(61, 77, 70, 0.95);
  border-radius: 999px;
  border: 2px solid rgba(17, 24, 28, 0.7);
}

.ai-team-member-single #mimi-concept {
  margin-bottom: 0;
}

.ai-team-concept-card {
  padding: 0.25rem 0 0;
}

.ai-team-concept-card--plain {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.ai-team-concept-caption {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-team-concept-intro {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.ai-team-concept-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.9rem;
}

.ai-team-concept-notes .hero-badge {
  background: rgba(26, 35, 41, 0.72);
  border-color: rgba(61, 77, 70, 0.9);
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}

.ai-team-concept-points {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
}

.ai-team-concept-point {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.62rem 0;
  font-size: 0.89rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  border-bottom: 1px solid rgba(61, 77, 70, 0.42);
}

.ai-team-concept-point .point-prefix {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
}

.ai-team-concept-point strong {
  color: var(--color-text);
}

@media (max-width: 900px) {
  .ai-team-concept-grid {
    grid-template-columns: 1fr;
  }
}

.compare-dot {
  flex-shrink: 0;
  margin-top: 0.25em;
  font-size: 0.75em;
}

.col-problem .compare-dot {
  color: var(--red);
}

.col-solution .compare-dot {
  color: var(--accent);
}

.reg-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.875em;
}

.reg-table th {
  text-align: left;
  padding: 0.5em 0.75em;
  font-family: var(--mono);
  font-size: 0.75em;
  font-weight: 500;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.reg-table td {
  padding: 0.625em 0.75em;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}

.reg-table tr:last-child td {
  border-bottom: none;
}

.reg-table .reg-name {
  font-family: var(--mono);
  font-size: 0.875em;
  color: var(--accent);
  font-weight: 500;
}

.reg-table .reg-fine {
  color: var(--red);
  font-family: var(--mono);
}

.reg-table .reg-region {
  color: var(--dim);
  font-size: 0.8125em;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25em 0;
  font-size: 0.875em;
}

.tbl th {
  text-align: left;
  padding: 0.5em 0.75em;
  font-size: 0.75em;
  font-weight: 500;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.tbl td {
  padding: 0.5em 0.75em;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}

.tbl td:first-child {
  color: var(--text);
  font-weight: 500;
}

.tbl tr:last-child td {
  border-bottom: none;
}

.tbl-anchor td {
  padding-bottom: 0;
  border-bottom: 0 !important;
}

.tbl-note-row td {
  padding-top: 0;
  padding-bottom: 1em;
  color: var(--dim);
  font-size: 0.92em;
  line-height: 1.2;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
}

.tbl-note-row td:first-child {
  color: var(--dim);
  font-weight: 500;
}

.content-inset {
  padding: 0 1.5em;
  margin-bottom: 0;
}

.content-column {
  max-width: 900px;
  margin: 0 auto;
  padding: 1em;
}

.content-column--narrow {
  max-width: 600px;
  text-align: center;
}

.cta-wrap {
  margin: 1.5em auto;
  max-width: 480px;
}

.nowrap {
  white-space: nowrap;
}

.card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(61, 77, 70, 0.95);
  border-radius: 18px;
  padding: 1.2em;
  margin-bottom: 1em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card--light {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2em;
  margin-bottom: 1em;
}

.card--dark {
  background: var(--bg-step);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2em;
  margin-bottom: 1em;
}

.card--invisible {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.2em;
  margin-bottom: 1em;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, auto));
  grid-auto-flow: row;
  gap: 0.875rem;
  margin: 1.5em 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: default;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

a.stat-card,
button.stat-card,
.stat-card:has(.stat-source[href]) {
  cursor: pointer;
  text-decoration: none;
}

a.stat-card:hover,
button.stat-card:hover,
.stat-card:has(.stat-source[href]):hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translateY(-1px);
  text-decoration: none;
}

.stat-value {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-card.stat-danger .stat-value {
  color: var(--red);
}

.stat-card.stat-amber .stat-value {
  color: var(--amber);
}

.stat-card.stat-green .stat-value {
  color: var(--accent);
}

.stat-card.stat-dark {
  background: var(--bg-step);
}

.stat-label {
  font-size: 0.875em;
  color: var(--muted);
  margin-top: 0.5em;
}

.stat-source {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875em;
  color: var(--dim);
  margin-top: auto;
  padding-top: 0.5em;
  align-self: flex-end;
  text-align: right;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, text-decoration-color 0.15s ease;
}

.stat-source .attribution-name,
.stat-source .attribution-role {
  color: var(--dim);
}

.stat-source .attribution-name:only-child {
  color: var(--accent);
}

.stat-source .attribution-role {
  color: var(--accent);
}

a.stat-source {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a.stat-source .attribution-name,
a.stat-source .attribution-role {
  color: var(--dim);
}

a.stat-source .attribution-name:only-child {
  color: var(--accent);
}

a.stat-source .attribution-role {
  color: var(--accent);
}

a.stat-source:hover {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.scrollbar-subtle {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.scrollbar-subtle::-webkit-scrollbar {
  width: 6px;
}

.scrollbar-subtle::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.scrollbar-subtle::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.scrollbar-subtle::-webkit-scrollbar-thumb:hover {
  background: var(--dim);
}

.landing-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(17, 24, 28, 0.6);
  backdrop-filter: blur(0.75em);
  -webkit-backdrop-filter: blur(0.75em);
}

.landing-header-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1em 1.5em 0;
  max-width: var(--max-width);
  margin: 0 auto;
  container-type: inline-size;
}

.landing-header-brand {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
}

.landing-header-brand:hover {
  text-decoration: none;
}

.optionals-brand-prefix {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.2em;
  position: relative;
  top: -0.1em;
  margin-right: 0.1em;
}

.optionals-brand-text {
  color: var(--color-text);
  font-weight: 500;
}

.optionals-brand-suffix {
  color: var(--color-text-muted);
  font-weight: 500;
}

.section-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5em;
  min-width: 0;
  flex-wrap: nowrap;
}

.section-tab {
  padding: 0.375em 0.75em;
  background: none;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-rounded);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.section-tab:hover {
  text-decoration: none;
  background: rgba(75, 85, 99, 0.2);
  color: var(--color-text);
  transform: translateY(-2px);
}

.section-tab.active {
  background: var(--color-text-muted);
  color: var(--color-bg);
  border-color: var(--color-text-muted);
}

.section-tab-separator {
  width: 1px;
  height: 1.5em;
  background: var(--color-border-light);
  margin: 0 0.25em;
  flex-shrink: 0;
}

.section-tab--access {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  border-radius: 9999px;
  padding: 0.4em 1.2em;
  font-weight: 600;
}

.section-tab--access:hover {
  background-color: var(--color-accent-hover);
}

.section-tab--access.active {
  background-color: var(--color-accent);
}

.optionals {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  background: rgba(17, 24, 28, 0.6);
  backdrop-filter: blur(0.75em);
  -webkit-backdrop-filter: blur(0.75em);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "alert alert alert"
    "brand links right";
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1em 1.5em 0.5em;
}

.optionals-brand,
.optionals-alert,
.optionals-links,
.optionals-right {
  min-width: 0;
}

.optionals-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-area: alert;
  justify-self: center;
}

.optionals-brand {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  grid-area: brand;
  justify-self: start;
}

.optionals-company-line {
  color: var(--color-text-dim);
  font-size: 0.5em;
  white-space: nowrap;
}

.optionals-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  grid-area: links;
  justify-self: center;
}

.text-alert,
.optionals-reveal-link {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, text-shadow 150ms ease;
}

.text-alert:hover,
.optionals-reveal-link:hover {
  color: var(--color-accent-hover);
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
}

.text-alert--disabled,
.optionals-reveal-link--disabled {
  opacity: 0.72;
  cursor: default;
}

.text-alert--red,
.optionals-reveal-link--alert {
  color: #e57373;
}

.text-alert--muted {
  opacity: 0.74;
}

.text-alert--muted:hover {
  opacity: 1;
}

.text-alert--center {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.optionals-alert .text-alert {
  text-align: center;
  white-space: normal;
  text-decoration: none;
}

.optionals-alert .text-alert:hover {
  text-decoration: none;
}

.footer-meta-link {
  color: var(--color-text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 150ms ease;
  white-space: nowrap;
}

.footer-meta-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-meta-link--strong {
  color: var(--color-text-primary);
}

.footer-meta-link--strong:hover {
  color: var(--color-accent);
}

.footer-meta-separator {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.guide-lead {
  font-size: 1.1em;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75em;
  padding: 0.5em 0 0;
}

.guide-lead--upper-thin {
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 0.04em;
}

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

.guide-body p {
  font-size: 1.1em;
  margin-bottom: 0.75em;
  color: var(--muted);
  line-height: 1.7;
}

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

.report-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75em;
  padding: 0.5em 1.5em;
  text-align: center;
  font-size: 0.875em;
  color: var(--dim);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(17, 24, 28, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.report-footer,
.report-footer-prefix,
.report-footer-suffix {
  color: var(--accent);
}

.report-footer a,
.report-footer-brand {
  color: var(--accent);
}

.report-footer-space {
  display: inline-block;
  width: 0.35em;
}

.report-footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.report-footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.report-footer-dim {
  color: var(--dim);
}

.optionals-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-xs);
  grid-area: right;
  justify-self: end;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  background-color: transparent;
  transition: var(--transition-fast);
}

.footer-social:hover {
  color: var(--color-accent);
  background-color: var(--color-accent-dim);
  text-decoration: none;
}

@media (max-width: 1200px) {
  .landing-header-content {
    padding-inline: 1rem;
  }
}

@container (max-width: 1180px) {
  .landing-header-content {
    grid-template-columns: auto;
    align-items: start;
  }

  .section-tabs {
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: -0.25rem;
  }
}

@media (max-width: 960px) {
  .landing-header {
    height: auto;
  }

  .landing-header-content {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.75rem;
    padding-block: 1rem;
  }

  .landing-header-brand {
    grid-row: 1;
  }

  .section-tabs {
    width: 100%;
    justify-content: flex-start;
    grid-row: 2;
  }

  .hero-title {
    font-size: clamp(1.95rem, 7vw, 2.35rem);
  }

  .optionals {
    padding: 1rem 1rem 0.5rem;
  }

}

@media (max-width: 700px) {
  .optionals {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    padding: 0.75em 1em;
  }

  .optionals-brand,
  .optionals-alert,
  .optionals-links,
  .optionals-right {
    min-width: 0;
    justify-content: center;
  }

  .optionals-links {
    flex-wrap: wrap;
  }
}
