/* Festival International de Louisiane — shared branding for lineup, itinerary and planner pages.
   Link it AFTER each page's own <style> so these tokens and type styles take priority.

   Brand standards: Blue #1984C7 · Purple #542E91 · Orange #F26631
   Type: Futura Bold Italic (headlines), Futura Medium (text), Ando (condensed display), Thirsty Script (accent).
   Futura, Ando and Thirsty Script are licensed fonts. Each stack lists the real font first, so it is used
   wherever it's installed or web-licensed; otherwise the free look-alike loads from Google Fonts:
     Futura -> Jost · Ando -> Saira Condensed · Thirsty Script -> Yellowtail */

:root {
  --fil-blue: #1984c7;
  --fil-purple: #542e91;
  --fil-orange: #f26631;
  --fil-navy: #221f5c;     /* 2026 site map background */
  --fil-cyan: #46c3ec;     /* 2026 site map streets */
  --lft-orange: var(--fil-orange);

  /* page tokens used throughout the pages */
  --blue: var(--fil-blue);
  --purple: var(--fil-purple);
  --orange: var(--fil-orange);
  --ink: #1c1b22;          /* text */
  --muted: #6b6878;        /* secondary text */
  --bg: #f6f5f9;           /* page background */
  --card: #ffffff;
  --line: #e4e2ea;         /* borders */
  --danger: #d93a3a;
  --warn: #b86200;
  --ok: #2e8f55;

  --font-headline: "Futura PT", "Futura", "Jost", "Century Gothic", system-ui, sans-serif;  /* use bold italic */
  --font-body: "Futura PT", "Futura", "Jost", "Century Gothic", system-ui, sans-serif;      /* use medium */
  --font-display: "Ando", "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-script: "Thirsty Script", "Yellowtail", cursive;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); }
button, select { font: inherit; color: inherit; }

/* ---------- brand bar: logo + page links ---------- */
.brand-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  background: #fff; padding: 12px 24px; border-bottom: 1px solid #e4e2ea;
}
/* Reserve the bar's height (one row; two on phones) so the page doesn't jump while common.js fills it in,
   the language menu is added and the web fonts arrive. The filled bar is never shorter than this. */
.brand-bar { min-height: 103px; }   /* 65px bar + the preview strip */
/* Preview strip across the top of the bar (it's a prototype shared for feedback) */
.preview-note {
  order: -1; flex: 1 0 calc(100% + 48px); margin: -12px -24px 0; padding: 5px 16px;
  background: #f1ecfa; color: var(--fil-purple); font: 500 .8rem/1.3 var(--font-body); text-align: center;
}
.preview-note a { color: var(--fil-purple); font-weight: 700; text-decoration: underline; margin-left: 4px; white-space: nowrap; }
@media print { .preview-note { display: none !important; } }
/* Same strip when there's no signal and the schedule is the copy saved on the phone (common.js, sw.js) */
.preview-note.offline-note { background: #fff4e6; color: #7a4100; font-weight: 600; }
.brand-logo { display: block; line-height: 0; flex: 0 1 auto; min-width: 0; }
/* aspect-ratio = assets/logo.png (1497×200): the logo takes its full width before the image arrives,
   so the bar doesn't fit on one row first and then wrap (layout shift) */
.brand-logo img { height: 40px; width: auto; max-width: 100%; aspect-ratio: 1497 / 200; }
/* Product name, set in the brand script next to the logo */
.brand-tag {
  font-family: var(--font-script); font-size: 1.7rem; line-height: 1; color: var(--fil-purple);
  margin-right: auto; white-space: nowrap; padding-top: 4px;
  /* Fixed width (= the tagline in Yellowtail) so the bar wraps the same before and after the web
     font loads; the wider fallback font would otherwise push it onto an extra row on phones */
  width: 5.8em;
}
.brand-nav { display: flex; gap: 4px; }

/* Language menu (added to every brand bar by i18n.js) */
.lang-pick {
  display: inline-flex; align-items: center; gap: 4px; color: var(--fil-purple);
  border: 1px solid #e4e2ea; border-radius: 999px; padding: 2px 4px 2px 9px; background: #fff;
}
.lang-pick select {
  border: none; background: transparent; font: 600 .85rem var(--font-body); color: var(--fil-purple);
  padding: 4px 2px; cursor: pointer;
}
.lang-pick:focus-within { outline: 2px solid var(--fil-blue); outline-offset: 1px; }
.brand-nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--fil-purple); text-decoration: none; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.brand-nav a:hover { background: #f0eef8; }
.brand-nav a[aria-current="page"] { background: var(--fil-purple); color: #fff; }

/* On the two-column pages (planner, itinerary) the bar spans the full width above both columns */
body > .brand-bar { grid-column: 1 / -1; }

/* Embedded in the festival website (embed.js puts .fil-embed on <html>) or in the festival mobile app
   (.fil-app on <html>): the host already shows the festival header, so the bar drops the duplicate logo
   (on phones, just the page links and language menu on one compact row; see the phone sizes below). */
.fil-embed .brand-logo, .fil-app .brand-logo { display: none; }
.fil-embed .brand-bar, .fil-app .brand-bar { padding-top: 8px; padding-bottom: 8px; min-height: 85px; }
.fil-embed .preview-note, .fil-app .preview-note { margin-top: -8px; }
/* Seamless auto-height mode (embed.js): let the document shrink and grow to its real content height */
html.fil-embed-flow, html.fil-embed-flow body { height: auto; min-height: 0; }
/* A print copy (the new tab "Print" opens from the embedded planner): page links would leave the
   patron's picks behind, so the logo (back to the festival page) and the language menu stay */
.fil-copy .brand-nav { display: none; }

/* ---------- festival band (title + day tabs) ---------- */
body { font-weight: 500; }
header {
  background:
    radial-gradient(110% 160% at 100% 0%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(115deg, var(--fil-blue) 0%, #2a6db8 55%, var(--fil-purple) 100%) !important;
  position: relative; overflow: hidden;
}
header::after {
  /* faint white swirl watermark (reversed logo treatment for dark backgrounds) */
  content: ""; position: absolute; right: -40px; top: -50px; width: 220px; height: 220px;
  background: url("assets/swirl.png") center / contain no-repeat; filter: brightness(0) invert(1);
  opacity: .14; pointer-events: none;
}
header > * { position: relative; z-index: 1; }
header h1, aside > div > h1 {
  font-family: var(--font-headline); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .01em;
}
header h1 { font-size: 1.6rem; line-height: 1; }
header h1 small {
  font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 500; font-style: normal;
  font-size: .95rem; color: #fff; opacity: .9; margin-left: 10px;
}

/* day tabs */
.day { font-family: var(--font-body); }
.day strong, .day { font-variant-numeric: tabular-nums; }
.day strong { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.day[aria-selected="true"] { box-shadow: inset 0 3px 0 var(--lft-orange); }

/* ---------- display type for the numbers and headlines that matter ---------- */
.stat b, .result .time, .leg-main .leave, .stop .act, .slot h3, .stage-head {
  font-family: var(--font-display); letter-spacing: .02em;
}
.stop .act { font-size: 1.25rem; font-weight: 700; }
.stat b { font-size: 1.5rem; font-weight: 700; }
.leg-main .leave { font-size: 1.15rem; font-weight: 700; }
.result .time { font-weight: 800; }
.panel h2 { font-family: var(--font-headline); font-size: 1.15rem; font-weight: 700; font-style: italic; text-transform: uppercase; }
.stage-head { font-size: .95rem; font-weight: 700; text-transform: uppercase; }
.slot h3 { font-size: .95rem; font-weight: 700; }

.btn.primary, #planBtn { font-family: var(--font-headline); font-style: italic; font-weight: 700; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; }

@media (max-width: 760px) {
  header h1 { font-size: 1.25rem; }
  header h1 small { display: none; }
}
@media (max-width: 560px) {
  .brand-bar { padding: 7px 14px; gap: 6px 10px; min-height: 98px; }   /* two compact rows on phones + preview strip */
  .preview-note { flex-basis: calc(100% + 28px); margin: -7px -14px 0; padding: 3px 12px; font-size: .73rem; }
  .brand-logo img { height: 22px; }
  .brand-tag { font-size: 1.1rem; padding-top: 2px; }
  /* row 1: logo + tagline · row 2: page links + language menu */
  .brand-nav { flex: 1 1 200px; min-width: 0; order: 3; }
  .lang-pick { order: 4; }
  .brand-nav { gap: 2px; }
  .brand-nav a {
    flex: 1 1 auto; text-align: center; font-size: .8rem; letter-spacing: .01em; padding: 5px 5px;
    overflow: hidden; text-overflow: ellipsis;
  }
  .lang-pick { padding-left: 6px; }
  .lang-pick select { font-size: .8rem; max-width: 82px; }
  /* website embed & mobile app: page links + language menu on one compact row */
  .fil-embed .brand-tag, .fil-app .brand-tag { display: none; }
  .fil-embed .brand-bar, .fil-app .brand-bar { padding-top: 5px; padding-bottom: 5px; min-height: 62px; }
  .fil-embed .preview-note, .fil-app .preview-note { margin-top: -5px; }
}

/* ---------- "About this artist" (artist.js): a bottom sheet on phones, a dialog on wider screens ---------- */
/* The "Bio" button (artist icon + label) on grid blocks and list cards; each page places it.
   Round icon-only by default; a page shows the .lbl text where there is room (it becomes a pill). */
.info-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 28px; height: 28px; padding: 0; border: none; border-radius: 999px;
  background: rgba(255, 255, 255, .8); color: var(--fil-purple); cursor: pointer; line-height: 1;
  font: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.info-btn svg { flex: none; }
.info-btn .lbl { display: none; }
.info-btn:hover { background: #fff; }
.info-btn:focus-visible { outline: 3px solid var(--fil-orange); outline-offset: 1px; }

.artist-sheet {
  --stage: var(--fil-purple);
  border: none; padding: 0; color: var(--ink); background: #fff; overflow: hidden;
  width: min(560px, calc(100vw - 48px)); max-width: none; max-height: min(88vh, 900px);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(28, 27, 34, .35);
}
.artist-sheet[open] { display: flex; flex-direction: column; }
.artist-sheet::backdrop { background: rgba(28, 27, 34, .5); }
.as-scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.as-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; padding: 0; border: none;
  border-radius: 50%; background: rgba(28, 27, 34, .6); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.as-close:hover { background: rgba(28, 27, 34, .8); }
.artist-sheet :focus-visible { outline: 3px solid var(--fil-orange); outline-offset: 2px; }

/* Photo (3:2, faces sit in the upper part of band photos); no photo = a short brand banner with initials */
.as-photo {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  background: linear-gradient(120deg, var(--stage), var(--fil-purple));
}
.as-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.as-photo.as-ph { aspect-ratio: auto; height: 128px; display: grid; place-items: center; }
.as-photo.as-ph::after {
  content: ""; position: absolute; right: -30px; top: -40px; width: 190px; height: 190px;
  background: url("assets/swirl.png") center / contain no-repeat; filter: brightness(0) invert(1); opacity: .16;
}
.as-photo.as-ph span {
  font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: #fff; letter-spacing: .06em;
}

.as-body { padding: 16px 20px 22px; }
.as-body h2 {
  margin: 0; color: var(--fil-purple); font-family: var(--font-headline); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 1.45rem; line-height: 1.1; overflow-wrap: anywhere;
}
.as-meta { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.as-when {
  margin: 12px 0 0; padding-left: 10px; border-left: 4px solid var(--stage);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .9rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.as-chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap;
  background: color-mix(in srgb, var(--stage) 14%, #fff); color: color-mix(in srgb, var(--stage) 60%, #000);
}
.as-bio-note { margin: 16px 0 -6px; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.as-bio { margin-top: 14px; font-size: .95rem; line-height: 1.55; }
.as-bio p { margin: 0 0 .75em; }
.as-nobio { margin: 14px 0 0; color: var(--muted); font-style: italic; }
.as-links { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.as-links a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 14px 7px 11px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--fil-purple); text-decoration: none;
  font-weight: 600; font-size: .9rem; background: #fff;
}
.as-links a:hover { background: #f0eef8; border-color: #d6d0e6; }
.as-part { margin-top: 18px; }
.as-part h3 { margin: 0; font-size: 1.05rem; }
.as-also { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.as-also h3 { margin: 0 0 8px; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.as-also ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.as-also li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9rem; font-variant-numeric: tabular-nums; }

.as-foot {
  flex: 0 0 auto; display: flex; justify-content: flex-end; background: #fff; border-top: 1px solid var(--line);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
}
.as-toggle {
  border: 1px solid var(--fil-orange); border-radius: 10px; padding: 11px 20px; min-height: 46px; cursor: pointer;
  background: var(--fil-orange); color: #fff; font-weight: 700; font-size: .95rem;
}
.as-toggle:hover { filter: brightness(.95); }
.as-toggle.on { background: #fff; color: var(--ink); border-color: var(--line); }
.as-toggle.on:hover { background: var(--bg); filter: none; }
.as-vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 600px) {
  .artist-sheet {
    width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92vh; max-height: 92dvh; border-radius: 18px 18px 0 0;
  }
  .as-body { padding: 14px 16px 20px; }
  .as-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .as-toggle { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .artist-sheet[open] { animation: as-pop .18s ease-out; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 600px) {
  .artist-sheet[open] { animation: as-up .22s ease-out; }
}
@keyframes as-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes as-up { from { transform: translateY(100%); } }
.as-bio a { color: var(--fil-purple); overflow-wrap: anywhere; }

/* ---------- previous / next day (bottom of Lineup and My Day) ---------- */
.day-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 8px; }
.day-nav:empty { display: none; }
.day-nav .day-next, .day-nav .day-prev {
  font: inherit; font-weight: 700; font-size: .92rem; border-radius: 999px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
}
.day-nav .day-next { margin-left: auto; background: var(--purple); color: #fff; border: 2px solid var(--purple); }
.day-nav .day-next:hover { filter: brightness(1.12); }
.day-nav .day-prev { background: #fff; color: var(--purple); border: 2px solid var(--line); padding: 0 14px; }
.day-nav .day-prev:hover { border-color: var(--purple); }
.day-nav :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
