/* Topic pages: the app's topic screen (components/MoonfeedTopic.tsx) on the web.
   Values come from theme.ts in the app repo. Keep them in step with BRAND.md. */
@font-face{font-family:'Figtree';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/figtree-latin.woff2') format('woff2')}
@font-face{font-family:'Young Serif';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/young-serif-latin.woff2') format('woff2')}
:root{
  --bg:#1B1E3B;--surface:#262A4F;--border:#34396A;--text:#F4E9D8;--muted:#C4BEDD;--icon:#8E89B8;
  --accent:#F2A776;--accent-on:#1B1E3B;--secondary:#B7B3E6;
  --heard-bg:#3B2F45;--heard-text:#F7C7A6;--heard-border:#6B5570;
  --alert:#F2B5A0;--alert-surface:#3B2A38;--alert-border:#8A5A62;--alert-text:#EBD9DE;
  --r-md:18px;--r-lg:22px;
  --display:'Young Serif',Georgia,serif;--body:'Figtree',system-ui,sans-serif;
}
*{box-sizing:border-box}
html{color-scheme:dark;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);font-size:15px;line-height:22px}
a{color:var(--accent);text-underline-offset:4px}
a:hover{color:var(--heard-text)}
a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
p{margin:0}
.skip{position:absolute;top:-100px;left:16px;padding:12px 20px;background:var(--accent);color:var(--accent-on);z-index:1}
.skip:focus{top:12px}

/* Site bar */
.bar{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1100px;margin:0 auto;padding:16px 24px}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-family:var(--display);font-size:24px;min-height:44px}
.brand:hover{color:var(--text)}
.brand.small{font-size:19px;gap:8px}
.bar nav{display:flex;align-items:center;gap:20px;font-weight:500}
.bar nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);text-decoration:none}
.bar nav a:hover{color:var(--text)}
.bar nav a.get{padding:10px 20px;border-radius:24px;background:var(--accent);color:var(--accent-on);font-weight:700}
.bar nav a.get:hover{background:var(--heard-text);color:var(--accent-on)}

/* Column: the app's 640px content width plus its 16px padding */
.page{max-width:680px;margin:0 auto;padding:8px 20px 32px}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 16px;padding:0;font-size:13px;line-height:18px;color:var(--muted)}
.crumbs li{display:flex;align-items:center;min-height:32px}.crumbs li+li::before{content:"›";margin-right:8px;color:var(--icon)}
.crumbs a{color:var(--muted);display:inline-flex;align-items:center;min-height:32px}
.crumbs a:hover{color:var(--text)}

/* Heading (type.hero / type.body) */
.heading{display:flex;flex-direction:column;gap:8px;margin-bottom:22px}
.tile{width:48px;height:48px;border-radius:999px;background:var(--surface);color:var(--secondary);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.tile.big{margin-bottom:4px}
h1{font-family:var(--display);font-weight:400;font-size:31px;line-height:35px;padding-top:6px;margin:0}
.sub{color:var(--muted)}

/* Banners */
.warning,.summary{display:flex;align-items:flex-start;gap:12px;padding:16px;margin-bottom:16px;border-radius:var(--r-lg);border:1px solid}
.warning{background:var(--alert-surface);border-color:var(--alert-border);color:var(--alert-text)}
.warning svg{color:var(--alert);flex-shrink:0}
.summary{background:var(--surface);border-color:var(--border);color:var(--muted)}
.summary svg{color:var(--secondary);flex-shrink:0;margin-top:1px}
.summary div{display:flex;flex-direction:column;gap:12px}

/* Tier sections (type.section + caption) */
.tier h2,.heard h2{display:flex;align-items:center;gap:8px;margin:12px 0 0;font-family:var(--display);font-weight:400;font-size:18px;line-height:23px}
.tier h2{color:var(--text)}
.explanation{font-size:13px;line-height:18px;color:var(--muted);margin:4px 0 12px}

/* Strategy cards: same card and tap-to-expand row as the app, minus the checkbox */
.card{border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);margin-bottom:12px;overflow:hidden}
.card summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:50px;padding:13px 14px;cursor:pointer;font-weight:600;font-size:16px;line-height:21px}
.card summary::-webkit-details-marker{display:none}
.card summary .label{flex:1}
.card .chev{color:var(--muted);flex-shrink:0;transition:transform .15s}
.card[open] .chev{transform:rotate(180deg)}
.detail{padding:0 14px 13px;color:var(--muted)}
.row-link{display:flex;align-items:center;min-height:44px;padding:0 14px;font-size:13px;line-height:18px;color:var(--secondary);text-decoration:underline}
.research{border-top:1px solid var(--border);padding:12px}
.caption{font-size:13px;line-height:18px;color:var(--muted)}
.cite{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 0;font-size:13px;line-height:18px;color:var(--secondary)}
.cite span{text-decoration:underline}
.cite svg{flex-shrink:0}

/* Heard in a mom's group */
.heard{margin-top:16px;padding:16px;border-radius:var(--r-lg);background:var(--heard-bg);color:var(--heard-text)}
.heard h2{margin-top:0;color:var(--heard-text)}
.heard .explanation{margin:8px 0 0}
.heard ul{list-style:none;margin:0;padding:0}
.heard li{display:flex;gap:8px;border-top:1px dashed var(--heard-border);margin-top:12px;padding-top:12px}
.heard li::before{content:"•"}

/* Calls to action */
.cta,.guided{margin-top:32px;padding:20px;border-radius:var(--r-lg);display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.cta{background:var(--surface);border:1px solid var(--border)}
.guided{background:rgba(183,179,230,0.10);border:1px solid rgba(183,179,230,0.35)}
.cta h2,.guided h2,.related h2{font-family:var(--display);font-weight:400;font-size:24px;line-height:28px;margin:0}
.cta p,.guided p{color:var(--muted)}
.guided strong{color:var(--text);font-weight:600}
.guided .small{font-size:13px;line-height:18px}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border-radius:999px;background:var(--accent);color:var(--accent-on);font-weight:700;font-size:17px;line-height:22px;text-decoration:none;margin-top:4px}
.button:hover{background:var(--heard-text);color:var(--accent-on)}
.button.ghost{background:transparent;border:1px solid var(--heard-border);color:var(--heard-text)}
.button.ghost:hover{background:var(--heard-bg);color:var(--heard-text)}

/* Topic lists (app home topic cards) */
.related{margin-top:32px}
.related h2{margin-bottom:12px}
.topic-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.topic-card{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);color:var(--text);text-decoration:none}
.topic-card:hover{border-color:var(--secondary);color:var(--text)}
.tc-text{flex:1;display:flex;flex-direction:column;gap:2px}
.tc-title{font-weight:600;font-size:16px;line-height:21px}
.tc-sub{font-size:13px;line-height:18px;color:var(--muted)}
.topic-card .chev{color:var(--icon)}

.disclaimer{font-size:13px;line-height:18px;color:var(--muted);text-align:center;margin-top:22px;padding:0 12px}

/* Site footer (homepage footer) */
.foot{max-width:1100px;margin:32px auto 0;padding:32px 24px 40px;border-top:1px solid #2C3060;display:flex;flex-direction:column;gap:18px}
.foot-row{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.foot nav{display:flex;flex-wrap:wrap;gap:4px 24px;font-size:15px}
.foot nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.foot nav a:hover{text-decoration:underline}
.foot p{font-size:13.5px;line-height:1.5;color:#A9A4C9;max-width:900px}

@media(max-width:480px){
  .bar{padding:12px 16px}
  .brand{font-size:21px}
  .bar nav{gap:14px;font-size:15px}
  .bar nav a.get{padding:8px 16px}
  .page{padding:4px 16px 24px}
  .foot nav{flex-direction:column;gap:0}
}
