/* APAAACI 2026 Scientific Program - Concept 2 "Daylight"
   The sky follows the day: dawn, noon, the golden hour, dusk and night. Frosted session cards; one accent per
   room: lagoon (Summit 1+2), lotus (Summit 3), violet (Summit 4), amber (Grand Ballroom 1+2). Outfit.
   Everything is scoped to .dy / .dy-. */

@property --s1 { syntax: '<color>'; inherits: true; initial-value: #FCD9C6; }
@property --s2 { syntax: '<color>'; inherits: true; initial-value: #FDEDE2; }
@property --s3 { syntax: '<color>'; inherits: true; initial-value: #F4F0F8; }
@property --sunx { syntax: '<percentage>'; inherits: true; initial-value: 18%; }
@property --suny { syntax: '<percentage>'; inherits: true; initial-value: 78%; }
@property --sunop { syntax: '<number>'; inherits: true; initial-value: 1; }

.dy {
  --ink: #1B2136;
  --ink-2: #4C5470;
  --muted: #5A6079;
  --glass: rgba(255, 255, 255, .74);
  --hdr: 58px;
  --out: cubic-bezier(.16, 1, .3, 1);
  --io: cubic-bezier(.65, 0, .35, 1);
  --font: 'Outfit', 'Poppins', sans-serif;
  --s1: #FCD9C6; --s2: #FDEDE2; --s3: #F4F0F8;
  --sunx: 18%; --suny: 78%; --sunop: 1; --starop: 0;
  position: relative;
  font-family: var(--font);
  color: var(--ink);
  background: var(--s2);
  transition: --s1 1.6s var(--io), --s2 1.6s var(--io), --s3 1.6s var(--io), --sunx 2.2s var(--io), --suny 2.2s var(--io), --sunop 1.6s var(--io);
}
:where(.dy) *, :where(.dy) *::before, :where(.dy) *::after { box-sizing: border-box; }
:where(.dy) :is(h1, h2, h3, h4, p, ol, li) { margin: 0; padding: 0; }
:where(.dy) :is(h1, h2, h3, h4, p, span, a, button, li, b) { font-family: var(--font); }
:where(.dy) :is(h1, h2, h3, h4) { color: inherit; text-transform: none; }
:where(.dy) ol { list-style: none; }
:where(.dy) :is(button) { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; cursor: pointer; }
.dy :focus-visible, .dy a:focus-visible, .dy button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 1199.98px) { .dy { --hdr: 74px; } }

/* the sky of each part of the day */
.dy[data-sky-now="dawn"] { --s1: #FCD5C2; --s2: #FDEBE0; --s3: #F3EEF8; --sunx: 16%; --suny: 76%; --sunop: 1; }
.dy[data-sky-now="noon"] { --s1: #D7EBFB; --s2: #EDF6FD; --s3: #FFF7E4; --sunx: 50%; --suny: 14%; --sunop: 1; }
.dy[data-sky-now="day"] { --s1: #CDE7F6; --s2: #E7F3FB; --s3: #F2F9F6; --sunx: 62%; --suny: 18%; --sunop: 1; }
.dy[data-sky-now="afternoon"] { --s1: #FFE1BE; --s2: #FFEFDA; --s3: #F8F1EA; --sunx: 74%; --suny: 34%; --sunop: 1; }
.dy[data-sky-now="golden"] { --s1: #FFC38C; --s2: #FFDBB4; --s3: #FBE4D6; --sunx: 84%; --suny: 62%; --sunop: 1; }
.dy[data-sky-now="dusk"] { --s1: #2A2470; --s2: #563A8C; --s3: #A84F70; --sunx: 90%; --suny: 96%; --sunop: .55; }
.dy[data-sky-now="night"] { --s1: #0A0F31; --s2: #121A4A; --s3: #1C285C; --sunx: 92%; --suny: 110%; --sunop: 0; }

/* the backdrop stays in view while the section scrolls past */
.dy-sky { position: sticky; top: 0; z-index: 0; display: block; height: 100vh; margin-bottom: -100vh; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 55%, var(--s3) 100%); }
.dy-sky__sun { position: absolute; left: var(--sunx); top: var(--suny); width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 246, 214, .95) 0%, rgba(255, 214, 150, .55) 18%, rgba(255, 200, 140, .18) 42%, rgba(255, 200, 140, 0) 70%); opacity: var(--sunop); }
.dy-sky__stars { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--io);
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 44% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 62% 30%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 78% 16%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 46%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 8% 64%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 36% 74%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 56% 58%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 82%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 94% 72%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 20% 90%, #fff 50%, transparent 51%); }
.dy[data-sky-now="dusk"] .dy-sky__stars { opacity: .35; }
.dy[data-sky-now="night"] .dy-sky__stars { opacity: .9; }

.dy-hero, .dy-body { position: relative; z-index: 1; }
.dy-wrap { width: 100%; max-width: 1340px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); }

/* one accent per room (Day 2 and 3 rooms are ready too): --c for dots and lines, --ct the same hue a step
   deeper for text (at least 4.5:1 on the frosted cards and on the room's own tint) */
.dy [data-room="summit-1-2"] { --c: #0E8789; --ct: #0A6A6C; --t: rgba(14, 135, 137, .1); }
.dy [data-room="summit-3"] { --c: #BE3F76; --ct: #A3305F; --t: rgba(190, 63, 118, .09); }
.dy [data-room="summit-4"] { --c: #5552C4; --ct: #5552C4; --t: rgba(85, 82, 196, .09); }
.dy [data-room="grand-ballroom-1-2"] { --c: #D9572E; --ct: #A63D1B; --t: rgba(217, 87, 46, .1); }
.dy [data-room="vip-3-4"] { --c: #2F7FD1; --ct: #2266AE; --t: rgba(47, 127, 209, .1); }
.dy [data-room="altitude-23"] { --c: #3B9B5B; --ct: #24693B; --t: rgba(59, 155, 91, .1); }

/* ---------- Hero ---------- */
.dy-hero { padding-block: clamp(48px, 7vw, 110px) clamp(16px, 2vw, 28px); }
.dy-title { font-size: clamp(46px, 7.4vw, 112px); font-weight: 300; line-height: .95; letter-spacing: -.05em; color: var(--ink); }
.dy-hero__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: clamp(26px, 3.4vw, 44px); }
.dy-days { display: flex; flex-wrap: wrap; gap: 10px; }
.dy-day { display: inline-flex; align-items: baseline; gap: 0; height: 52px; padding: 0 22px; font-size: 15px; font-weight: 400; color: var(--ink-2); background: rgba(255, 255, 255, .55); border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); line-height: 52px; transition: background .6s var(--out), color .6s var(--out); }
.dy-day b { font-weight: 600; color: var(--ink); }
.dy-day__sep { white-space: pre; }
.dy-day.is-on { color: #fff; background: var(--ink); box-shadow: 0 18px 36px -22px rgba(27, 33, 54, .8); }
.dy-day.is-on b { color: #FFD9A8; }
.dy-day:disabled { color: var(--muted); background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); cursor: default; }
.dy-day:disabled b { color: var(--ink-2); }
.dy-dl { display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 8px 0 26px; font-size: 15.5px; font-weight: 500; color: var(--ink); text-decoration: none; background: #fff; border-radius: 999px; box-shadow: 0 20px 40px -26px rgba(27, 33, 54, .55); transition: transform .8s var(--out), box-shadow .8s var(--out); }
.dy-dl i { display: grid; place-items: center; width: 38px; height: 38px; background: linear-gradient(135deg, #FFB067, #E0663A); border-radius: 50%; }
.dy-dl svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dy .dy-dl:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 26px 50px -26px rgba(27, 33, 54, .6); }

/* ---------- Body: the dial and the chapters ---------- */
.dy-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(30px, 4vw, 64px); padding-bottom: clamp(60px, 7vw, 110px); }
.dy-dial { position: sticky; top: calc(var(--hdr) + 36px); align-self: start; padding: 22px 18px 22px 22px; background: rgba(255, 255, 255, .5); border-radius: 26px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background 1.4s var(--io); }
.dy-dial__track { position: absolute; left: 30px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(180deg, #F7B48E 0%, #9CCBEF 35%, #FFC38C 62%, #563A8C 82%, #121A4A 100%); border-radius: 2px; opacity: .7; }
.dy-dial__sun { position: absolute; left: 50%; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #FFF3C9 0%, #FFC14D 60%, #F59A2B 100%); box-shadow: 0 0 0 6px rgba(255, 200, 90, .22), 0 0 24px 6px rgba(255, 190, 80, .55); transform: translateY(var(--sy, 0px)); transition: transform 1.4s var(--out), background 1s, box-shadow 1s; }
.dy[data-sky-now="dusk"] .dy-dial__sun, .dy[data-sky-now="night"] .dy-dial__sun { background: radial-gradient(circle at 40% 40%, #FFFFFF 0%, #E7E4FF 60%, #B7B1F0 100%); box-shadow: 0 0 0 6px rgba(200, 190, 255, .2), 0 0 22px 6px rgba(190, 180, 255, .45); }
.dy-dial__list { position: relative; display: grid; gap: 4px; padding-left: 26px; }
.dy-dial__a { display: flex; flex-direction: column; padding: 7px 10px; font-size: 13px; line-height: 1.3; color: var(--ink-2); text-decoration: none; border-radius: 12px; transition: background .5s var(--out), color .5s var(--out); }
.dy-dial__t { font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
@media (hover: none) { .dy-dial__a { min-height: 36px; justify-content: center; } }   /* finger-sized on touch screens */
.dy-dial__l { font-size: 12px; color: var(--muted); }
.dy .dy-dial__a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.dy-dial__a.is-on { color: var(--ink); background: #fff; box-shadow: 0 10px 24px -18px rgba(27, 33, 54, .6); }
.dy-dial__a.is-on .dy-dial__t { font-weight: 700; }
.dy[data-sky-now="dusk"] .dy-dial, .dy[data-sky-now="night"] .dy-dial { background: rgba(22, 18, 64, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.dy[data-sky-now="dusk"] .dy-dial__a, .dy[data-sky-now="night"] .dy-dial__a { color: rgba(237, 232, 255, .9); }
.dy[data-sky-now="dusk"] .dy-dial__l, .dy[data-sky-now="night"] .dy-dial__l { color: rgba(237, 232, 255, .8); }
.dy[data-sky-now="dusk"] .dy-dial__a.is-on, .dy[data-sky-now="night"] .dy-dial__a.is-on { color: #fff; background: rgba(255, 255, 255, .16); box-shadow: none; }

.dy-main { min-width: 0; }
.dy-daylabel { padding-top: 6px; font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.dy-ch { position: relative; padding-top: clamp(40px, 5vw, 76px); scroll-margin-top: calc(var(--hdr) + 20px); }
.dy-ch__time { font-size: clamp(52px, 7.6vw, 116px); font-weight: 200; line-height: .95; letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--ink); }
.dy-cards { display: grid; gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(20px, 2.4vw, 32px); align-items: start; }
.dy-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dy-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dy-card { position: relative; padding: 22px 22px 14px; background: var(--glass); border-radius: 28px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 40px 70px -50px rgba(40, 30, 80, .45); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.dy-room { display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 13px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ct); background: var(--t); border-radius: 999px; }
.dy-room i { width: 8px; height: 8px; background: var(--c); border-radius: 50%; box-shadow: 0 0 0 4px var(--t); }
.dy-card__title { margin-top: 14px !important; font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; line-height: 1.22; letter-spacing: -.02em; color: var(--ink); }
.dy-mods { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 12px !important; font-size: 14px; line-height: 1.45; }
.dy-mods__l { flex-basis: 100%; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dy-p__n { font-weight: 600; color: var(--ink); }
.dy-p__c { font-weight: 400; color: var(--ink-2); }
.dy-talks { margin-top: 16px !important; }
.dy-talk { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; padding: 13px 10px; border-radius: 16px; transition: background .5s var(--out); }
.dy-talk + .dy-talk { margin-top: 2px; }
.dy-talk:hover { background: var(--t); }
.dy-talk__time { padding-top: 2px; font-size: 13px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--ct); white-space: nowrap; }
.dy-talk__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dy-talk__title { font-size: 15.5px; font-weight: 500; line-height: 1.42; color: var(--ink); }
.dy-talk__who { display: flex; flex-direction: column; gap: 1px; font-size: 14px; line-height: 1.4; }
.dy-talk--plain .dy-talk__title { color: var(--ink-2); }
/* three sessions side by side: the time sits above the title, so titles keep the card's full width */
.dy-cards--3 .dy-talk { grid-template-columns: minmax(0, 1fr); gap: 4px; }

/* the plenary in the golden hour */
.dy-cards--1 { grid-template-columns: minmax(0, 1fr); }
.dy-card--plenary { padding: 0; overflow: hidden; }
.dy-card--plenary .dy-card__head { padding: 26px 30px 24px; color: #fff; background: radial-gradient(110% 150% at 100% 0%, #B84A26 0%, #A9401F 50%, #8E321A 100%); }
.dy-card--plenary .dy-room { color: #fff; background: rgba(60, 14, 0, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.dy-card--plenary .dy-room i { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.dy-card--plenary .dy-card__title { max-width: 1000px; font-size: clamp(22px, 2.2vw, 30px); color: #fff; }
.dy-card--plenary .dy-mods__l { color: rgba(255, 255, 255, .9); }
.dy-card--plenary .dy-card__head .dy-p__n { color: #fff; }   /* moderators, on the orange head only; speakers below keep dark ink */
.dy-card--plenary .dy-card__head .dy-p__c { color: rgba(255, 255, 255, .9); }
.dy-card--plenary .dy-talks { margin: 0 !important; padding: 10px 14px 14px; }
.dy-card--plenary .dy-talk { grid-template-columns: 110px minmax(0, 1fr); padding: 16px 14px; }
.dy-card--plenary .dy-talk__body { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.dy-card--plenary .dy-talk__title { font-size: 16.5px; }

/* pauses */
.dy-ch--pause { padding-top: clamp(34px, 4vw, 60px); }
.dy-pause { display: inline-flex; align-items: center; gap: 14px; height: 62px; padding: 0 28px 0 18px; background: rgba(255, 255, 255, .62); border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 24px 50px -36px rgba(40, 30, 80, .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.dy-pause__ic { display: grid; place-items: center; width: 40px; height: 40px; color: #B5652C; background: rgba(255, 196, 130, .3); border-radius: 50%; }
.dy-pause__ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dy-pause__time { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.dy-pause__t { font-size: 17px; font-weight: 400; color: var(--ink-2); }

/* the evening */
.dy-ch--event { display: flex; flex-direction: column; justify-content: center; min-height: 64vh; padding-top: clamp(40px, 5vw, 80px); text-align: center; }
.dy-ch--reception { padding-bottom: clamp(30px, 4vw, 60px); }
.dy-event__time { font-size: clamp(15px, 1.4vw, 18px); font-weight: 500; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: #FFF0E6; }
.dy-event__t { margin-top: 10px !important; font-size: clamp(44px, 6.4vw, 96px); font-weight: 200; line-height: 1; letter-spacing: -.045em; color: #FFF7F0; text-shadow: 0 10px 40px rgba(10, 10, 40, .35); }
.dy-ch--reception .dy-event__t { color: #EDE8FF; }
.dy-note { margin-top: clamp(40px, 5vw, 70px) !important; font-size: 13px; font-style: italic; color: rgba(237, 232, 255, .75); text-align: center; }

/* reveal */
.dy-js [data-dy-rise] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 1.1s var(--out) var(--d, 0s), transform 1.3s var(--out) var(--d, 0s); }
.dy-js [data-dy-rise].is-in { opacity: 1; transform: none; }

/* ---------- Tablets ---------- */
@media (max-width: 1180px) {
  .dy-body { grid-template-columns: 170px minmax(0, 1fr); gap: 28px; }
  .dy-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dy-talk { grid-template-columns: 88px minmax(0, 1fr); }
}
/* ---------- Phones and small tablets: one column, the chapter time stays at the top ---------- */
@media (max-width: 900px) {
  .dy-body { display: block; }
  .dy-dial { display: none; }
  .dy-cards--2, .dy-cards--3 { grid-template-columns: minmax(0, 1fr); }
  .dy-ch__time { position: sticky; top: var(--hdr); z-index: 2; margin: 0 -16px; padding: 10px 16px 12px; font-size: clamp(40px, 11vw, 64px); background: var(--s2); box-shadow: 0 14px 20px -18px rgba(40, 30, 80, .35); }
  .dy-card { padding: 18px 16px 10px; border-radius: 22px; }
  .dy-card--plenary { padding: 0; }
  .dy-talk { grid-template-columns: minmax(0, 1fr); padding: 12px 6px; }
  .dy-card--plenary .dy-card__head { padding: 22px 18px 20px; }
  .dy-card--plenary .dy-talk { grid-template-columns: minmax(0, 1fr); }
  .dy-card--plenary .dy-talk__body { flex-direction: column; }
  .dy-pause { height: auto; padding: 12px 22px 12px 12px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .dy, .dy *, .dy *::before, .dy *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .dy-js [data-dy-rise] { opacity: 1; transform: none; }
}
