/* C1 plus: the improvement ideas, in the Sticker board style. Each idea is wrapped in [data-idea]. */
.idea.off { display: none !important; }

/* 1. Today bar: sits in the page under the menu at every width, and its dot holds still */
.todaybar { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 14px auto 0;
  background: var(--card); border: 2px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); padding: 6px 8px 6px 14px;
  font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.todaybar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--go); flex-shrink: 0; }
.livecard .on::before { animation: none; }
.todaybar b { font-family: var(--display); font-size: 15px; }
.todaybar .ticks { display: flex; gap: 4px; }
.todaybar .tick { border: 1.5px solid var(--line); border-radius: 6px; padding: 0 5px; font-size: 11px; }
.todaybar .tick.no { opacity: .4; text-decoration: line-through; }
.todaybar .ago { color: var(--muted); }

/* 2. Pace */
.pace { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.pc { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3); }
.pc h4 { font-size: 17px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.verdict { font-family: var(--mono); font-size: 11px; border: 1.5px solid var(--line); border-radius: 99px; padding: 0 8px; white-space: nowrap; }
.verdict.ahead { background: var(--li); } .verdict.behind { background: var(--yt); } .verdict.on { background: var(--lx); }
.pc svg { width: 100%; height: 70px; margin-top: var(--s2); overflow: visible; }
.pc .plan { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.pc .done { fill: none; stroke: var(--pop); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s ease .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pc .lg { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; }

/* 3. Tappable calendar days */
.weeks .cell.past { cursor: pointer; transition: transform .2s cubic-bezier(.3, 1.8, .5, 1), background .2s; }
.weeks .cell.past:hover { transform: scale(1.08) rotate(-2deg); background: color-mix(in srgb, var(--lx) 50%, transparent); }
body.no-3 .weeks .cell.past { cursor: default; } body.no-3 .weeks .cell.past:hover { transform: none; background: none; }

/* 4. Milestones */
.miles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.ms { border: 2px dashed var(--line); border-radius: var(--r); padding: var(--s3); position: relative; }
.ms .goal-n { font-weight: 800; font-size: 26px; line-height: 1; margin: 4px 0; }
.ms .bar { height: 12px; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--card); margin-top: var(--s2); }
.ms .bar i { display: block; height: 100%; background: var(--pop); width: 0; transition: width 1.2s cubic-bezier(.5, 0, .2, 1) .2s; }
.ms .left { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.ms .stamp { position: absolute; top: -12px; right: 10px; transform: rotate(8deg); background: var(--card); border: 2px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 12px; font-weight: 800; }

/* 5. Share card */
.share-btn { display: inline-block; margin: var(--s4) 0 0 var(--s3); padding: 11px 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--line); background: var(--card); }
.share-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.sharecanvas { width: 100%; height: auto; border: 2px solid var(--line); border-radius: 12px; display: block; margin: var(--s3) 0; }
.sheet .actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.sheet .actions a, .sheet .actions button { font: 600 14px var(--display); background: var(--pop); color: var(--on-pop); border: 2px solid var(--line); border-radius: 99px; padding: 8px 16px; box-shadow: 3px 3px 0 var(--line); }
.sheet .actions .ghost { background: var(--card); color: var(--text); }

/* 6. Latest video */
.video { display: grid; grid-template-columns: 300px 1fr; gap: var(--s4); align-items: center; padding: var(--s3); }
.video .thumb { position: relative; display: block; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.video:hover img { transform: scale(1.05); }
.video .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: var(--pop); color: var(--on-pop); border: 2px solid var(--line); display: grid; place-content: center; font-size: 20px; box-shadow: 3px 3px 0 var(--line); }
.video .vt b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.video .vt span { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* 7. RSS link */
.rss { font-family: var(--mono); background: var(--rd); border: 1.5px solid var(--line); border-radius: 6px; padding: 0 6px; color: var(--text); }

/* 8. About and follow */
.about { display: grid; grid-template-columns: 150px 1fr; gap: var(--s4); align-items: center; margin-top: var(--s5); }
.about img { width: 150px; height: 150px; box-sizing: border-box; padding: 14px 14px 10px; object-fit: contain; border-radius: 50%; border: 2px solid var(--line); background: var(--yt); box-shadow: var(--shadow); }
.about h3 { margin: 0 0 4px; }
.about p { color: var(--muted); max-width: 60ch; }
.follow { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.follow a { font-weight: 600; font-size: 14px; border: 2px solid var(--line); border-radius: 99px; padding: 4px 12px; box-shadow: 2px 2px 0 var(--line); transition: transform .15s, box-shadow .15s; }
.follow a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--line); }
.follow small { font-family: var(--mono); font-weight: 400; font-size: 11px; margin-left: 4px; }

/* 9. Link preview */
.og { max-width: 560px; padding: 0; overflow: hidden; }
.og .img { aspect-ratio: 1.91 / 1; background: var(--bg); border-bottom: 2px solid var(--line); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; padding: 6%; gap: 4%;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 25%, transparent) 1px, transparent 1px); background-size: 14px 14px; }
.og .img .h { font-weight: 800; font-size: clamp(18px, 4vw, 30px); line-height: 1; letter-spacing: -.03em; }
.og .img .h mark { background: var(--yt); color: inherit; border-radius: 6px; padding: 0 .1em; }
.og .img .b { justify-self: center; width: 92px; height: 92px; border-radius: 50%; background: var(--pop); color: var(--on-pop); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line); display: grid; place-content: center; text-align: center; transform: rotate(-8deg); }
.og .img .b b { font-size: 36px; line-height: .9; } .og .img .b span { font-family: var(--mono); font-size: 10px; }
.og .meta { padding: 10px 14px; font-size: 14px; }
.og .meta small { display: block; font-family: var(--mono); color: var(--muted); font-size: 11px; }

/* 10. Challenge pages, and the shared sheet */
.others .other.link { cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 20; background: color-mix(in srgb, var(--line) 45%, transparent); display: grid; place-items: center; padding: var(--s3); }
.sheet[hidden] { display: none; }
.sheet-card { width: min(560px, 100%); max-height: 88vh; overflow: auto; position: relative; animation: stick .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stick { from { transform: translateY(-30px) rotate(-4deg) scale(1.06); opacity: 0; } }
.sheet .x { position: absolute; top: 10px; right: 12px; font-size: 22px; line-height: 1; padding: 2px 10px; }
.sheet h4 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: var(--s2) 0; padding-right: 40px; }
.sheet .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--s2); margin: var(--s3) 0; }
.sheet .kv div { border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.sheet .kv b { display: block; font-size: 24px; font-weight: 800; }
.sheet .kv span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.sheet .note2 { background: var(--li); border: 2px solid var(--line); border-radius: 12px; padding: var(--s3); transform: rotate(-.6deg); }
.countdown { font-weight: 800; font-size: 44px; letter-spacing: -.02em; }

/* The demo's idea switches */
.ideas-panel { position: fixed; right: 14px; top: 84px; z-index: 9; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ideas-panel > button { background: var(--rd); box-shadow: 3px 3px 0 var(--line); }
.ideas-list { display: none; background: var(--card); border: 2px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 14px; max-height: 70vh; overflow: auto; }
.ideas-panel.open .ideas-list { display: grid; gap: 4px; }
.ideas-list label { display: flex; gap: 8px; align-items: center; cursor: pointer; white-space: nowrap; }
.ideas-list a { font-family: var(--mono); font-size: 12px; text-decoration: underline; margin-top: 6px; }

@media (max-width: 760px) {
  .pace { grid-template-columns: 1fr; } .miles { grid-template-columns: repeat(2, 1fr); }
  .video { grid-template-columns: 1fr; } .about { grid-template-columns: 1fr; justify-items: start; }
  .about img { width: 110px; height: 110px; }
  .share-btn { margin: var(--s3) 0 0; }
  /* Phone: the today bar joins the page flow under the menu, and the live dots hold still */
  .todaybar { font-size: 12px; gap: 6px; }
  .todaybar .ago { display: none; }
  .ideas-panel { top: auto; bottom: 74px; }
}

/* Light/dark switch: a sun and a moon, the knob slides to the one in use */
.theme-switch { border-color: var(--text) !important; position: relative; width: 62px; height: 32px; padding: 0 7px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: space-between; flex-shrink: 0; background: var(--card); }
.theme-switch svg { width: 15px; height: 15px; position: relative; z-index: 1; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; transition: opacity .25s; }
.theme-switch .sun circle { fill: #ffc233; stroke: var(--text); }
.theme-switch .moon path { fill: #c9b8ff; stroke: var(--text); }
.theme-switch .knob { position: absolute; top: 3px; left: 3.5px; /* centre on the 15px icon: 7px padding + 7.5px - 11px */ width: 22px; height: 22px; border-radius: 50%; background: var(--rd); border: 2px solid var(--line);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .25s; }
:root[data-theme="dark"] .theme-switch .knob { background: var(--x); transform: translateX(29px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-switch .knob { background: var(--x); transform: translateX(29px); } }
.theme-switch:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }

/* Link to a challenge's own page */
.own-page { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 13px; font-weight: 500; border: 2px solid var(--line); border-radius: 99px; padding: 2px 10px; background: var(--card); box-shadow: 2px 2px 0 var(--line); }
.own-page:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.other .own-page { display: table; margin-top: 12px; }

/* Hero spacing: room between the bars and the headline, and highlight boxes that do not touch */
.hero h1 { line-height: 1.2; }
.hero h1 mark, .hero h1 .u { display: inline-block; line-height: 1.04; padding: .02em .14em .08em; }
.hero { padding-top: 72px; }
@media (max-width: 760px) { .hero { padding-top: 48px; } .hero h1 { line-height: 1.24; } }

/* Today bar (look A, Progress, chosen 2026-10-08) */
.todaybar.look-A .tb-sum { color: var(--muted); }
.tb-bar { width: 90px; height: 8px; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--bg); flex-shrink: 0; }
.tb-bar i { display: block; height: 100%; background: var(--go); }
@media (max-width: 760px) { .tb-bar { width: 60px; } }
.tb-bar { border-color: color-mix(in srgb, var(--text) 55%, transparent); }
