/* Guides: topic chips, listen player, key takeaways, comparison sheet.
   Uses the shared tokens from the generated pages' critical CSS. */

.topic-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:0;list-style:none}
.topic-chips a{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 14px;border:1px solid var(--line-strong);border-radius:99px;background:var(--paper);color:var(--ink);font-size:13px;font-weight:700;text-decoration:none;transition:border-color .15s,background .15s,color .15s}
.topic-chips a:hover{border-color:var(--brand);color:var(--brand-ink);text-decoration:none}
.topic-chips a[aria-current]{background:var(--contrast);border-color:var(--contrast);color:var(--on-contrast)}
.topic-chips a span{font-size:11px;font-weight:800;opacity:.65}
.topic-chips a:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.topic-chips--page{margin:4px 0 16px}
.topic-chips--page a{min-height:30px;padding:4px 12px;font-size:12px}

/* Listen player */
.listen-slot{margin:0 0 22px}
.listen{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px 14px;padding:12px 14px;border:1px solid var(--line);border-radius:18px;background:var(--paper);box-shadow:0 8px 24px rgba(18,20,24,.06)}
.listen[hidden]{display:none}
.listen-play{position:relative;display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border:0;border-radius:50%;background:var(--brand);color:var(--on-brand,#fff);cursor:pointer;box-shadow:0 8px 20px color-mix(in srgb,var(--brand) 35%,transparent);transition:transform .15s}
.listen-play:hover{transform:scale(1.05)}
.listen-play:focus-visible,.listen-ctl:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.listen-play svg{width:22px;height:22px}
.listen-play .i-pause,.listen.is-playing .listen-play .i-play{display:none}
.listen.is-playing .listen-play .i-pause{display:block}
.listen-meta{display:grid;gap:6px;min-width:0}
.listen-top{display:flex;align-items:center;gap:10px;min-width:0}
.listen-top b{font-size:15px;font-weight:800;color:var(--ink);white-space:nowrap}
.listen-top small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.listen-track{position:relative;height:5px;border-radius:99px;background:var(--surface-inset);overflow:hidden}
.listen-track span{position:absolute;inset-block:0;inset-inline-start:0;width:0;border-radius:inherit;background:var(--brand);transition:width .4s}
.listen-ctls{display:flex;align-items:center;gap:4px}
.listen-ctl{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 8px;border:1px solid var(--line);border-radius:99px;background:transparent;color:var(--ink);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.listen-ctl:hover{border-color:var(--brand);color:var(--brand-ink)}
.listen-ctl svg{width:16px;height:16px}
[dir=rtl] .listen-ctl svg{transform:scaleX(-1)}
.listen-wave{display:none;align-items:flex-end;gap:2px;height:14px}
.listen-wave i{display:block;width:3px;height:100%;border-radius:2px;background:var(--brand);animation:listen-wave 1s ease-in-out infinite;transform-origin:bottom}
.listen-wave i:nth-child(2){animation-delay:-.2s}.listen-wave i:nth-child(3){animation-delay:-.4s}.listen-wave i:nth-child(4){animation-delay:-.6s}
.listen.is-playing .listen-wave{display:inline-flex}
@keyframes listen-wave{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
.listen.is-floating{position:fixed;z-index:60;inset-inline:16px;top:76px;max-width:560px;margin-inline:auto;box-shadow:0 18px 40px rgba(0,0,0,.22)}
.is-reading{background:var(--brand-soft);border-radius:6px;box-shadow:0 0 0 6px var(--brand-soft);transition:background .2s}
@media(max-width:520px){.listen{grid-template-columns:auto 1fr;padding:10px 12px}.listen-ctls{grid-column:1/-1;justify-content:space-between}.listen-play{width:46px;height:46px}.listen.is-floating{inset-inline:10px;top:66px}}
@media(prefers-reduced-motion:reduce){.listen-wave i{animation:none}.listen-play,.listen-track span{transition:none}}

/* Key takeaways */
.guide-tldr{margin:0 0 26px;padding:18px 20px 16px;border:1px solid color-mix(in srgb,var(--brand) 28%,var(--line));border-radius:16px;background:linear-gradient(135deg,var(--brand-soft),var(--paper) 70%)}
.guide-tldr h2{margin:0 0 10px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--brand-ink)}
.guide-tldr ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.guide-tldr li{position:relative;padding-inline-start:26px;font-size:15px;line-height:1.6;font-weight:600;color:var(--ink)}
.guide-tldr li::before{content:"";position:absolute;inset-inline-start:2px;top:.45em;width:14px;height:14px;border-radius:50%;background:var(--brand);-webkit-mask:radial-gradient(circle,#000 35%,transparent 38%);mask:radial-gradient(circle,#000 35%,transparent 38%);box-shadow:0 0 0 3px var(--brand-soft)}

/* Comparison sheet */
.sheet-tools{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 10px}
.sheet-tools button{min-height:36px;padding:6px 14px;border:1px solid var(--line-strong);border-radius:99px;background:var(--paper);color:var(--ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.sheet-tools button:hover{border-color:var(--brand);color:var(--brand-ink)}
table.sheet{min-width:880px;border-collapse:separate;border-spacing:0;font-size:13px}
table.sheet th,table.sheet td{padding:10px 12px;vertical-align:top;border-bottom:1px solid var(--line);text-align:start;line-height:1.5}
table.sheet thead th{position:sticky;top:0;background:var(--surface-inset);font-size:13px;font-weight:800}
table.sheet tbody th{position:sticky;inset-inline-start:0;z-index:1;min-width:150px;background:var(--paper);font-weight:800}
table.sheet .is-us{background:var(--brand-soft)}
table.sheet thead .is-us{background:var(--brand);color:var(--on-brand,#fff)}
table.sheet .na{color:var(--muted)}
.sheet-legend{font-size:12px;color:var(--muted)}

/* Designed covers carry their own headline and shading */
.dest-visual--designed::after,.dest-visual--designed .dest-caption{display:none}
.dest-scene:has(.dest-visual--designed){height:auto;aspect-ratio:1.24}
.dest-visual--designed{border-radius:34px 18px 18px 18px}

/* Keep reading */
.guide-more{margin-top:34px}

@media print{
  .site-header,.site-footer,.listen-slot,.sheet-tools,.topic-chips,.lead-form,.dest-scene,nav[aria-label],.hub-cards,.guide-more{display:none!important}
  table.sheet{min-width:0;font-size:10px}
  table.sheet th,table.sheet td{padding:5px 6px}
  table.sheet thead th,table.sheet tbody th{position:static}
}
