/* The bedtime chart page (/what-should-baby-wear-to-bed/), loaded on that page only.
   The designer's final-a2 page styles (2026-11-13), scoped under .chart-page so they never
   touch the rest of the site. Figtree is self-hosted (licence: Figtree-OFL.txt beside it);
   the CSP's font-src 'self' allows it. No other host is ever asked for anything. */
@font-face{font-family:"Figtree";src:url("/assets/Figtree-wght.2f940894.woff2") format("woff2"),url("/assets/Figtree-wght.26ad3db9.ttf") format("truetype");font-weight:300 900;font-style:normal;font-display:swap}
/* WebP <picture> wrappers around the table and share images: layout as if the <img> stood alone */
.chart-page picture{display:contents}

/* the site's base table, heading and paragraph rules, reset for the chart */
.chart-page{font-size:16px}
.chart-page h1{font-family:"Figtree",sans-serif}
.chart-page table{min-width:0;font-size:inherit}
.chart-page th,.chart-page td{border:0;background:none;vertical-align:initial}
.chart-page .btn,.chart-page .btn:hover{text-decoration:none}
.chart-page .g img{width:auto;height:auto}

.chart-page .nb{letter-spacing:-.1em}
.chart-page .nw{white-space:nowrap}
.chart-page .tag{display:flex;align-items:flex-start;gap:var(--mkgap,.42em)}
.chart-page .mk{display:block;flex:none;width:var(--mkw,.42em);height:var(--mkh,1em);border-radius:99px;box-sizing:border-box}
.chart-page .mk.rec{background:var(--rail-rec)}
.chart-page .tag .mk{margin-top:calc((1lh - var(--mkh,1em)) / 2)}
.chart-page .mk.cold{background:var(--rail-cold)}
.chart-page .mk.warm{background:var(--rail-warm)}
.chart-page .seg.cold{background:var(--rail-cold)}
.chart-page .seg.rec{background:var(--rail-rec)}
.chart-page .seg.warm{background:var(--rail-warm)}
.chart-page .split .tag.warm{position:relative}
/* The split row's bar is drawn by the degree in the markup (sites.mjs railTones: one .seg per degree), no longer from the warm tag's position (owner 2026-12-02, "yes, by the number"). */
.chart-page .nobagtxt{display:flex;align-items:center}
.chart-page .nobagtxt b{white-space:nowrap;color:var(--navy);font-weight:800;letter-spacing:-.02em;line-height:1}
.chart-page .split{overflow:hidden}
.chart-page{--cream:#F4EEE3; --card:#FFFFFF; --navy:#17344B; --ink:#2C2925; --muted:#665E56; --hair:#E7DDCE; --rail-cold:#3C7FC0; --rail-rec:#57986C; --rail-warm:#B7771A; --ink-cold:#2A66B5; --ink-rec:#2C5A40; --ink-warm:#8A510B; --strip:#E9EFE3; --strip-edge:#CDDBC8; --strip-ink:#2F5238; --dash:#8F867B; --sky:linear-gradient(180deg,#272654 0%,#1E1D46 62%,#1A1939 100%); --sky-ink:#F3ECE0; --sky-muted:#C4C0DB; --sky-sage:#86BFA0; --btn:#17344B; --btn-ink:#FFFFFF; --note:#F4EEE3; color-scheme:light dark; --railw:8px; --padl:14px; --tgap:1px}
@media (prefers-color-scheme: dark){
  .chart-page{--cream:#15120E; --card:#221D18; --navy:#F0E9DD; --ink:#F0E9DD; --muted:#A89E92; --hair:#3A3229; --rail-cold:#7FB2F2; --rail-rec:#7FB89A; --rail-warm:#E3A458; --ink-cold:#8DBAF2; --ink-rec:#8CC4A5; --ink-warm:#ECB36E; --strip:#1F2A21; --strip-edge:#33463A; --strip-ink:#B5DCC0; --dash:#8F867B; --btn:#F0E9DD; --btn-ink:#15120E; --note:#2C261F}
}
.chart-page *{box-sizing:border-box}
.chart-page{background:var(--cream);color:var(--ink);font-family:"Figtree", sans-serif;-webkit-font-smoothing:antialiased;line-height:1.4;overflow-x:hidden}
.chart-page .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.chart-page .sky{background:var(--sky);color:var(--sky-ink);position:relative;overflow:hidden;border-radius:0 0 24px 24px}
.chart-page .sky-wrap{position:relative;max-width:1376px;margin:0 auto;padding:22px 16px 46px}
/* right:-14px keeps the whole moon on screen at 390 px (F125; it was clipped at -34px) */
.chart-page .sky-art{position:absolute;right:-14px;top:-10px;width:170px;height:102px}
.chart-page h1{position:relative;margin:0;max-width:300px;font-size:30px;line-height:1.08;font-weight:800;letter-spacing:-.02em;color:var(--sky-ink);text-wrap:balance}
.chart-page .sub{position:relative;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 24px;margin-top:9px}
.chart-page .sub p{margin:0;font-size:16px;color:var(--sky-muted);font-weight:500}
.chart-page .legend{display:inline-flex;align-items:center;gap:9px;font-size:17px;font-weight:750;color:var(--sky-sage);white-space:nowrap}
.chart-page .legend .mk{width:7px;height:1.15em;background:var(--sky-sage)}
.chart-page .layout{position:relative;max-width:1376px;margin:-34px auto 0;padding:0 12px 36px}
.chart-page .chart-card{background:var(--card);border-radius:18px;overflow:hidden;box-shadow:0 0 0 1.5px var(--hair)}
.chart-page table{display:block;width:100%;border-collapse:collapse}
.chart-page thead,.chart-page tbody{display:block}
.chart-page thead tr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.chart-page tr{display:grid;position:relative;grid-template-columns:var(--railw) minmax(0,1fr) auto;grid-template-areas:"rail room bag" "rail under under" "rail note note"}
.chart-page tbody tr+tr{border-top:1.5px solid var(--hair)}
.chart-page th,.chart-page td{display:block;padding:0;text-align:left;font-weight:inherit}
.chart-page .c-rail{grid-area:rail;display:flex;flex-direction:column}
.chart-page .c-rail i{display:block;flex:1}
.chart-page .c-room{grid-area:room;padding:13px 6px 2px var(--padl);display:flex;flex-direction:column;justify-content:flex-start}
.chart-page .temp{display:flex;flex-wrap:wrap;column-gap:.24em}
.chart-page .t{display:block;font-size:27px;line-height:1.08;font-weight:800;letter-spacing:-.015em;color:var(--navy);white-space:nowrap}
.chart-page .tags{display:flex;flex-direction:column;margin-top:4px;gap:var(--tgap)}
.chart-page .tag{font-size:15px;line-height:1.3;font-weight:700;--mkw:6px;--mkh:14px;--mkgap:7px}
.chart-page .tag.cold{color:var(--ink-cold)}
.chart-page .tag.rec{color:var(--ink-rec)}
.chart-page .tag.warm{color:var(--ink-warm)}
.chart-page .c-bag{grid-area:bag;padding:12px 14px 0 4px;display:flex;flex-direction:column;align-items:flex-start}
.chart-page .lbl{display:block;font-size:11.5px;line-height:1.2;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin-bottom:3px}
.chart-page .bagline{display:flex;align-items:center;gap:6px}
.chart-page .slot{width:50px;display:flex;justify-content:center;flex:none}
.chart-page .bagpic{height:62px;width:auto;display:block}
.chart-page .nobag-pic{height:62px;width:52px;display:block}
.chart-page .lock{display:flex;flex-direction:column;color:var(--navy);min-width:52px}
.chart-page .lock b{font-size:32px;line-height:.95;font-weight:800;letter-spacing:-.03em}
.chart-page .lock span{font-size:12px;line-height:1;font-weight:800;letter-spacing:.12em;margin-top:4px}
.chart-page .nobagtxt b{font-size:24px}
.chart-page .nobagtxt{min-height:62px}
.chart-page .c-under{grid-area:under;display:flex;align-items:flex-start;flex-wrap:wrap;padding:10px 12px 12px var(--padl)}
.chart-page .c-under .lbl{width:100%}
.chart-page .g{margin:0;display:flex;flex-direction:column;align-items:center}
.chart-page .g .pic{height:52px;display:flex;align-items:flex-end;justify-content:center}
.chart-page .g img{max-height:52px;max-width:72px;display:block}
.chart-page .g.s1{min-width:118px}
.chart-page .g figcaption{margin-top:4px;font-size:14.5px;line-height:1.15;font-weight:650;color:var(--ink);white-space:nowrap}
.chart-page .join{height:52px;display:flex;align-items:center;justify-content:center;padding:0 8px}
.chart-page .plus{font-size:24px;font-weight:500;color:var(--muted)}
.chart-page .or{font-size:17px;font-weight:800;color:var(--navy)}
.chart-page .r6 .g.s1{min-width:96px}
/* The nappy at the app's size beside a vest (owner 2026-12-02, "that nappy looks huge"): the app's softDrawScale.ts draws
   nappy_only at 0.75 of its 288 x 252 file and bodysuit_ss at 0.813 of its 272 x 288 file in the same square, so heights
   0.656 : 0.813 = 0.807 (the vest fills the slot's height here). Centred on the garment line; its caption stays put. */
.chart-page{--nappy-k:0.807}
.chart-page .g.nappy .pic{align-items:center}
.chart-page .g.nappy img{max-height:calc(52px * var(--nappy-k))}
.chart-page .c-note{grid-area:note;padding:0 12px 12px var(--padl)}
.chart-page .c-note p{margin:0;padding:7px 11px;border-radius:10px;background:var(--note);font-size:14.5px;line-height:1.38;color:var(--ink);text-wrap:pretty}
.chart-page .c-note:empty{display:none}
.chart-page .guide{display:flex;align-items:flex-start;gap:9px;margin:16px 2px 0;font-size:16px;line-height:1.4;font-weight:700;color:var(--navy);text-wrap:pretty}
.chart-page .gicon{width:21px;height:21px;flex:none;margin-top:1px}
.chart-page .side{margin-top:16px}
.chart-page .safety{padding:15px 18px 16px;background:var(--strip);border:1.5px solid var(--strip-edge);border-radius:16px;color:var(--strip-ink)}
.chart-page .safety p{margin:0;font-size:19px;line-height:1.28;font-weight:800;letter-spacing:-.008em}
.chart-page .safety p+p{margin-top:8px}
.chart-page .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.chart-page .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:14px; font-size:16px;line-height:1.1;font-weight:750;text-decoration:none;border:2px solid var(--btn);color:var(--btn);background:transparent;flex:1 1 auto}
.chart-page .btn.primary{background:var(--btn);color:var(--btn-ink)}
.chart-page .btn:focus-visible{outline:3px solid var(--ink-cold);outline-offset:2px}
/* A calm hover on the chart's buttons (they are links): a small lift, like the site's link cards (F124). */
.chart-page .btn{transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s cubic-bezier(.2,.8,.2,1),background-color .2s}
.chart-page .btn:hover{transform:translateY(-2px);box-shadow:0 8px 18px -10px rgb(0 0 0 / .45)}
.chart-page .btn:not(.primary):hover{background:color-mix(in srgb,var(--btn) 8%,transparent)}
.chart-page .bicon{width:20px;height:20px;flex:none}
/* the quiet app line under Save/Print (owner "ok chart line", 2026-11-18); hidden in print */
.chart-page .appline{margin-top:14px;font-size:15px;line-height:1.45;font-weight:500;color:var(--muted);text-wrap:pretty}
.chart-page .appline p{margin:0}
.chart-page .appline p+p{margin-top:6px}
.chart-page .appline a{color:inherit;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent);text-underline-offset:3px}
.chart-page .appline a:hover{color:var(--navy);text-decoration-color:currentColor}
.chart-page .appline a:focus-visible{outline:3px solid var(--ink-cold);outline-offset:2px;border-radius:4px}
.chart-page .appline .appline-play{font-weight:750;color:var(--navy)}
.chart-page .foot{margin-top:20px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px 28px}
.chart-page .src{margin:0;max-width:640px;font-size:14px;line-height:1.45;font-weight:500;color:var(--muted)}
.chart-page .sign{display:flex;flex-direction:column;align-items:flex-start;white-space:nowrap}
.chart-page .date{font-size:14px;font-weight:500;color:var(--muted)}
.chart-page .mark{display:flex;align-items:center;gap:9px;margin-top:4px}
.chart-page .logo{width:30px;height:30px;border-radius:7.5px;display:block}
.chart-page .url{font-size:20px;line-height:1;font-weight:800;color:var(--navy)}
@media (min-width:640px){
  .chart-page{--railw:10px; --padl:22px}
  .chart-page .sky-wrap{padding:38px 32px 70px}
  .chart-page .sky-art{right:24px;top:0;width:250px;height:150px}
  .chart-page h1{max-width:560px;font-size:46px}
  .chart-page .sub{margin-top:14px}
  .chart-page .sub p{font-size:19px}
  .chart-page .legend{font-size:20px}
  .chart-page .legend .mk{width:9px}
  .chart-page .layout{padding:0 32px 48px;margin-top:-46px}
  .chart-page .chart-card{border-radius:22px}
  .chart-page thead tr{position:static;width:auto;height:auto;overflow:visible;clip:auto;display:grid;grid-template-columns:var(--railw) 256px 148px minmax(0,1fr);grid-template-areas:"rail room bag under";border-bottom:1.5px solid var(--hair)}
  .chart-page thead .h-rail{grid-area:rail}
  .chart-page thead .h-room{grid-area:room}
  .chart-page thead .h-bag{grid-area:bag}
  .chart-page thead .h-under{grid-area:under}
  .chart-page thead .h-note{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .chart-page thead th{padding:12px 0 10px;font-size:15px;font-weight:650;color:var(--muted)}
  .chart-page thead th.h-room{padding-left:var(--padl)}
  .chart-page tbody tr{grid-template-columns:var(--railw) 256px 148px minmax(0,1fr);grid-template-areas:"rail room bag under" "rail note note note"}
  .chart-page .c-room{padding:16px 8px 16px var(--padl);justify-content:center}
  .chart-page .temp{flex-direction:column}
  .chart-page .t{font-size:32px}
  .chart-page .tag{font-size:16px}
  .chart-page .c-bag{padding:12px 0;justify-content:center}
  .chart-page .c-bag .lbl,.chart-page .c-under .lbl{display:none}
  .chart-page .bagpic{height:84px}
  .chart-page .nobag-pic{height:84px;width:70px}
  .chart-page .slot{width:72px}
  .chart-page .lock b{font-size:40px}
  .chart-page .lock span{font-size:13px}
  .chart-page .nobagtxt b{font-size:28px}
  .chart-page .nobagtxt{min-height:84px}
  .chart-page .c-under{padding:12px 16px 12px 0;align-self:center;flex-wrap:nowrap}
  .chart-page .g .pic,.chart-page .join{height:70px}
  .chart-page .g img{max-height:70px;max-width:96px}
  .chart-page .g.s1{min-width:140px}
  .chart-page .r6 .g.s1{min-width:110px}
  .chart-page .g.nappy img{max-height:calc(70px * var(--nappy-k))}
  .chart-page .g figcaption{font-size:16px}
  .chart-page .or{font-size:19px}
  .chart-page .c-note{padding:0 20px 14px var(--padl)}
  .chart-page .c-note p{font-size:15px}
  .chart-page .guide{font-size:17px;margin-top:16px}
  .chart-page .gicon{width:22px;height:22px}
  .chart-page .side{margin-top:18px}
  .chart-page .safety{padding:18px 24px 20px;display:grid;grid-template-columns:1fr 1fr;gap:24px}
  .chart-page .safety p{font-size:21px}
  .chart-page .safety p+p{margin-top:0}
  .chart-page .actions{margin-top:18px}
  .chart-page .btn{flex:0 0 auto;min-width:220px}
  .chart-page .src,.chart-page .date{font-size:15px}
}
@media (min-width:1200px){
  .chart-page{--railw:12px; --padl:24px}
  .chart-page .sky{border-radius:0 0 36px 36px}
  .chart-page .sky-wrap{height:318px;padding:46px 40px 0}
  .chart-page .sky .head{width:360px}
  /* top:216px keeps the sparkle clear of "Recommended room 16–20 °C" (F125; it touched at 196px) */
  .chart-page .sky-art{left:262px;right:auto;top:216px;width:150px;height:90px}
  .chart-page h1{max-width:none;font-size:44px;line-height:1.06}
  .chart-page .sub{display:block;margin-top:16px}
  .chart-page .sub p{font-size:19px}
  .chart-page .legend{margin-top:12px;font-size:20px}
  .chart-page .layout{max-width:1440px;display:grid;grid-template-columns:360px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:40px;padding:0 40px 32px;margin-top:-290px}
  .chart-page .sky-wrap{max-width:1440px}
  .chart-page .chartcol{grid-column:2;grid-row:1 / span 2}
  .chart-page .side{grid-column:1;grid-row:1;margin-top:0;padding-top:306px}
  .chart-page thead tr,.chart-page tbody tr{grid-template-columns:var(--railw) 256px 160px minmax(0,1fr)}
  .chart-page thead th{padding:11px 0 9px}
  .chart-page .c-room{padding:12px 6px 12px var(--padl)}
  .chart-page .t{font-size:34px}
  .chart-page .tag{font-size:16px}
  .chart-page .c-bag{padding:12px 0}
  .chart-page .bagpic{height:92px}
  .chart-page .nobag-pic{height:92px;width:76px}
  .chart-page .slot{width:76px}
  .chart-page .lock b{font-size:44px}
  .chart-page .lock span{font-size:14px}
  .chart-page .nobagtxt b{font-size:30px}
  .chart-page .nobagtxt{min-height:92px}
  .chart-page .c-under{padding:12px 14px 12px 0}
  .chart-page .g .pic,.chart-page .join{height:72px}
  .chart-page .g img{max-height:72px;max-width:98px}
  .chart-page .g.s1{min-width:142px}
  .chart-page .r6 .g.s1{min-width:108px}
  .chart-page .g.nappy img{max-height:calc(72px * var(--nappy-k))}
  .chart-page .g figcaption{font-size:16px}
  .chart-page .c-note{padding:0 18px 12px var(--padl)}
  .chart-page .guide{margin-top:12px;font-size:17px}
  .chart-page .safety{display:block;padding:18px 22px 20px}
  .chart-page .safety p{font-size:21px}
  .chart-page .safety p+p{margin-top:10px}
  .chart-page .actions{margin-top:16px;gap:10px}
  .chart-page .btn{flex:1 1 auto;min-width:0;padding:0 14px;font-size:15.5px}
  .chart-page .foot{margin-top:18px;display:block}
  .chart-page .src,.chart-page .date{font-size:14px}
  .chart-page .sign{margin-top:12px;flex-direction:row;align-items:center;justify-content:space-between;width:100%}
  .chart-page .mark{margin-top:0}
}
@media (min-width:1400px){
  .chart-page thead tr,.chart-page tbody tr{grid-template-columns:var(--railw) 256px 160px minmax(0,1fr) 200px;grid-template-areas:"rail room bag under note"}
  .chart-page thead .h-note{position:static;width:auto;height:auto;clip:auto;grid-area:note}
  .chart-page .c-note{padding:8px 18px 8px 0;align-self:center}
  .chart-page .c-note p{font-size:14.5px;line-height:1.38;padding:8px 11px}
}
@media (min-width:1700px){
  .chart-page .layout{grid-template-columns:400px minmax(0,1fr);column-gap:56px}
  .chart-page .sky .head{width:400px}
  .chart-page .sky-art{left:360px}
  .chart-page h1{font-size:48px}
}
@media print{
  @page{size:A4;margin:15mm}
  .chart-page{--cream:#fff;--card:#fff;--navy:#000;--ink:#000;--muted:#000;--hair:#000;--ink-cold:#000;--ink-rec:#000;--ink-warm:#000;--strip:#fff;--strip-edge:#000;--strip-ink:#000;--note:#fff; --rail-rec:#2F6B45;--rail-cold:#9DC0E6;--rail-warm:#E9BE7A}
  .chart-page{background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .chart-page .sky{background:none;border-radius:0}
  .chart-page .sky-wrap{padding:0;max-width:none;height:auto}
  .chart-page .sky .head{width:auto}
  .chart-page .sky-art{display:none}
  .chart-page .sky h1,.chart-page .sky .sub p,.chart-page .sky .legend{color:#000}
  .chart-page .legend .mk{background:var(--rail-rec)}
  .chart-page h1{font-size:26pt;max-width:none}
  .chart-page .sub{display:flex}
  .chart-page .layout{display:block;max-width:none;padding:0;margin:4mm 0 0}
  .chart-page .side{padding-top:0;margin-top:3mm}
  .chart-page .chart-card{box-shadow:none;border:0.5mm solid #000}
  .chart-page thead tr,.chart-page tbody tr{grid-template-columns:3mm 46mm 40mm minmax(0,1fr)}
  .chart-page tbody tr{grid-template-areas:"rail room bag under" "rail note note note"}
  .chart-page thead .h-note{display:none}
  .chart-page tbody tr+tr{border-top:0.3mm solid #000}
  .chart-page tr{break-inside:avoid}
  .chart-page .c-note{padding:0 4mm 3mm var(--padl)}
  .chart-page .c-note p{background:none;border:0.3mm solid #000;font-size:10pt;padding:1.5mm 2.5mm}
  .chart-page .safety{border:0.6mm solid #000;display:grid;grid-template-columns:1fr 1fr}
  .chart-page .actions{display:none}
  .chart-page .appline{display:none}
}


/* the shareable picture (the PNG "Save the chart" gives), below the chart */
.chart-page .share{max-width:420px;margin:0 auto;padding:8px 16px 48px}
.chart-page .share img{width:100%;height:auto;border-radius:12px;box-shadow:0 0 0 1.5px var(--hair)}
@media print{
  .skip,.draft-banner,.site-header,.site-footer,.chart-page .share{display:none}
}
