/* TODAY (v35) — the Conscious Parenting home, lifted from Classical Mind's index
   (.td-* block, v71-v81) with Hero Tales' premium top (round ? and shuffle, no
   banner). Light values in the fallback slot, dark through [data-theme="dark"]. */
.daily-feed{ margin-top:6px; }
.td-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:.6em; margin:10px 0 14px; }
.td-date{ font:800 .74rem/1 -apple-system,system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:var(--dk-mute,#7a7488); }
.td-title{ margin:.15em 0 0; font-weight:800; font-size:2.1rem; line-height:1; letter-spacing:-.03em; color:var(--ink,#2A2038); }
.td-tools{ display:flex; gap:10px; }
.td-round{ position:relative; width:42px; height:42px; padding:0; border-radius:50%; cursor:pointer; display:grid; place-items:center;
  font:800 18px/1 -apple-system,system-ui,sans-serif; color:#C6811A; background:var(--paper-card,#fff); border:1.5px solid var(--dk-rule,#EADFC6);
  box-shadow:0 2px 8px rgba(60,45,20,.08); transition:transform .25s cubic-bezier(0.34,1.56,0.64,1); }
.td-round::before{ display:none; }
.td-round:active{ transform:scale(.9) rotate(-20deg); }
.td-dot{ position:absolute; top:1px; right:1px; width:10px; height:10px; border-radius:50%; background:#FF5E8E; border:2px solid #fff; }

.td-week{ position:relative; display:grid; grid-template-columns:1fr auto; gap:.15em .6em; margin:0 0 14px; padding:.8em 1em; border-radius:16px; text-decoration:none; color:var(--ink,#2A2038); background:var(--paper-card,#fff); box-shadow:0 2px 4px rgba(60,45,20,.07),0 10px 24px rgba(60,45,20,.08); }
.td-week::before{ content:""; position:absolute; inset:0; border-radius:inherit; padding:2px; background:linear-gradient(135deg,var(--wc),#E7A83C); -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none; }
.td-wk-k{ grid-column:1; font:800 .66rem/1 -apple-system,system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:var(--wc); }
.td-wk-t{ grid-column:1; font-weight:800; font-size:1.06em; letter-spacing:-.01em; }
.td-wk-l{ grid-column:1; font-family:Georgia,'Times New Roman',serif; font-size:.92em; color:var(--dk-mute,#5d566a); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.td-wk-go{ grid-column:2; grid-row:1 / span 3; align-self:center; font-weight:800; color:var(--wc); font-size:1.2em; }

.td-hero, .td-card{ position:relative; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0; text-align:left; border:0; padding:0; cursor:pointer;
  background:var(--paper-card,#fff); border-radius:22px; overflow:hidden; font:inherit; font-size:1rem; font-weight:400; letter-spacing:normal; color:var(--ink,#2A2038);
  box-shadow:0 2px 6px rgba(60,45,20,.08), 0 12px 28px color-mix(in srgb, var(--tc) 22%, transparent); transition:transform .25s cubic-bezier(0.34,1.56,0.64,1); text-decoration:none; }
.td-hero::before, .td-card::before{ content:""; position:absolute; inset:0; border-radius:inherit; padding:2.5px; z-index:3; pointer-events:none; background:linear-gradient(135deg,var(--tc),var(--tcd)); -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; }
.td-hero:active, .td-card:active{ transform:scale(.97); }
.td-hero{ width:100%; margin:0 0 18px; }
.td-pic{ position:relative; display:block; width:100%; aspect-ratio:16/11; background:linear-gradient(150deg,var(--tc),var(--tcd)); overflow:hidden; }
.td-card .td-pic{ aspect-ratio:1/1; }
.td-pic img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; }
.td-kick{ position:absolute; top:10px; left:10px; z-index:2; padding:.45em .75em; border-radius:999px; font:800 .66rem/1 -apple-system,system-ui,sans-serif; letter-spacing:.08em; text-transform:uppercase; color:var(--tcd); background:rgba(255,255,255,.94); box-shadow:0 2px 8px rgba(0,0,0,.15); }
.td-hero .td-kick{ color:#7A4E00; background:linear-gradient(135deg,#FFE57A,#FFCE3D); font-size:.74rem; }
.td-another{ position:absolute; top:10px; right:10px; z-index:4; width:40px; height:40px; padding:0; border-radius:50%; border:0; cursor:pointer; display:grid; place-items:center;
  color:#4d4658; background:rgba(255,255,255,.88); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); box-shadow:0 3px 12px rgba(20,35,60,.2); transition:transform .25s cubic-bezier(0.34,1.56,0.64,1); }
.td-another::before{ display:none; }
.td-another:active{ transform:scale(.9) rotate(-30deg); }
.td-body{ display:flex; flex-direction:column; gap:.35em; padding:.85em 1em 1em; }
.td-card .td-body{ flex:1; }
.td-name{ font-weight:800; font-size:1.05em; line-height:1.15; letter-spacing:-.015em; }
.td-card .td-name{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.td-teaser{ font-size:.86em; line-height:1.4; color:var(--dk-mute,#7a7488); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.td-q{ font-family:Georgia,'Times New Roman',serif; font-size:.98em; line-height:1.38; color:var(--ink,#2A2038); display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.td-who{ font:800 .72rem/1.2 -apple-system,system-ui,sans-serif; letter-spacing:.06em; text-transform:uppercase; color:var(--tcd); }
.td-hero .td-quote{ font-family:Georgia,'Times New Roman',serif; font-weight:600; font-size:1.36em; line-height:1.3; letter-spacing:-.01em; color:var(--ink,#2A2038); }
.td-hero .td-long{ font-size:1.12em; display:-webkit-box; -webkit-line-clamp:6; -webkit-box-orient:vertical; overflow:hidden; }
.td-hero .td-who{ font-size:.8rem; }
.td-read{ margin-top:auto; padding-top:.35em; font:800 .78rem/1 -apple-system,system-ui,sans-serif; color:var(--tcd); }
.td-go{ align-self:flex-start; margin-top:.4em; padding:.6em 1.1em; border-radius:999px; font:800 .9rem/1 -apple-system,system-ui,sans-serif; color:#fff; background:linear-gradient(135deg,var(--tc),var(--tcd)); }
.td-tick{ position:absolute; top:10px; right:10px; z-index:2; width:30px; height:30px; display:none; place-items:center; border-radius:50%; color:#fff; background:linear-gradient(135deg,#F4B82A,#D99A0B); box-shadow:0 2px 8px rgba(0,0,0,.2); }
.td-card.is-got .td-tick{ display:grid; }
.td-card.is-got::before{ background:linear-gradient(135deg,#F4B82A,#D99A0B); }
.td-row-h{ display:flex; justify-content:space-between; align-items:baseline; margin:0 2px 8px; font-weight:800; font-size:1.05em; color:var(--ink,#2A2038); }
.td-swipe{ font:700 .78rem -apple-system,system-ui,sans-serif; color:var(--dk-mute,#7a7488); }
.td-row{ display:grid; grid-auto-flow:column; grid-auto-columns:64%; gap:.8em; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:16px; margin:0 -16px 18px; padding:.2em 16px 1em; scrollbar-width:none; }
.td-row::-webkit-scrollbar{ display:none; }
.td-card{ scroll-snap-align:start; }
#todayGrid.td-in .td-hero, #todayGrid.td-in .td-card{ animation:tdIn .45s cubic-bezier(0.34,1.56,0.64,1) both; }
#todayGrid.td-in .td-card:nth-child(2){ animation-delay:.05s } #todayGrid.td-in .td-card:nth-child(3){ animation-delay:.1s }
@keyframes tdIn{ from{ transform:translateY(8px) scale(.98); opacity:.3 } to{ transform:none; opacity:1 } }
@media (min-width:700px){ .td-row{ grid-auto-columns:34%; } }

/* Home sections below Today: painted swipe rows, a new pick each period */
.hs{ margin:26px 0 8px; }
.hs-h{ display:flex; justify-content:space-between; align-items:baseline; gap:.6em; }
.hs-h h2{ margin:0; font-size:1.5rem; font-weight:800; letter-spacing:-.025em; color:var(--ink,#2A2038); }
.hs-h a{ font:800 .82rem -apple-system,system-ui,sans-serif; color:#C6811A; text-decoration:none; white-space:nowrap; }
.hs-sub{ margin:.25em 0 .8em; font-size:.95rem; color:var(--dk-mute,#7a7488); line-height:1.4; }
.hs .fresh{ margin-top:.6em; }
.hs .tp-tiles{ margin-top:.6em; }
a.tp-tile{ text-decoration:none; }

/* Centred pop-up for a daily card */
.hp-over{ position:fixed; inset:0; z-index:80; background:rgba(30,22,15,.55); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center;
  padding:max(64px,calc(env(safe-area-inset-top) + 40px)) 32px max(64px,calc(env(safe-area-inset-bottom) + 40px)); opacity:0; pointer-events:none; transition:opacity .2s ease; }
.hp-over.open{ opacity:1; pointer-events:auto; }
.hp-card{ position:relative; width:100%; max-width:440px; max-height:100%; overflow-y:auto; -webkit-overflow-scrolling:touch; background:var(--paper-card,#fff); border-radius:22px; box-shadow:0 24px 64px rgba(0,0,0,.38);
  transform:scale(.9); opacity:0; transition:transform .26s cubic-bezier(0.34,1.56,0.64,1), opacity .18s ease; }
.hp-over.open .hp-card{ transform:scale(1); opacity:1; }
.hp-img{ display:block; width:100%; aspect-ratio:16/11; object-fit:cover; }
.hp-body{ padding:18px 22px 24px; color:var(--dk-soft,#3a3448); font-size:16px; line-height:1.6; --mc-ink:var(--mcd,#8A5A0F); }
[data-theme="dark"] .hp-body{ --mc-ink:color-mix(in srgb, var(--mc,#C6811A) 58%, #FFFFFF); }
.hp-k{ display:block; font:800 11px/1 -apple-system,system-ui,sans-serif; letter-spacing:.1em; text-transform:uppercase; color:var(--mc-ink); }
.hp-t{ margin:.45em 0 .6em; font-weight:800; font-size:clamp(21px,5.4vw,26px); letter-spacing:-.02em; line-height:1.15; color:var(--ink,#2A2038); }
.hp-words{ font-family:Georgia,'Times New Roman',serif; font-size:1.2em; line-height:1.55; color:var(--ink,#2A2038); margin:0 0 .6em; }
.hp-note{ margin:1em 0 0; padding-top:.9em; border-top:1px solid var(--dk-rule,#EEE7DA); font-size:.92em; color:var(--dk-mute,#7a7488); }
.hp-note q{ font-family:Georgia,serif; font-style:italic; }
.hp-acts{ display:flex; flex-wrap:wrap; gap:.55em; margin-top:1em; }
.hp-btn{ display:inline-flex; align-items:center; gap:.45em; cursor:pointer; font:800 14px -apple-system,system-ui,sans-serif; color:var(--mc-ink); background:var(--paper-card,#fff); border:1.6px solid currentColor; padding:.55em 1.05em; border-radius:999px; text-decoration:none; }
.hp-btn::before{ display:none; }
.hp-btn.fill{ color:#fff; border-color:transparent; background:linear-gradient(140deg,var(--mc,#C6811A),var(--mcd,#8A5A0F)); }
.hp-btn.on{ color:#7A4E00; border-color:transparent; background:linear-gradient(135deg,#FFE57A,#FFCE3D); }
.hp-unsure{ margin:.8em 0 0; padding:.7em .9em; border-radius:12px; background:var(--dk-tint,#FBF4EA); font-size:.9em; }

/* About (the old "New here?"), now behind the ? */
.hp-body .hp-about p{ margin:0 0 .75em; }
.hp-body .hp-about b{ color:var(--ink,#2A2038); }

[data-theme="dark"] .td-hero, [data-theme="dark"] .td-card, [data-theme="dark"] .td-week, [data-theme="dark"] .td-round{ background:#1E1A28; color:#F2EDE4; }
[data-theme="dark"] .td-hero .td-quote, [data-theme="dark"] .td-title, [data-theme="dark"] .td-row-h, [data-theme="dark"] .hs-h h2,
[data-theme="dark"] .td-q, [data-theme="dark"] .hp-t, [data-theme="dark"] .hp-words{ color:#F2EDE4; }
[data-theme="dark"] .td-round{ border-color:#3a3346; color:#F2C35E; }
[data-theme="dark"] .td-dot{ border-color:#1E1A28; }
[data-theme="dark"] .hs-h a{ color:#F2C35E; }
[data-theme="dark"] .hp-btn{ background:#1E1A28; }
[data-theme="dark"] .td-another{ background:rgba(30,26,40,.85); color:#F2EDE4; }

/* Page tops (v36, pages.js) */
.hp-banner{ margin:-18px -16px 0; }
.hp-fresh{ margin:1.1em 0 1.3em; }
.hp-rowblock{ margin:0 0 1.2em; }
.hp-rowblock .td-row{ margin-bottom:6px; }
.hp-entry{ padding:.9em 0 .6em; border-top:1px solid var(--dk-rule,#EEE7DA); }
.hp-entry:first-of-type{ border-top:0; }
.hp-entry .hp-words{ font-size:1.08em; margin:.35em 0 .5em; }
.hp-entry-f{ display:flex; justify-content:space-between; align-items:center; gap:.6em; font:700 .8rem/1.3 -apple-system,system-ui,sans-serif; color:var(--dk-mute,#7a7488); }
.hp-entry-f .tp-got{ flex:none; padding:.6em 1em; font-size:.88rem; }
.hp-entry-f{ flex-wrap:wrap; }
.hp-entry-f > span{ flex:1 1 100%; }
.hp-entry-f .kp-btn{ padding:.6em 1em; font-size:.88rem; }
.tp-sheet-body .wayh{ display:block; }
[data-theme="dark"] .tp-idea, [data-theme="dark"] .tp-sheet-card{ color:#F2EDE4; }
@media (min-width:700px){ .hp-banner{ margin:0; } }
