/* Shared interactive and editorial elements */
.feature-stage { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.6fr); gap: 28px; padding: 32px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.feature-index[role="tablist"] { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feature-tab[role="tab"] { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 74px; padding: 12px 16px; border: 1px solid transparent; border-radius: var(--r-inner); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.feature-tab[role="tab"][aria-selected="true"] { border-color: transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad-edge) border-box; color: var(--text); }
.feature-tab__dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--border-strong); }
.feature-tab[aria-selected="true"] .feature-tab__dot { background: var(--error); box-shadow: 0 0 0 4px var(--error-halo); }
.feature-tab__text { display: grid; gap: 2px; min-width: 0; }
.feature-tab__text small { color: var(--text-muted); font-size: 12px; }
.feature-pane[role="tabpanel"] { min-width: 0; padding: 32px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.feature-pane[hidden], [role="tabpanel"][hidden] { display: none !important; }
.feature-pane p { margin-top: 14px; color: var(--text-muted); }
.feature-example { margin-top: 28px; }
.protocol-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.protocol-row span { padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text); font: 13px var(--font-mono); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text); font-size: 14px; }
.toc a:hover { border-color: var(--accent); color: var(--accent-dark); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { position: relative; min-height: 58px; padding: 16px 38px 16px 0; font-weight: 500; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 13px; right: 8px; color: var(--accent-dark); font-size: 22px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { padding: 0 38px 20px 0; color: var(--text-muted); }
.glossary-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.glossary-card dt { font: 500 17px var(--font-display); }
.glossary-card dd { margin-top: 9px; color: var(--text-muted); font-size: 14px; }

.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--r-btn); background: var(--grad-accent); color: var(--on-accent); box-shadow: var(--shadow-btn); font-weight: 500; line-height: 1.2; }
.store-button:hover { transform: translateY(-1px); }
.store-button svg { width: 21px; height: 21px; flex-shrink: 0; }
.store-button__lines { display: grid; gap: 2px; }
.store-button__lines small { font-size: 11px; font-weight: 400; }
.store-button__lines strong { font-size: 15px; font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fact { display: inline-flex; align-items: center; max-width: 100%; min-height: 32px; padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.fact strong { margin-right: 5px; color: var(--accent-dark); font-weight: 500; }

.official-shot { width: min(100%, 280px); flex-shrink: 0; margin-inline: auto; }
.official-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; }
.official-shot figcaption { margin-top: 10px; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.device-card { display: flex; align-items: flex-start; gap: 18px; min-width: 0; padding: 28px; border: 1px solid transparent; border-radius: var(--r-card); background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad-edge-soft) border-box; color: var(--text); box-shadow: var(--shadow-card); }
.device-card:hover { border-color: var(--accent); }
.device-card svg { width: 38px; height: 38px; flex-shrink: 0; color: var(--accent-dark); }
.device-card__body { min-width: 0; }
.device-card__body strong { font-size: 20px; font-weight: 500; }
.device-card__body span { display: block; margin-top: 6px; color: var(--text-muted); font-size: 14px; }
.device-card__body em { display: block; margin-top: 18px; color: var(--accent-dark); font-size: 14px; font-style: normal; }

.article-card { display: block; min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.article-card__tag { display: inline-block; margin-bottom: 16px; color: var(--accent-dark); font-size: 13px; font-weight: 500; }
.article-card h3 { font-size: 21px; }
.article-card p { margin-top: 12px; color: var(--text-muted); font-size: 14px; }
.article-card__more { display: inline-block; margin-top: 20px; color: var(--accent-dark); font-size: 14px; }
.callout { margin-block: 24px; padding: 20px 24px; border-left: 3px solid var(--accent); border-radius: 0 var(--r-inner) var(--r-inner) 0; background: var(--bg-panel); color: var(--text); }
.callout p { margin-top: 6px; }
.callout--dark { background: var(--bg-panel-2); color: var(--on-dark); }
.callout--dark p { color: var(--on-dark-muted); }
.end-store { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.end-store p { margin-top: 6px; color: var(--text-muted); }

.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table, .prose table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td, .prose table th, .prose table td { min-width: 7em; padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; white-space: normal; overflow-wrap: normal; word-break: normal; }
.data-table th, .prose table th { background: var(--bg-panel); color: var(--text); font-weight: 500; }
.data-table td, .prose table td { background: var(--bg); color: var(--text); }
.prose table { display: block; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table code, .data-table code { overflow-wrap: anywhere; }

.dl-fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 25; display: inline-flex; align-items: center; gap: 10px; max-width: min(320px, calc(100vw - 36px)); min-height: 52px; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text); box-shadow: var(--shadow-front); font-size: 14px; font-weight: 500; }
.dl-fab svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--accent-dark); }
@media (max-width: 760px) {
  .feature-stage { grid-template-columns: 1fr; padding: 18px; }
  .feature-index[role="tablist"] { flex-direction: row; overflow-x: auto; overscroll-behavior-inline: contain; }
  .feature-tab[role="tab"] { width: auto; min-width: max-content; min-height: 48px; border-radius: var(--r-pill); }
  .feature-tab__text small { display: none; }
  .feature-pane[role="tabpanel"] { padding: 22px; }
  .device-grid { grid-template-columns: 1fr; }
  .end-store { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .official-shot { width: min(100%, 280px); }
  .facts { flex-direction: row; flex-wrap: wrap; }
  .device-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-card { transition: none; }
  .article-card:hover, .store-button:hover { transform: none; }
}