/* Layout: one search box over a day-grouped feed; filters in a side rail on wide screens, chips on phones. */
:root {
  --bg: #f5f6fa; --surface: #ffffff; --ink: #141821; --muted: #5b6273; --line: #e3e6ee;
  --sun: #f5b400; --sun-ink: #231a00; --accent: #2449d8; --accent-soft: #e8edff; --saved: #d6336c;
  --shadow: 0 1px 2px rgba(20,24,33,.06), 0 8px 24px rgba(20,24,33,.06);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0d0f14; --surface: #161a22; --ink: #eef0f6; --muted: #9aa2b4; --line: #262b36;
  --sun: #ffc533; --sun-ink: #1d1500; --accent: #8fa6ff; --accent-soft: #1c2440; --saved: #ff6b9a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0d0f14; --surface: #161a22; --ink: #eef0f6; --muted: #9aa2b4; --line: #262b36;
  --sun: #ffc533; --sun-ink: #1d1500; --accent: #8fa6ff; --accent-soft: #1c2440; --saved: #ff6b9a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--body); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1160px; margin: 0 auto; }
header.top { display: flex; align-items: center; justify-content: space-between; padding-block: 14px 6px; }
.brand { font: 800 20px/1 var(--display); letter-spacing: -.02em; display: flex; gap: 8px; align-items: baseline; }
.brand small { font: 600 12px var(--body); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.savedbtn { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.savedbtn b { color: var(--saved); }
.hero { padding-block: 10px 4px; }
@media (min-width: 1000px) { .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 40px; align-items: end; } .hero h1 { grid-row: span 3; margin: 0; } .hero .quick { grid-column: 1 / -1; } }
.hero h1 { font: 800 clamp(32px, 5.6vw, 58px)/1 var(--display); letter-spacing: -.035em; margin: 0 0 18px; text-wrap: balance; max-width: 14ch; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sun) 62% 92%, transparent 92%); padding: 0 .04em; }
.search { position: relative; max-width: 720px; }
.search input { width: 100%; min-height: 58px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); padding: 0 54px 0 50px; font-size: 18px; box-shadow: var(--shadow); }
.search input:focus { border-color: var(--accent); outline: none; }
.search .ic { position: absolute; left: 16px; top: 19px; width: 22px; height: 22px; color: var(--muted); }
.search .clear { position: absolute; right: 8px; top: 7px; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; color: var(--muted); }
.understood { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 34px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.understood .tok { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.examples { display: flex; gap: 8px; margin-top: 2px; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding-inline: 4px; }
.examples::-webkit-scrollbar { display: none; }
.examples button { flex: none; white-space: nowrap; border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; min-height: 40px; font-size: 14px; }
.examples button:hover { color: var(--ink); border-color: var(--muted); }
.quick { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px 4px; scrollbar-width: none; margin-inline: -4px; padding-inline: 4px; }
.quick::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-weight: 500; opacity: .6; font-variant-numeric: tabular-nums; }
section.feat { margin-block: 22px 8px; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sechead h2 { font: 700 22px/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.sechead p { margin: 0; color: var(--muted); font-size: 14px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.fcard { scroll-snap-align: start; position: relative; border-radius: 20px; overflow: hidden; min-height: 230px; color: #fff; border: 0; padding: 0; text-align: left; background: #222; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow); }
.fcard .cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.fcard .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72)); }
.fcard .body { position: relative; padding: 16px; display: grid; gap: 6px; }
.fcard .when { justify-self: start; background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 6px; }
.fcard h3 { margin: 0; font: 700 21px/1.12 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.fcard .where { font-size: 14px; opacity: .9; display: flex; gap: 5px; align-items: center; }
.layout { display: grid; gap: 24px; margin-top: 18px; }
.layout > * { min-width: 0; }
@media (min-width: 1000px) { .layout { grid-template-columns: 260px minmax(0, 1fr); } }
aside.filters { display: none; }
@media (min-width: 1000px) { aside.filters { display: block; position: sticky; top: 12px; align-self: start; max-height: calc(100vh - 24px); overflow: auto; padding-right: 4px; } .mobile-only { display: none !important; } }
.fgroup { margin-bottom: 22px; }
.fgroup h3 { font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.fopt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; border: 0; background: transparent; text-align: left; padding: 6px 10px; border-radius: 10px; font-size: 15px; }
.fopt:hover { background: var(--surface); }
.fopt[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.fopt .n { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.days { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.days::-webkit-scrollbar { display: none; }
.dbtn { flex: none; width: 54px; min-height: 62px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; padding: 6px 0; line-height: 1.05; }
.dbtn .w { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.dbtn .d { font: 700 20px var(--display); }
.dbtn .c { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dbtn.has { border-color: color-mix(in srgb, var(--sun) 70%, var(--line)); }
.dbtn.empty { opacity: .45; }
.dbtn[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dbtn[aria-current="true"] .w, .dbtn[aria-current="true"] .c { color: inherit; opacity: .75; }
.count { color: var(--muted); font-size: 14px; margin: 14px 2px 4px; }
.group h2 { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 83px); z-index: 3; background: var(--bg); margin: 0; padding: 18px 2px 8px; font: 700 19px/1.1 var(--display); display: flex; justify-content: space-between; align-items: baseline; }
.group h2 span { font: 500 13px var(--body); color: var(--muted); }
.list { display: grid; gap: 10px; }
.card { display: grid; grid-template-columns: 62px minmax(0, 1fr) 44px; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px 12px 12px; text-align: left; width: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.card .t { background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 14px; border-radius: 8px; text-align: center; padding: 5px 0; font-variant-numeric: tabular-nums; }
.card .t.all { background: var(--accent-soft); color: var(--accent); font-size: 12px; padding: 6px 0; }
.card .main { min-width: 0; border: 0; background: none; padding: 0; text-align: left; display: grid; gap: 3px; }
.card h3 { margin: 0; font: 650 17px/1.25 var(--body); font-weight: 650; overflow-wrap: anywhere; }
.card .meta { color: var(--muted); font-size: 14px; display: flex; gap: 4px 12px; min-width: 0; }
.card .meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.card .meta > span:last-child { flex: none; }
.card .meta span { display: inline-flex; gap: 4px; align-items: center; }
.card .meta .ic { width: 15px; height: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; max-height: 26px; overflow: hidden; }
.tag { font-size: 12.5px; font-weight: 600; border-radius: 6px; padding: 2px 8px; background: var(--bg); color: var(--muted); }
.tag.big { background: color-mix(in srgb, var(--sun) 28%, transparent); color: var(--ink); }
.heart { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.heart .ic { width: 22px; height: 22px; }
.heart[aria-pressed="true"] { color: var(--saved); }
.heart[aria-pressed="true"] .ic { fill: currentColor; }
.more { margin: 16px auto; display: block; min-height: 48px; padding: 0 22px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; padding: 28px 22px; text-align: center; margin-top: 18px; }
.empty-state h3 { font: 700 20px var(--display); margin: 0 0 6px; }
.empty-state p { color: var(--muted); margin: 0 0 14px; }
.empty-state .sugs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
footer { color: var(--muted); font-size: 13px; padding-block: 40px 60px; max-width: 70ch; }
footer a { color: inherit; }
/* filter sheet on phones and the event sheet */
dialog { border: 0; padding: 0; background: var(--surface); color: var(--ink); width: min(640px, 100%); max-height: min(92vh, 900px); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(8,10,16,.55); backdrop-filter: blur(3px); }
@media (max-width: 640px) { dialog { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 24px 24px 0 0; max-height: 94vh; padding-bottom: env(safe-area-inset-bottom, 0px); } }
@media (prefers-reduced-motion: no-preference) { dialog[open] { animation: up .28s cubic-bezier(.2,.8,.2,1); } @keyframes up { from { transform: translateY(24px); opacity: 0; } } }
.sheet-hero { position: relative; height: 180px; overflow: hidden; }
.sheet-hero .cover { width: 100%; height: 100%; display: block; }
.sheet-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; }
.sheet-body { padding: 18px 20px 22px; display: grid; gap: 14px; }
.sheet-body h2 { font: 800 clamp(24px, 4.5vw, 30px)/1.08 var(--display); letter-spacing: -.02em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.facts { display: grid; gap: 10px; margin: 0; }
.facts div { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.facts dt { color: var(--muted); padding-top: 1px; }
.facts dd { margin: 0; }
.facts dd small { color: var(--muted); display: block; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink); padding: 0 14px; text-align: center; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); grid-column: 1 / -1; }
.calrow { display: none; grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calrow.open { display: grid; }
.calrow a { min-height: 44px; font-size: 14px; }
.note { font-size: 13px; color: var(--muted); }
.related h3 { font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.related button { display: flex; width: 100%; gap: 12px; align-items: baseline; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 10px 0; min-height: 44px; }
.related button span:first-child { color: var(--muted); font-size: 13px; width: 92px; flex: none; }
.fsheet { padding: 18px 20px 24px; }
.fsheet .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fsheet h2 { font: 700 22px var(--display); margin: 0; }
.fsheet .apply { position: sticky; bottom: 0; padding-top: 12px; background: var(--surface); }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); z-index: 50; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pilotbar { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.pilotbar a { color: inherit; }
