
/* STOCKOTAKU NOTEBOOK V1 — visual-only, scoped */
:root {
  --note-blue:#e8f4ff;
  --note-pink:#fff0f6;
  --note-green:#eaf8ed;
  --note-purple:#f3edff;
  --note-ink:#29374f;
  --note-border:#e3e8f2;
}
body:has(.dashboard),
body:has(.analysis-wrap),
body:has(.report-wrap) {
  background:#f9f8ff;
  color:var(--note-ink);
}
.dashboard .hero,
.analysis-wrap .hero,
.report-wrap .report-head {
  background:linear-gradient(115deg,#e8f4ff,#fff0f6 55%,#f3edff);
  border:1px solid #e5e5f2;
  border-radius:24px;
  padding:clamp(20px,3vw,34px);
  box-shadow:0 8px 24px rgba(60,70,110,.055);
}
.dashboard .panel,
.analysis-wrap .panel,
.report-wrap .card {
  background:#fff;
  border:1px solid var(--note-border);
  border-radius:20px;
  box-shadow:0 6px 20px rgba(60,70,110,.045);
}
.dashboard .panel,
.analysis-wrap .panel {
  padding:clamp(18px,2.5vw,28px);
}
.report-wrap .card {
  padding:clamp(18px,2.5vw,30px);
}
.dashboard .panel:nth-of-type(4n+1),
.report-wrap .card:nth-of-type(4n+1) {
  border-top:4px solid #a7d9ff;
}
.dashboard .panel:nth-of-type(4n+2),
.report-wrap .card:nth-of-type(4n+2) {
  border-top:4px solid #f7b8d2;
}
.dashboard .panel:nth-of-type(4n+3),
.report-wrap .card:nth-of-type(4n+3) {
  border-top:4px solid #a9e2b7;
}
.dashboard .panel:nth-of-type(4n),
.report-wrap .card:nth-of-type(4n) {
  border-top:4px solid #cbb9f5;
}
.dashboard .heading h2,
.analysis-wrap .heading h2,
.report-wrap .section-title {
  color:#263653;
  letter-spacing:-.025em;
}
.report-wrap .label,
.report-wrap .eyebrow {
  color:#586da0;
}
.report-wrap .metric,
.report-wrap .detail-box,
.report-wrap .quick-insight-item {
  border-radius:16px;
}
.report-wrap .metric:nth-child(4n+1),
.report-wrap .quick-insight-item:nth-child(4n+1) {
  background:#eef7ff;
}
.report-wrap .metric:nth-child(4n+2),
.report-wrap .quick-insight-item:nth-child(4n+2) {
  background:#fff1f6;
}
.report-wrap .metric:nth-child(4n+3),
.report-wrap .quick-insight-item:nth-child(4n+3) {
  background:#eff9f0;
}
.report-wrap .metric:nth-child(4n),
.report-wrap .quick-insight-item:nth-child(4n) {
  background:#f5f0ff;
}
.dashboard a:focus-visible,
.analysis-wrap a:focus-visible,
.report-wrap a:focus-visible,
.dashboard button:focus-visible,
.analysis-wrap button:focus-visible,
.report-wrap button:focus-visible {
  outline:3px solid #7d6ad5;
  outline-offset:3px;
}
@media(max-width:640px) {
  .dashboard .hero,
  .analysis-wrap .hero,
  .report-wrap .report-head {
    border-radius:18px;
    padding:18px;
  }
  .dashboard .panel,
  .analysis-wrap .panel,
  .report-wrap .card {
    border-radius:16px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .dashboard *,
  .analysis-wrap *,
  .report-wrap * {
    scroll-behavior:auto!important;
  }
}


/* STOCKOTAKU NOTEBOOK V2 */
.stockotaku-note-map {
 margin:20px 0 26px;
 padding:clamp(18px,3vw,28px);
 border:1px solid #e8e3f3;
 border-radius:24px;
 background:linear-gradient(120deg,#f0eaff,#f1f8ff 55%,#fff0f6);
 box-shadow:0 8px 24px rgba(70,60,110,.055);
}
.stockotaku-note-intro span {
 font-size:.78rem;
 font-weight:800;
 color:#7451a8;
 letter-spacing:.05em;
}
.stockotaku-note-intro h2 {
 margin:8px 0;
 color:#293950;
 font-size:clamp(1.3rem,2.5vw,1.8rem);
}
.stockotaku-note-intro p {
 margin:0 0 20px;
 color:#586780;
 line-height:1.65;
}
.stockotaku-note-steps {
 display:grid;
 grid-template-columns:repeat(5,minmax(0,1fr));
 gap:10px;
}
.stockotaku-note-step {
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 gap:7px;
 min-width:0;
 padding:15px 12px;
 background:#fff;
 border:1px solid #e5e8f1;
 border-radius:16px;
 color:#293950;
 text-decoration:none;
 transition:transform .15s,box-shadow .15s;
}
.stockotaku-note-step:nth-child(2){background:#eff9f0}
.stockotaku-note-step:nth-child(3){background:#edf6ff}
.stockotaku-note-step:nth-child(4){background:#fff3e8}
.stockotaku-note-step:nth-child(5){background:#f6efff}
.stockotaku-note-step:hover {
 transform:translateY(-2px);
 box-shadow:0 6px 14px rgba(60,70,110,.10);
}
.stockotaku-note-emoji{font-size:1.4rem}
.stockotaku-note-step strong{font-size:.93rem}
.stockotaku-note-step small {
 color:#596780;
 font-size:.76rem;
 line-height:1.5;
}
.stockotaku-note-step:focus-visible {
 outline:3px solid #7859c8;
 outline-offset:3px;
}
@media(max-width:900px){
 .stockotaku-note-steps {
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:480px){
 .stockotaku-note-map{padding:16px;border-radius:18px}
 .stockotaku-note-steps{gap:8px}
 .stockotaku-note-step{padding:12px 10px}
 .stockotaku-note-step:last-child{grid-column:1/-1}
}


/* STOCKOTAKU NOTEBOOK V4 */
.stockotaku-v4-summary{
 margin:16px 0 24px;
 padding:clamp(18px,3vw,26px);
 border:1px solid #e5e3f1;
 border-radius:22px;
 background:#fbfaff;
}
.stockotaku-v4-heading>span{
 color:#805cb0;
 font-size:.78rem;
 font-weight:800;
 letter-spacing:.05em;
}
.stockotaku-v4-heading h3{
 margin:8px 0;
 color:#293950;
 font-size:clamp(1.15rem,2.4vw,1.5rem);
}
.stockotaku-v4-heading p{
 color:#596a80;
 line-height:1.7;
 margin:0 0 18px;
}
.stockotaku-v4-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:12px;
}
.stockotaku-v4-card{
 border:1px solid #e5e8f1;
 border-radius:16px;
 padding:18px;
 min-width:0;
}
.stockotaku-v4-card>span{
 display:block;
 font-weight:800;
 margin-bottom:10px;
 color:#293950;
}
.stockotaku-v4-card p{
 margin:0;
 color:#42536b;
 line-height:1.8;
 overflow-wrap:anywhere;
}
.stockotaku-v4-risk{background:#fff2e9}
.stockotaku-v4-next{background:#eaf3ff}
.stockotaku-v4-footnote{
 margin:14px 0 0;
 color:#64738a;
 font-size:.82rem;
 line-height:1.65;
}
@media(max-width:650px){
 .stockotaku-v4-grid{grid-template-columns:1fr}
 .stockotaku-v4-card{padding:15px}
}


/* STOCKOTAKU SIMPLE REPORT V1 */
.report-wrap .stockotaku-v4-summary {
    display: none;
}
.report-wrap .stockotaku-top-decision .stockotaku-decision-intro {
    display: none;
}
@media (max-width: 650px) {
    .report-wrap .stockotaku-decision-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .report-wrap .stockotaku-decision-grid article {
        min-width: 0;
        padding: 14px;
    }
}


/* STOCKOTAKU COMPACT DETAILS V1 */
.report-wrap .stockotaku-compact-analysis {
    margin: 14px 0;
    border: 1px solid #e3e6f0;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}
.report-wrap .stockotaku-compact-analysis > summary {
    cursor: pointer;
    padding: 17px 20px;
    font-weight: 800;
    color: #30405b;
    list-style-position: inside;
}
.report-wrap .stockotaku-compact-analysis > summary span {
    float: right;
    color: #8065af;
    font-size: .8rem;
}
.report-wrap .stockotaku-compact-analysis[open] > summary {
    border-bottom: 1px solid #e3e6f0;
}
.report-wrap .stockotaku-compact-analysis > section {
    margin: 12px;
}
@media(max-width:650px) {
    .report-wrap .stockotaku-compact-analysis > summary {
        padding: 15px;
    }
    .report-wrap .stockotaku-compact-analysis > section {
        margin: 8px;
    }
}


/* STOCKOTAKU ALL STOCKS PASTEL THEME V1 */
.report-wrap{
  --cute-ink:#26345a;
  --cute-pink:#ffedf6;
  --cute-mint:#eafbf1;
  --cute-blue:#eaf4ff;
  --cute-lilac:#f2edff;
  --cute-peach:#fff1e7;
  --cute-border:#e8e4f2;
  color:var(--cute-ink);
}
.report-wrap .card{
  border-radius:20px;
  border-color:var(--cute-border);
  box-shadow:0 5px 18px rgba(58,58,115,.045);
}
.report-wrap .stockotaku-top-decision{
  border:2px solid #ffc5e4;
  background:linear-gradient(145deg,#fffafd,#fff);
  border-radius:24px;
}
.report-wrap .stockotaku-top-decision h2::before{
  content:"💡 ";
}
.report-wrap .stockotaku-decision-grid article{
  border-radius:17px;
  box-shadow:none;
}
.report-wrap .stockotaku-decision-grid article:nth-child(1){
  background:var(--cute-mint);
  border:1px solid #bcebd0;
}
.report-wrap .stockotaku-decision-grid article:nth-child(2){
  background:var(--cute-peach);
  border:1px solid #ffd9bf;
}
.report-wrap .stockotaku-decision-grid article:nth-child(3){
  background:var(--cute-blue);
  border:1px solid #c4e0ff;
}
.report-wrap .stockotaku-decision-grid article:nth-child(1)>span::before{
  content:"🌱 ";
}
.report-wrap .stockotaku-decision-grid article:nth-child(2)>span::before{
  content:"⚠️ ";
}
.report-wrap .stockotaku-decision-grid article:nth-child(3)>span::before{
  content:"🎯 ";
}
.report-wrap .stockotaku-compact-analysis{
  border-radius:17px;
  border:1px solid #ddd7f4;
  background:#fff;
  box-shadow:0 3px 12px rgba(60,70,110,.035);
}
.report-wrap .stockotaku-compact-analysis[data-section="report-axes"]{
  background:var(--cute-lilac);
}
.report-wrap .stockotaku-compact-analysis[data-section="report-research-scenarios"]{
  background:var(--cute-blue);
}
.report-wrap .stockotaku-compact-analysis[data-section="report-fundamentals"]{
  background:var(--cute-mint);
}
.report-wrap .stockotaku-compact-analysis>summary{
  color:#26345a;
  font-weight:800;
  border-radius:17px;
}
.report-wrap .stockotaku-compact-analysis[data-section="report-axes"]>summary::before{
  content:"🧩  ";
}
.report-wrap .stockotaku-compact-analysis[data-section="report-research-scenarios"]>summary::before{
  content:"🌏  ";
}
.report-wrap .stockotaku-compact-analysis[data-section="report-fundamentals"]>summary::before{
  content:"📊  ";
}
.report-wrap .stockotaku-compact-analysis>summary:focus-visible{
  outline:3px solid #7865d8;
  outline-offset:2px;
}
.report-wrap .stockotaku-compact-analysis[open]{
  background:#fff;
}
@media(max-width:650px){
  .report-wrap .stockotaku-top-decision{
    padding:15px;
    border-radius:19px;
  }
  .report-wrap .stockotaku-decision-grid{
    grid-template-columns:minmax(0,1fr);
    gap:10px;
  }
  .report-wrap .stockotaku-decision-grid article{
    min-width:0;
    padding:14px;
  }
  .report-wrap .stockotaku-compact-analysis>summary{
    padding:14px;
    font-size:.92rem;
  }
}


/* STOCKOTAKU CUTE HEADER V1 */

/* Shared header for every stock */
.report-wrap .report-head{
  position:relative;
  border-radius:26px;
  overflow:hidden;
  background:
    radial-gradient(circle at 85% 12%,rgba(255,255,255,.16),transparent 30%),
    linear-gradient(125deg,#5b309f,#294d9a 65%,#2466b0);
  box-shadow:0 10px 28px rgba(62,64,140,.14);
}

.report-wrap .report-head::after{
  content:"✦";
  position:absolute;
  right:20px;
  bottom:12px;
  font-size:27px;
  color:#ffe8a1;
  opacity:.7;
  pointer-events:none;
}

.report-wrap .report-head h1{
  letter-spacing:-.035em;
  line-height:1.22;
  overflow-wrap:anywhere;
}

.report-wrap .hero-grid{
  gap:12px;
}

.report-wrap .hero-grid>.card{
  position:relative;
  border:1px solid #e5e7f5;
  border-radius:19px;
  padding:18px;
  background:#fff;
  box-shadow:0 5px 18px rgba(58,65,120,.045);
}

.report-wrap .hero-grid>.card:nth-child(1){
  border-top:3px solid #9be6ba;
  background:linear-gradient(180deg,#f0fff6,#fff 60%);
}

.report-wrap .hero-grid>.card:nth-child(2){
  border-top:3px solid #c6b6ff;
  background:linear-gradient(180deg,#f5f0ff,#fff 60%);
}

.report-wrap .hero-grid>.card:nth-child(3){
  border-top:3px solid #ffd6a2;
  background:linear-gradient(180deg,#fff7e9,#fff 60%);
}

.report-wrap .hero-grid>.card:nth-child(1)>.label::before{
  content:"📊 ";
}
.report-wrap .hero-grid>.card:nth-child(2)>.label::before{
  content:"🔎 ";
}
.report-wrap .hero-grid>.card:nth-child(3)>.label::before{
  content:"✨ ";
}

.report-wrap .hero-grid>.card>strong{
  color:#273968;
  letter-spacing:-.035em;
}

.report-wrap .stockotaku-top-decision{
  box-shadow:0 7px 22px rgba(185,108,159,.06);
}

.report-wrap .stockotaku-compact-analysis{
  transition:border-color .18s ease,box-shadow .18s ease;
}

.report-wrap .stockotaku-compact-analysis[open]{
  border-color:#b9abf2;
  box-shadow:0 7px 20px rgba(91,72,154,.07);
}

@media(max-width:650px){
  .report-wrap .report-head{
    border-radius:20px;
    padding:18px;
  }
  .report-wrap .report-head::after{
    right:12px;
    bottom:9px;
    font-size:19px;
  }
  .report-wrap .hero-grid{
    grid-template-columns:minmax(0,1fr);
    gap:9px;
  }
  .report-wrap .hero-grid>.card{
    min-width:0;
    padding:13px 15px;
    border-radius:15px;
  }
  .report-wrap .hero-grid>.card>strong{
    overflow-wrap:anywhere;
  }
}
@media(prefers-reduced-motion:reduce){
  .report-wrap .stockotaku-compact-analysis{
    transition:none;
  }
}


/* STOCKOTAKU MASCOT V1 */

/* Decorative mascot for all stock reports */
.report-wrap .report-head::before{
  content:"";
  position:absolute;
  right:28px;
  top:22px;
  width:70px;
  height:70px;
  border-radius:48% 48% 46% 46%;
  background:
    radial-gradient(circle at 35% 44%,#35415d 0 3px,transparent 4px),
    radial-gradient(circle at 65% 44%,#35415d 0 3px,transparent 4px),
    radial-gradient(ellipse at 50% 59%,#f2a866 0 4px,transparent 5px),
    radial-gradient(circle at 24% 58%,#ffb8bf 0 6px,transparent 7px),
    radial-gradient(circle at 76% 58%,#ffb8bf 0 6px,transparent 7px),
    linear-gradient(145deg,#fff2c8,#ffdb9c);
  border:3px solid rgba(255,255,255,.8);
  box-shadow:0 6px 15px rgba(25,25,85,.13);
  pointer-events:none;
  z-index:1;
}

.report-wrap .report-head h1{
  position:relative;
  z-index:2;
}

.report-wrap .report-head .eyebrow{
  position:relative;
  z-index:2;
}

@media(min-width:651px){
  .report-wrap .report-head{
    padding-right:110px;
  }
}

@media(max-width:650px){
  .report-wrap .report-head::before{
    width:43px;
    height:43px;
    right:11px;
    top:10px;
    border-width:2px;
    background:
      radial-gradient(circle at 35% 44%,#35415d 0 2px,transparent 3px),
      radial-gradient(circle at 65% 44%,#35415d 0 2px,transparent 3px),
      radial-gradient(ellipse at 50% 59%,#f2a866 0 3px,transparent 4px),
      linear-gradient(145deg,#fff2c8,#ffdb9c);
  }
  .report-wrap .report-head{
    padding-right:62px;
  }
}


/* STOCKOTAKU FINAL LAYOUT V1 */

/* Repeated supporting outlook remains available through its parent details. */
.report-wrap .stockotaku-duplicate-outlook{
  border-radius:18px;
}

/* Compact mobile investment report */
@media(max-width:650px){
  .report-wrap{
    min-width:0;
    overflow-wrap:anywhere;
  }

  .report-wrap .report-head{
    min-width:0;
    padding:18px 62px 18px 16px;
  }

  .report-wrap .report-head h1{
    max-width:100%;
    font-size:clamp(1.25rem,5.4vw,1.8rem);
    line-height:1.25;
    overflow-wrap:anywhere;
  }

  .report-wrap .report-head::before{
    width:40px;
    height:40px;
    right:10px;
    top:10px;
  }

  .report-wrap .hero-grid{
    grid-template-columns:minmax(0,1fr);
  }

  .report-wrap .hero-grid>.card{
    min-width:0;
  }

  .report-wrap .stockotaku-top-decision{
    padding:14px;
  }

  .report-wrap .stockotaku-decision-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr);
  }

  .report-wrap .stockotaku-decision-grid article{
    min-width:0;
    overflow-wrap:anywhere;
  }

  .report-wrap details>summary{
    overflow-wrap:anywhere;
  }

  .report-wrap .card,
  .report-wrap article,
  .report-wrap section{
    min-width:0;
  }
}
