/* Inner pages: the Mood Dial composition, using the catalogue's colors and content. */
.inner-page{
  --hero-accent:#EC4899;
  --hero-light:#db2777;
  --hero-deep:#9d174d;
  --hero-soft:rgba(236,72,153,.15);
  --hero-glow:rgba(236,72,153,.38);
  --hero-position:16.666%;
}
.inner-page[data-hero-view="1"]{
  --hero-accent:#A78BFA;
  --hero-light:#9333ea;
  --hero-deep:#5b21b6;
  --hero-soft:rgba(139,92,246,.17);
  --hero-glow:rgba(139,92,246,.4);
  --hero-position:50%;
}
.inner-page[data-hero-view="2"]{
  --hero-accent:#22D3EE;
  --hero-light:#0e7490;
  --hero-deep:#164e63;
  --hero-soft:rgba(34,211,238,.13);
  --hero-glow:rgba(34,211,238,.3);
  --hero-position:83.333%;
}

@media (max-width:640px){
  .inner-page{
    -webkit-text-size-adjust:100%;
  }
  .inner-page > .page{
    background:radial-gradient(100% 600px at 100% 0,var(--hero-soft),transparent 70%),var(--bg);
  }
  .inner-page .fog{display:none}

  /* Reserve room for the shared header and bottom navigation, including the raised Top 5 button. */
  .inner-page .hero.hero-mood{
    position:relative;display:block;min-height:0;height:clamp(240px,calc(100svh - var(--hh) - env(safe-area-inset-bottom,0px) - 312px),352px);
    margin:8px 16px 0;padding:0;border-radius:32px;overflow:visible;clip-path:none;
    background:#17131e;
    box-shadow:0 28px 50px -26px var(--hero-glow),0 0 0 4px rgba(248,250,252,.09),0 0 0 6px var(--hero-soft);
    transition:box-shadow .3s;
  }
  .inner-page .hero-mood .hero-bg{position:absolute;inset:0;display:block;overflow:hidden;border-radius:inherit;background:var(--bg);clip-path:none;-webkit-mask-image:none;mask-image:none}
  .inner-page .hero-mood .hero-bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 14%;animation:none;transform:none;filter:none}
  .inner-page .hero-mood .hero-bg::after{inset:0;background:linear-gradient(180deg,rgba(9,9,11,.12) 0%,rgba(9,9,11,.02) 28%,rgba(9,9,11,.28) 48%,rgba(9,9,11,.94) 100%)}
  .inner-page .hero-tags{position:absolute;inset:14px 14px auto;z-index:2;display:flex;justify-content:space-between;gap:8px;pointer-events:none}
  .inner-page .hero-tag{height:32px;min-width:0;max-width:58%;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(17,17,22,.75);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff;font-size:11.5px;font-weight:600;white-space:nowrap}
  .inner-page .hero-tag svg{width:15px;height:15px;flex:none;color:var(--hero-accent)}
  .inner-page .hero-tag-count{max-width:45%;background:rgba(248,250,252,.92);color:#15131d;border-color:transparent}
  .inner-page .hero-tag-count svg{color:#6d28d9}
  .inner-page .hero-mood .hero-inner{position:absolute;inset:auto 16px 16px;z-index:2;width:auto;max-width:none;margin:0;padding:0;animation:none}
  .inner-page .hero-bubble{width:fit-content;max-width:90%;margin:0 0 12px;padding:12px 14px;border-radius:22px 22px 22px 6px;background:rgba(248,250,252,.95);box-shadow:0 10px 26px rgba(0,0,0,.24);color:#17131e;font-size:16px;font-weight:500;line-height:1.3;text-wrap:pretty}
  .inner-page .hero-mood .kw-title{margin:0;max-width:none;font-size:clamp(30px,8.7vw,36px);font-weight:700;line-height:1.02;letter-spacing:-1px;color:#fff;text-wrap:balance}
  .inner-page .hero-mood .kw-title em{color:var(--hero-accent);transition:color .25s}
  .inner-page .hero-context{margin:7px 0 0;font-size:12px;font-weight:400;line-height:1.4;color:rgba(248,250,252,.8)}

  /* The three lenses navigate the article; the gauge shows the selected position. */
  .inner-page .hero-dial{padding:16px 16px 0}
  .inner-page .hero-dial-head{height:22px;margin-bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:8px}
  .inner-page .hero-dial-label{margin:0;font-size:17px;font-weight:600;line-height:22px;letter-spacing:-.3px}
  .inner-page .hero-gauge{display:inline-flex;align-items:center;gap:8px;font-family:var(--mono);font-size:10px;color:var(--muted)}
  .inner-page .hero-gauge-track{position:relative;width:64px;height:6px;border-radius:6px;background:linear-gradient(90deg,#EC4899,#8B5CF6 50%,#22D3EE)}
  .inner-page .hero-gauge-knob{position:absolute;top:50%;left:var(--hero-position);width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:#f8fafc;box-shadow:0 0 0 2px var(--hero-accent),0 2px 6px rgba(0,0,0,.3);transition:left .3s var(--ease),box-shadow .3s}
  .inner-page .hero-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .inner-page .hero-choice{min-width:0;height:56px;padding:0 7px;border:1px solid rgba(255,255,255,.1);border-radius:999px;display:flex;align-items:center;justify-content:center;gap:6px;background:#17161d;color:var(--text);font-family:var(--font);font-size:13px;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;transition:background .25s,box-shadow .25s,transform .25s}
  .inner-page .hero-choice-icon{width:29px;height:29px;flex:none;display:grid;place-items:center;border-radius:50%;background:rgba(236,72,153,.14);color:#f472b6}
  .inner-page .hero-choice:nth-child(2) .hero-choice-icon{background:rgba(139,92,246,.18);color:#c4b5fd}
  .inner-page .hero-choice:nth-child(3) .hero-choice-icon{background:rgba(34,211,238,.12);color:#67e8f9}
  .inner-page .hero-choice-icon svg{width:17px;height:17px}
  .inner-page .hero-choice[aria-pressed="true"]{border-color:transparent;background:linear-gradient(135deg,var(--hero-light),var(--hero-deep));box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 10px 22px -8px var(--hero-glow);transform:translateY(-2px);color:#fff}
  .inner-page .hero-choice[aria-pressed="true"] .hero-choice-icon{background:rgba(255,255,255,.16);color:#fff}

  /* Exactly one primary action, in the first screen's thumb zone. */
  .inner-page .hero-action{padding:16px 16px 0}
  .inner-page .hero-primary{height:58px;padding:0 7px 0 22px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:999px;background:linear-gradient(120deg,var(--hero-light),var(--hero-deep));box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 16px 30px -12px var(--hero-glow);color:#fff;font-size:17px;font-weight:700;letter-spacing:-.3px;line-height:1.2;transition:background .25s,box-shadow .25s}
  .inner-page .hero-primary:hover{color:#fff}
  .inner-page .hero-primary-arrow{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:50%;background:#f8fafc;color:var(--hero-deep);transition:color .25s}
  .inner-page .hero-primary-arrow svg{width:22px;height:22px}
  .inner-page .hero-micro{height:18px;margin:10px 0 0;text-align:center;font-size:12px;line-height:18px;color:var(--muted)}

  /* Real tools and published criteria replace the reference's characters and social counts. */
  .inner-page .hero-related{padding-top:28px}
  .inner-page .hero-more-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;margin-bottom:12px}
  .inner-page .hero-more-head h2{min-width:0;margin:0;font-size:20px;font-weight:600;line-height:1.2;letter-spacing:-.5px}
  .inner-page .hero-more-head span{flex:none;font-size:12px;color:var(--muted)}
  .inner-page .hero-tool-rail{display:flex;gap:14px;padding:4px 16px 8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .inner-page .hero-tool-rail::-webkit-scrollbar{display:none}
  .inner-page .hero-tool-avatar{width:76px;flex:none;display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--text)}
  .inner-page .hero-tool-portrait{position:relative;width:76px;height:76px;display:block}
  .inner-page .hero-tool-photo{display:block;width:76px;height:76px;border-radius:50%;border:3px solid #191620;box-shadow:0 0 0 2px var(--hero-accent);object-fit:cover;object-position:50% 15%;transition:box-shadow .3s}
  .inner-page .hero-tool-logo{position:absolute;right:-1px;bottom:0;width:24px;height:24px;border:2px solid var(--bg);border-radius:8px;background:#17161d}
  .inner-page .hero-tool-avatar b{margin-top:9px;font-size:12px;font-weight:600;line-height:1.25}
  .inner-page .hero-tool-avatar small{margin-top:3px;font-size:10px;line-height:1.3;color:var(--muted)}
  .inner-page .hero-trust{margin:20px 16px 0;padding:13px 15px;display:flex;align-items:center;gap:12px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:#15131c;color:var(--text)}
  .inner-page .hero-trust-stack{display:flex;flex:none;padding-right:4px}
  .inner-page .hero-trust-stack img{width:30px;height:30px;border:2px solid #15131c;border-radius:10px;background:#15131c}
  .inner-page .hero-trust-stack img + img{margin-left:-9px}
  .inner-page .hero-trust-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
  .inner-page .hero-trust-copy b{font-size:14px;font-weight:600}
  .inner-page .hero-trust-copy small{font-size:11.5px;color:var(--muted)}
  .inner-page .hero-trust-arrow{margin-left:auto;color:var(--hero-accent)}
  .inner-page .hero-editorial-meta{padding:24px 16px 0}
  .inner-page .hero-editorial-meta .crumbs{font-size:10px;line-height:1.5;flex-wrap:wrap}
  .inner-page .hero-editorial-meta .kw-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:12px;font-size:11px;line-height:1.5;color:var(--muted)}

  /* Carry the same spacing and surfaces into the rest of each article. */
  .inner-page .kw-layout{padding:24px 16px 64px;gap:24px}
  .inner-page .kw-main{order:0}
  .inner-page .kw-side,.inner-page .kw-side-first{order:1}
  .inner-page .kw-main [id]{scroll-margin-top:calc(var(--hh) + 16px)}
  .inner-page .kw-sec,.inner-page .kw-sec-lg{margin-top:36px}
  .inner-page .kw-main > .kw-sec:first-child{margin-top:0}
  .inner-page .kw-h2,.inner-page .guide-layout .kw-h2{font-size:27px;line-height:1.12;letter-spacing:-.7px}
  .inner-page .kw-sec p{font-size:16px;line-height:1.75}
  .inner-page .qa{padding:20px;border-radius:22px}
  .inner-page .qa p{font-size:17px;line-height:1.55}
  .inner-page .qa p:last-child{margin-bottom:0}
  .inner-page .kw-ranked{margin-top:36px}
  .inner-page .tool{margin-top:12px;padding:20px;gap:18px;border:1px solid rgba(255,255,255,.08);border-radius:24px;background:#131218}
  .inner-page .tool-rank{font-size:28px}
  .inner-page .tool-head{gap:10px}
  .inner-page .tool-name{font-size:24px}
  .inner-page .tool-text{font-size:15px;line-height:1.7}
  .inner-page .tool-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .inner-page .tool-facts dd{font-size:13px;overflow-wrap:anywhere}
  .inner-page .badge{font-size:9px}
  .inner-page .use-box{margin-top:36px;padding:22px 20px;border-radius:22px}
  .inner-page .findings{gap:8px;margin-top:24px;grid-template-columns:repeat(3,minmax(0,1fr))}
  .inner-page .finding{padding:14px 10px;border-radius:18px}
  .inner-page .finding-v{font-size:26px}
  .inner-page .finding-l{font-size:10.5px;line-height:1.45;overflow-wrap:anywhere}
  .inner-page .side-card{padding:20px;border-radius:22px}
  .inner-page .faq-item{border-radius:20px}
  .inner-page .kw-faq .faq-text{font-size:18px;line-height:1.35}
  .inner-page .callout{padding:16px;gap:12px;border-radius:20px}
  .inner-page .site-footer{background:#0d0c11}
}

@media (max-width:374px){
  .inner-page .hero-bubble{padding:10px 12px;margin-bottom:10px;font-size:15px}
  .inner-page .hero-choice{font-size:12px;gap:4px;padding:0 5px}
  .inner-page .hero-choice-icon{width:27px;height:27px}
  .inner-page .hero-primary{font-size:16px;padding-left:20px}
  .inner-page .hero-more-head h2{font-size:18px}
}

@media (prefers-reduced-motion:reduce){
  .inner-page *, .inner-page *::before, .inner-page *::after{transition:none!important;animation:none!important}
}
