/* ==========================================================================
   Politics in Action — site styles
   Layout modelled on a modern policy-platform look: dark hero, marquee strip,
   alternating feature rows, stats band, CTA band, multi-column footer.
   ========================================================================== */

:root {
  --ink: #0d0f12;          /* near-black (logo background) */
  --ink-2: #161a20;
  --ink-3: #232831;
  --paper: #ffffff;
  --paper-2: #f5f4f0;      /* warm off-white sections */
  --line: #e4e2dc;
  --line-dark: #2c323c;
  --text: #15181d;
  --muted: #5c6370;
  --muted-dark: #a3a9b4;
  --red: #d52b1e;          /* Canadian red accent */
  --red-dark: #b32217;
  --red-soft: #fbe9e7;

  --radius: 18px;
  --radius-sm: 10px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;  /* stop iOS enlarging text in landscape */
  -webkit-tap-highlight-color: rgba(213,43,30,.12);
}
img { max-width: 100%; display: block; }
html, body { overflow-x: clip; }
.hero-grid > *, .feature > *, .card-grid > *, .footer-grid > *, .dash-cols > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  display: inline-block;
  font-size: .95rem; font-weight: 600; letter-spacing: 0;
  color: var(--red); margin-bottom: 14px;
}
.dark .eyebrow { color: #ff6b5e; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.dark .lead { color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eceae4; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: rgba(127,127,127,.12); }
.btn .arrow { transition: transform .18s ease; }
@media (hover: hover) { .btn:hover .arrow { transform: translateX(3px); } }
.btn:active { transform: scale(.97); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); color: var(--text);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand span { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 auto 0 24px; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 1rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; color: var(--text); transition: all .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: #f1efea; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 11px 22px; font-size: .95rem; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; display: block; }
.menu-toggle path { transition: transform .25s ease, opacity .2s ease; transform-origin: 12px 12px; }
.site-header.open .menu-toggle .l1 { transform: translateY(5px) rotate(45deg); }
.site-header.open .menu-toggle .l2 { opacity: 0; }
.site-header.open .menu-toggle .l3 { transform: translateY(-5px) rotate(-45deg); }

/* Desktop: the menu wrapper is invisible to layout */
.nav-menu { display: contents; }

/* Phones & tablets: one drop-down panel holding the links and the buttons */
@media (max-width: 1060px) {
  .menu-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.25);
    padding: 8px var(--gutter) 24px;
    max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-header.open .nav-menu { display: block; animation: menu-in .22s ease-out; }
  .nav-menu .nav-links { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .nav-menu .nav-links a {
    display: block; padding: 14px 4px 14px 14px; font-size: 1.1rem;
    border-bottom: 0; border-left: 3px solid transparent;
  }
  .nav-menu .nav-links li + li { border-top: 1px solid var(--line); }
  .nav-menu .nav-links a[aria-current="page"] { border-left-color: var(--red); color: var(--red); }
  .nav-menu .nav-cta { margin-top: 16px; flex-wrap: wrap; }
  .nav-menu .nav-cta .btn { flex: 1 1 140px; justify-content: center; padding: 14px 20px; }
  html.menu-open { overflow: hidden; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero (light) ---------- */
.dark { background: var(--ink); color: #fff; }
.hero { position: relative; background: var(--paper); padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 6vw, 72px); }
.hero h1 {
  font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05;
}
.hero-home h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); max-width: 16ch; margin: 0 auto; }
.hero.hero-home .lead { font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--text); margin: 28px auto 34px; max-width: 46ch; }
.hero-home .btn-row { justify-content: center; }
.hero .lead { font-size: 1.25rem; margin: 22px 0 0; }

/* Gradient photo band under the home hero */
.hero-band {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, #f6c8a8 0%, #eeb7a6 22%, #f1d8cf 48%, #c9ccd6 75%, #9ea9bb 100%);
  padding: 56px 0 0;
}
.hero-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle, #fff 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 32%, transparent 44%, transparent 70%, #000 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 32%, transparent 44%, transparent 70%, #000 85%, transparent 100%);
}
.hero-band-inner { position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 24px; align-items: end; }
.band-photo { border-radius: 22px 22px 0 0; overflow: hidden; background: #2a2f38; box-shadow: 0 -10px 40px -20px rgba(0,0,0,.35); }
.band-photo img { width: 100%; height: 100%; object-fit: cover; }
.band-photo:nth-child(1) { height: 260px; }
.band-photo:nth-child(2) { height: 340px; }
.band-photo:nth-child(3) { height: 300px; }
.band-photo.placeholder { display: grid; place-items: center; color: #9aa1ad; font-size: .9rem; text-align: center; padding: 16px;
  background: linear-gradient(160deg, #343a45, #1d2129); }
.band-photo.placeholder strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
@media (max-width: 760px) {
  .hero-band-inner { grid-template-columns: 1fr 1fr; }
  .band-photo:nth-child(3) { display: none; }
  .band-photo:nth-child(1), .band-photo:nth-child(2) { height: 220px; }
}

.page-hero { border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); max-width: 18ch; }

/* ---------- Marquee strip ---------- */
.marquee { background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
/* Spacing is padding (not gap) so the two copies are exactly equal and -50% loops seamlessly */
.marquee-track {
  display: flex; width: max-content;
  animation: scroll 38s linear infinite;
  will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.marquee-track span {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #8a909b;
  white-space: nowrap; padding-right: 64px; flex-shrink: 0;
}
@media (max-width: 640px) {
  .marquee { padding: 20px 0; }
  .marquee-track { animation-duration: 28s; }
  .marquee-track span { font-size: 1.05rem; padding-right: 44px; }
}
/* Only pause on a real mouse hover; on iPhone a tap would freeze it */
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head .lead { margin: 12px 0 0; }

/* Feature rows (alternating) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 110px); }
.feature.reverse .feature-media { order: 2; }
.feature h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.feature p { color: var(--muted); font-size: 1.08rem; }
.feature .btn { margin-top: 10px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
}

/* Photo / media frames — drop real photos into assets/photos */
.media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--ink-2);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.placeholder {
  display: grid; place-items: center; text-align: center; color: #8d94a0;
  background:
    linear-gradient(135deg, rgba(213,43,30,.22), transparent 60%),
    repeating-linear-gradient(45deg, #1a1e25 0 14px, #1d2129 14px 28px);
  font-size: .9rem; padding: 20px;
}
.media.placeholder strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 4px; }
.media.video { aspect-ratio: 16 / 9; }
.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-tag {
  position: absolute; left: 16px; top: 16px; background: var(--red); color: #fff;
  font-size: .75rem; font-weight: 700; 
  padding: 6px 12px; border-radius: 999px;
}

/* Photo strip */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-grid .media { aspect-ratio: 1; }
.photo-grid .media:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 700px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.stat { background: var(--ink); padding: 36px 32px; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: #fff; }
.stat .num em { color: var(--red); font-style: normal; }
.stat p { color: var(--muted-dark); margin: 12px 0 0; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .card-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  text-decoration: none; color: inherit;
}
@media (hover: hover) { a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.25); border-color: #d2cfc7; } }
a.card:active { transform: scale(.985); }
.card .meta { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700;  background: var(--red-soft); color: var(--red-dark); }
.pill.grey { background: #eeece7; color: #4a505a; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; flex: 1; }
.card .more { font-weight: 600; font-size: .92rem; color: var(--red); margin-top: 8px; }
.card.featured { grid-column: span 2; background: var(--ink); color: #fff; border-color: var(--ink); }
.card.featured p { color: var(--muted-dark); }
.card.featured .meta { color: var(--muted-dark); }
@media (max-width: 640px) { .card.featured { grid-column: auto; } }

/* Pillars (about) */
.pillar { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.pillar .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; font-weight: 800; font-family: var(--font-head); }
.pillar p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Timeline */
.timeline { position: relative; margin-top: 24px; padding-left: 32px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before { content: ""; position: absolute; left: -41px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 4px solid var(--paper-2); }
.timeline-item .when { font-weight: 700; color: var(--red); font-size: .9rem;  }
.timeline-item h3 { margin: 4px 0 6px; }
.timeline-item p { color: var(--muted); margin: 0; }

/* Team */
.team-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.team-photo { aspect-ratio: 1; background: var(--ink-2); display: grid; place-items: center; position: relative; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo .initials { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: #fff; opacity: .9; }
.team-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(213,43,30,.35), transparent 60%); pointer-events: none; }
.team-photo:has(img)::after { display: none; }
.team-body { padding: 22px 22px 26px; }
.team-body .role { color: var(--red); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.team-body h3 { margin-bottom: 4px; }
.team-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.team-group-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); font-size: 1.5rem; margin: 0 0 20px; }
.team-group + .team-group { margin-top: 64px; }

/* Roles (get involved) */
.role-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.role-card summary { list-style: none; cursor: pointer; padding: 26px 28px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.role-card summary::-webkit-details-marker { display: none; }
.role-card summary h3 { margin: 0 0 4px; }
.role-card summary .sub { color: var(--muted); font-size: .95rem; }
.role-card .chev { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .2s; }
.role-card[open] .chev { transform: rotate(45deg); background: var(--red); color: #fff; border-color: var(--red); }
.role-body { padding: 0 28px 28px; color: var(--muted); }
.role-body h4 { font-family: var(--font-head); color: var(--text); font-size: 1rem; margin: 18px 0 8px; }
.role-body ul { margin: 0; padding-left: 20px; }
.role-body li { margin-bottom: 4px; }
.role-list { display: grid; gap: 14px; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; background: url("../assets/logo-mark-white.png") center/contain no-repeat; opacity: .12; }
.cta-band h2 { margin: 0 0 10px; }
.cta-band p { margin: 0; opacity: .9; font-size: 1.1rem; max-width: 52ch; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Updates list */
.update { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.update:last-child { border-bottom: 1px solid var(--line); }
.update time { font-weight: 600; color: var(--muted); font-size: .92rem; }
.update h3 { margin-bottom: 8px; }
.update p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .update { grid-template-columns: 1fr; gap: 8px; } }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter { border: 1px solid var(--line); background: var(--paper); padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer; }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd3da; padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted-dark); font-size: .95rem; max-width: 34ch; }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; font-size: .95rem; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: #cfd3da; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted-dark); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px); }
.dash-side { background: var(--ink-2); color: #cfd3da; padding: 28px 18px; }
.dash-side button { display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 10px 14px; border-radius: 10px; cursor: pointer; margin-bottom: 4px; }
.dash-side button.active, .dash-side button:hover { background: rgba(255,255,255,.08); color: #fff; }
.dash-side .label { font-size: .75rem;  color: #7b828e; padding: 0 14px; margin: 0 0 10px; }
.dash-main { padding: 40px clamp(16px, 4vw, 48px); background: var(--paper-2); }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.box h3 { font-size: 1.05rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .95rem; background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.code-out { background: var(--ink); color: #e6e8eb; border-radius: var(--radius-sm); padding: 16px; font: 13px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; }
.help { font-size: .9rem; color: var(--muted); }
.help code { background: #eceae4; padding: 1px 6px; border-radius: 4px; font-size: .85em; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; transition: transform .25s; z-index: 200; }
.toast.show { transform: translateX(-50%) translateY(0); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem;  color: var(--muted); }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } .dash-cols { grid-template-columns: 1fr; } .dash-side { display: flex; gap: 6px; overflow-x: auto; padding: 12px; } .dash-side .label { display: none; } .dash-side button { white-space: nowrap; width: auto; } }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Footer wordmark (sentence case) */
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo img { height: 44px; width: auto; margin: 0; }
.footer-logo span { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; }
.event-date { color: var(--muted); font-weight: 600; margin-top: -6px; }

.band-photo img, .media img { object-position: center 35%; }

/* No pill / capsule shapes: tags, nav highlight and filters are plain text */
.pill, .pill.grey { background: none; padding: 0; border-radius: 0; font-size: .88rem; font-weight: 600; color: var(--red-dark); }
.pill.grey { color: var(--muted); }
.card.featured .pill { color: #ff8a80; }
.nav-links a { border-radius: 0; background: none !important; padding: 8px 12px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--red); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--red); }
.filters { gap: 24px; border-bottom: 1px solid var(--line); }
.filter { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 10px 0; margin-bottom: -1px; color: var(--muted); font-weight: 600; }
.filter.active { background: none; color: var(--text); border-bottom-color: var(--red); }
.media-tag { display: none; }

/* Photo grid: big photo + 5 smaller, 3 columns */
.photo-grid { grid-template-columns: repeat(3, 1fr); }
.photo-grid .media { aspect-ratio: 4 / 3; }
.photo-grid .media:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 700px) { .photo-grid { grid-template-columns: 1fr 1fr; } .photo-grid .media:nth-child(1) { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; } }
.footer-bottom a { color: var(--muted-dark); }

/* ---------- Team log in + editor ---------- */
.login-wrap { min-height: calc(100vh - 80px); min-height: calc(100dvh - 80px); display: grid; place-items: center; padding: 48px 16px; background: var(--paper-2); }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; }
.login-card h1 { font-family: var(--font-serif); font-weight: 500; font-size: 2.2rem; margin-bottom: 8px; }
.login-logo { height: 48px; width: auto; margin-bottom: 20px; }
.form-error { color: var(--red-dark); font-size: .92rem; min-height: 1.2em; margin: 0 0 12px; }
[hidden] { display: none !important; }
.editor-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.editor-bar .btn { padding: 10px 18px; font-size: .9rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.list-head h2 { margin: 0; font-size: 1.8rem; }
.item-list { padding: 8px 24px; }
.item-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item-row:last-child { border-bottom: 0; }
.item-main { flex: 1; min-width: 0; }
.item-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.item-actions button { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.item-actions button:hover:not(:disabled) { border-color: var(--text); }
.item-actions button:disabled { opacity: .35; cursor: default; }
.item-actions .danger { color: var(--red-dark); }
.row-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #e9e7e1; flex-shrink: 0; }
.img-field { display: flex; gap: 14px; align-items: flex-start; }
.img-thumb { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.img-thumb.empty { display: grid; place-items: center; background: #eeece7; color: var(--muted); font-size: .8rem; }
.upload-btn { margin-top: 10px; padding: 8px 16px; font-size: .88rem; cursor: pointer; }
.box + .btn-row, #item-form + .btn-row { margin-top: 8px; }
@media (max-width: 640px) { .item-row { flex-wrap: wrap; } .item-actions { width: 100%; } }

/* Legal pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin: 2em 0 .6em; }
.prose p, .prose li { color: #3a404a; }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--red-dark); }

/* ---------- Inline editing (team members only) ---------- */
.edit-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 300;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  background: var(--ink); color: #fff; padding: 8px 10px 8px 18px; border-radius: 14px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.45); font-size: .9rem; max-width: calc(100vw - 32px);
}
.edit-bar .edit-status { color: #c4c9d1; margin-right: 8px; }
.edit-bar button, .edit-bar a {
  background: rgba(255,255,255,.08); color: #fff; border: 0; border-radius: 9px; padding: 8px 14px;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.edit-bar button:hover, .edit-bar a:hover { background: rgba(255,255,255,.16); }
.edit-bar .primary { background: var(--red); }
.edit-bar .primary:hover { background: var(--red-dark); }
.edit-bar button:disabled { opacity: .45; cursor: not-allowed; }
.is-editing .edit-text { outline: 1px dashed rgba(213,43,30,.45); outline-offset: 3px; cursor: text; }
.is-editing .edit-text:hover { outline-color: var(--red); }
.is-editing .edit-text:focus { outline: 2px solid var(--red); background: rgba(213,43,30,.06); }
.is-editing .edit-img { cursor: pointer; outline: 2px dashed transparent; outline-offset: -2px; transition: outline-color .15s, filter .15s; }
.is-editing .edit-img:hover { outline-color: var(--red); filter: brightness(.85); }
.is-editing .marquee-track { animation-play-state: paused; }
.edit-link-btn { position: absolute; z-index: 310; background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 6px 12px; font: 600 .82rem var(--font-body); cursor: pointer; }
body:has(.edit-bar) { padding-bottom: 80px; }
