/* APAAACI 2026 Scientific Program - Concept 3 "Daylight with faces"
   Concept 2 "Daylight" plus a round portrait beside every moderator and speaker.
   Load after program-concept-2.css. Everything is scoped to .dy / .dy-. */

/* ---------- a portrait: every head the same size and whole (placement from includes/program-people.php) ---------- */
.dy-av { --av: 44px; position: relative; flex: none; display: block; width: var(--av); height: var(--av); overflow: hidden; border-radius: 50%; background: var(--bg, #EEF0F5); box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 10px 20px -12px rgba(27, 33, 54, .55); isolation: isolate; transition: box-shadow .9s var(--out); }
.dy .dy-av img { position: absolute; display: block; max-width: none; transform-origin: 50% 34%; transition: transform 1.4s var(--out); }
/* no photo on the site: initials, as on the site's own speaker pages */
.dy-av.is-mono { display: grid; place-items: center; font-size: calc(var(--av) * .34); font-weight: 600; letter-spacing: .04em; line-height: 1; color: var(--ct); background: #fff; background-image: linear-gradient(var(--t), var(--t)); }

/* ---------- a person: portrait, then the name with the country beneath ---------- */
.dy-who { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.dy-who__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.32; }
.dy-who .dy-p__n { font-size: 14.5px; }
.dy-who .dy-p__c { font-size: 13px; }
.dy-who:hover .dy-av { box-shadow: 0 0 0 2px var(--c), 0 12px 24px -12px rgba(27, 33, 54, .6); }
.dy-who:hover .dy-av img { transform: scale(1.08); }

/* ---------- parts of the day shown with portraits ---------- */
.dy-ch--faces .dy-mods { gap: 14px 30px; margin-top: 18px !important; padding: 14px 16px 16px; background: var(--t); border-radius: 20px; }
.dy-ch--faces .dy-mods__l { margin-bottom: 0; }
/* on the plenary's amber head the moderators sit on a deeper panel, in white */
.dy-ch--faces .dy-card--plenary .dy-mods { background: rgba(60, 14, 0, .18); }
.dy-card--plenary .dy-card__head .dy-who .dy-p__c, .dy-ch--faces .dy-card--plenary .dy-mods__l { color: #fff; }
.dy-ch--faces .dy-mods .dy-av { --av: 54px; }
.dy-ch--faces .dy-talk { padding-block: 15px; }
.dy-ch--faces .dy-talk__body { gap: 10px; }
.dy-ch--faces .dy-talk__who { gap: 10px; }

/* ---------- days: one panel at a time ---------- */
.dy-panel { position: relative; z-index: 1; outline: none; }
.dy-panel[hidden] { display: none; }
.dy .dy-day:not(.is-on):not(:disabled):hover { background: rgba(255, 255, 255, .86); }
.dy-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; padding-bottom: clamp(30px, 4vw, 60px); }
.dy-day--more { background: rgba(255, 255, 255, .88); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 18px 36px -24px rgba(10, 10, 40, .6); }
.dy .dy-day--more:hover { background: #fff; }

/* a session with no room named in the PDF (Meet the Professor Session 1): the PDF's gold */
.dy [data-room="none"] { --c: #B8862E; --ct: #855A12; --t: rgba(184, 134, 46, .12); }

/* four rooms at the same time: two by two */
.dy-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- groups inside a session: society symposia and industry slots ---------- */
.dy-group + .dy-group { margin-top: 18px; }
.dy-group--head { margin-top: 16px; }
.dy-group__head { padding: 14px 16px 15px; background: rgba(255, 255, 255, .62); border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85); }
.dy-slot { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--muted); }
.dy-sponsor { margin-top: 3px !important; font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.dy-group__title { margin-top: 6px !important; font-size: 15.5px; font-weight: 600; line-height: 1.42; color: var(--ink); }
.dy-group__head > :first-child { margin-top: 0 !important; }
.dy-group__head--tag { padding: 0 2px; background: none; box-shadow: none; }   /* a society badge on its own */
/* the closing note follows the sky: dark on light skies, light at dusk and night */
.dy-note { color: var(--ink-2); }
.dy[data-sky-now="dusk"] .dy-note, .dy[data-sky-now="night"] .dy-note { color: rgba(237, 232, 255, .85); }
/* the society badge, gold as in the PDF (deep enough for white text) */
.dy-tag { display: inline-flex; align-items: center; height: 24px; margin-right: 6px; padding: 0 10px; vertical-align: 1px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; line-height: 1; color: #fff; background: #8C6118; border-radius: 7px; }
.dy-roles { display: flex; flex-direction: column; gap: 10px; margin-top: 12px !important; }
.dy-role { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dy-role__l { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.dy-group .dy-talks { margin-top: 10px !important; }
.dy-talk--notime { grid-template-columns: minmax(0, 1fr); }
.dy-who--all .dy-p__n { font-weight: 500; color: var(--ink-2); }

/* ---------- tablets ---------- */
@media (max-width: 1180px) {
  .dy-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dy-cards--4 .dy-talk { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .dy-ch--faces .dy-mods { flex-direction: column; gap: 12px; padding: 14px 14px 16px; }
  .dy-ch--faces .dy-mods .dy-av { --av: 48px; }
  .dy-av { --av: 42px; }
  .dy-cards--4 { grid-template-columns: minmax(0, 1fr); }
  .dy-group__head { padding: 12px 13px 13px; }
  .dy-days { flex-direction: column; align-items: flex-start; }
}
