/* BitFire settings documentation — page-specific styles */

.docs-hero {
  position: relative;
  overflow: hidden;
  padding: 126px 0 92px;
  background:
    radial-gradient(circle at 82% 18%, rgba(33, 139, 201, 0.17), transparent 27%),
    linear-gradient(180deg, #071322 0%, #0a1a2b 100%);
}

.docs-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.docs-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 60px;
  color: #8199aa;
  font-weight: 650;
}

.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span[aria-current] { color: #bad0df; }

.docs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 82px;
  align-items: end;
  margin-bottom: 78px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  color: #a9c1d0;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 25px;
  height: 2px;
  content: "";
  background: var(--mint);
  box-shadow: 0 0 12px rgba(91, 173, 218, 0.65);
}

.docs-hero h1 {
  max-width: 780px;
  margin-bottom: 25px;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 32px;
  color: var(--text-soft);
  line-height: 1.62;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #dce8ef;
}

.author-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(91, 173, 218, 0.3);
  border-radius: 50%;
  color: #bde5fb;
  background: rgba(91, 173, 218, 0.11);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.article-meta strong,
.article-meta small { display: block; }
.article-meta small { color: #7f96a7; }

.hero-recommendation {
  padding: 28px;
  border: 1px solid rgba(91, 173, 218, 0.19);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.recommendation-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--mint);
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recommendation-label .icon { width: 18px; }
.hero-recommendation h2 { margin-bottom: 13px; line-height: 1.2; }
.hero-recommendation p { margin-bottom: 18px; color: #9eb2c0; }
.hero-recommendation a { display: inline-flex; align-items: center; gap: 7px; color: #bce5fb; font-weight: 800; }
.hero-recommendation a .icon { width: 15px; transition: transform 160ms ease; }
.hero-recommendation a:hover .icon { transform: translateX(3px); }

.settings-preview {
  overflow: hidden;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(167, 210, 233, 0.18);
  border-radius: 22px;
  background: #0c1926;
  box-shadow: 0 46px 100px rgba(0, 0, 0, 0.38);
}

.preview-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  color: #8299a9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.frame-dots { display: flex; gap: 5px; }
.frame-dots span { width: 6px; height: 6px; border-radius: 50%; background: #334757; }
.preview-status { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #91b0c2; font-family: Inter, sans-serif; font-weight: 700; }
.preview-status i { width: 6px; height: 6px; border-radius: 50%; background: #63dc91; box-shadow: 0 0 10px rgba(99, 220, 145, 0.8); }
.settings-preview img { width: 100%; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 13px; }
.settings-preview figcaption { padding: 14px 11px 7px; color: #728a9a; }

.guide-intro {
  padding: 112px 0;
  color: var(--text-dark);
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 74px;
  align-items: start;
  margin-bottom: 80px;
}

.guide-intro h2,
.comparison-copy h2 {
  margin-bottom: 20px;
  font-weight: 790;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.intro-lede,
.comparison-copy p { color: var(--text-dark-soft); }

.layer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.layer-card {
  position: relative;
  min-height: 190px;
  padding: 25px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: #fbfdff;
}

.layer-card > span { position: absolute; top: 20px; right: 20px; color: #a5b3bd; font-weight: 700; font-family: ui-monospace, monospace; }
.layer-card .icon { width: 25px; margin-bottom: 30px; color: #218bc9; }
.layer-card h3 { margin-bottom: 8px; }
.layer-card p { margin: 0; color: #5f7382; }

.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 88px;
}

.checklist-card,
.expect-card {
  padding: 34px;
  border: 1px solid var(--line-dark);
  border-radius: 23px;
  background: #fff;
}

.checklist-card { color: #eaf5fb; border-color: #173c57; background: #0c2135; box-shadow: 0 28px 60px rgba(7, 19, 34, 0.12); }
.card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.card-icon { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; color: #0b2133; background: var(--mint); }
.card-icon .icon { width: 20px; }
.card-heading small { display: block; margin-bottom: 2px; color: #6d8190; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.checklist-card .card-heading small { color: #81a0b5; }
.card-heading h3 { margin: 0; }
.checklist-card ul,
.expect-card ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checklist-card li,
.expect-card li { position: relative; padding-left: 27px; color: #536a7a; }
.checklist-card li { color: #b7cbd7; }
.checklist-card li::before,
.expect-card li::before { position: absolute; top: 1px; left: 0; content: "✓"; color: #218bc9; font-weight: 900; }
.checklist-card li::before { color: #65d98f; }

.plan-comparison {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 60px;
  align-items: center;
}

.table-scroll { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: 18px; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { min-width: 130px; padding: 16px 18px; border-bottom: 1px solid var(--line-dark); text-align: left; vertical-align: middle; }
thead th { color: #677b89; background: #f8fafc; letter-spacing: 0.09em; text-transform: uppercase; }
tbody th { color: #253c4d; }
tbody td { color: #637786; }
  tr:last-child th, tr:last-child td { border-bottom: 0; }
.pro-column { background: rgba(33, 139, 201, 0.055); }
.included { color: #096d73; font-weight: 800; }
.included::before { margin-right: 6px; content: "✓"; }
.not-included { color: #9ba8b1; }

.docs-body {
  padding: 112px 0 128px;
  color: var(--text-dark);
  background: #fff;
}

.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(55px, 8vw, 112px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  max-height: calc(100vh - var(--nav-height) - 50px);
  overflow-y: auto;
  padding-right: 8px;
}

.toc > strong { display: block; margin-bottom: 16px; color: #21394b; letter-spacing: 0.1em; text-transform: uppercase; }
.toc nav { display: grid; border-left: 1px solid #dbe3e9; }
.toc nav a { display: grid; grid-template-columns: 25px 1fr; gap: 5px; padding: 8px 0 8px 15px; color: #627482; font-weight: 650; line-height: 1.35; transition: color 150ms ease, border-color 150ms ease; }
.toc nav a span { color: #a2afb8; font-weight: 650; font-family: ui-monospace, monospace; }
.toc nav a:hover { color: #1277ae; }
.toc-help { margin-top: 28px; padding: 19px; border: 1px solid #dbe4ea; border-radius: 14px; background: #f6f9fb; }
.toc-help .icon { width: 19px; margin-bottom: 11px; color: #218bc9; }
.toc-help strong { display: block; }
.toc-help p { margin: 5px 0 11px; color: #697b88; }
.toc-help a { color: #1475a8; font-weight: 800; }

.documentation { min-width: 0; max-width: 900px; }
.doc-section { padding-bottom: 105px; scroll-margin-top: calc(var(--nav-height) + 25px); }
.doc-section:last-child { padding-bottom: 0; }
.doc-heading { display: grid; grid-template-columns: 50px 1fr; gap: 23px; margin-bottom: 42px; }
.doc-index { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid #d8e2e8; border-radius: 50%; color: #218bc9; background: #f7fafc; font-weight: 800; font-family: ui-monospace, monospace; }
.doc-label { margin-bottom: 8px; color: #218bc9; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.doc-heading h2 { margin-bottom: 14px; font-weight: 790; letter-spacing: -0.055em; line-height: 1; }
.doc-heading p { max-width: 720px; margin: 0; color: #5d7180; }

.setting-list { overflow: hidden; border: 1px solid #dbe4ea; border-radius: 18px; }
.setting { padding: 26px 28px; border-bottom: 1px solid #e1e8ed; background: #fff; }
.setting:last-child { border-bottom: 0; }
.setting-name { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 9px; }
.setting h3 { margin: 0; color: #152e40; letter-spacing: -0.015em; }
.setting > p { max-width: 760px; margin: 0; color: #5b6f7e; line-height: 1.72; }
.setting-badge { padding: 3px 8px; border-radius: 999px; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.setting-badge.recommended { color: #087046; background: #dcf4e8; }
.setting-badge.pro { color: #126a9c; background: #e1f1fa; }
.setting-badge.caution { color: #955710; background: #fff0d7; }
.setting-note { margin-top: 13px; padding-left: 13px; border-left: 2px solid #48a9d9; color: #277298; font-weight: 700; }
.caution-setting { background: #fffdfa; }

.guidance {
  margin-top: 20px;
  padding: 25px 27px;
  border: 1px solid #cde3ee;
  border-radius: 16px;
  color: #32546a;
  background: #f1f8fc;
}
.guidance > strong { display: block; margin-bottom: 8px; color: #146f9e; letter-spacing: 0.07em; text-transform: uppercase; }
.guidance p { margin: 0; }
.guidance ul { display: grid; gap: 7px; margin: 0; padding-left: 19px; }

.warning-box,
.advanced-notice {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 13px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #f2d7ae;
  border-radius: 12px;
  color: #67491f;
  background: #fff8eb;
}
.warning-box .icon { width: 21px; color: #cf861f; }
.warning-box strong,
.warning-box p,
.advanced-notice p { margin: 4px 0 0; color: #79633f; }

.example-flow { margin-top: 20px; padding: 27px; border-radius: 17px; color: #dceaf2; background: #0b1d2f; }
.example-flow > strong { display: block; margin-bottom: 18px; letter-spacing: 0.07em; text-transform: uppercase; }
.flow-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; }
.flow-steps > div { padding: 13px; border: 1px solid rgba(91, 173, 218, 0.18); border-radius: 10px; background: rgba(255, 255, 255, 0.035); }
.flow-steps span,
.flow-steps b { display: block; }
.flow-steps span { color: #849baa; }
.flow-steps b { margin-top: 3px; color: #9ce9bb; }
.flow-steps .blocked b { color: #ff9c98; }
.flow-steps i { color: #547083; font-style: normal; }
.example-flow > p { margin: 17px 0 0; color: #8ea4b2; }

.compact-settings { display: grid; grid-template-columns: repeat(2, 1fr); }
.compact-settings .setting { border-right: 1px solid #e1e8ed; }
.compact-settings .setting:nth-child(2n) { border-right: 0; }
.compact-settings .setting:nth-last-child(-n + 2) { border-bottom: 0; }

.zero-day-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  padding: 8px;
  border-radius: 17px;
  color: #e7f3fa;
  background: #0a1d2f;
}
.zero-day-panel > div { padding: 20px; border-right: 1px solid rgba(255, 255, 255, 0.09); }
.zero-day-panel > div:last-child { border-right: 0; }
.zero-day-panel span { display: block; margin-bottom: 8px; color: #59b3df; font-weight: 800; font-family: ui-monospace, monospace; text-transform: uppercase; }
.zero-day-panel strong { display: block; }
.zero-day-panel p { margin: 4px 0 0; color: #8da4b3; }
.strong-guidance { border-color: #b9dded; background: linear-gradient(135deg, #edf8fd, #f7fbfd); }

.advanced-notice { margin: 0 0 20px; border-color: #d8e2e8; color: #284357; background: #f6f9fb; }
.advanced-notice .icon { width: 21px; color: #218bc9; }
.advanced-notice p { color: #627584; }
.system-grid { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; border: 1px solid #dbe4ea; border-radius: 18px; }
.system-grid article { min-height: 150px; padding: 24px; border-right: 1px solid #e1e8ed; border-bottom: 1px solid #e1e8ed; }
.system-grid article:nth-child(2n) { border-right: 0; }
.system-grid article:last-child { border-bottom: 0; }
.system-grid h3 { margin-bottom: 8px; }
.system-grid h3 span { display: inline-block; margin-left: 5px; padding: 3px 7px; border-radius: 999px; color: #126a9c; background: #e2f2fa; text-transform: uppercase; }
.system-grid p { margin: 0; color: #617482; }
.system-grid .important-system { background: #f2f9fc; }

.layer-sequence { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; border: 1px solid #dbe4ea; border-radius: 18px; list-style: none; }
.layer-sequence li { position: relative; min-height: 190px; padding: 24px 19px; border-right: 1px solid #e1e8ed; }
.layer-sequence li:last-child { border-right: 0; }
.layer-sequence li > span { display: block; margin-bottom: 43px; color: #218bc9; font-weight: 800; font-family: ui-monospace, monospace; }
.layer-sequence li:not(:last-child)::after { position: absolute; z-index: 1; top: 30px; right: -7px; content: "→"; color: #8ca0ad; background: #fff; }
.layer-sequence strong { color: #20394b; }
.layer-sequence p { margin: 7px 0 0; color: #677b89; }

.faq-list { overflow: hidden; border: 1px solid #dbe4ea; border-radius: 18px; }
.faq-list details { border-bottom: 1px solid #e1e8ed; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { position: relative; padding: 21px 58px 21px 24px; color: #20394a; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 19px; right: 23px; width: 27px; height: 27px; display: grid; place-items: center; content: "+"; border: 1px solid #d6e0e6; border-radius: 50%; color: #218bc9; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 56px 24px 24px; color: #5d7180; }
.faq-list details p { margin: 0; }
.faq-list details ol { display: grid; gap: 6px; margin: 0; padding-left: 20px; }

.rollout-card { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 46px; margin-top: 22px; padding: 32px; border-radius: 18px; color: #e9f4fa; background: #0a1e31; }
.rollout-card .section-kicker { margin-bottom: 12px; }
.rollout-card h3 { margin-bottom: 9px; }
.rollout-card p { margin: 0; color: #899fad; }
.rollout-card ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rollout-card li { display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: center; color: #abc0cc; }
.rollout-card li span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #315069; border-radius: 50%; color: #65c2ee; font-weight: 800; font-family: ui-monospace, monospace; }

.author-card { display: grid; grid-template-columns: 52px 1fr; gap: 18px; margin-top: 22px; padding: 26px; border: 1px solid #dbe4ea; border-radius: 18px; background: #f8fafc; }
.author-card .author-mark { width: 52px; height: 52px; color: #146d9d; border-color: #b9dae9; background: #e8f5fb; }
.author-card small { color: #728591; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.author-card h3 { margin: 2px 0 6px; }
.author-card p { max-width: 650px; margin-bottom: 8px; color: #617482; }
.author-card a { color: #1475a8; font-weight: 800; }

.docs-cta { padding: 92px 0; background: var(--paper); }
.docs-cta .cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; padding: 52px; border-radius: 27px; color: var(--white); background: #091d30; box-shadow: 0 32px 80px rgba(7, 19, 34, 0.16); }
.docs-cta h2 { margin-bottom: 15px; font-weight: 790; letter-spacing: -0.055em; line-height: 1; }
.docs-cta p { max-width: 680px; margin: 0; color: #94a9b7; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; min-width: 250px; }
.cta-actions .button { white-space: nowrap; }

.mobile-cta { display: none; }

@media (max-width: 1050px) {
  .docs-hero-grid { gap: 45px; }
  .intro-grid { gap: 45px; }
  .plan-comparison { grid-template-columns: 1fr; }
  .comparison-copy { max-width: 760px; }
  .docs-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 48px; }
  .layer-sequence { grid-template-columns: repeat(3, 1fr); }
  .layer-sequence li { border-bottom: 1px solid #e1e8ed; }
  .layer-sequence li:nth-child(3) { border-right: 0; }
  .layer-sequence li:nth-child(3)::after { display: none; }
  .layer-sequence li:nth-last-child(-n + 2) { border-bottom: 0; }
  .docs-cta .cta-panel { grid-template-columns: 1fr; }
  .cta-actions { max-width: 330px; }
}

@media (max-width: 820px) {
  .docs-hero { padding: 108px 0 72px; }
  .breadcrumbs { margin-bottom: 42px; }
  .docs-hero-grid { grid-template-columns: 1fr; margin-bottom: 48px; }
  .hero-recommendation { max-width: 620px; }
  .guide-intro { padding: 88px 0; }
  .intro-grid { grid-template-columns: 1fr; }
  .quick-start-grid { grid-template-columns: 1fr; }
  .docs-body { padding: 90px 0; }
  .docs-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding: 20px; border: 1px solid #dbe4ea; border-radius: 15px; background: #f8fafc; }
  .toc nav { grid-template-columns: repeat(2, 1fr); border-left: 0; }
  .toc nav a { padding: 8px; }
  .toc-help { display: none; }
  .system-grid { grid-template-columns: 1fr; }
  .system-grid article,
  .system-grid article:nth-child(2n) { border-right: 0; border-bottom: 1px solid #e1e8ed; }
  .system-grid article:last-child { border-bottom: 0; }
  .rollout-card { grid-template-columns: 1fr; }
  .docs-cta .cta-panel { padding: 40px; }
}

@media (max-width: 560px) {
  .docs-hero { padding: 95px 0 58px; }
  .breadcrumbs { margin-bottom: 32px; }
.hero-recommendation { padding: 23px; }
  .settings-preview { margin-inline: -6px; padding: 5px; border-radius: 14px; }
  .preview-bar { min-height: 40px; }
  .preview-status { display: none; }
  .settings-preview img { border-radius: 9px; }
  .settings-preview figcaption { display: none; }
  .guide-intro { padding: 72px 0; }
  .layer-grid { grid-template-columns: 1fr; }
  .layer-card { min-height: auto; }
  .quick-start-grid { margin-bottom: 70px; }
  .checklist-card,
  .expect-card { padding: 25px; }
  .plan-comparison { gap: 32px; }
  .docs-body { padding: 70px 0; }
  .toc nav { grid-template-columns: 1fr; }
  .toc nav a { padding: 6px; }
  .doc-section { padding-bottom: 78px; }
  .doc-heading { grid-template-columns: 1fr; gap: 16px; }
.doc-index { width: 42px; height: 42px; }
  .setting { padding: 23px 20px; }
  .warning-box { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-steps i { text-align: center; transform: rotate(90deg); }
  .compact-settings { grid-template-columns: 1fr; }
  .compact-settings .setting,
  .compact-settings .setting:nth-child(2n),
  .compact-settings .setting:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid #e1e8ed; }
  .compact-settings .setting:last-child { border-bottom: 0; }
  .zero-day-panel { grid-template-columns: 1fr; }
  .zero-day-panel > div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
  .zero-day-panel > div:last-child { border-bottom: 0; }
  .layer-sequence { grid-template-columns: 1fr; }
  .layer-sequence li,
  .layer-sequence li:nth-child(3),
  .layer-sequence li:nth-last-child(-n + 2) { min-height: auto; border-right: 0; border-bottom: 1px solid #e1e8ed; }
  .layer-sequence li:last-child { border-bottom: 0; }
  .layer-sequence li > span { margin-bottom: 15px; }
  .layer-sequence li::after { display: none; }
  .rollout-card { padding: 25px; gap: 28px; }
  .docs-cta { padding: 68px 0; }
  .docs-cta .cta-panel { padding: 30px 24px; }
  .cta-actions { width: 100%; min-width: 0; }
  .mobile-cta { position: fixed; z-index: 90; right: 12px; bottom: 12px; left: 12px; min-height: 51px; display: grid; place-items: center; border-radius: 999px; color: #071523; background: var(--mint); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); font-weight: 850; }
}
