:root {
  --paper: #FBF7F1; --ink: #1F2A24; --ink-2: #3E4A43; --muted: #5B655E; --faint: #8A9188;
  --line: #E8E1D6; --line-2: #D9D0C3; --card: #FFFFFF; --accent: #B2641A; --accent-2: #9A5614;
  --tint-sky: #D6E2EA; --tint-sage: #D9E3D3; --tint-sand: #EADFC9; --tint-blush: #EDD9D2; --ad: #F3EEE6;
  --dark: #1F2A24; --dark-text: #F6F1E8; --dark-muted: #CFD6D0;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Nunito Sans', system-ui, -apple-system, sans-serif; --display: 'Fredoka', 'Nunito Sans', system-ui, sans-serif;
  /* Section colours: a bg tint, a deep text colour */
  --kids-bg: #FFE9A8; --kids-fg: #8A5A00; --politics-bg: #D9E3F5; --politics-fg: #2F4A7A; --nature-bg: #D4EBD0; --nature-fg: #2D6A3A;
  --sports-bg: #FFD9C2; --sports-fg: #A3471A; --science-bg: #CDE9EE; --science-fg: #1F6B78; --kindness-bg: #FFD6DF; --kindness-fg: #A52E53;
  --culture-bg: #E6D9F5; --culture-fg: #5B3A96; --progress-bg: #FFE0B8; --progress-fg: #8F5100; --dial-bg: #1F2A24; --dial-fg: #FFFFFF; --home-bg: #1F2A24; --home-fg: #FFFFFF;
  --r: 14px; --r-sm: 10px;
}
html[data-theme="evening"] { --paper: #F1ECE4; --card: #FBF8F3; --ink: #1A231E; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }

/* Header */
.hdr { background: var(--card); border-bottom: 1px solid var(--line); }
.hdr .wrap { min-height: 64px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 24px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.nav .on { color: var(--accent); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; background: var(--card); }
.seg a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; font-size: 14px; font-weight: 700; color: var(--muted); }
.seg a.on { background: var(--ink); color: #fff; }
@media (max-width: 699px) { .nav { display: none; } .seg a { padding: 0 10px; font-size: 13px; height: 36px; } }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: var(--r-sm); background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-2); color: #fff; }
.btn2 { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: var(--r-sm); background: var(--card); color: var(--ink); font-weight: 700; font-size: 15px; border: 1px solid var(--line-2); cursor: pointer; }
.btn2.ghost { background: transparent; color: var(--dark-text); border-color: #5B655E; }
.chip { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { margin-left: 6px; color: var(--faint); font-weight: 600; }
.chip.on .n { color: var(--dark-muted); }

/* Text roles */
.meta { font-size: 13px; color: var(--muted); }
.why { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.num { font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--accent); }
.act { font-weight: 700; color: var(--accent); font-size: 13px; }

/* Ads */
.ad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--ad); border: 1px dashed #CFC5B6; border-radius: 8px; color: #6E776F; font-size: 12px; overflow: hidden; }
.ad b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ad-lead { height: 90px; max-width: 728px; width: 100%; margin: 16px auto 0; }
.ad-rail { height: 600px; width: 300px; max-width: 100%; }
.ad-rect { height: 250px; width: 300px; max-width: 100%; }
.ad-feed { min-height: 280px; border-radius: var(--r); justify-content: flex-start; align-items: stretch; padding: 0; }
.ad-feed .lbl { padding: 10px 18px 0; display: flex; justify-content: space-between; }
.ad-feed .body { flex: 1; display: flex; align-items: center; justify-content: center; }
.ad-inline { height: 250px; }
.ad-anchor { position: sticky; bottom: 0; height: 56px; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; flex-direction: row; gap: 12px; z-index: 5; }
.ad-anchor button { border: 0; background: transparent; font-weight: 700; cursor: pointer; margin-left: 12px; }
@media (min-width: 700px) { .ad-anchor { display: none; } .ad-lead { display: flex; } }
@media (max-width: 699px) { .ad-lead { display: none; } }
.adsbygoogle { display: block; }


/* Layout: newspaper grid. Main column left, a ruled right column for the editor, moods, email and ads. */
.main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; padding: 20px 16px 48px; }
.col { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.rail { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 700px) { .main { padding: 24px 24px 56px; } }
@media (min-width: 960px) {
  .main { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 0; }
  .rail { border-left: 1px solid var(--line-2); padding-left: 24px; margin-left: 28px; }
}
@media (min-width: 1100px) { .main { grid-template-columns: minmax(0, 1fr) 340px; } .rail { margin-left: 36px; padding-left: 28px; } }

/* Section bar under the header */
.secbar { background: var(--card); border-bottom: 1px solid var(--line-2); }
.secbar .wrap { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; min-height: 42px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; font-weight: 700; }
.secbar .lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-right: 4px; }
.secbar a { color: var(--ink-2); white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.secbar a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.secbar a .n { margin-left: 4px; color: var(--faint); font-weight: 600; font-size: 12px; }
.secbar .dial-link { margin-left: auto; color: var(--accent); }
@media (max-width: 699px) { .secbar .wrap { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .secbar .wrap::-webkit-scrollbar { display: none; } .secbar .dial-link { margin-left: 8px; } }

/* Dateline */
.dateline { padding-top: 18px; display: flex; flex-direction: column; gap: 4px; border-bottom: 3px double var(--line-2); padding-bottom: 14px; }
.dateline h1 { font-size: 24px; font-weight: 500; }
.dateline .meta { font-size: 14px; }
@media (min-width: 700px) { .dateline h1 { font-size: 28px; } }

/* Kickers, pictures and placeholders */
.kick { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.pic, .thumb { position: relative; background: var(--tint-sky); overflow: hidden; }
.pic img, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pic .ph, .thumb .ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 10px 12px; font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(31,42,36,.55); background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0) 60%); }
.thumb .ph { font-size: 11px; padding: 6px 8px; }
.t-nature { background: var(--tint-sage); } .t-kindness { background: var(--tint-blush); } .t-culture { background: var(--tint-sand); }
.t-science { background: var(--tint-sky); } .t-sports { background: #E6DDD0; } .t-politics { background: #DCE0E6; } .t-kids { background: #F2E3C8; } .t-progress { background: var(--tint-sky); }

/* Story cards: flat, newspaper style. Hairline above, image, kicker, headline. */
.card { display: flex; flex-direction: column; color: inherit; border-top: 1px solid var(--line-2); padding-top: 12px; min-width: 0; }
.card:hover h2, .card:hover h3 { color: var(--accent); }
.card .pic { aspect-ratio: 16/10; border-radius: 6px; }
.card .pad { padding: 12px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.card h2 { font-size: 22px; } .card h3 { font-size: 18px; line-height: 1.25; font-weight: 600; }
.card .why { font-size: 14px; }
.card .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Lead story: picture left, words right */
.lead .big { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; border-top: 3px solid var(--accent); padding-top: 14px; }
.lead .big .pic { aspect-ratio: 16/10; border-radius: 6px; }
.lead .big h2 { font-size: 26px; line-height: 1.12; font-weight: 600; }
.lead .big .why { font-size: 16px; }
.lead .big .pad { padding: 0; gap: 10px; }
@media (min-width: 700px) { .lead .big { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; } .lead .big h2 { font-size: 30px; } }

/* Grids with vertical rules between columns */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; row-gap: 28px; align-items: start; }
.grid > * { padding-left: 16px; padding-right: 16px; border-left: 1px solid var(--line); }
.grid > *:first-child, .grid > *:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.grid > *:nth-child(3n) { padding-right: 0; }
@media (max-width: 899px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid > * { border-left: 1px solid var(--line); padding-left: 16px; } .grid > *:nth-child(3n+1) { border-left: 1px solid var(--line); padding-left: 16px; } .grid > *:nth-child(odd) { padding-left: 0; border-left: 0; } .grid > *:nth-child(even) { padding-right: 0; } }
@media (max-width: 599px) { .grid { grid-template-columns: 1fr; row-gap: 20px; } .grid > * { padding: 12px 0 0 !important; border-left: 0 !important; } }

/* Rows (section pages, yesterday) */
.row { display: flex; flex-direction: row; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; }
.row:hover h3 { color: var(--accent); }
.row .thumb { width: 120px; height: 80px; border-radius: 6px; flex: none; }
.row .txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row h3 { font-size: 17px; line-height: 1.3; }
@media (max-width: 699px) { .row .thumb { width: 96px; height: 68px; } }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 3px solid var(--ink); padding-top: 10px; margin-bottom: 18px; }
.sec-head h2 { font-size: 22px; }
.sec-head a.meta { font-weight: 700; }

/* Right column pieces */
.letter { display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--accent); padding-top: 12px; }
.letter h2 { font-size: 21px; }
.letter p.body { font-family: var(--serif); font-size: 16px; line-height: 1.55; white-space: pre-line; color: var(--ink); }
.letter p.body.clamp { display: -webkit-box; -webkit-line-clamp: 14; -webkit-box-orient: vertical; overflow: hidden; }
.letter .more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; }
.mood { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.mood .opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mood a { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); min-width: 0; }
.mood a.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mood a b { font-size: 14px; } .mood a span { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.quotebox .quote { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.rail .ad-rail { width: 300px; max-width: 100%; height: 600px; }
.rail .ad-rect { width: 300px; max-width: 100%; height: 250px; }
.ad-feed { height: 340px; max-height: 340px; }
/* Before you go + closing */
.ogt { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.ogt h2 { font-size: 22px; font-weight: 500; }
.ogt textarea { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px; font-size: 16px; background: var(--paper); resize: vertical; max-width: 640px; width: 100%; }
.ogt .past { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.closing { background: var(--dark); color: var(--dark-text); border-radius: 16px; padding: 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.closing h2 { color: var(--dark-text); font-size: 26px; font-weight: 500; }
.closing p { color: var(--dark-muted); max-width: 620px; }
.closing .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 699px) { .closing { padding: 22px; } .closing h2 { font-size: 22px; } .closing .acts a { flex: 1; } }

/* Rail boxes */
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.box h3 { font-size: 19px; }
.box input[type=email] { height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 12px; font-size: 15px; background: var(--paper); width: 100%; }
.box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
label { font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* Story page */
.story { max-width: 760px; display: flex; flex-direction: column; gap: 22px; }
.story h1 { font-size: 34px; font-weight: 500; }
@media (min-width: 700px) { .story h1 { font-size: 42px; } }
.story .hero { border-radius: var(--r); background: var(--tint-sky); aspect-ratio: 16/9; overflow: hidden; }
.story .hero img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.panel h2 { font-family: var(--sans); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.panel ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.panel p { font-size: 17px; }
.bn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bn div { border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.bn .before { background: var(--ad); } .bn .now { background: #E4EEE2; }
.bn span.l { font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ask { display: flex; gap: 8px; }
.ask input { flex: 1; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 12px; font-size: 15px; background: var(--paper); min-width: 0; }
.answer { background: var(--paper); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; display: none; }
.answer.show { display: block; }
.share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; }
.crumb { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.excerpt { font-size: 17px; line-height: 1.65; }

/* Dial */
.dial { display: flex; flex-direction: column; gap: 14px; }
.dial .ticks { position: relative; display: flex; align-items: flex-start; padding-top: 8px; }
.dial .track { position: absolute; left: 7%; right: 7%; top: 15px; height: 3px; background: #E3DACB; border-radius: 2px; }
.tick { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; color: var(--muted); position: relative; }
.tick i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid #CFC5B6; }
.tick b { font-size: 15px; color: var(--ink); } .tick span { font-size: 11px; }
.tick.on i { background: var(--accent); border-color: var(--accent); width: 20px; height: 20px; margin: -3px 0; }
.tick.on b { color: var(--accent); }
.dots { display: flex; gap: 4px; } .dots i { flex: 1; height: 4px; border-radius: 2px; background: #E3DACB; } .dots i.on { background: var(--accent); }
.deck { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.dcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.dcard h2 { font-size: 22px; }
.lines { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.lines a { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

/* Footer */
.ftr { border-top: 1px solid var(--line); background: var(--card); margin-top: auto; }
.ftr .wrap { padding: 28px 16px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.ftr nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* Fixes after first render */
[hidden] { display: none !important; }
.top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ad .slot { flex: 1 1 auto; min-height: 0; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ad .slot ins.adsbygoogle { max-height: 100%; }
.page > .wrap { width: 100%; max-width: 1180px; }
.ad-lead { width: min(100%, 728px); }
img { max-width: 100%; height: auto; }
.why .pn { font-weight: 700; color: var(--accent); }
.byline { font-size: 13px; color: var(--muted); }
.secbar a.on { color: var(--accent); border-bottom-color: var(--accent); }
.ad-lead { height: 90px; margin: 14px auto 0; }
.pic img, .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; }
.story .hero img { position: static; }

/* Colour pass: upbeat display font for the page chrome, coloured section widgets, icons */
.dateline h1, .sec-head h2, .letter h2, .box h3, .ogt h2, .closing h2, .brand, .mood a b, .kick, .pill, .btn, .btn2, .story .panel h2 { font-family: var(--display); letter-spacing: 0; }
.dateline h1 { font-weight: 600; font-size: 26px; } @media (min-width: 700px) { .dateline h1 { font-size: 30px; } }
.sec-head h2 { font-weight: 600; } .letter h2 { font-weight: 600; } .box h3 { font-weight: 600; } .ogt h2, .closing h2 { font-weight: 600; }
.emo { font-style: normal; display: inline-block; transform: translateY(1px); }
.dateline { border-bottom: 0; padding-bottom: 0; }
.dateline::after { content: ""; display: block; height: 4px; margin-top: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--kids-bg), var(--sports-bg), var(--kindness-bg), var(--culture-bg), var(--politics-bg), var(--science-bg), var(--nature-bg)); }
.sec-head { border-top: 0; padding-top: 0; }
.sec-head::before { content: ""; display: block; width: 100%; height: 4px; border-radius: 2px; margin-bottom: 12px; background: linear-gradient(90deg, var(--accent), var(--kids-bg)); }
.sec-head { flex-wrap: wrap; } .sec-head h2 { flex: 1 1 60%; } .sec-head a.meta { }
.secbar { background: var(--card); }
.secbar .wrap { gap: 8px; min-height: 54px; padding-top: 8px; padding-bottom: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 0 !important; color: var(--ink-2); background: var(--ad); white-space: nowrap; transition: transform .12s, box-shadow .12s; }
.pill i { font-style: normal; font-size: 16px; line-height: 1; }
.pill .n { margin-left: 2px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.65); border-radius: 999px; padding: 1px 7px; color: inherit; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(31,42,36,.14); color: inherit; }
.pill.on { box-shadow: inset 0 0 0 2px currentColor; }
.p-kids { background: var(--kids-bg); color: var(--kids-fg); } .p-politics { background: var(--politics-bg); color: var(--politics-fg); }
.p-nature { background: var(--nature-bg); color: var(--nature-fg); } .p-sports { background: var(--sports-bg); color: var(--sports-fg); }
.p-science { background: var(--science-bg); color: var(--science-fg); } .p-kindness { background: var(--kindness-bg); color: var(--kindness-fg); }
.p-culture { background: var(--culture-bg); color: var(--culture-fg); } .p-progress { background: var(--progress-bg); color: var(--progress-fg); }
.p-dial, .p-home { background: var(--dial-bg); color: var(--dial-fg); } .p-dial .n, .p-home .n { background: rgba(255,255,255,.2); }
.secbar .pill:hover { color: inherit; }
.kick { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; letter-spacing: .02em; text-transform: none; font-weight: 600; }
.kick i { font-style: normal; font-size: 14px; }
.c-kids { color: var(--kids-fg); } .c-politics { color: var(--politics-fg); } .c-nature { color: var(--nature-fg); } .c-sports { color: var(--sports-fg); }
.c-science { color: var(--science-fg); } .c-kindness { color: var(--kindness-fg); } .c-culture { color: var(--culture-fg); } .c-progress { color: var(--progress-fg); }
.t-kids { background: var(--kids-bg); } .t-politics { background: var(--politics-bg); } .t-nature { background: var(--nature-bg); } .t-sports { background: var(--sports-bg); }
.t-science { background: var(--science-bg); } .t-kindness { background: var(--kindness-bg); } .t-culture { background: var(--culture-bg); } .t-progress { background: var(--progress-bg); }
.pic .ph, .thumb .ph { align-items: center; justify-content: center; flex-direction: column; gap: 6px; font-family: var(--display); font-style: normal; font-weight: 600; font-size: 15px; color: rgba(31,42,36,.6); background: none; }
.pic .ph i, .thumb .ph i { font-style: normal; font-size: 40px; line-height: 1; opacity: .9; }
.thumb .ph i { font-size: 22px; } .thumb .ph { font-size: 11px; gap: 2px; }
.lead .big { border-top: 0; padding-top: 0; }
.card { border-top-color: var(--line); }
.letter { border-top: 0; background: #FFF8E8; border-radius: 14px; padding: 18px 18px 16px; border: 1px solid #F1E2BC; }
.letter .kick { color: var(--accent); }
.mood { border-top: 0; }
.mood a { border-radius: 12px; }
.mood a.m-calm { background: var(--nature-bg); border-color: var(--nature-bg); color: var(--nature-fg); }
.mood a.m-lift { background: var(--sports-bg); border-color: var(--sports-bg); color: var(--sports-fg); }
.mood a.m-surprise { background: var(--culture-bg); border-color: var(--culture-bg); color: var(--culture-fg); }
.mood a span { color: inherit; opacity: .8; }
.mood a.on { box-shadow: inset 0 0 0 2px currentColor; border-color: transparent; }
.quotebox { background: var(--science-bg); border-color: var(--science-bg); }
.quotebox .kick { color: var(--science-fg); }
.closing { background: linear-gradient(135deg, #1F2A24, #2E4A3A); }
.ogt { background: #F2F7EE; border-color: #D9E3D3; }
.btn { border-radius: 999px; } .btn2 { border-radius: 999px; }
.box input[type=email] { border-radius: 999px; padding: 0 16px; }
.brand { font-weight: 600; font-size: 26px; }
.nav a { font-family: var(--display); font-weight: 500; font-size: 16px; }
.seg a { font-family: var(--display); font-weight: 500; }
.row .kick { font-size: 12px; }

/* Fix: pills inside the section bar keep their own padding */
.secbar a.pill { padding: 0 12px 0 10px; border-bottom: 0; height: 34px; }
.secbar .wrap { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.secbar .wrap::-webkit-scrollbar { display: none; }
.secbar .dial-link { margin-left: auto; }

/* Rolling banner: today's best from every section. Pure CSS marquee, pauses on hover, static when motion is reduced. */
.ticker { display: flex; align-items: stretch; background: var(--dark); color: var(--dark-text); overflow: hidden; }
.tk-lbl { display: flex; align-items: center; gap: 6px; padding: 0 14px; font-family: var(--display); font-weight: 600; font-size: 14px; background: var(--accent); color: #fff; white-space: nowrap; flex: none; z-index: 1; }
.tk-lbl i { font-style: normal; }
.tk-track { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tk-items { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; animation: tk-roll 70s linear infinite; will-change: transform; }
.ticker:hover .tk-items, .ticker:focus-within .tk-items { animation-play-state: paused; }
.tk-items a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 22px; font-size: 14px; color: var(--dark-text); border-right: 1px solid rgba(255,255,255,.12); }
.tk-items a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tk-items a i { font-style: normal; font-size: 15px; }
.tk-items a b { font-family: var(--display); font-weight: 600; font-size: 12.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.12); }
.tk-items a.c-kids b { background: var(--kids-bg); color: var(--kids-fg); } .tk-items a.c-politics b { background: var(--politics-bg); color: var(--politics-fg); }
.tk-items a.c-nature b { background: var(--nature-bg); color: var(--nature-fg); } .tk-items a.c-sports b { background: var(--sports-bg); color: var(--sports-fg); }
.tk-items a.c-science b { background: var(--science-bg); color: var(--science-fg); } .tk-items a.c-kindness b { background: var(--kindness-bg); color: var(--kindness-fg); }
.tk-items a.c-culture b { background: var(--culture-bg); color: var(--culture-fg); } .tk-items a.c-progress b { background: var(--progress-bg); color: var(--progress-fg); }
.tk-items a.c-lead b { background: #fff; color: var(--ink); }
.tk-items a { color: var(--dark-text); }
@keyframes tk-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-items { animation: none; } .tk-track { overflow-x: auto; mask-image: none; -webkit-mask-image: none; } }
@media (max-width: 699px) { .tk-lbl { padding: 0 10px; font-size: 13px; } .tk-items a { padding: 0 14px; font-size: 13px; } .tk-items { animation-duration: 45s; } }

/* Walk today's ten: one large card at a time, Next walks through the day's list */
.walk { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 24px rgba(31,42,36,.06); }
.walk-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.walk-head .dots { flex: 1 1 140px; min-width: 120px; }
.walk-head .dots i { height: 6px; border-radius: 3px; }
.wcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; outline: none; }
.wcard .wpic { display: block; }
.wcard .pic { aspect-ratio: 16/10; border-radius: 12px; }
.wcard .pad { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wcard h2 { font-size: 26px; line-height: 1.12; }
.wcard h2 a:hover { color: var(--accent); }
.wcard .why { font-size: 16px; }
.walk-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.walk-acts .btn, .walk-acts .btn2 { height: 46px; padding: 0 20px; font-size: 15px; }
.walk-acts button[disabled] { opacity: .45; cursor: default; }
.walk-acts .next { background: var(--accent); }
.wend .pad { padding: 20px 6px; gap: 12px; } .wend h2 { font-size: 28px; }
@media (min-width: 700px) { .wcard { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; } .wcard h2 { font-size: 30px; } .walk { padding: 20px 22px 22px; } }
@media (max-width: 699px) { .walk-acts { position: sticky; bottom: 60px; } .walk-acts .btn, .walk-acts .btn2 { flex: 1; padding: 0 12px; font-size: 14px; } }

/* Masthead counter: real numbers only */
.counter { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.counter b { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--accent); }
.counter .c-item::before { content: "●"; font-size: 7px; color: var(--line-2); margin-right: 8px; vertical-align: middle; }
.counter .c-item:first-child::before { content: "📚"; font-size: 14px; }

/* Ticker: items slide under the label instead of fading at the left edge */
.tk-track { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }

/* Walk deck as a sliding window: current story centred, neighbours peeking at the edges */
.walk { --cw: 74%; padding-left: 0; padding-right: 0; overflow: hidden; }
.walk-head { padding: 0 18px; }
.walk-head .play { margin-left: auto; background: var(--ad); border: 1px solid var(--line-2); border-radius: 999px; height: 30px; padding: 0 12px; font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.walk-head .play[aria-pressed="true"] { background: var(--kids-bg); border-color: var(--kids-bg); color: var(--kids-fg); }
.walk-bar { height: 3px; margin: 0 18px; background: var(--line); border-radius: 2px; overflow: hidden; }
.walk-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; }
.walk-win { overflow: hidden; width: 100%; padding: 6px 0 4px; }
.walk-track { display: flex; gap: 16px; align-items: stretch; transition: transform .55s cubic-bezier(.22,.8,.3,1); will-change: transform; }
.walk-track .wcard { flex: 0 0 var(--cw); width: var(--cw); display: flex; flex-direction: column; gap: 12px; grid-template-columns: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; opacity: .55; transform: scale(.96); transition: opacity .4s, transform .4s; cursor: pointer; }
.walk-track .wcard.cur { opacity: 1; transform: none; cursor: auto; background: var(--card); box-shadow: 0 8px 26px rgba(31,42,36,.08); }
.walk-track .wcard .pic { aspect-ratio: 16/9; border-radius: 10px; }
.walk-track .wcard h2 { font-size: 22px; }
.walk-track .wcard .why { font-size: 15px; }
.walk-track .wcard .pad { padding: 2px 4px 4px; }
.walk-track .wcard:not(.cur) .walk-acts { visibility: hidden; }
.walk-track .wend { justify-content: center; }
.walk-track .wend .pad { padding: 18px 10px; }
.walk-track .wend h2 { font-size: 26px; }
@media (min-width: 700px) { .walk-track .wcard h2 { font-size: 24px; } }
@media (min-width: 960px) { .walk { --cw: 70%; } }
@media (max-width: 699px) { .walk { --cw: 86%; } .walk-head { padding: 0 14px; } .walk-bar { margin: 0 14px; } .walk-acts { position: static; } .walk-track .wcard { padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .walk-track, .walk-track .wcard { transition: none; } }

/* Story page: Before / Now sits right under the title and picture */
.bn-top { gap: 12px; }
.bn-top div { padding: 14px 16px; border-radius: 12px; font-size: 16px; line-height: 1.5; gap: 6px; }
.bn-top .before { background: var(--ad); border: 1px solid var(--line-2); }
.bn-top .now { background: var(--nature-bg); border: 1px solid #C5DDBF; }
.bn-top span.l { font-family: var(--display); font-size: 12.5px; letter-spacing: .04em; font-weight: 600; }
.bn-top .now span.l { color: var(--nature-fg); }
@media (max-width: 599px) { .bn-top { grid-template-columns: 1fr; } }

/* Feeling check-in */
.feelbox { background: #FFF4F6; border-color: #F3D6DE; gap: 10px; }
.feelbox .kick { color: var(--kindness-fg); }
.feel-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.feel-opts button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; color: var(--ink-2); font-size: 11px; font-weight: 700; line-height: 1.15; text-align: center; }
.feel-opts button i { font-style: normal; font-size: 24px; line-height: 1; }
.feel-opts button:hover { border-color: var(--kindness-fg); }
.feel-opts button[aria-pressed="true"] { background: var(--kindness-bg); border-color: var(--kindness-fg); color: var(--kindness-fg); box-shadow: inset 0 0 0 1px var(--kindness-fg); }
.feel-tally { font-weight: 700; color: var(--ink-2); }
.feel-week { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.feel-week b { font-size: 12px; color: var(--muted); margin-right: 4px; font-family: var(--display); font-weight: 600; }
.feel-week span { width: 22px; text-align: center; }
.feel-week b { white-space: nowrap; }

/* Account */
.me-link { font-family: var(--display); font-weight: 600; border-radius: 999px; padding: 0 14px; }
@media (max-width: 699px) { .me-link { display: none; } }
.feel-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.feel-grid .fd { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: 20px; color: var(--faint); }
.feel-grid .fd.calmer, .feel-grid .fd.better { background: var(--nature-bg); border-color: #C5DDBF; }
.feel-grid .fd.same { background: var(--ad); } .feel-grid .fd.meh { background: var(--kindness-bg); }

/* Feeling check-in as the last slide of the walk */
.feel-inline { display: flex; flex-direction: column; gap: 10px; }
.feel-inline .feel-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.feel-inline .feel-opts button { padding: 12px 6px; font-size: 13px; border-radius: 14px; }
.feel-inline .feel-opts button i { font-size: 32px; }
.walk-track .wend { justify-content: flex-start; }
.walk-track .wend .pad { padding: 10px 10px 14px; }
.walk-track .wend h2 { font-size: 26px; }

/* ---- ♥ follow a story + threads (v15) ---- */
.like { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 15px; border: 1px solid var(--line-2); cursor: pointer; font-family: inherit; }
.like i { font-style: normal; font-size: 19px; line-height: 1; color: #C2412E; transition: transform .15s; }
.like:hover i { transform: scale(1.15); }
.like.on { background: #FBE9E6; border-color: #E9B8B0; color: #8A2E22; }
.like.sm { height: 46px; padding: 0 14px; }
.like.sm span { display: none; }
.like[disabled] { opacity: .6; }
.walk-acts .like.sm { flex: 0 0 auto; }
.thread h2 { margin-bottom: 4px; }
.tl { list-style: none; margin: 10px 0 0; padding: 0 0 0 22px; border-left: 3px solid var(--accent); display: flex; flex-direction: column; gap: 16px; }
.tl li { position: relative; display: flex; flex-direction: column; gap: 3px; }
.tl li::before { content: ""; position: absolute; left: -31px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.tl li.here::before { background: var(--accent); }
.tl .d { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.tl a, .tl strong { font-family: var(--serif); font-size: 18px; line-height: 1.3; font-weight: 700; }
.tl .note { color: var(--muted); font-size: 15px; }
.threads, .foryou { display: flex; flex-direction: column; gap: 12px; }
.threads h2, .foryou h2 { font-family: var(--display); font-size: 26px; display: flex; gap: 8px; align-items: center; }
.threads h2 .emo { color: #C2412E; }
.tlist { display: flex; flex-direction: column; gap: 12px; }
.trow { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.trow.fresh { border-color: #E9B8B0; box-shadow: 0 0 0 3px #FBE9E6; }
.trow .thumb { flex: 0 0 110px; height: 84px; border-radius: var(--r-sm); overflow: hidden; }
.trow .txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.trow .top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.trow h3 { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.trow .latest { font-size: 15px; line-height: 1.4; }
.trow .latest .d { font-weight: 700; color: var(--accent); font-size: 12px; text-transform: uppercase; margin-right: 6px; }
.trow .latest a { font-weight: 700; }
.trow .acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 2px; }
.trow .acts .like.sm { height: 36px; }
.badge { background: #C2412E; color: #fff; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
@media (max-width: 699px) { .trow .thumb { flex-basis: 84px; height: 70px; } .foryou .grid { grid-template-columns: 1fr !important; } }

/* ---- teach the heart + similar stories (v16) ---- */
.hhint { background: #FBE9E6; border: 1px solid #E9B8B0; color: #8A2E22; border-radius: var(--r-sm); padding: 8px 12px; font-size: 14px; line-height: 1.4; }
.hhint b { color: #C2412E; }
.hlist { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.hchips { display: flex; flex-wrap: wrap; gap: 8px; }
.hchip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 3px; font-size: 13px; font-weight: 700; max-width: 100%; }
.hchip .like.sm { height: 30px; padding: 0 8px; border: 0; background: transparent; }
.hchip .like.sm.on { background: #FBE9E6; }
.hchip .like i { font-size: 16px; }
.hchip a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nudge { border-color: #E9B8B0; background: #FFF7F5; margin-top: 14px; }
.nudge .kick { color: #8A2E22; }
.since { background: #FFF7F5; border: 1px solid #E9B8B0; border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.since h2 { font-family: var(--display); font-size: 22px; display: flex; gap: 8px; align-items: center; }
.since ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.since li { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.since li b { font-family: var(--serif); font-size: 17px; }
.since .note { color: var(--muted); font-size: 14px; }
.bgroup { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.bwhy { font-weight: 700; font-size: 14px; color: #8A2E22; }
.bwhy a { text-decoration: underline; text-decoration-color: #E9B8B0; }
.brow { position: relative; }
.brow .row { padding-bottom: 8px; }
.brow .bacts { position: absolute; right: 6px; bottom: 6px; }
.brow .bacts .like.sm { height: 32px; padding: 0 10px; }
@media (max-width: 699px) { .hchips { flex-direction: column; } }
