/* Cards and reading tools */
.eyebrow { color: var(--accent-dark); font: 700 12px/1.4 var(--font-mono); letter-spacing: .08em; }
.badge, .tag, .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--cream-edge);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--cream-ink);
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
}
.badge-dot { position: relative; display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--warn); }
.badge-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--warn); opacity: 0; animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0% { transform: scale(.5); opacity: .35; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.tag { background: var(--mist); color: var(--text); border-color: var(--border); }
.status-badge.featured { background: var(--cream); color: var(--cream-ink); }
.status-badge.recommended { background: var(--mist); color: var(--text); border-color: var(--border); }
.status-badge.archived { background: var(--bg-panel-2); color: var(--text); border-color: var(--border); }
.callout { margin-block: 24px; padding: 20px 24px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--bg-panel); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.prose { min-width: 0; max-width: 780px; line-height: 1.85; }
.prose h2 { margin-top: 2.3em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: var(--text); }
.prose a { color: var(--accent-dark); }
.prose pre, .command-box { padding: 19px 22px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-panel-2); color: var(--text); font: 13px/1.7 var(--font-mono); }
.prose img { max-width: 100%; }
.toc-tabs { position: sticky; top: var(--nav-h); z-index: 20; display: flex; gap: 8px; max-width: 100%; padding: 12px 0; overflow-x: auto; overscroll-behavior-inline: contain; background: var(--bg); color: var(--text); }
.toc-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; flex-shrink: 0; padding-inline: 16px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text); text-decoration: none; font-size: 14px; }
.toc-tabs a:hover { border-color: var(--accent); color: var(--accent-dark); }
[id] { scroll-margin-top: 100px; }

/* Settings-browser tabs. Native panels remain accessible without JavaScript. */
.tab-layout { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.6fr); gap: 24px; align-items: stretch; }
.tab-list { min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.tab-list[role="tablist"] { display: flex; flex-direction: column; }
.tab-list [role="tab"] { position: relative; display: flex; align-items: center; width: 100%; min-height: 52px; gap: 12px; padding: 10px 16px; border: 0; border-radius: var(--radius-md); background: var(--bg); color: var(--text); text-align: left; font-size: 15px; }
.tab-list [role="tab"]:hover { background: var(--bg-panel); color: var(--text); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--bg-panel); color: var(--text); font-weight: 700; }
.tab-list [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px; border-radius: var(--radius-pill); background: var(--accent); }
.tab-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--mist); color: var(--text); }
.tab-icon svg { width: 17px; height: 17px; }
.tab-arrow { margin-left: auto; color: var(--text-muted); font-size: 21px; }
.tab-panel { min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { margin-top: 0; }
.tab-panel pre { max-width: 100%; overflow-x: auto; }
.faq-item { margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); color: var(--text); }
.faq-item summary { padding: 20px 24px; font-weight: 700; cursor: pointer; }
.faq-item summary::marker { color: var(--accent); }
.faq-answer { padding: 0 24px 20px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { min-width: 0; padding: 25px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.term-card h3 { margin: 0 0 10px; }
.term-card p { margin: 0; color: var(--text-muted); }
.download-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.download-card h3 { margin: 0 0 8px; }
.download-card p { margin: 0 0 12px; color: var(--text-muted); }
.download-card [data-ver]:empty { display: none; }
.post-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); text-decoration: none; }
.post-card h3 { margin: 15px 0 10px; }
.post-card p { color: var(--text-muted); }
.post-card time { color: var(--text-muted); font: 12px/1.5 var(--font-mono); }
.post-card .post-more { margin-top: auto; color: var(--accent-dark); font-weight: 650; }
.end-download { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 52px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--bg-panel); color: var(--text); }
.end-download h2 { margin: 0 0 6px; font-size: 23px; }
.end-download p { margin: 0; color: var(--text-muted); }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg); color: var(--text); }
.data-table th, .data-table td { min-width: 7em; padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; }
.data-table th { background: var(--bg-panel); color: var(--text); font-weight: 700; }
.data-table code { overflow-wrap: anywhere; }
.prose table, .article-body table { display: block; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table th, .prose table td, .article-body table th, .article-body table td { min-width: 7em; overflow-wrap: normal; word-break: normal; }

.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px 0 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); font-size: 14px; font-weight: 650; text-decoration: none; transition: transform .18s ease; }
.dl-fab:hover { transform: translateY(-1px); }
.dl-fab-ico { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: var(--bg); }
.dl-fab-ico svg { width: 15px; height: 15px; }

/* Approved first-screen composition */
.hero { position: relative; min-height: calc(100svh - var(--nav-h) - var(--peek)); display: grid; align-content: center; padding: 20px 32px; overflow: hidden; overflow-x: clip; background: var(--bg); color: var(--text); }
.hero-core { position: relative; width: 100%; min-width: 0; max-width: 1320px; margin: 0 auto; }
.orbit { position: absolute; z-index: 0; left: 50%; top: -5px; width: 1240px; height: 400px; max-width: none; transform: translateX(-50%); pointer-events: none; }
.orbit ellipse { fill: none; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 7; stroke-linecap: round; }
.orbit circle { fill: var(--bg); stroke: var(--border-strong); stroke-width: 1; }
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title { margin: 18px 0 0; font: 900 clamp(30px, 1.6vw + 23px, 48px)/1.14 var(--font-display); letter-spacing: -.02em; color: var(--text); isolation: isolate; }
.hero-title .kw { position: relative; white-space: nowrap; }
.hero-title .kw::after { content: ""; position: absolute; z-index: -1; left: .02em; right: .04em; bottom: .04em; height: 6px; border-radius: var(--radius-pill); background: var(--accent); }
.hero-desc { margin: 16px 0 0; max-width: 620px; font-size: 17px; line-height: 1.65; color: var(--text-muted); }
.hero-desc strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.platforms { display: flex; align-items: center; gap: 4px; margin: 18px 0 0; padding: 0; list-style: none; }
.platforms::before, .platforms::after { content: ""; width: 28px; height: 1px; margin: 0 8px; background: var(--border); }
.platforms a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 26px; padding: 0 9px; border-radius: var(--radius-pill); color: var(--text-muted); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.platforms a:hover { background: var(--bg-panel); color: var(--accent-dark); }
.platforms svg { width: 15px; height: 15px; flex-shrink: 0; }
.stage { position: relative; z-index: 1; width: 880px; max-width: 100%; height: 400px; margin: 26px auto 0; }
.plate { position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-plate); background: var(--bg-panel-2); }
.ipad { position: absolute; left: 12%; top: 44px; width: 820px; height: 560px; border: 1px solid var(--border-strong); border-radius: 42px; background: var(--bg-panel); }
.ipad::before { content: ""; position: absolute; inset: 15px; border: 1px solid var(--border); border-radius: 28px; background: var(--bg); }
.phone { position: absolute; left: 50%; top: 20px; width: 340px; height: 720px; padding: 3px; transform: translateX(-50%); border-radius: 57px; background: linear-gradient(140deg, var(--metal-hi) 0%, var(--metal-lo) 28%, var(--metal-hi) 52%, var(--metal-lo) 78%, var(--metal-hi) 100%); box-shadow: var(--shadow-phone); }
.bezel { height: 100%; padding: 9px; border-radius: 54px; background: var(--bezel); color: var(--bg); }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: 45px; background: var(--bg-panel-2); color: var(--text); }
.island { position: absolute; top: 11px; left: 50%; width: 98px; height: 28px; transform: translateX(-50%); border-radius: var(--radius-pill); background: var(--bezel); }
.status { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 2px 24px 0 32px; font-size: 13.5px; font-weight: 700; }
.status-icons { display: inline-flex; align-items: center; gap: 5px; }
.status-icons svg { width: 16px; height: 13px; }
.app { padding: 0 14px; }
.app-title { margin: 2px 6px 10px; font: 800 27px/1.2 var(--font-display); letter-spacing: -.025em; }
.group { overflow: hidden; border-radius: 12px; background: var(--bg); color: var(--text); }
.group + .group { margin-top: 14px; }
.row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; font-size: 13.5px; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 46px; right: 0; height: 1px; background: var(--bg-panel-2); }
.row-tall { min-height: 50px; }
.r-ico { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; color: var(--text); }
.r-ico svg { width: 14px; height: 14px; }
.t-lilac { background: var(--lilac); color: var(--text); }
.t-mist { background: var(--mist); color: var(--text); }
.t-peach { background: var(--peach); color: var(--text); }
.t-cream { background: var(--cream); color: var(--text); }
.r-label { flex: 1; min-width: 0; font-weight: 500; line-height: 1.3; }
.r-sub { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; font-weight: 400; }
.r-val { color: var(--text-muted); font-size: 13px; }
.r-chev { margin-left: 2px; color: var(--text-faint); font-size: 18px; }
.sw { position: relative; width: 40px; height: 24px; flex-shrink: 0; border-radius: var(--radius-pill); background: var(--border); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); box-shadow: var(--shadow-knob); }
.sw.on { background: var(--accent); }
.sw.on::after { transform: translateX(16px); }
.widgets { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.widget { position: absolute; width: 236px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transform: rotate(var(--tilt, 0deg)); color: var(--text); }
.w-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 11px; }
.w-ico { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.w-ico svg { width: 15px; height: 15px; }
.w-title { font: 750 14px/1.3 var(--font-display); }
.w-panel { padding: 10px 12px; border-radius: var(--radius-md); background: var(--bg); color: var(--text); }
.w-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.w-line + .w-line { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--bg-panel-2); }
.w-line svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-muted); }
.w-line .grow { flex: 1; font-weight: 550; }
.w-state { font-weight: 600; }
.w-yaml { margin: 0; font: 11.5px/1.7 var(--font-mono); white-space: pre; color: var(--text-muted); }
.w-yaml b { color: var(--text); font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-panel); color: var(--text); font-size: 12.5px; text-align: center; }
.seg span { padding: 6px 0; border-radius: 8px; color: var(--text-muted); }
.seg .sel { background: var(--bg); color: var(--text); font-weight: 650; box-shadow: var(--shadow-soft); }
.w-vpn { --tilt: -4deg; top: 40px; left: 76px; width: 212px; background: var(--lilac); }
.w-mode { --tilt: 3deg; top: 298px; left: 30px; background: var(--mist); }
.w-conf { --tilt: 4deg; top: 58px; right: 58px; background: var(--peach); }
.w-dns { --tilt: -3deg; top: 320px; right: 40px; background: var(--cream); }
.tile { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); opacity: .62; transform: rotate(var(--tilt, 0deg)); color: var(--text-muted); }
.tile svg { width: 21px; height: 21px; }
.tile-shield { --tilt: 5deg; top: 256px; left: 290px; background: var(--lilac); }
.tile-doc { --tilt: -4deg; top: 0; right: 300px; background: var(--mist); }

/* Static design-preview specimens */
.preview-block { padding-top: 80px; padding-bottom: 88px; }
.preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.preview-block h2 { margin-top: 0; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.swatch { min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); color: var(--text); font: 12px/1.5 var(--font-mono); overflow-wrap: anywhere; }
.swatch-chip { display: block; height: 56px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.sw-bg { background: var(--bg); } .sw-panel { background: var(--bg-panel); } .sw-panel2 { background: var(--bg-panel-2); }
.sw-border { background: var(--border); } .sw-accent { background: var(--accent); } .sw-dark { background: var(--accent-dark); }
.sw-text { background: var(--text); } .sw-muted { background: var(--text-muted); }
.sw-peach { background: var(--peach); } .sw-mist { background: var(--mist); } .sw-lilac { background: var(--lilac); } .sw-cream { background: var(--cream); }
.sw-success { background: var(--success); } .sw-warn { background: var(--warn); } .sw-error { background: var(--error); }

@media (max-width: 1340px) {
  .tile { display: none; }
  .w-vpn { left: 20px; width: 196px; } .w-mode { left: 0; width: 220px; }
  .w-conf { right: 10px; width: 220px; } .w-dns { right: 0; width: 226px; }
}
@media (max-width: 1200px) { .widgets, .orbit { display: none; } }
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 36px 20px 20px; }
  .ipad { display: none; }
  .tab-layout { grid-template-columns: minmax(0, 1fr); }
  .tab-list[role="tablist"] { flex-direction: row; flex-wrap: wrap; }
  .tab-list [role="tab"] { width: auto; flex: 1 1 150px; }
}
@media (max-width: 760px) {
  .hero-title { font-size: 30px; }
  .hero-desc { font-size: 15.5px; }
  .platforms { flex-wrap: wrap; justify-content: center; }
  .platforms::before, .platforms::after { display: none; }
  .stage { height: 380px; }
  .phone { width: 300px; border-radius: 50px; }
  .bezel { border-radius: 47px; } .screen { border-radius: 39px; }
  .preview-grid { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-fab { right: 16px; bottom: 16px; }
}
@media (max-width: 640px) {
  .hero { padding-inline: var(--gutter); }
  .hero-title { font-size: clamp(24px, 7vw, 30px); }
  .widget { transform: none; }
  .download-card { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .badge-dot::after { animation: none; }
  .dl-fab { transition: none; }
  .dl-fab:hover { transform: none; }
}