/* Event Attendee Hub — Pilina editorial style.
   Brand colors, fonts and photos come from data/csv/config.csv and are applied as CSS variables by app.js. */
:root {
  --primary: #001F3D;      /* deep navy: header text, headings, footer */
  --accent: #FA9939;       /* soft orange: buttons, labels, rules (use sparingly) */
  --accent-deep: #E87A00;  /* hover / small accents */
  --bg: #FDFCFA;           /* paper */
  --text: #33373D;         /* ink */
  --muted: #6b6f75;
  --soft: #F4EFE7;         /* camel tint: soft sections, monograms */
  --sage: #4A726D;         /* confirmed meetings */
  --mist: #EEF2F0;         /* booth fill, quiet panels */
  --card: #ffffff;
  --line: rgba(0, 31, 61, .12);
  --line-strong: rgba(0, 31, 61, .22);
  --warn: #B07A2A;
  --heading-font: "Roboto", "Segoe UI", Arial, sans-serif;
  --body-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --heading-weight: 300;
  --radius: 2px;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--body-font); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: var(--heading-weight); color: var(--primary); line-height: 1.15; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--primary); }

/* Labels and rules: the Pilina signature */
.eyebrow { font-family: var(--body-font); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 12px; display: block; }
.eyebrow.light { color: #fff; opacity: .92; }
.rule { width: 48px; height: 1px; background: var(--accent); border: 0; margin: 18px 0 22px; }
.rule.center { margin-left: auto; margin-right: auto; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 640px; }
.italic { font-style: italic; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.tiny { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }
.center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header: nav split around a centered wordmark ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(253, 252, 250, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s, color .3s; }
.topbar-inner { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; align-items: center; }
.nav.left { justify-content: flex-end; }
.nav.right { justify-content: flex-start; }
.nav a { color: var(--primary); text-decoration: none; font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--accent-deep); }
.nav a.active { border-bottom-color: var(--accent); }
.brand { text-align: center; text-decoration: none; color: var(--primary); display: block; line-height: 1.1; }
.brand img { height: 52px; width: auto; margin: 0 auto; }
.brand .wordmark { font-family: var(--heading-font); font-weight: 300; font-size: 1.55rem; letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; display: block; }
.brand .sub { font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; display: block; margin-top: 4px; opacity: .85; }
.user-wrap { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.head-right { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.userchip { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 12px 3px 3px; color: var(--primary); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); color: var(--primary); border-radius: 999px; padding: 6px 14px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 10px); background: var(--card); color: var(--text); border: 1px solid var(--line); min-width: 220px; padding: 8px; display: none; box-shadow: 0 18px 40px rgba(0, 31, 61, .12); }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; color: var(--primary); text-decoration: none; background: none; border: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--soft); }

/* Transparent header over a photo hero */
body.has-hero .topbar:not(.scrolled) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.has-hero .topbar:not(.scrolled) .nav a, body.has-hero .topbar:not(.scrolled) .brand { color: #fff; }
body.has-hero .topbar:not(.scrolled) .nav a.active { border-bottom-color: var(--accent); }
body.has-hero .topbar:not(.scrolled) .userchip, body.has-hero .topbar:not(.scrolled) .menu-btn { color: #fff; border-color: rgba(255, 255, 255, .45); }
body.has-hero .topbar { position: fixed; left: 0; right: 0; }

@media (max-width: 1080px) {
  .topbar-inner { grid-template-columns: auto 1fr auto; }
  .brand { text-align: left; }
  .brand img { margin: 0; }
  .menu-btn { display: block; }
  .nav { display: none; }
  .mobile-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 24px 22px; flex-direction: column; }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { color: var(--primary) !important; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
  .userchip .uname { display: none; }
  .brand .wordmark { font-size: 1.2rem; letter-spacing: .26em; padding-left: 0; }
}
@media (min-width: 1081px) { .mobile-nav { display: none !important; } }

/* ---------- Layout ---------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 96px; min-height: 60vh; }
.section { margin-top: 72px; }
.section:first-child { margin-top: 0; }
.section-head { margin-bottom: 28px; }
.section-head.center { text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 28px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card.quiet { background: var(--soft); border-color: transparent; }
.card h3 { margin-bottom: .4em; }

/* Full-bleed photo hero */
.bleed { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.hero { min-height: 86vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 140px 24px 90px; background: var(--primary) center / cover no-repeat; position: relative; margin-top: -48px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 18, 36, .55) 0%, rgba(0, 18, 36, .35) 45%, rgba(0, 18, 36, .7) 100%); }
.hero > div { position: relative; max-width: 820px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: .02em; margin-bottom: 0; }
.hero p { color: rgba(255, 255, 255, .9); }
.hero .meta { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: rgba(255, 255, 255, .88); }
.hero .count { font-family: var(--heading-font); font-weight: 300; font-size: 1.5rem; letter-spacing: .06em; margin: 22px 0 30px; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; }

/* Inner-page photo banner */
.banner { min-height: 320px; display: flex; align-items: flex-end; color: #fff; background: var(--primary) center / cover no-repeat; position: relative; margin-top: -48px; margin-bottom: 48px; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 18, 36, .9) 0%, rgba(0, 18, 36, .7) 40%, rgba(0, 18, 36, .25) 100%), linear-gradient(180deg, rgba(0, 18, 36, .15), rgba(0, 18, 36, .6)); }
.banner h1, .banner p, .banner .eyebrow, .hero h1, .hero p, .hero .eyebrow, .hero .count { text-shadow: 0 2px 24px rgba(0, 18, 36, .55); }
.banner > div { position: relative; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 120px 24px 44px; }
.banner h1 { color: #fff; margin: 0; }
.banner p { color: rgba(255, 255, 255, .88); margin: 10px 0 0; max-width: 620px; }
.banner.plain { background-image: none !important; }
.banner.plain::before { background: radial-gradient(1200px 400px at 85% 0%, rgba(250, 153, 57, .18), transparent 60%), linear-gradient(180deg, rgba(0, 31, 61, 1), rgba(0, 31, 61, .96)); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin: -24px 0 28px; }

/* ---------- Buttons, chips, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--primary); padding: 11px 24px; border-radius: 999px; text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.btn.primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-1px); }
.btn.dark { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.dark:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.btn.ghost-light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn.ghost-light:hover { background: #fff; color: var(--primary); }
.btn.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.sm { padding: 7px 14px; font-size: .64rem; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--primary); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); }
.link:hover { color: var(--accent-deep); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--soft); color: var(--primary); }
.chip.type { color: #fff; }
.chip.ok { background: rgba(74, 114, 109, .14); color: var(--sage); }
.chip.warn { background: rgba(250, 153, 57, .18); color: #8a5a10; }
.chip.outline { background: transparent; border: 1px solid var(--line-strong); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--primary); }
.input, select.input, textarea.input { border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; border-radius: 0; padding: 10px 2px; min-width: 0; width: 100%; color: var(--text); font-size: .95rem; letter-spacing: normal; text-transform: none; font-weight: 400; }
textarea.input { border: 1px solid var(--line-strong); padding: 12px; background: var(--card); }
.input:focus { outline: none; border-color: var(--accent); }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.toolbar { display: flex; gap: 18px 24px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 32px; padding-bottom: 6px; }
.toolbar .input { width: auto; flex: 1 1 220px; }
.toolbar select.input { flex: 0 1 200px; }

/* Day tabs: editorial numerals with an orange underline */
.daytabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.daytab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 22px 12px; text-align: center; min-width: 84px; color: var(--muted); margin-bottom: -1px; }
.daytab b { display: block; font-family: var(--heading-font); font-weight: 300; font-size: 2rem; line-height: 1.1; color: var(--primary); }
.daytab span { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.daytab.active { border-bottom-color: var(--accent); color: var(--accent-deep); }
.daytab:hover b { color: var(--accent-deep); }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 48px 20px; background: var(--primary) center / cover no-repeat; position: relative; }
.login::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 18, 36, .55), rgba(0, 18, 36, .75)); }
.login > div { position: relative; width: 100%; max-width: 980px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.login .intro { color: #fff; }
.login .intro h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 0; }
.login .intro p { color: rgba(255, 255, 255, .88); }
.login .intro .meta { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.login form { background: var(--bg); padding: 40px 36px; }
.login form h2 { font-size: 1.7rem; }
.demo-note { background: var(--soft); padding: 12px 14px; font-size: .8rem; color: var(--muted); }
.error { color: #b42318; font-size: .86rem; }
@media (max-width: 820px) { .login > div { grid-template-columns: 1fr; gap: 28px; } .login form { padding: 30px 22px; } }

/* ---------- Home ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 26px 20px; text-decoration: none; color: inherit; border-right: 1px solid var(--line); display: block; }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--heading-font); font-weight: 300; font-size: 2.8rem; line-height: 1; color: var(--primary); display: block; margin-bottom: 8px; }
.stat span { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.stat:hover b { color: var(--accent-deep); }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; align-items: flex-start; }
.list li:first-child { padding-top: 4px; }
.list li:last-child { border-bottom: 0; }
.date-badge { flex: 0 0 auto; width: 54px; text-align: center; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--accent-deep); line-height: 1.3; }
.date-badge b { display: block; font-family: var(--heading-font); font-weight: 300; font-size: 1.9rem; color: var(--primary); letter-spacing: 0; line-height: 1.05; }
.past { opacity: .45; }
.photo-card { display: block; text-decoration: none; color: inherit; }
.photo-card .ph { aspect-ratio: 4 / 3; background: var(--soft) center / cover no-repeat; margin-bottom: 18px; transition: transform .6s ease; }
.photo-card:hover .ph { transform: scale(1.015); }
.photo-card h3 { margin-bottom: 6px; }
.photo-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.quote { font-family: var(--heading-font); font-weight: 300; font-size: 1.35rem; color: var(--primary); font-style: italic; line-height: 1.5; }

/* ---------- Session / schedule rows ---------- */
.item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.item:first-child { border-top: 1px solid var(--line); }
.item .time { font-family: var(--heading-font); font-weight: 300; font-size: 1.35rem; color: var(--primary); line-height: 1.2; }
.item .time small { display: block; font-family: var(--body-font); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-top: 4px; }
.item .body h3 { font-size: 1.3rem; margin: 2px 0 6px; }
.item .body h3 a { color: var(--primary); text-decoration: none; }
.item .body h3 a:hover { color: var(--accent-deep); }
.item .labels { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.item .labels .eyebrow { margin: 0; }
.item .actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.item.keynote .time { color: var(--accent-deep); }
.item.meeting .time::before, .item.pending .time::before, .item.blocked .time::before { content: ""; display: block; width: 24px; height: 2px; margin-bottom: 10px; background: var(--sage); }
.item.pending .time::before { background: var(--accent); }
.item.blocked .time::before { background: #9aa3ab; }
.item.blocked { opacity: .7; }
.card .item:first-child { border-top: 0; padding-top: 4px; }
.card .item:last-child { border-bottom: 0; }
@media (max-width: 680px) { .item { grid-template-columns: 1fr; gap: 8px; } .item .actions { flex-direction: row; flex-wrap: wrap; align-items: center; } }

/* Timeline view */
.timeline { position: relative; background: var(--card); border: 1px solid var(--line); padding: 14px 0; }
.tl-hour { height: 64px; border-top: 1px solid var(--line); position: relative; }
.tl-hour span { position: absolute; left: 14px; top: -9px; background: var(--card); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: 0 6px; }
.tl-block { position: absolute; padding: 7px 12px; font-size: .78rem; overflow: hidden; background: var(--mist); border-left: 2px solid var(--primary); }
.tl-block.meeting { background: rgba(74, 114, 109, .12); border-left-color: var(--sage); }
.tl-block.pending { background: rgba(250, 153, 57, .14); border-left-color: var(--accent); }
.tl-block.blocked { background: #f0f0ef; border-left-color: #9aa3ab; }
.tl-block b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--primary); }

/* ---------- Exhibitors, people ---------- */
.ex-card { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); padding: 0 0 22px; transition: border-color .25s, transform .25s; }
.ex-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ex-card .ex-top { text-decoration: none; position: relative; aspect-ratio: 16 / 9; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.ex-card .ex-top img { width: 62%; height: 62%; object-fit: contain; }
.ex-card .ex-top .mono { font-family: var(--heading-font); font-weight: 300; font-size: 2.6rem; letter-spacing: .12em; color: var(--primary); }
.ex-card .ex-top .fav { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .85); width: 34px; height: 34px; border-radius: 50%; }
.ex-card .ex-body { padding: 0 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ex-card h3 { margin: 0; font-size: 1.3rem; }
.ex-card h3 a { color: var(--primary); text-decoration: none; }
.ex-card .row { padding: 0 22px; }
.logo-box { width: 64px; height: 64px; background: var(--soft); display: grid; place-items: center; font-family: var(--heading-font); font-weight: 300; font-size: 1.4rem; letter-spacing: .08em; color: var(--primary); overflow: hidden; flex: 0 0 auto; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; }
.logo-box.lg { width: 150px; height: 150px; font-size: 2.6rem; }
.fav { background: none; border: 0; font-size: 1.15rem; color: var(--primary); line-height: 1; padding: 2px; display: grid; place-items: center; }
.fav.on { color: var(--accent); }
.ex-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 260px; gap: 32px; align-items: center; }
@media (max-width: 860px) { .ex-head { grid-template-columns: 1fr; } }
.person { display: flex; gap: 14px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-family: var(--heading-font); font-weight: 400; color: var(--primary); overflow: hidden; flex: 0 0 auto; letter-spacing: .06em; font-size: .95rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 120px; height: 120px; font-size: 2rem; font-weight: 300; }
.speaker { background: none; border: 0; text-align: center; padding: 0; }
.speaker .avatar.lg { margin: 0 auto 16px; width: 150px; height: 150px; transition: transform .4s; }
.speaker:hover .avatar.lg { transform: scale(1.03); }
.speaker b { font-family: var(--heading-font); font-weight: 300; font-size: 1.25rem; color: var(--primary); display: block; }

/* ---------- Floor plan ---------- */
.fp-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.fp-stage { position: relative; background: #fff; border: 1px solid var(--line); overflow: hidden; height: min(72vh, 720px); touch-action: none; }
.fp-stage svg { width: 100%; height: 100%; display: block; cursor: grab; user-select: none; }
.fp-stage svg.dragging { cursor: grabbing; }
.fp-controls { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.fp-controls button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-size: 1rem; color: var(--primary); }
.fp-levels { position: absolute; left: 14px; right: 64px; top: 14px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.fp-levels .btn { background: #fff; }
.fp-levels .btn.on { background: var(--primary); }
.fp-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-top: 14px; }
.fp-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 0; border: 1px solid var(--line-strong); }
.booth rect { stroke: rgba(0, 31, 61, .28); stroke-width: 1; transition: filter .15s; }
.booth { cursor: pointer; }
.booth:hover rect { filter: brightness(.95); }
.booth text { pointer-events: none; font-family: var(--body-font); }
.booth.selected rect { stroke: var(--accent); stroke-width: 4; }
.booth.dim { opacity: .25; }
.fp-panel { min-height: 200px; }
@media (max-width: 960px) { .fp-wrap { grid-template-columns: 1fr; } .fp-stage { height: 60vh; } }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 18, 36, .55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s ease; }
.modal { background: var(--bg); max-width: 640px; width: 100%; max-height: 88vh; overflow: auto; padding: 40px 36px; position: relative; border-top: 3px solid var(--accent); }
.modal .close { position: absolute; right: 14px; top: 14px; border: 1px solid var(--line-strong); background: none; border-radius: 50%; width: 36px; height: 36px; font-size: 1.1rem; color: var(--primary); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 560px) { .modal { padding: 32px 20px; } }

/* ---------- Info / FAQ ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.4em; font-size: 1.6rem; }
.prose ul { padding-left: 1.1em; }
.prose li::marker { color: var(--accent); }
details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-family: var(--heading-font); font-weight: 300; font-size: 1.2rem; color: var(--primary); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent-deep); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding-top: 10px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 12px 20px; font-size: .94rem; margin: 0; }
.kv dt { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-top: 3px; }
.kv dd { margin: 0; color: var(--text); }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dt { margin-top: 10px; } }
table.nights { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.nights th { text-align: left; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: 0 0 10px; }
table.nights td { padding: 12px 0; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 12px 22px; border-radius: 999px; z-index: 200; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; box-shadow: 0 14px 30px rgba(0, 31, 61, .25); animation: fade .2s ease; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); }

/* ---------- Footer ---------- */
footer.site { background: var(--primary); color: rgba(255, 255, 255, .78); text-align: center; padding: 64px 24px 40px; font-size: .82rem; }
footer.site .wordmark { font-family: var(--heading-font); font-weight: 300; font-size: 1.4rem; letter-spacing: .3em; text-transform: uppercase; color: #fff; display: block; }
footer.site .rule { margin: 18px auto; }
footer.site nav { display: flex; gap: 10px 24px; justify-content: center; flex-wrap: wrap; margin: 22px 0; }
footer.site nav a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
footer.site nav a:hover { color: var(--accent); }
footer.site .fine { font-size: .7rem; letter-spacing: .08em; color: rgba(255, 255, 255, .55); margin-top: 18px; }

/* Gentle reveal on load */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s ease both; }
  .reveal.d2 { animation-delay: .08s; } .reveal.d3 { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* Session rows inside narrow cards stack neatly */
.card { container-type: inline-size; }
@container (max-width: 560px) {
  .item { grid-template-columns: 1fr; gap: 6px; }
  .item .actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .brand .sub { display: none; }
  main { padding: 36px 18px 72px; }
  .banner > div { padding: 110px 18px 34px; }
  .hero { padding: 120px 18px 80px; }
}
@container (max-width: 440px) {
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 12px; }
}
@media (max-width: 1080px) { .userchip { padding: 2px; border-color: transparent; } }

/* Home photo strip (gallery.csv) */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.gallery figure { margin: 0; }
.gallery .ph { aspect-ratio: 3 / 2; background: var(--soft) center / cover no-repeat; transition: transform .6s ease; }
.gallery figure:hover .ph { transform: scale(1.015); }
.gallery figcaption { padding-top: 18px; }
.gallery figcaption b { display: block; font-family: var(--body-font); font-weight: 600; font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); }
.gallery figcaption span { display: block; color: var(--muted); margin-top: 4px; }
