/* Kivios parent-mode components (reviews section). Loaded alongside kivios.css.
   Calm, trustworthy register; AA contrast. Tokens come from kivios.css :root. */

.parent-main { padding: var(--sp-5) 0 var(--sp-8); }
.parent-main .container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-3); }
.parent-main .narrow { max-width: 760px; }

/* Image slot. div.img-ph = unsourced placeholder (dashed gray box, used in hub/author chrome).
   img.img-ph = a real article image; the shared .img-ph class lets per-container aspect-ratio
   rules size it, while these overrides make it render as a clean cropped photo. */
.img-ph { display:flex; align-items:center; justify-content:center; text-align:center;
  background: repeating-linear-gradient(45deg, var(--slate-50), var(--slate-50) 12px, var(--slate-100) 12px, var(--slate-100) 24px);
  color: var(--slate-600); border: 1px dashed var(--slate-400); border-radius: var(--r-md);
  font-family: var(--font-body); font-size: var(--fs-label); padding: var(--sp-3); }
.img-ph small { color: var(--slate-400); }
img.img-ph { display:block; width:100%; height:auto; object-fit:cover;
  background:none; border:none; padding:0; }

/* Inline author photo: sits beside the bio prose at ~40% on desktop, floated so
   text wraps; collapses to full width on small screens. */
img.author-inline { float:right; width:40%; margin:.3rem 0 var(--sp-3) var(--sp-4);
  border-radius: var(--r-md); }
@media (max-width: 640px) { img.author-inline { float:none; width:100%; margin: var(--sp-4) 0; } }

/* Hero: the lead image directly under the H1. Wide cinematic crop, rounded, with breathing
   room before the table of contents / intro. One per article. */
.hero-img { aspect-ratio: 16/9; border-radius: var(--r-md); margin: 0 0 var(--sp-5); }

/* Breadcrumb */
.breadcrumb { font-size: var(--fs-label); color: var(--slate-600); margin-bottom: var(--sp-3); }
.breadcrumb a { color: var(--indigo-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--slate-600); }

/* Page heads */
.page-head h1 { font-family: var(--font-display); font-size: var(--fs-display); line-height:1.15;
  color: var(--ink); margin: 0 0 var(--sp-3); }
.page-head .lede { font-size: var(--fs-xl); color: var(--slate-600); line-height:1.5; margin:0 0 var(--sp-4); }

/* Affiliate / CTA button */
.aff-button { display:inline-flex; align-items:center; gap: var(--sp-2); font-family: var(--font-display);
  font-weight:600; font-size: var(--fs-body); padding:.6rem 1.2rem; border:none; border-radius: var(--r-full);
  background: var(--indigo-600); color: var(--white); text-decoration:none; cursor:pointer; }
.aff-button:hover { background: var(--indigo-dark); }
.aff-button.ghost { background: var(--white); color: var(--indigo-dark); box-shadow: inset 0 0 0 1.5px var(--pill-indigo-bg); }

/* Disclosure block */
.disclosure { display:flex; gap: var(--sp-2); align-items:flex-start; background: var(--pill-indigo-bg);
  border-radius: var(--r-md); padding: var(--sp-3); margin: var(--sp-4) 0; }
.disclosure svg { flex:0 0 auto; color: var(--indigo-dark); margin-top:2px; }
.disclosure p { margin:0; font-size: var(--fs-label); color: var(--ink); line-height:1.5; }
.disclosure a { color: var(--indigo-dark); }

/* Byline */
.byline { display:flex; gap: var(--sp-3); align-items:center; padding: var(--sp-3) 0;
  border-top:1px solid var(--slate-200); border-bottom:1px solid var(--slate-200); margin: var(--sp-5) 0; }
.byline-photo { width:64px; height:64px; border-radius: var(--r-full); flex:0 0 auto; font-size:.6rem; object-fit:cover; }
.byline-meta { display:flex; flex-direction:column; gap:2px; }
.byline-by { font-size: var(--fs-label); color: var(--slate-600); }
.byline-name { font-family: var(--font-display); font-weight:600; color: var(--ink); }
.byline-name a { color: var(--indigo-dark); text-decoration:none; }
.byline-kids { font-size: var(--fs-label); color: var(--slate-600); }

/* Quick-pick summary */
.quickpick { margin: var(--sp-5) 0; }
.quickpick h2, .section-h2 { font-family: var(--font-display); font-size: var(--fs-h2); color: var(--ink); margin:0 0 var(--sp-4); }
.quickpick-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--sp-3); }
.qp-card { display:flex; flex-direction:column; gap: var(--sp-2); background: var(--white); border:1px solid var(--slate-200);
  border-radius: var(--r-lg); padding: var(--sp-3); box-shadow: var(--sh-sm); }
.qp-badge { align-self:flex-start; font-size: var(--fs-label); font-weight:600; color: var(--pill-indigo-fg);
  background: var(--pill-indigo-bg); border-radius: var(--r-full); padding:.15rem .6rem; }
.qp-card .img-ph { aspect-ratio: 4/3; }
.qp-name { font-family: var(--font-display); font-weight:600; color: var(--ink); }

/* Comparison table */
.compare-wrap { overflow-x:auto; margin: var(--sp-5) 0; border:1px solid var(--slate-200); border-radius: var(--r-lg); }
.compare-table { width:100%; border-collapse:collapse; min-width:680px; font-size: var(--fs-body); }
.compare-table th, .compare-table td { text-align:left; padding:.75rem var(--sp-3); border-bottom:1px solid var(--slate-200); }
.compare-table thead th { font-family: var(--font-display); background: var(--slate-50); color: var(--ink); }
.compare-table tbody tr:last-child td { border-bottom:none; }

/* Star rating (decorative + accessible label) */
.rating { color: var(--sun); letter-spacing:1px; }
.rating .visually-hidden { color: var(--ink); }

/* Mini reviews */
.review { display:grid; grid-template-columns: 280px 1fr; gap: var(--sp-4); align-items:start;
  padding: var(--sp-5) 0; border-bottom:1px solid var(--slate-200); }
.review .img-ph { aspect-ratio: 1/1; }
.review h3 { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--ink); margin:0 0 var(--sp-2); }
.proscons { display:grid; grid-template-columns:1fr 1fr; gap: var(--sp-3); margin: var(--sp-3) 0; }
.pros h4, .cons h4 { font-family: var(--font-display); font-size: var(--fs-label); text-transform:uppercase;
  letter-spacing:.04em; margin:0 0 var(--sp-1); }
.pros h4 { color: var(--pill-green-fg); } .cons h4 { color: #B91C1C; }
.proscons ul { margin:0; padding-left:1.1rem; color: var(--ink); }
.who-for { font-size: var(--fs-label); color: var(--slate-600); }
.who-for strong { color: var(--ink); }
@media (max-width: 640px) { .review { grid-template-columns:1fr; } .proscons { grid-template-columns:1fr; } }

/* FAQ accordion */
.faq { margin: var(--sp-5) 0; }
.faq details { border-bottom:1px solid var(--slate-200); padding: var(--sp-3) 0; }
.faq summary { font-family: var(--font-display); font-weight:600; color: var(--ink); cursor:pointer; list-style:none; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:'+'; float:right; color: var(--indigo-dark); }
.faq details[open] summary::after { content:'\2212'; }
.faq p { color: var(--slate-600); margin: var(--sp-2) 0 0; line-height:1.6; }

/* Related links */
.related { margin: var(--sp-5) 0; }
.related ul { list-style:none; padding:0; display:flex; flex-wrap:wrap; gap: var(--sp-2); }
.related a { color: var(--indigo-dark); text-decoration:none; background: var(--pill-indigo-bg);
  border-radius: var(--r-full); padding:.3rem .8rem; font-size: var(--fs-label); }

/* ---- Hub ---- */
.start-here { display:grid; grid-template-columns: 320px 1fr; gap: var(--sp-4); align-items:center;
  background: var(--slate-50); border-radius: var(--r-xl); padding: var(--sp-4); margin: var(--sp-5) 0; }
.start-here .img-ph { aspect-ratio: 4/3; }
.start-here h2 { font-family: var(--font-display); font-size: var(--fs-h2); color: var(--ink); margin:0 0 var(--sp-2); }
@media (max-width: 640px) { .start-here { grid-template-columns:1fr; } }
.spoke-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: var(--sp-3); margin: var(--sp-4) 0; }
.spoke-tile { display:flex; flex-direction:column; gap: var(--sp-2); background: var(--white);
  border:1px solid var(--slate-200); border-radius: var(--r-lg); overflow:hidden; box-shadow: var(--sh-sm); text-decoration:none; }
.spoke-tile:hover { box-shadow: var(--sh-md); }
.spoke-tile .img-ph { aspect-ratio:16/10; border:none; border-radius:0; }
.spoke-tile .tile-body { padding: var(--sp-3); }
.spoke-tile .tile-title { font-family: var(--font-display); font-weight:600; color: var(--ink); }
.spoke-tile .tile-teaser { font-size: var(--fs-label); color: var(--slate-600); margin-top: var(--sp-1); }
.spoke-tile.is-empty { border-style:dashed; box-shadow:none; cursor:default; }
.spoke-tile.is-empty .tile-title { color: var(--slate-600); }

/* ---- Explore-more cross-links (hub) ---- */
.explore-more { background: var(--slate-50); border-radius: var(--r-xl); padding: var(--sp-5); margin: var(--sp-6) 0; }
.explore-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: var(--sp-4); }
.explore-head { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--ink); margin:0 0 var(--sp-2); }
.explore-col ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap: var(--sp-1); }
.explore-col a { color: var(--indigo-dark); text-decoration:none; }
.explore-col a:hover { text-decoration:underline; }

/* Sample banner */
.sample-banner { background: var(--sun); color: var(--ink); text-align:center; font-family: var(--font-display);
  font-weight:600; font-size: var(--fs-label); padding: var(--sp-2); border-radius: var(--r-md); margin-bottom: var(--sp-4); }

/* ===== Long-form article ===== */
.article { max-width: 720px; margin: 0 auto; }
.article > p { font-size: var(--fs-body); line-height: 1.75; color: var(--ink); margin: 0 0 var(--sp-3); }
.article > h2 { font-family: var(--font-display); font-size: var(--fs-h2); color: var(--ink); margin: var(--sp-6) 0 var(--sp-3); scroll-margin-top: var(--sp-5); }
.article > h3 { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--ink); margin: var(--sp-5) 0 var(--sp-2); }
.article > ul, .article > ol { margin: 0 0 var(--sp-3); padding-left: 1.4rem; color: var(--ink); line-height: 1.7; }
.article > ul li, .article > ol li { margin-bottom: var(--sp-1); }
.article .section-h2 { scroll-margin-top: var(--sp-5); }

/* ---- Table of contents ---- */
.toc { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-4); margin: var(--sp-4) 0; }
.toc-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .04em; color: var(--slate-600); margin: 0 0 var(--sp-2); }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.toc li { margin-bottom: var(--sp-1); }
.toc a { color: var(--indigo-dark); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 520px) { .toc ul { columns: 1; } }

/* ---- Callouts ---- */
.callout { display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); margin: var(--sp-4) 0; border-left: 4px solid var(--slate-400); background: var(--slate-50); }
.callout svg { flex: 0 0 auto; margin-top: 2px; }
.callout p { margin: 0; color: var(--ink); line-height: 1.6; }
.callout .callout-label { font-family: var(--font-display); font-weight: 600; display: block; margin-bottom: 2px; }
.callout-tip  { background: var(--pill-teal-bg);   border-left-color: var(--teal-dark); }
.callout-tip  svg, .callout-tip  .callout-label { color: var(--teal-dark); }
.callout-warn { background: #FFF4E5;                border-left-color: #B45309; }
.callout-warn svg, .callout-warn .callout-label { color: #B45309; }
.callout-note { background: var(--pill-indigo-bg);  border-left-color: var(--indigo-dark); }
.callout-note svg, .callout-note .callout-label { color: var(--indigo-dark); }

/* ---- Pull-quote ---- */
.pullquote { border-left: 4px solid var(--indigo); margin: var(--sp-5) 0; padding: var(--sp-1) 0 var(--sp-1) var(--sp-4); font-family: var(--font-display); font-style: italic; font-size: var(--fs-xl); line-height: 1.4; color: var(--ink); }

/* ---- Key takeaways ---- */
.takeaways { background: var(--pill-indigo-bg); border-radius: var(--r-lg); padding: var(--sp-4); margin: var(--sp-4) 0; }
.takeaways-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 0 0 var(--sp-2); }
.takeaways ul { margin: 0; padding-left: 1.2rem; color: var(--ink); line-height: 1.6; }
.takeaways li { margin-bottom: var(--sp-1); }

/* ---- Verdict / bottom-line ---- */
.verdict { background: var(--ink); color: var(--white); border-radius: var(--r-xl); padding: var(--sp-5); margin: var(--sp-6) 0; }
.verdict-label { font-family: var(--font-display); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .05em; color: var(--sun); margin: 0 0 var(--sp-2); }
.verdict h2 { font-family: var(--font-display); color: var(--white); margin: 0 0 var(--sp-2); font-size: var(--fs-xl); }
.verdict p { color: var(--slate-200); line-height: 1.6; margin: 0 0 var(--sp-3); }
.verdict .aff-button { background: var(--white); color: var(--indigo-dark); }
.verdict .aff-button:hover { background: var(--slate-200); }

/* ---- Inline recommended-product CTA ---- */
.product-cta { display: grid; grid-template-columns: 120px 1fr auto; gap: var(--sp-3); align-items: center; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--r-lg); padding: var(--sp-3); margin: var(--sp-4) 0; box-shadow: var(--sh-sm); }
.product-cta .img-ph { aspect-ratio: 1/1; }
.pc-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.pc-why { font-size: var(--fs-label); color: var(--slate-600); margin-top: 2px; }
.pc-price { font-weight: 600; color: var(--ink); margin-bottom: var(--sp-1); }
@media (max-width: 560px) { .product-cta { grid-template-columns: 1fr; text-align: center; } .product-cta .aff-button { justify-self: center; } }
