
/* Oral Health: clean white medical design, navy and coral */
:root{--ink:#14264E;--deep:#14264E;--mint:#fff;--mint2:#fff;--coral:#E67874;--peach:#fff;--cream:#fff;--line:#DEE5EF;--muted:#53627A;--shadow:0 5px 18px rgba(20,38,78,.055)}
html,body{background:#fff!important;color:#14264E!important}
body{font-family:system-ui,-apple-system,"Noto Sans JP","Yu Gothic",sans-serif;line-height:1.8}
*{background-image:none!important}
.topbar{background:#fff!important;border-bottom:1px solid #dee5ef!important}
a{color:#183D79}a:hover{color:#C85E65}
.eyebrow{color:#B45D67!important;letter-spacing:.11em}
.flat-icon{width:24px;height:24px;display:inline-block;vertical-align:middle;flex:none;color:#14264E}
.ml-content-icon .flat-icon{width:24px;height:24px}
.oral-hero{min-height:390px!important;display:grid;grid-template-columns:1fr minmax(260px,.85fr)!important;grid-template-areas:"copy visual"!important;background:#fff!important;gap:28px;align-items:center;padding:40px max(24px,calc((100vw - 1120px)/2))!important}
.oral-hero h1{color:#14264E!important;line-height:1.18}.oral-hero h1 em{color:#E67874;font-style:normal}
.oral-visual-photo{display:flex!important;align-items:center;justify-content:center;aspect-ratio:1!important;width:min(390px,100%)!important;max-width:390px;box-shadow:none!important;background:#fff!important;margin:auto}
.oral-visual-photo img{width:100%;height:100%;object-fit:contain;border-radius:12px}
.oral-hero .primary,.primary{background:#14264E!important;color:#fff!important;border:1px solid #14264E!important;box-shadow:none!important;border-radius:12px!important}
.oral-hero .primary:hover{background:#253e75!important}
.intro,.chapters,.oral-guides,.oral-trauma,.oral-dental-visit,.oral-reading,.qa-entry{background:#fff!important}
.oral-guides,.oral-dental-visit,.oral-trauma,.oral-reading,.qa-entry{padding:24px 0!important;margin-block:24px!important;border:0!important;box-shadow:none!important}
.oral-guide-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.oral-guide-card,.chapter-card,.visit-three>div,.qa-entry,.resource-card,.card,.step,.qa-item{background:#fff!important;border:1px solid #DCE3ED!important;box-shadow:0 3px 14px rgba(20,38,78,.035)!important;border-radius:16px!important}
.oral-guide-card{padding:20px;min-height:142px;color:#14264E!important;transition:border-color .15s,transform .15s}
.oral-guide-card:hover{border-color:#E67874!important;transform:translateY(-2px)}
.guide-icon{display:inline-grid;width:42px;height:42px;place-items:center;background:#F2F5FA!important;border-radius:12px;color:#14264E}.guide-icon .flat-icon{width:27px;height:27px}
.oral-guide-card:nth-child(2) .guide-icon,.oral-guide-card:nth-child(5) .guide-icon{background:#FFF0F0!important;color:#C45E69}
.oral-trauma{padding:22px!important;border:1px solid #F0C3C5!important;border-left:4px solid #E67874!important;border-radius:15px!important}
.oral-dental-visit{padding:26px!important;border:1px solid #DCE3ED!important;border-radius:18px!important}
.oral-reading{padding:18px 26px!important;border-left:3px solid #E67874!important}
.oral-trauma>a,.visit-links a,.qa-entry-button{border:1px solid #14264E!important;color:#14264E!important;border-radius:10px!important;background:#fff!important}
.oral-trauma>a:hover,.visit-links a:hover{background:#F5F7FB!important}
.chapter-number .flat-icon{width:26px;height:26px}
.chapter-card{--chapter-color:#14264E!important;--chapter-bg:#fff!important}
.scene-link,.choice{border-color:#DEE5EF!important;background:#fff!important;color:#14264E!important}
.step.point,.point,.rights{background:#14264E!important;color:#fff!important}
.step.point h2,.step.point blockquote{color:#fff!important}.step.point .step-label{color:#FFAFB1!important}
.step.practice,.practice{background:#fff!important}.practice-text{background:#fff!important;border-left-color:#E67874!important;color:#14264E!important}
.footer{background:#14264E!important;color:#fff!important}
.qa-entry{padding:20px!important}
:focus-visible{outline:3px solid #E67874!important;outline-offset:3px}
@media(max-width:900px){.oral-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.oral-hero{grid-template-columns:1fr!important;grid-template-areas:"copy" "visual"!important;min-height:0!important;padding:30px 20px!important;gap:14px}.oral-visual-photo{max-width:280px}.oral-guide-grid{grid-template-columns:1fr}.oral-trauma{display:block}.oral-dental-visit{padding:18px!important}}
/* Secondary pages */
.hero,.section.soft,.illustration,.illustration.peach,.illustration.blue,.illustration.lavender,.advice,.tip,.speech,.note,.warn,.warning,.role,.resource-featured{background:#fff!important;background-image:none!important}
.hero{border-bottom:1px solid #DEE5EF!important}.section.soft{border-block:1px solid #EEF1F5}
.illustration{border:1px solid #DDE5EF!important}.big-icon .flat-icon{width:68px;height:68px}
.route a{border-color:#DEE5EF!important;background:#fff!important}.route a .flat-icon{width:24px;height:24px}
.cards .emoji .flat-icon,.resource-icon .flat-icon{width:34px;height:34px}
.labelchip,.qa-tag{background:#F3F6FA!important;color:#14264E!important}
.tip,.qa-memory{border-left-color:#E67874!important;background:#F8FAFD!important}
.cta{background:#14264E!important;color:#fff!important}.cta h2,.cta p{color:#fff!important}.cta a{background:#fff!important;color:#14264E!important}
.filter.active{background:#14264E!important;color:#fff!important;border-color:#14264E!important}
.qa-answer{background:#fff!important}.qa-first{color:#14264E!important}
.searchbox{background:#fff!important;border-color:#DEE5EF!important}
.stepnum{color:#C35F67!important}.lead{color:#14264E}
.warn,.warning{border-left:4px solid #E67874!important;background:#FFF9F9!important}

/* 2026-10 readability + redesigned story discovery */
:root{--ink:#30415E;--deep:#30415E;--muted:#5B6B80;--line:#E1E7EF}
html,body{color:#30415E!important}
/* Prevent accidental one-character-per-line wrapping on inherited layouts */
.oral-hero{width:100%!important;box-sizing:border-box;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr)!important;gap:clamp(20px,4vw,54px)!important}
.oral-hero .hero-copy{min-width:0!important;width:auto!important;max-width:none!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;word-break:normal!important;overflow-wrap:normal!important}
.oral-hero h1,.oral-hero h1 *{writing-mode:horizontal-tb!important;text-orientation:mixed!important;word-break:keep-all!important;overflow-wrap:normal!important}
.oral-hero h1{font-size:clamp(2rem,3.9vw,3.55rem)!important;letter-spacing:-.035em;margin-block:0 .4em!important}
.oral-hero .hero-title-line{display:block!important;white-space:nowrap!important;width:max-content;max-width:100%}
.oral-hero .hero-title-accent{color:#C66F77!important}
.oral-hero .lead{font-size:clamp(1rem,1.45vw,1.18rem)!important}
@media(max-width:880px){.oral-hero{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"copy" "visual"!important}.oral-visual-photo{max-width:280px!important}.oral-hero h1{font-size:clamp(1.75rem,6.1vw,3.2rem)!important}}
/* Light pastel accents with reduced navy surface area */
.oral-guide-card:nth-child(5n+1){background:#F1F6FB!important}
.oral-guide-card:nth-child(5n+2){background:#FFF3F0!important}
.oral-guide-card:nth-child(5n+3){background:#F2F8F6!important}
.oral-guide-card:nth-child(5n+4){background:#F6F5FA!important}
.oral-guide-card:nth-child(5n+5){background:#FFF8F0!important}
.oral-dental-visit{background:#F4F8FC!important}
.oral-dental-visit .visit-three>div:nth-child(2){background:#FDF4F1!important}
.oral-dental-visit .visit-three>div:nth-child(3){background:#F5F7FB!important}
.oral-reading{background:#F7F9FC!important}
.oral-trauma{background:#FFF4F0!important}
.qa-entry{background:#F6F8FB!important}
.step.point,.point,.rights{background:#435B7C!important}
.footer{background:#354B6A!important}
/* Story browsing is questions-first rather than six dense chapter lists */
.scene-discovery{padding-top:30px;padding-bottom:25px}
.featured-scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}
.featured-scene{border:1px solid #E0E7F0;border-radius:18px;background:#fff;min-width:0;display:flex;gap:13px;align-items:flex-start;padding:20px;text-align:left;color:#30415E;cursor:pointer;font:inherit;min-height:160px;box-shadow:0 2px 8px rgba(29,50,85,.035)}
.featured-scene:nth-child(6n+1),.featured-scene:nth-child(6n+4){background:#F1F6FB}
.featured-scene:nth-child(6n+2),.featured-scene:nth-child(6n+5){background:#FFF4F1}
.featured-scene:nth-child(6n+3),.featured-scene:nth-child(6n+6){background:#F1F8F6}
.featured-scene:hover{border-color:#C66F77;transform:translateY(-1px)}
.featured-symbol{flex:none;width:46px;height:46px;border:1px solid #DCE6EF;background:#fff;border-radius:13px;display:grid;place-items:center;color:#405D7A}
.featured-symbol .flat-icon{width:26px;height:26px}
.featured-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.featured-copy small{color:#63738A;font-size:.79rem;font-weight:700}
.featured-copy strong{font-size:1.08rem;line-height:1.55}
.featured-copy>span{margin-top:4px;font-size:.83rem;color:#A95160;font-weight:750}
.all-scenes{border:1px solid #DFE7F0;border-radius:15px;background:#fff;margin-top:14px}
.all-scenes summary{cursor:pointer;padding:18px 22px;font-weight:750;color:#30415E;display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none}
.all-scenes summary::-webkit-details-marker{display:none}
.all-scenes[open] summary{border-bottom:1px solid #E4EAF1;background:#F8FAFC}
.all-scenes[open] summary span{transform:rotate(45deg)}
.all-scenes .chapter-grid{padding:18px;gap:16px}
.all-scenes .chapter-card{background:#fff!important}
@media(max-width:960px){.featured-scenes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:610px){.featured-scenes{grid-template-columns:1fr}.featured-scene{min-height:0;padding:15px}.oral-hero .hero-title-line{white-space:normal!important}.all-scenes .chapter-grid{padding:10px}}

/* 2026-10-15 spacing refinement: preserve the existing clinic visual language */
/* Tight hero: do not reserve a tall square on desktop */
#hubView .oral-hero{
  min-height:0!important;
  padding-top:24px!important;
  padding-bottom:24px!important;
  column-gap:clamp(20px,3.5vw,42px)!important;
  row-gap:10px!important;
}
#hubView .oral-hero .hero-copy{align-self:center!important}
#hubView .oral-hero .hero-copy h1{margin-top:4px!important;margin-bottom:12px!important}
#hubView .oral-hero .hero-copy p{margin-top:8px!important;margin-bottom:10px!important}
#hubView .oral-hero .hero-copy .primary{margin-top:10px!important}
#hubView .oral-visual-photo{
  width:min(300px,100%)!important;
  max-width:300px!important;
  aspect-ratio:1!important;
  margin:0 auto!important;
}
/* Keep the story introduction slim */
#hubView .intro{padding-top:18px!important;padding-bottom:18px!important;margin-block:0!important;gap:18px!important}
#hubView .intro h2{margin-top:4px!important;margin-bottom:8px!important}
#hubView .intro .flow{margin-block:8px!important;gap:8px!important}
/* Shared top-level rhythm */
#hubView .oral-guides,#hubView .oral-trauma,#hubView .oral-dental-visit,
#hubView .oral-reading,#hubView .qa-entry{
  margin-top:12px!important;
  margin-bottom:18px!important;
}
#hubView .oral-guides{padding-top:18px!important;padding-bottom:12px!important}
#hubView .oral-guides h2,#hubView .oral-dental-visit h2,
#hubView .oral-trauma h2,#hubView .oral-reading h2{
  margin-top:4px!important;margin-bottom:8px!important;
}
#hubView .oral-guides .section-copy{margin-block:6px 12px!important}
#hubView .oral-guide-grid{gap:12px!important}
#hubView .oral-guide-card{min-height:0!important;padding:15px 17px!important;gap:5px!important}
#hubView .guide-icon{width:36px!important;height:36px!important}
#hubView .guide-icon .flat-icon{width:23px!important;height:23px!important}
#hubView .oral-trauma{padding:17px 20px!important;gap:14px!important}
#hubView .oral-trauma p{margin-block:5px!important}
#hubView .oral-dental-visit{padding:20px 22px!important}
#hubView .oral-dental-visit .visit-three{margin-top:12px!important;gap:10px!important}
#hubView .oral-dental-visit .visit-three>div{padding:13px 15px!important}
#hubView .oral-dental-visit .visit-three p{margin-top:5px!important;margin-bottom:0!important}
#hubView .oral-dental-visit .visit-note{margin-block:12px!important}
#hubView .oral-reading{padding:15px 20px!important}
#hubView .oral-reading p{margin-block:6px!important}
#hubView .scene-discovery{padding-top:20px!important;padding-bottom:16px!important;margin-top:6px!important;margin-bottom:12px!important}
#hubView .scene-discovery h2{margin-block:5px 9px!important}
#hubView .featured-scenes{margin-block:14px!important;gap:11px!important}
#hubView .featured-scene{min-height:0!important;padding:14px 16px!important;gap:11px!important}
#hubView .featured-symbol{width:40px!important;height:40px!important}
#hubView .featured-copy{gap:3px!important}
#hubView .featured-copy>span{margin-top:2px!important}
#hubView .all-scenes{margin-top:10px!important}
#hubView .all-scenes summary{padding:13px 18px!important}
#hubView .qa-entry{padding:17px 20px!important}
#hubView .qa-entry p{margin-block:5px!important}
#hubView .oral-message{margin-top:12px!important;margin-bottom:20px!important;padding-top:18px!important;padding-bottom:18px!important}
/* Scene pages: avoid excessive space between the six lesson phases */
#sceneView .lesson-head{padding-top:22px!important;padding-bottom:16px!important;margin-bottom:0!important}
#sceneView .step{margin-top:12px!important;margin-bottom:12px!important;padding-top:20px!important;padding-bottom:20px!important}
#sceneView .step h2{margin-top:4px!important;margin-bottom:10px!important}
#sceneView .step p{margin-top:6px!important;margin-bottom:8px!important}
#sceneView .lesson-footer{padding-block:18px!important}
/* Visit / injury / Q&A page spacing, scoped to avoid layout regressions */
body:has(.route) .hero{padding-top:38px!important;padding-bottom:32px!important}
body:has(.route) .section{padding-top:34px!important;padding-bottom:34px!important}
body:has(.route) .step{padding:20px!important;gap:20px!important;margin-block:13px!important}
body:has(.route) .illustration{min-height:150px!important}
body:has(.route) .route{margin-top:18px!important;margin-bottom:12px!important}
body:has(#search) .hero{padding-top:38px!important;padding-bottom:25px!important}
body:has(#search) .searchbox{margin-top:20px!important;margin-bottom:16px!important}
body:has(#search) .qa-list{gap:9px!important}
@media(max-width:880px){
 #hubView .oral-hero{padding:23px 20px!important;gap:8px!important}
 #hubView .oral-visual-photo{width:min(240px,60vw)!important;max-width:240px!important}
}
@media(max-width:610px){
 #hubView .oral-hero{padding:20px 16px!important}
 #hubView .oral-visual-photo{width:min(205px,55vw)!important;max-width:205px!important}
 #hubView .intro{padding-block:14px!important}
 #hubView .oral-guide-card{padding:13px 15px!important}
 #hubView .featured-scene{padding:12px 14px!important}
 #hubView .oral-dental-visit{padding:16px!important}
 #hubView .oral-trauma{padding:15px!important}
 #sceneView .step{padding:15px!important;margin-block:9px!important}
 body:has(.route) .section{padding-block:25px!important}
}

/* 2026-10-15: compact, horizontally balanced hero + grouped 19 scenes */
#hubView .oral-hero{min-height:0!important;padding:16px clamp(18px,4vw,55px)!important;grid-template-columns:minmax(0,1.35fr) minmax(170px,.65fr)!important;column-gap:22px!important;align-items:center!important}
#hubView .oral-hero .hero-copy{max-width:690px!important}
#hubView .oral-hero .hero-copy h1{line-height:1.15!important;margin:2px 0 8px!important}
#hubView .oral-hero .hero-copy p{margin:5px 0 7px!important;line-height:1.65!important}
#hubView .oral-hero .hero-copy .primary{display:inline-flex!important;margin-top:7px!important}
#hubView .oral-visual-photo{width:min(230px,100%)!important;max-width:230px!important;height:auto!important;aspect-ratio:1!important}
#hubView .intro{padding-block:12px!important}
#hubView .oral-guides,#hubView .oral-trauma,#hubView .oral-dental-visit,#hubView .oral-reading,#hubView .qa-entry{margin-block:8px 14px!important}
#hubView .scene-discovery{margin-block:8px 18px!important;padding-block:14px!important}
#hubView .grouped-scenes{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin-top:14px!important}
#hubView .grouped-scenes .chapter-card{min-width:0!important;margin:0!important;padding:16px!important;border-radius:15px!important}
#hubView .grouped-scenes .chapter-card header{margin-bottom:8px!important}
#hubView .grouped-scenes .chapter-card h3{margin-bottom:3px!important}
#hubView .grouped-scenes .chapter-card .scene-list{gap:5px!important}
#hubView .grouped-scenes .scene-link{min-height:0!important;padding:8px 10px!important}
@media(max-width:880px){#hubView .oral-hero{grid-template-columns:minmax(0,1fr) minmax(130px,.45fr)!important;grid-template-areas:"copy visual"!important}#hubView .oral-visual-photo{width:min(180px,100%)!important}}
@media(max-width:650px){#hubView .oral-hero{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"copy" "visual"!important;padding:15px 17px!important}#hubView .oral-visual-photo{width:min(165px,44vw)!important;max-width:165px!important;margin:0 auto!important}#hubView .grouped-scenes{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}#hubView .grouped-scenes .chapter-card{padding:14px!important}}

/* 2026-10-16: fix the accidental square hero and remove excessive whitespace */
#hubView .hero.oral-hero{
  width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;
  aspect-ratio:auto!important;margin:0!important;
  display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(240px,.7fr)!important;
  grid-template-areas:"copy visual"!important;align-items:center!important;
  justify-content:space-between!important;gap:clamp(20px,3vw,48px)!important;
  padding:clamp(24px,3vw,44px) max(24px,calc((100vw - 1160px)/2))!important;
}
#hubView .oral-hero .hero-copy{align-self:center!important;min-width:0!important}
#hubView .oral-hero .oral-visual-photo{width:min(340px,100%)!important;max-width:340px!important;height:auto!important;aspect-ratio:1!important;margin:0 auto!important}
#hubView .oral-hero .oral-visual-photo img{width:100%!important;height:100%!important;object-fit:contain!important}
#hubView .intro{margin-top:0!important;margin-bottom:0!important;padding-top:28px!important;padding-bottom:28px!important}
@media(max-width:760px){
 #hubView .hero.oral-hero{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"copy" "visual"!important;gap:18px!important;padding:28px 20px!important}
 #hubView .oral-hero .oral-visual-photo{width:min(240px,65vw)!important;max-width:240px!important}
}
