/* Mabotia v1.0 — approved identity, applied to the existing responsive layout. */
:root{--cream:var(--mb-background);--ink:var(--mb-text);--muted:var(--mb-muted);--line:var(--mb-brand-sage);--title:var(--mb-font-title);--body:var(--mb-font-body);--sage:var(--mb-brand-forest);--peach:var(--mb-brand-mint)}
:root[data-theme=dark]{--cream:var(--mb-background);--ink:var(--mb-text);--muted:var(--mb-muted);--line:#365A53;color-scheme:dark}
body{background:var(--mb-background);font-size:16px;line-height:1.5;color:var(--mb-text)}
h1{font-size:clamp(28px,3vw,32px);line-height:1.25}h2{font-size:24px;line-height:1.35}h3{font-size:18px}
.small,small,.intro,.greeting-row .muted,.hero-caption,.baby-comparison,.hero-footnote,.due-card .muted,.birth-window,.appointment p,.tool-card small,.guide-card p,.notebook-card>p,.journal-entry p,.context-help,.motion-toggle,.preview-note{font-size:14px;line-height:1.5}
.section-heading h2,.notebook-card h2,.note-card h2{font-size:18px}.eyebrow{font-size:11px;line-height:1.6}.guide-label{font-size:12px}
:is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--mb-focus)!important;outline-offset:4px}
.brand{color:var(--mb-brand-forest);letter-spacing:normal}.brand-lockup{display:block;width:180px;max-width:100%;line-height:0}.brand-lockup img{display:block;width:100%;height:auto;border-radius:0}.logo-dark,.brand-lockup .logo-dark,.brand-symbol{display:none}
:root[data-theme=dark] .brand{color:var(--mb-primary)}:root[data-theme=dark] .brand-lockup .logo-light{display:none}:root[data-theme=dark] .brand-lockup .logo-dark{display:block}
.app-header .brand-lockup{width:156px}.brand-symbol{border-radius:0}.brand-intro{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:24px}.brand-intro h2{font-size:22px;margin:8px 0}.brand-intro p:not(.eyebrow){font-size:14px;color:var(--mb-muted)}
.app-shell{background:var(--mb-background)}.app-header{gap:8px}.header-actions{gap:4px}.header-actions .icon-button{min-width:40px;min-height:44px}
.primary,:root[data-theme=dark] .primary,:root[data-theme=dark] .daily-actions .primary{background:var(--mb-primary);color:var(--mb-on-primary);border-radius:12px;font-size:16px;min-height:44px;padding:12px 18px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.secondary,:root[data-theme=dark] .secondary{background:var(--mb-surface);color:var(--mb-primary);border:1px solid var(--mb-border);border-radius:12px;font-size:14px;min-height:44px;padding:10px 16px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
:is(.text-button,.source-link,.birth-button),:root[data-theme=dark] :is(.text-button,.source-link,.birth-button){color:var(--mb-primary);font-size:14px}
:is(.due-card,.appointment,.tool-card,.guide-card,.notebook-card,.note-card,.journal-entry,.icon-button,.summary-grid>div),:root[data-theme=dark] :is(.due-card,.appointment,.tool-card,.guide-card,.notebook-card,.note-card,.journal-entry,.icon-button,.summary-grid>div){background:var(--mb-surface);border-radius:20px;color:var(--mb-text)}
:is(dialog,input,select,textarea),:root[data-theme=dark] :is(dialog,input,select,textarea){background:var(--mb-surface);color:var(--mb-text)}input,select,textarea{border-color:var(--mb-border);border-radius:12px;font-size:16px}dialog{border-radius:24px}
.hero,body[data-trimester] .hero,:root[data-theme=dark] .hero,:root[data-theme=dark] body[data-trimester] .hero{background:var(--mb-brand-sage);border-color:var(--mb-border);border-radius:24px}
:root[data-theme=dark] .hero,:root[data-theme=dark] body[data-trimester] .hero{background:var(--mb-surface)}
.hero :is(.hero-caption,.gestation,.baby-comparison,.baby-comparison strong,.baby-stats span,.baby-stats small,.progress-label,.hero-footnote,.eyebrow),:root[data-theme=dark] .hero :is(.hero-caption,.gestation,.baby-comparison,.baby-comparison strong,.baby-stats span,.baby-stats small,.progress-label,.hero-footnote,.eyebrow){color:var(--mb-text)}
.baby-stats small,.progress-label,.progress-label strong{font-size:12px}.countdown strong{color:var(--mb-primary)}
.hero .scene-caption{color:var(--mb-brand-ivory);font-size:14px}.hero .motion-toggle{background:var(--mb-primary);color:var(--mb-on-primary);border-color:var(--mb-border)}
progress::-webkit-progress-value{background:var(--mb-primary)}progress::-moz-progress-bar{background:var(--mb-primary)}
:is(.daily-card,.week-explorer),:root[data-theme=dark] :is(.daily-card,.week-explorer){background:var(--mb-surface)}
:is(.daily-copy h2,.daily-check,.summary-grid strong),:root[data-theme=dark] :is(.daily-copy h2,.daily-check,.summary-grid strong){color:var(--mb-primary)}
:is(.eyebrow,.guide-label,.birth-window,.bag-banner small,.notebook-card>p,.journal-entry p,.context-help summary,.page-footer,.empty-state,.log-list time),:root[data-theme=dark] :is(.eyebrow,.guide-label,.birth-window,.bag-banner small,.notebook-card>p,.journal-entry p,.context-help summary,.page-footer,.empty-state,.log-list time){color:var(--mb-muted)}
:is(.tool-alert,.support-note),:root[data-theme=dark] :is(.tool-alert,.support-note){background:var(--mb-warning-surface);color:var(--mb-warning-text)!important;border-color:var(--mb-warning-text)}
.form-error,.danger-button,:root[data-theme=dark] :is(.form-error,.danger-button){color:var(--mb-error-text)}
.bottom-nav,:root[data-theme=dark] .bottom-nav{background:var(--mb-surface);border-color:var(--line)}
.bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:64px;min-width:0;text-decoration:none;color:var(--mb-muted);font-size:12px;border-radius:12px;padding:8px 3px;line-height:1.2}
.bottom-nav a[aria-current=page]{background:var(--mb-info-surface);color:var(--mb-primary)}
.bottom-nav a span{font-size:12px;text-align:center}.language-switch button[aria-pressed=true]{background:var(--mb-primary)!important;color:var(--mb-on-primary)!important}
.breadcrumbs{display:flex;gap:12px;font-size:14px;color:var(--mb-muted);margin-bottom:24px}.article-page .app-shell{max-width:920px}.article-page main{padding-bottom:48px}.article-page .intro{margin:16px 0 24px}.article-page .guide-card{margin-bottom:24px;padding:24px}.article-page .guide-card>h2:first-child{display:none}.related-advice{display:grid;gap:12px;margin-top:32px}.related-advice a{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:14px 0;text-decoration:none;font-size:16px}.related-advice a:hover{text-decoration:underline}
.push-settings{margin:20px 0}.push-settings h2,.push-settings p{margin-bottom:12px}.no-script-note{padding:20px;background:var(--mb-warning-surface);color:var(--mb-warning-text);margin:16px}
.pwa-admin-grid{grid-template-columns:minmax(240px,1fr) minmax(0,1.5fr)}.admin-nav{display:flex;gap:16px}.admin-nav a{text-decoration:none;padding:12px}.admin-nav a[aria-current]{border-bottom:2px solid var(--mb-primary)}
.pwa-metrics{margin:24px 0}.pwa-metrics>div{padding:20px}.pwa-metrics small{color:var(--mb-muted);font-size:12px;display:block;margin-top:8px}.pwa-metrics strong{font-family:var(--mb-font-title);font-size:32px}
.notification-preview{display:flex;align-items:flex-start;gap:14px;background:var(--mb-surface);border:1px solid var(--line);border-radius:16px;padding:20px}.notification-preview img{flex-shrink:0;border-radius:10px}.notification-preview h3{margin:6px 0}.notification-preview p{color:var(--mb-text);font-size:16px}
.campaign-card{padding:20px;margin-bottom:24px}.campaign-card>p{margin:12px 0}.pwa-readiness{border:1px solid var(--line);padding:18px;border-radius:16px}.pwa-readiness span{display:block;font-size:14px;color:var(--mb-muted);margin-top:8px}.pwa-feedback{padding:16px;background:var(--mb-success-surface);color:var(--mb-success-text);border-radius:12px}
.checkbox-label{display:flex;align-items:flex-start;gap:12px}.admin-shell .checkbox-label input{width:20px;height:20px;flex-shrink:0}.delivery-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.delivery-metrics dt{font-size:12px;color:var(--mb-muted)}.delivery-metrics dd{margin:4px 0;font-size:24px;font-weight:600}
@media(max-width:650px){.pwa-admin-grid{grid-template-columns:1fr}.app-header .brand-lockup{width:140px}.article-page .app-header .brand-lockup{width:160px}.article-page main{padding:24px 18px 40px}.pwa-metrics>div{padding:14px}}
@media(max-width:360px){.app-header .brand-lockup{display:none}.app-header .brand-symbol{display:block;width:40px;height:40px}.article-page .app-header .brand-lockup{display:block;width:140px}.article-page .app-header .brand-symbol{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important;animation-iteration-count:1!important}}

@media(max-width:360px){.app-header .brand-symbol.logo-dark{display:none}:root[data-theme=dark] .app-header .brand-symbol.logo-light{display:none}:root[data-theme=dark] .app-header .brand-symbol.logo-dark{display:block}.article-page .app-header .brand-symbol.logo-dark{display:none!important}}
.article-page .app-shell{display:block}.article-page main{border-left:0;padding:32px 40px 48px}.article-page .guide-card>.text-button{display:block;margin-top:20px}.article-page .note-card>.primary{display:inline-flex;align-items:center;justify-content:center;margin-top:16px;padding:12px 20px;text-decoration:none}
@media(max-width:650px){.article-page main{padding:24px 18px 40px}}

.section-illustration{display:block;width:min(100%,480px);height:auto;margin:24px auto;border-radius:24px}.advice-illustration{display:block;width:min(100%,360px);height:auto;margin:0 auto 22px;border-radius:20px}.journey-illustration{display:block;width:100%;height:auto;border-radius:16px;margin-bottom:20px}.app-shell main,.notebook-grid,.admin-grid,.admin-grid>section{min-width:0}.notification-preview>div{min-width:0}.notification-preview h3,.notification-preview p{overflow-wrap:anywhere}

.admin-nav{flex-wrap:wrap;gap:8px}.admin-nav a{white-space:nowrap;font-size:14px;padding:8px;min-height:44px}.pwa-metrics span{display:block;font-size:14px;line-height:1.4}
