/* Object index: vertical on wide screens, horizontal on narrow screens. */
.object-index { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.object-index > * { min-width: 0; }
.object-tabs[role="tablist"] { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.object-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 18px;
  border: 1px solid var(--clear);
  border-radius: var(--r-pill);
  background: var(--clear);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.object-tab:hover { background: var(--bg); color: var(--text); }
.object-tab[aria-selected="true"] { background: var(--bg); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-soft); }
.object-tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 17px; bottom: 17px; width: 3px; border-radius: var(--r-small); background: var(--accent); }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--r-tile); background: var(--tint-cream); color: var(--text); }
.icon-tile .ico { width: 18px; height: 18px; }
.icon-tile--mint { background: var(--tint-mint); color: var(--text); }
.icon-tile--blue { background: var(--tint-blue); color: var(--text); }
.icon-tile--lilac { background: var(--tint-lilac); color: var(--text); }
.object-panel { min-width: 0; padding: 40px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-selected); }
.object-panel h3 { margin-top: 0; }
.object-panel p { line-height: 1.85; color: var(--text-muted); }
.object-panel pre { margin-bottom: 0; }
.tabs-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs-row [role="tab"] { min-height: 44px; padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text); }
.tabs-row [aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* Place a sticky TOC directly inside the container covering all its chapters. */
.toc { position: sticky; top: 16px; z-index: 10; display: flex; gap: 8px; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; padding: 10px; margin-bottom: 40px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-inner); box-shadow: var(--shadow-soft); }
.toc a { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; padding: 8px 14px; border-radius: var(--r-tile); color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.toc a:hover, .toc a[aria-current="location"] { background: var(--bg-panel); color: var(--accent-dark); }
.toc--static { position: static; }
.faq-list { display: grid; gap: 12px; }
.faq-item { min-width: 0; padding: 0 24px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.faq-item summary { position: relative; padding: 22px 30px 22px 0; list-style: none; cursor: pointer; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 20px; font-size: 22px; line-height: 1.4; color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__body { padding-bottom: 24px; color: var(--text-muted); line-height: 1.85; }
.faq-item__body p:last-child { margin-bottom: 0; }
.term-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-float); }
.term-card__category { margin: 0 0 12px; font-size: 12px; color: var(--accent-dark); }
.term-card h3 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 20px; letter-spacing: 0; }
.term-card p:last-child { margin-bottom: 0; color: var(--text-muted); }
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  padding: 9px 20px;
  border: 1px solid var(--ink);
  border-radius: var(--r-btn);
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  transition: transform var(--speed) ease, background-color var(--speed) ease;
}
.store-button:hover, .store-button.is-hover { background: color-mix(in srgb, var(--ink) 88%, var(--on-ink)); color: var(--on-ink); transform: translateY(-1px); }
.store-button svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-button__text { display: grid; text-align: left; line-height: 1.25; }
.store-button__eyebrow { font-size: 11px; font-weight: 500; }
.store-button__label { font-size: 16px; font-weight: 600; }
.store-button--primary { min-height: 60px; padding-inline: 26px; }
.fact-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.fact-pill { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 30px; padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.fact-pill strong { color: var(--text); font-weight: 600; }
.fact-pill .ico { width: 14px; height: 14px; }
.shot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: center; }
.shot-layout > * { min-width: 0; }
.official-shot { width: 100%; max-width: 280px; flex-shrink: 0; margin: 0 auto; padding: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot { filter: none; }
.official-shot img { outline: 1px solid var(--border); box-shadow: var(--shadow-float); }
.official-shot figcaption { margin-top: 14px; font-size: 12px; line-height: 1.7; text-align: center; color: var(--text-muted); }
.device-card { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; 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-float); }
.device-card__icon { width: 44px; height: 52px; color: var(--accent-dark); flex-shrink: 0; }
.device-card h3 { margin: 0; }
.device-card p { color: var(--text-muted); margin: 0; }
.device-card .btn { margin-top: auto; }
.article-card { display: flex; flex-direction: column; min-width: 0; padding: 30px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-float); }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; font-size: 12px; color: var(--text-muted); }
.article-card h3 { margin: 0 0 16px; font-size: 21px; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card p { color: var(--text-muted); }
.article-card__link { margin-top: auto; font-size: 14px; font-weight: 600; }
.callout { position: relative; min-width: 0; margin: 28px 0; padding: 24px 28px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-inner); background: var(--bg-panel); color: var(--text); line-height: 1.8; }
.callout p:last-child { margin-bottom: 0; }
.callout__title { display: block; margin-bottom: 8px; font-weight: 700; }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 24px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--bg); color: var(--text); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--bg); color: var(--text); }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em;
  padding: 16px 20px;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
  border-bottom: 1px solid var(--border);
}
.data-table th, .prose table th { background: var(--bg-panel); color: var(--text); font-size: 14px; font-weight: 600; }
.data-table tr:last-child td, .prose table tr:last-child td { border-bottom: 0; }
.data-table caption, .prose table caption { padding: 14px 20px; text-align: left; color: var(--text-muted); }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; }
.prose table code, .data-table code { overflow-wrap: anywhere; white-space: normal; }
.dl-fab { position: fixed; right: max(var(--gutter), env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 25; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - var(--gutter) * 2); min-height: 52px; padding: 12px 18px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-btn); font-size: 13px; font-weight: 600; text-decoration: none; }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-ink); }
.dl-fab .ico { width: 20px; height: 20px; }
.has-article-fab { padding-bottom: 88px; }
.article-store-guide { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 64px; padding: 32px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-soft); }
.article-store-guide__copy { flex: 1 1 260px; min-width: 0; }
.article-store-guide h2 { margin: 0 0 12px; font-size: 24px; }
.article-store-guide p { margin: 0; color: var(--text-muted); }

/* Preview-only furniture, sharing the production tokens. */
.preview-block { margin-top: 48px; }
.preview-samples { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.preview-swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.preview-swatch { padding: 12px; min-width: 0; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--bg); color: var(--text); font-size: 12px; }
.preview-swatch::before { content: ""; display: block; height: 64px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--r-tile); background: var(--swatch); }
.sw-bg { --swatch: var(--bg); }
.sw-panel { --swatch: var(--bg-panel); }
.sw-panel2 { --swatch: var(--bg-panel-2); }
.sw-border { --swatch: var(--border); }
.sw-accent { --swatch: var(--accent); }
.sw-accent-dark { --swatch: var(--accent-dark); }
.sw-text { --swatch: var(--text); }
.sw-muted { --swatch: var(--text-muted); }
.sw-success { --swatch: var(--success); }
.sw-warn { --swatch: var(--warn); }
.sw-error { --swatch: var(--error); }
.sw-cream { --swatch: var(--tint-cream); }
.sw-mint { --swatch: var(--tint-mint); }
.sw-blue { --swatch: var(--tint-blue); }
.sw-lilac { --swatch: var(--tint-lilac); }
.sw-blush { --swatch: var(--tint-blush); }
.sw-underline { --swatch: var(--underline); }
.shot-placeholder { display: grid; place-items: center; aspect-ratio: 750 / 1334; border: 1px solid var(--border); border-radius: var(--r-shot); background: var(--bg-panel-2); color: var(--text-muted); font-size: 13px; box-shadow: var(--shadow-float); }
.preview-type-display { margin: 0 0 24px; font-size: 48px; font-weight: 800; line-height: 1.16; letter-spacing: -.02em; }
.preview-code { font-family: var(--font-mono); }
.preview-fab { position: static; }
.static-more { position: relative; }
.static-more > summary { cursor: pointer; }
.static-more > summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) {
  .object-index { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .object-tabs[role="tablist"] { flex-direction: row; overflow-x: auto; padding: 4px; }
  .object-tab { width: auto; flex-shrink: 0; white-space: nowrap; }
  .object-panel { padding: 28px; }
  .shot-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .preview-swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .official-shot { width: min(100%, 280px); }
  .fact-pills { justify-content: center; flex-direction: row; }
  .fact-pill { font-size: 11px; }
  .faq-item { padding-inline: 18px; }
  .object-panel { padding: 22px; }
  .device-card, .article-card, .term-card, .article-store-guide { padding: 24px; }
  .preview-type-display { font-size: 30px; }
  .dl-fab { font-size: 12px; }
}