/* ------------------------------------------------------------------
   EMILO — brand tokens and page CSS.
   Loaded as a plain file AFTER the Taste Skill kit (system, cards, motion,
   layout, icons) so the brand palette and page rules win.

   Refinement pass: sections are sized to their content with one spacing
   rhythm (--sec) instead of the kit's one-screen-per-section heights.
   ------------------------------------------------------------------ */

/* Brand tokens: generated by `start.mjs brand` from EMILO's palette, kept as printed.
   Fonts come from next/font (Geist + Instrument Serif) via CSS variables. */
:root {
  --p-bg: #090807; --p-surface: #15100e; --p-ink: #f4eee5; --p-muted: #a9a19a;
  --p-accent: #f46a1b; --p-accent-ink: #090807; --p-action: #f46a1b; --p-action-ink: #090807;
  --p-inv-bg: #f4eee5; --p-inv-surface: #e1dbd3; --p-inv-ink: #090807; --p-inv-muted: #565350;
  --p-inv-accent: #090807; --p-inv-accent-ink: #f4eee5; --p-inv-action: #090807; --p-inv-action-ink: #f4eee5;
  --font-display: var(--font-geist), "Geist", system-ui, sans-serif;
  --font-text: var(--font-geist), "Geist", system-ui, sans-serif;
  --font-serif: var(--font-instrument-serif), "Instrument Serif", Georgia, serif;
  --display-weight: 400;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;

  /* EMILO's extended palette */
  --e-black: #090807;
  --e-charcoal: #15100e;
  --e-burnt: #d94a11;
  --e-orange: #f46a1b;
  --e-amber: #ff963b;
  --e-offwhite: #f4eee5;
  --e-grey: #a9a19a;
  --e-hair: color-mix(in oklab, var(--e-offwhite) 10%, transparent);
  --e-field: color-mix(in oklab, var(--e-offwhite) 22%, transparent);

  /* one spacing rhythm */
  --nav: 64px;
  --sec: 112px;           /* a section's top and bottom padding */
  --head: 40px;           /* heading block to content */
}
@media (max-width: 1023px) { :root { --sec: 88px; } }
@media (max-width: 639px)  { :root { --nav: 56px; --sec: 64px; --head: 28px; } }

html { background: var(--e-black); color-scheme: dark; }
body { background: var(--e-black); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Brand caps: headings, labels and buttons in capitals. The HTML stays in
   sentence case so screen readers read words, not letters. */
.caps, h1, h2, .nav__link, .btn, .t-label {
  text-transform: uppercase;
}
h2 { letter-spacing: -0.02em; }
.t-label { letter-spacing: 0.14em; }
.btn { letter-spacing: 0.08em; font-size: 13px; }
.btn--secondary { background: transparent; }
::selection { background: var(--e-orange); color: var(--e-black); }

/* ---------- section rhythm (overrides the kit's screen heights) ---------- */
html body main > section:not(.hero),
html body main > .section:not(.hero) {
  height: auto; min-height: 0;
  padding: var(--sec) 0;
  display: block;
}
html body main > section:not(.hero) > .wrap { height: auto !important; display: block !important; }
main > section:not(.hero) .section-head { margin-bottom: var(--head); }
main > section:not(.hero) .section-head > p { margin-top: var(--s-3); color: var(--e-grey); max-width: 52ch; }
html body main > section:not(.hero) .fill { flex: none !important; min-height: 0; height: auto; }
/* the photo-led section after the hero starts a little closer */
#about { padding-top: calc(var(--sec) - 16px); }

/* ---------- header: quiet bar ---------- */
.nav.nav--quiet {
  height: var(--nav);
  background: color-mix(in oklab, var(--e-black) 96%, transparent);
  border-bottom: 1px solid var(--e-hair);
}
.nav--quiet .nav__bar { gap: var(--s-6); }
.nav--quiet .nav__logo { font-size: 17px; font-weight: 500; letter-spacing: 0.26em; }
.nav--quiet .nav__links { justify-content: flex-end; gap: var(--s-6); }
.nav--quiet .nav__link {
  height: auto; padding: 6px 0; border-radius: 0;
  font-size: 12px; line-height: 1; font-weight: 500; letter-spacing: 0.18em;
  color: var(--e-grey); background: none;
}
.nav--quiet .nav__link::before { left: 0; right: 0; bottom: -2px; height: 1px; border-radius: 0; background: var(--e-orange); }
.nav--quiet .nav__link:hover, .nav--quiet .nav__link:focus-visible { color: var(--e-offwhite); background: none; }
/* menu button: two hairlines, no box */
.nav--quiet .nav__toggle { border: 0; background: none; width: 44px; height: 44px; margin-right: -12px; border-radius: 0; }
.nav__toggle-lines { position: relative; display: block; width: 20px; height: 7px; }
.nav__toggle-lines::before, .nav__toggle-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--e-offwhite);
  transition: transform var(--m-in, 150ms) var(--ease), top var(--m-in, 150ms) var(--ease);
}
.nav__toggle-lines::before { top: 0; }
.nav__toggle-lines::after { top: 6px; }
.nav.is-open .nav__toggle-lines::before { top: 3px; transform: rotate(45deg); }
.nav.is-open .nav__toggle-lines::after { top: 3px; transform: rotate(-45deg); }
@media (max-width: 1023px) {
  .nav--quiet.is-open .nav__links { padding-top: var(--s-6); }
  .nav--quiet.is-open .nav__item { border-bottom-color: var(--e-hair); }
  .nav--quiet.is-open .nav__link { height: 64px; font-size: 15px; letter-spacing: 0.2em; color: var(--e-offwhite); }
}

/* ---------- hero (film frame) ---------- */
.hero--film .hero__media { position: relative; overflow: clip; background: var(--e-black); }
.hero--film .hero__media > .hero__parallax { position: absolute; inset: -6% 0 0 0; will-change: transform; }
.hero--film .hero__media > .hero__parallax > img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--ly-pos, 50% 34%);
}
/* the words' box: a solid block of the page's own black, never a scrim */
.hero--film .hero__over { padding: var(--s-5); }
.hero--film .hero__over > :first-child {
  background: var(--e-black); color: var(--e-offwhite);
  --bg: var(--e-black); --ink: var(--e-offwhite); --muted: var(--e-grey);
  --action: var(--e-orange); --action-ink: var(--e-black);
  --line: color-mix(in oklab, var(--e-offwhite) 16%, transparent);
  --line-strong: color-mix(in oklab, var(--e-offwhite) 34%, transparent);
  border-top: 1px solid var(--e-orange);
  padding: 40px 40px 36px;
}
.hero--film h1.hero-name {
  font-size: clamp(64px, 9.2vw, 140px); line-height: 0.84; letter-spacing: -0.045em; max-width: none;
}
.hero-name__sub { display: block; margin-top: 18px; font-size: 12px; line-height: 1.4; letter-spacing: 0.2em; font-weight: 500; color: var(--e-amber); }
.hero--film .hero__over .hero__lead { color: var(--e-offwhite); margin-top: 28px; font-size: 17px; letter-spacing: 0.04em; }
.hero-genres { margin-top: 6px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--e-grey); font-weight: 500; }
.hero--film .hero__over .btn-row { margin-top: 28px; }
@media (max-width: 639px) {
  .hero--film .hero__over { padding: var(--s-3); }
  .hero--film .hero__over > :first-child { padding: 28px 24px 24px; }
  .hero--film .hero__over .hero__lead { margin-top: 20px; font-size: 15px; }
  .hero--film .hero__over .btn-row { margin-top: 20px; }
  .hero--film .hero__media > .hero__parallax > img { object-position: var(--ly-pos-phone, var(--ly-pos)); }
}

/* ---------- about ---------- */
.about__copy p + p { margin-top: var(--s-4); }
.about__copy p { max-width: 54ch; }
.about__photo { position: relative; overflow: clip; border-radius: var(--r-lg); aspect-ratio: 4 / 5; max-height: 620px; width: 100%; margin: 0; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .about__photo { aspect-ratio: 4 / 3; } .about__copy { margin-top: var(--s-6); } }

/* ---------- music ---------- */
.player {
  position: relative; border-radius: var(--r-lg); overflow: clip; background: var(--e-charcoal);
  height: clamp(360px, 36vw, 480px);
}
.player iframe { display: block; width: 100%; height: 100%; border: 0; }
.player__box {
  position: absolute; left: var(--s-5); bottom: var(--s-5); z-index: 1;
  display: grid; gap: var(--s-4); justify-items: start;
  padding: 28px 32px; background: var(--e-black); border-top: 1px solid var(--e-orange); border-radius: var(--r-md);
}
.player__title { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) {
  .player .player__photo { transition: transform var(--m-image, 600ms) var(--ease); }
  .player:hover .player__photo { transform: scale(1.02); }
}
@media (max-width: 639px) {
  .player { height: 400px; }
  .player__box { left: var(--s-3); right: var(--s-3); bottom: var(--s-3); padding: 20px; }
}

/* ---------- appearances: a typographic list ---------- */
.venues { list-style: none; margin: 0; padding: 0; }
.venues li { border-bottom: 1px solid var(--e-hair); }
.venue { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-5); padding: 14px 0; }
.venue__name { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.02em; transition: color var(--m-in, 150ms) var(--ease); }
.venue__city { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--e-grey); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s-3); }
/* the line sits in a fixed 32px slot; it grows leftwards inside it, so the city never moves or touches it */
.venue__mark { display: inline-block; flex: none; width: 32px; height: 1px; overflow: hidden; }
.venue__line { display: block; width: 100%; height: 1px; background: currentColor; transform: scaleX(.5); transform-origin: right center; transition: transform var(--m-in, 150ms) var(--ease), background-color var(--m-in, 150ms) var(--ease); }
a.venue--link { color: inherit; text-decoration: none; background: none; cursor: pointer; }
a.venue--link::before, a.venue--link::after { content: none; }
a.venue--link:focus-visible { outline: 2px solid var(--e-orange); outline-offset: 4px; border-radius: 2px; }
a.venue--link:focus-visible .venue__name { color: var(--e-orange); }
a.venue--link:focus-visible .venue__line { transform: scaleX(1); background: var(--e-orange); }
@media (hover: hover) and (pointer: fine) {
  .venues li:hover .venue__name { color: var(--e-orange); }
  .venues li:hover .venue__line { transform: scaleX(1); background: var(--e-orange); }
}
@media (max-width: 639px) { .venue { padding: 11px 0; } }
.events__name { font-family: var(--font-serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.appearances__side { display: flex; flex-direction: column; }
.appearances__photo { position: relative; overflow: clip; border-radius: var(--r-lg); flex: 1 1 auto; min-height: 280px; margin-top: var(--s-6); }
@media (max-width: 1023px) {
  .appearances__side { margin-top: var(--s-7); }
  .appearances__photo { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
}

/* ---------- gallery: an asymmetric editorial grid ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: var(--s-5); height: clamp(520px, 48vw, 680px); }
.gallery__item { position: relative; overflow: clip; border-radius: var(--r-lg); min-height: 0; display: block; background: var(--e-charcoal); padding: 0; border: 0; cursor: zoom-in; width: 100%; }
.gallery__item img { transition: transform var(--m-image, 600ms) var(--ease); }
.gallery__item--a { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.gallery__item--b { grid-column: 7 / span 3; grid-row: 1; }
.gallery__item--c { grid-column: 10 / span 3; grid-row: 1; }
.gallery__item--d { grid-column: 7 / span 6; grid-row: 2; }
@media (hover: hover) and (pointer: fine) { .gallery__item:hover img { transform: scale(1.03); } }
@media (max-width: 639px) {
  .gallery { grid-template-columns: 1fr 1fr; height: 520px; gap: var(--s-3); }
  .gallery__item--a { grid-column: 1; grid-row: 1; }
  .gallery__item--b { grid-column: 2; grid-row: 1; }
  .gallery__item--c { grid-column: 1; grid-row: 2; }
  .gallery__item--d { grid-column: 2; grid-row: 2; }
}

/* lightbox: a full-viewport photo viewer */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: #090807;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.lightbox__stage { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
/* sized from the photo's own ratio (--ar): as large as fits in 94vw x 88svh, never cropped or stretched */
img.lightbox__photo {
  display: block; height: auto; max-width: none;
  width: min(94vw, calc(88vh * var(--ar, 1)));
  width: min(94vw, calc(88svh * var(--ar, 1)));
  aspect-ratio: var(--ar, auto);
  object-fit: contain; border-radius: 2px; user-select: none;
}
.lightbox__btn {
  position: absolute; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--e-offwhite); cursor: pointer;
  transition: background-color var(--m-in, 150ms) var(--ease), opacity var(--m-in, 150ms) var(--ease);
  opacity: .8;
}
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn:hover { opacity: 1; background: color-mix(in oklab, var(--e-offwhite) 8%, transparent); }
.lightbox__btn:focus-visible { opacity: 1; outline: 2px solid var(--e-orange); outline-offset: 2px; }
.lightbox__close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.lightbox__prev { left: max(8px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: max(8px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0;
  font-size: 12px; letter-spacing: 0.16em; color: var(--e-grey); font-variant-numeric: tabular-nums;
}
@media (max-width: 639px) {
  .lightbox { padding: max(64px, env(safe-area-inset-top)) env(safe-area-inset-right) max(64px, env(safe-area-inset-bottom)) env(safe-area-inset-left); }
  img.lightbox__photo { width: min(100vw, calc((100svh - 128px) * var(--ar, 1))); border-radius: 0; }
  .lightbox__stage { height: 100%; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: max(4px, env(safe-area-inset-bottom)); transform: none; }
  .lightbox__count { bottom: max(18px, env(safe-area-inset-bottom)); }
}

/* ---------- instagram ---------- */
.ig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.ig__tile { position: relative; overflow: clip; border-radius: var(--r-lg); display: block; aspect-ratio: 4 / 5; background: var(--e-charcoal); }
.ig__tile img { transition: transform var(--m-image, 600ms) var(--ease); }
@media (max-width: 639px) { .ig { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } .ig__tile:nth-child(3) { display: none; } }

/* ---------- booking ---------- */
.booking { position: relative; isolation: isolate; }
.booking::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 60% at 88% 35%, color-mix(in oklab, var(--e-burnt) 22%, transparent), transparent 70%); }
.booking .section-head { margin-bottom: 0; }
.booking__contacts { display: grid; gap: var(--s-3); margin-top: var(--s-7); }
.contacts { display: grid; gap: var(--s-2); margin: 0; }
.contacts > div { display: flex; gap: var(--s-4); align-items: baseline; }
.contacts dt { min-width: 112px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--e-grey); font-weight: 500; }
.contacts dd { margin: 0; font-size: 15px; }
.socials-row { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-6); }
.social { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; color: var(--e-offwhite); text-decoration: none; font-size: 15px; }
.social .ic { width: auto; height: 20px; flex: none; color: #f4eee5; }
@media (hover: hover) and (pointer: fine) { .social:hover span { color: var(--e-orange); } }
@media (max-width: 1023px) { .booking__side { margin-top: var(--s-8); } }
@media (max-width: 639px) { .contacts > div { display: grid; gap: 2px; } .booking__side { margin-top: var(--s-7); } }

.booking .form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
.booking .form .field--full, .booking .form .btn-row, .booking .form .form__status { grid-column: 1 / -1; }
@media (max-width: 639px) { .booking .form { grid-template-columns: 1fr; } }
.booking .field label, .select > label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--e-grey); font-weight: 500; }

/* one field look: inputs, the textarea and the custom select share it */
.booking .field input:not([type="checkbox"]), .booking .field textarea, .select__btn {
  height: 48px; padding: 0 16px; border-radius: var(--r-sm);
  background: var(--e-black); border: 1px solid var(--e-field);
  color: var(--e-offwhite); font: 400 16px/1.4 var(--font-text);
  transition: border-color var(--m-in, 150ms) var(--ease), box-shadow var(--m-in, 150ms) var(--ease);
}
.booking .field textarea { height: auto; min-height: 112px; padding: 12px 16px; resize: vertical; }
@media (hover: hover) and (pointer: fine) {
  .booking .field input:not([type="checkbox"]):hover, .booking .field textarea:hover, .select__btn:hover { border-color: color-mix(in oklab, var(--e-offwhite) 40%, transparent); }
}
.booking .field input:focus-visible, .booking .field textarea:focus-visible, .select__btn:focus-visible, .select.is-open .select__btn {
  outline: none; border-color: var(--e-orange); box-shadow: 0 0 0 3px color-mix(in oklab, var(--e-orange) 24%, transparent);
}
.booking .field [aria-invalid="true"], .select:has(select[aria-invalid="true"]) .select__btn { border-color: #ff7a5c; }

/* custom select */
.select { position: relative; display: grid; gap: var(--s-2); }
.select__native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; clip-path: inset(50%); bottom: 0; left: 0; }
button.select__btn { width: 100%; text-align: left; -webkit-appearance: none; appearance: none; }
.select__btn { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); cursor: pointer; user-select: none; }
.select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select__value.is-placeholder { color: color-mix(in oklab, var(--e-offwhite) 45%, transparent); }
.select__chev { width: 12px; height: 12px; flex: none; color: var(--e-grey); transition: transform var(--m-in, 150ms) var(--ease); }
.select.is-open .select__chev { transform: rotate(180deg); color: var(--e-orange); }
.select__list, .date__pop {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none;
  background: var(--e-charcoal); border: 1px solid var(--e-field); border-radius: var(--r-sm);
  box-shadow: 0 18px 40px rgb(0 0 0 / .55);
}
.select__list { max-height: 296px; overflow-y: auto; }
.select:has(.field__error:not([hidden])) .select__list { top: calc(100% - 22px); }
.select__list[hidden] { display: none; }
.select__opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 44px; padding: 0 12px; border-radius: calc(var(--r-sm) - 2px);
  font-size: 15px; color: var(--e-offwhite); cursor: pointer;
}
.select__opt.is-active { background: color-mix(in oklab, var(--e-offwhite) 8%, transparent); }
.select__opt[aria-selected="true"] { color: var(--e-orange); }
.select__tick { width: 12px; height: 12px; opacity: 0; flex: none; }
.select__opt[aria-selected="true"] .select__tick { opacity: 1; }

.field--check { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-start; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 1px; accent-color: var(--e-orange); flex: none; }
.booking .field--check label { flex: 1 1 0; min-width: 0; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--e-grey); }
.field--check .field__error { flex-basis: 100%; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer: compact ---------- */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--e-hair); background: #060504; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-8); flex-wrap: wrap; }
.site-footer__brand .nav__logo { font-size: 17px; letter-spacing: 0.26em; font-weight: 500; }
.site-footer__brand p { margin-top: var(--s-3); font-family: var(--font-serif); font-size: 22px; color: var(--e-amber); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, auto); gap: var(--s-8); }
.site-footer__cols h2 { font-size: 12px; letter-spacing: 0.16em; color: var(--e-grey); font-weight: 500; margin: 0 0 var(--s-3); }
.site-footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer__cols a { display: inline-flex; align-items: center; min-height: 32px; font-size: 15px; color: var(--e-offwhite); }
@media (hover: hover) and (pointer: fine) { .site-footer__cols a:hover { color: var(--e-orange); } }
.site-footer__legal {
  display: flex; justify-content: space-between; gap: var(--s-3) var(--s-6); flex-wrap: wrap;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--e-hair);
  font-size: 13px; color: color-mix(in oklab, var(--e-grey) 80%, transparent);
}
@media (max-width: 639px) {
  .site-footer { padding: 48px 0 24px; }
  .site-footer__cols { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: var(--s-4); width: 100%; }
  .site-footer__cols a { min-height: 44px; }
  .site-footer__legal { margin-top: 32px; flex-direction: column; }
}

/* ---------- legal pages ---------- */
.legal { padding: calc(var(--nav) + var(--s-9)) 0 var(--s-9); }
.legal h1 { font-size: var(--t-h2); }
.legal h2 { font-size: var(--t-h3); margin-top: var(--s-8); text-transform: none; letter-spacing: -0.01em; }
.legal p, .legal li { max-width: 68ch; color: var(--e-offwhite); }
.legal .todo { color: var(--e-amber); border: 1px dashed var(--e-amber); padding: 2px 6px; border-radius: 4px; }

/* sized images that cover their frame (width/height attributes kept for layout stability) */
img.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ---------- custom date picker (shares the select's field and popover look) ---------- */
.date__field { position: relative; }
.date__icon { width: 16px; height: 16px; flex: none; color: var(--e-grey); }
.date.is-open .date__icon { color: var(--e-orange); }
.date:has(.date__clear) .date__icon { visibility: hidden; }
.date__clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: calc(var(--r-sm) - 2px); background: none; color: var(--e-grey); cursor: pointer;
}
.date__clear svg { width: 12px; height: 12px; }
.date__clear:hover, .date__clear:focus-visible { color: var(--e-offwhite); background: color-mix(in oklab, var(--e-offwhite) 8%, transparent); }
.date__pop { padding: 14px 14px 10px; right: auto; width: max(100%, 320px); }
@media (max-width: 639px) { .date__pop { width: 100%; } }
.date__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: 8px; }
.date__caption { margin: 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--e-offwhite); }
.date__nav { display: flex; gap: 2px; }
.date__arrow {
  width: 32px; height: 32px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: calc(var(--r-sm) - 2px); background: none; color: var(--e-grey); cursor: pointer;
  transition: color var(--m-in, 150ms) var(--ease), background-color var(--m-in, 150ms) var(--ease);
}
.date__arrow svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.date__arrow:hover:not(:disabled) { color: var(--e-offwhite); background: color-mix(in oklab, var(--e-orange) 14%, transparent); }
.date__arrow:disabled { opacity: .3; cursor: default; }
.date__arrow:focus-visible, .date__text:focus-visible, .dp__daybtn:focus-visible, .date__clear:focus-visible {
  outline: 2px solid var(--e-orange); outline-offset: 1px;
}

/* DayPicker grid (no library stylesheet: every class is EMILO's) */
.dp { font-family: var(--font-text); color: var(--e-offwhite); }
.dp__months, .dp__month { width: 100%; }
.dp__caption { display: none; }               /* the header above names the month */
.dp__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dp__weekday { padding: 4px 0 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--e-grey); }
.dp__day { padding: 1px; text-align: center; }
.dp__daybtn {
  width: 100%; height: 40px; display: grid; place-items: center; padding: 0;
  border: 1px solid transparent; border-radius: calc(var(--r-sm) - 2px); background: none;
  font: 400 14px/1 var(--font-text); color: var(--e-offwhite); cursor: pointer;
  transition: background-color var(--m-in, 150ms) var(--ease), color var(--m-in, 150ms) var(--ease);
}
.dp__day:not(.is-disabled):not(.is-selected) .dp__daybtn:hover { background: color-mix(in oklab, var(--e-orange) 16%, transparent); color: var(--e-offwhite); }
.dp__day.is-today .dp__daybtn { border-color: color-mix(in oklab, var(--e-orange) 55%, transparent); }
.dp__day.is-selected .dp__daybtn { background: var(--e-orange); color: var(--e-black); font-weight: 500; }
.dp__day.is-disabled .dp__daybtn { color: color-mix(in oklab, var(--e-offwhite) 22%, transparent); cursor: default; }
.dp__day.is-outside .dp__daybtn, .dp__day.is-hidden { visibility: hidden; }
@media (max-width: 639px) { .dp__daybtn { height: 44px; } }

.date__foot { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--e-hair); }
.date__text {
  min-height: 36px; padding: 0 10px; border: 0; border-radius: calc(var(--r-sm) - 2px); background: none; cursor: pointer;
  font: 500 12px/1 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--e-grey);
}
.date__text:hover { color: var(--e-offwhite); background: color-mix(in oklab, var(--e-orange) 14%, transparent); }
