
:root{
  --wine:#660000;--wine-dark:#660000;--gold:#e4a90d;--cream:#fff5cf;--cream-soft:#fff9e9;
  --paper:#fffdf8;--ink:#5d1b12;--muted:#8e6c5f;--line:#dda94b;--green:#3e7657;
  --red:#a04438;--amber:#a87317;--violet:#83587f;
}
*{box-sizing:border-box}
body{margin:0;background:var(--cream);color:var(--ink);font-family:Arial,Helvetica,sans-serif}
button{font:inherit}
.journal-banner{height:82px;background:#660000;border-bottom:4px solid var(--gold);position:relative}
.banner-brand{
  position:absolute;
  left:24px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
}
.brain-logo{
  color:#f1dc75;
  font:800 31px/1 Georgia,"Times New Roman",serif;
  letter-spacing:.02em;
}
.brain-sub{
  color:#f5e9a6;
  font-size:9px;
  line-height:1.25;
  max-width:260px;
  letter-spacing:.035em;
}
.issn{
  position:absolute;
  right:34px;
  top:50%;
  transform:translateY(-50%);
  color:#f1dc75;
  font:700 20px/1 Georgia,serif;
  letter-spacing:2.5px
}
.page{display:grid;grid-template-columns:300px 1fr;gap:18px;padding:28px 78px 42px;min-height:calc(100vh - 68px)}
.sidebar{background:#660000;border-radius:20px 20px 0 0;padding:22px 20px;color:#fff7db;position:relative}
.sim-title{padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.18)}
.sim-title span,.side-label{display:block;color:#ffd428;font-size:10px;letter-spacing:.17em;font-weight:800}
.sim-title h2{margin:6px 0 3px;color:#fff;font-size:24px}.sim-title p{margin:0;font-size:12px;color:#f5d8cb}
.side-section{margin-top:18px}
.goal-card{margin-top:8px;background:#fff6dc;color:#660000;border-radius:11px;padding:11px;font-size:10px;line-height:1.45}
.goal-card b{display:block;margin-top:4px}
.status-list{display:grid;gap:7px;margin-top:8px}
.status-list>div{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.09);border-radius:9px;padding:8px 9px}
.status-list span{font-size:9px;color:#f4d8cb}.status-list b{font-size:9px;padding:4px 7px;border-radius:999px}
.good{background:#dfeee4!important;color:#2f6447!important}.mid{background:#fff1b9!important;color:#74500d!important}.bad{background:#f8d9d3!important;color:#8c2d24!important}
.phase-list{display:grid;gap:7px;margin-top:8px}
.phase{display:flex;align-items:center;gap:8px;padding:8px 9px;border-radius:9px;background:rgba(255,255,255,.07);color:#f4d8cb;font-size:10px}
.phase i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.12);color:#ffd428;font-size:9px;font-style:normal;font-weight:800}
.phase.active{background:#ffd740;color:#6e160d;font-weight:700}.phase.active i{background:#7d0904;color:#fff6dc}.phase.done{background:rgba(255,255,255,.16);color:#fff}
.side-footer{position:absolute;left:20px;right:20px;bottom:20px;border-top:1px solid rgba(255,255,255,.18);padding-top:14px}
.side-footer b{color:#ffd428;font-size:10px}.side-footer p{font-size:11px;line-height:1.45;color:#f5d8cb;margin:6px 0 0}
.content{min-width:0}
.study-card{background:var(--cream-soft);border:1px solid var(--line);border-left:5px solid var(--wine);border-radius:18px;padding:24px 28px;margin-bottom:16px}
.study-tag{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:7px 13px;font-size:10px;font-weight:800;letter-spacing:.12em}
.study-card h1{margin:12px 0 8px;font-size:30px;color:#660000}.study-card p{margin:0;font-size:14px;line-height:1.5;color:#582419}
.sim-grid{display:grid;grid-template-columns:1.06fr .94fr;gap:14px}
.chat-card,.map-card,.compare-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:18px}
.card-title{color:#660000;font-size:10px;font-weight:800;letter-spacing:.15em}
.chat-window{margin-top:12px;background:#fff8df;border:1px solid #ead7a8;border-radius:13px;padding:14px;height:390px;overflow:auto}
.message{display:flex;margin:0 0 12px}.message.mother,.message.father{justify-content:flex-start}.message.therapist{justify-content:flex-end}
.message .bubble{max-width:82%;padding:11px 12px;border-radius:13px;font-size:11px;line-height:1.48}
.message .bubble small{display:block;font-size:8px;letter-spacing:.11em;font-weight:800;margin-bottom:5px}
.message.mother .bubble{background:#f4e0d6;border:1px solid #e1b9a7}.message.father .bubble{background:#f6e5c7;border:1px solid #e4c98b}
.message.therapist .bubble{background:#660000;color:#fff7dc}.message.system .bubble{background:#fff1b9;border:1px dashed #d6aa44;color:#77510e;max-width:100%}
.decision-area{margin-top:16px}.decision-kicker{font-size:9px;color:#660000;font-weight:800;letter-spacing:.13em}
.decision-area h2{margin:6px 0 12px;color:#660000;font-size:21px}.choices{display:grid;gap:8px}
.choice{border:1px solid var(--line);background:#fff7dc;color:#660000;border-radius:10px;padding:10px 11px;text-align:left;font-size:10px;line-height:1.4;cursor:pointer}
.choice:hover{background:#fff0b8}.choice:disabled{cursor:default;opacity:.65}.choice.selected{background:#ffd740;border-color:#ffd740;font-weight:700}
.map-wrap{height:390px;margin-top:12px;position:relative;background:radial-gradient(circle at 50% 50%,#fff9e8 0,#fff6da 58%,#f4e1ac 100%);border:1px solid #ead7a8;border-radius:13px;overflow:hidden}
.map-lines{position:absolute;inset:0;width:100%;height:100%}.map-lines line{stroke:#b88f52;stroke-width:3;transition:.5s;opacity:.78}
.map-lines line.good{stroke:#548166;stroke-width:5}.map-lines line.risk{stroke:#a94e42;stroke-width:5}.map-lines line.hidden-link{stroke:#83587f;stroke-width:5;stroke-dasharray:7 6}.map-lines line.weak{stroke:#c6ad82;stroke-width:2;stroke-dasharray:4 5;opacity:.55}
.node{position:absolute;width:90px;height:90px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:10px;font-weight:800;letter-spacing:.05em;background:#fffdf8;border:2px solid #cfa351;color:#660000;transition:.5s;z-index:2}
.node small{display:block;margin-top:3px;font-size:8px;font-weight:400;color:#8c7063}
.therapist-node{left:50%;top:49%;transform:translate(-50%,-50%);background:#660000;color:#fff7dc;border-color:#660000}
.father-node{left:7%;top:7%}.mother-node{right:7%;top:7%}.child-node{left:50%;bottom:3%;transform:translateX(-50%);background:#ffd740;border-color:#d4a30d}
.school-node{right:3%;bottom:4%;width:78px;height:78px}.node.dim{opacity:.35}.node.visible{opacity:1}.node.hot{box-shadow:0 0 0 8px rgba(169,78,66,.15)}.node.safe{box-shadow:0 0 0 8px rgba(84,129,102,.13)}
.heat-label{position:absolute;border-radius:999px;padding:5px 7px;font-size:8px;font-weight:800;background:#f8d9d3;color:#8c2d24;z-index:3}
.family-heat{left:50%;top:5%;transform:translateX(-50%)}.frame-heat{left:50%;top:69%;transform:translateX(-50%)}.father-heat{left:9%;top:31%}
.map-legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:8px;color:#7d5d50}.map-legend i{display:inline-block;width:22px;height:3px;vertical-align:middle;margin-right:5px}
.line-good{background:#548166}.line-risk{background:#a94e42}.line-hidden{background:repeating-linear-gradient(90deg,#83587f 0 5px,transparent 5px 8px)}
.impact-box{margin-top:12px;background:#fff6dc;border:1px solid #ead7a8;border-radius:11px;padding:11px}.impact-box span{font-size:8px;color:#660000;font-weight:800;letter-spacing:.12em}.impact-box p{margin:5px 0 0;font-size:10px;line-height:1.45;color:#674137}
.compare-card{margin-top:14px}.story-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.story-grid>div{background:#fff8df;border:1px solid #ead7a8;border-radius:12px;padding:13px}.story-grid h3{margin:0 0 7px;font-size:14px;color:#660000}.story-grid p{margin:0;font-size:11px;line-height:1.5}
.filter-prompt{margin-top:14px}.filter-prompt span{font-size:9px;color:#660000;font-weight:800;letter-spacing:.12em}.filter-prompt h3{margin:6px 0 10px;font-size:16px}.filter-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.filter-options button{border:1px solid var(--line);background:#fff7dc;color:#660000;border-radius:10px;padding:10px;font-size:10px;cursor:pointer}
.filter-options button:hover{background:#fff0b8}
.outcome-card{margin-top:14px;background:#fff8df;border:1px solid var(--line);border-radius:15px;padding:20px}.outcome-card>span{font-size:9px;color:#660000;font-weight:800;letter-spacing:.13em}
.outcome-card h2{margin:7px 0;color:#660000}.outcome-card p{font-size:12px;line-height:1.55}.outcome-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}
.outcome-grid div{background:#fffdf7;border:1px solid #ead7a8;border-radius:10px;padding:10px}.outcome-grid span{display:block;font-size:8px;color:#8e6c5f}.outcome-grid b{display:block;margin-top:4px;font-size:13px;color:#660000}
.outcome-card button{margin-top:14px;border:1px solid var(--line);background:#fffdf7;color:#660000;border-radius:10px;padding:9px 12px;font-size:10px;font-weight:700;cursor:pointer}
.hidden{display:none}footer{background:#660000;color:#f1dc75;padding:10px 20px;text-align:center;font-size:9px}
@media(max-width:1100px){.page{grid-template-columns:260px 1fr;padding:22px}.sim-grid{grid-template-columns:1fr}.filter-options{grid-template-columns:1fr}}
@media(max-width:760px){.page{display:block;padding:16px}.sidebar{margin-bottom:16px}.side-footer{position:static;margin-top:20px}.issn{font-size:20px}.story-grid{grid-template-columns:1fr}.outcome-grid{grid-template-columns:1fr 1fr}}

@media(max-width:900px){
  .brain-sub{display:none}
  .brain-logo{font-size:28px}
  .issn{font-size:18px;letter-spacing:2px}
}
@media(max-width:600px){
  .banner-brand{left:16px}
  .brain-logo{font-size:25px}
  .issn{right:16px;font-size:15px;letter-spacing:1.5px}
}

/* custom uploaded logo */
.journal-banner{
  min-height:74px;
}
.banner-brand{
  position:absolute;
  left:28px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
}
.banner-logo-img{
  display:block;
  width:390px;
  max-width:46vw;
  height:auto;
}
.issn{
  right:34px;
  top:50%;
  transform:translateY(-50%);
}
@media(max-width:1100px){
  .banner-logo-img{
    width:250px;
    max-width:42vw;
  }
}
@media(max-width:760px){
  .banner-brand{left:16px}
  .banner-logo-img{
    width:190px;
    max-width:48vw;
  }
}

@media(max-width:1100px){
  .banner-logo-img{
    width:330px;
    max-width:50vw;
  }
  .issn{
    font-size:18px;
    letter-spacing:2px;
  }
}
@media(max-width:760px){
  .journal-banner{
    height:74px;
  }
  .banner-brand{
    left:14px;
  }
  .banner-logo-img{
    width:240px;
    max-width:58vw;
  }
  .issn{
    right:14px;
    font-size:14px;
    letter-spacing:1.2px;
  }
}

.extras{margin:22px 0;text-align:left}.extras h3{margin:18px 0 8px;color:#7a1f3d}.extras ol{padding-left:20px;font-size:14px;line-height:1.5}.extras li{margin-bottom:10px}.extras .legend{font-size:12px;margin-top:4px}.extras textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #d9c3c9;border-radius:8px;font:inherit}.extra-btns{display:flex;gap:10px;margin-top:10px}.extra-btns button{background:#7a1f3d;color:#fff;border:0;border-radius:8px;padding:9px 16px;cursor:pointer;font:inherit}#extraMsg{font-size:13px;margin-top:6px;color:#555}

.journal-banner{height:auto!important;min-height:0!important;padding:14px 24px!important}.banner-brand{position:static!important;transform:none!important}.banner-logo-img{width:640px!important;max-width:100%!important}.issn{display:none!important}
