/*
 * Music Coast Links v3.0.0
 * Complete, dependency-free visual system for links.musiccoast.com.
 * Mobile/festival first, light/dark/auto mode, six existing accent choices.
 */

:root {
  --page-max: 920px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 16, 20, .06), 0 8px 24px rgba(14, 16, 20, .06);
  --shadow-md: 0 18px 50px rgba(14, 16, 20, .11);
  --ease: cubic-bezier(.2, .75, .25, 1);
  --focus: 0 0 0 4px rgba(var(--accent-rgb), .26);
  --topbar-h: 68px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --accent: #d7b44b;
  --accent-rgb: 215, 180, 75;
  --accent-ink: #171717;
  --accent-soft: rgba(215, 180, 75, .13);
}

html[data-accent="gold"] { --accent: #d7b44b; --accent-rgb: 215, 180, 75; --accent-ink: #171717; --accent-soft: rgba(215, 180, 75, .14); }
html[data-accent="sunset"] { --accent: #e7683f; --accent-rgb: 231, 104, 63; --accent-ink: #fff; --accent-soft: rgba(231, 104, 63, .14); }
html[data-accent="citrus"] { --accent: #e9a81a; --accent-rgb: 233, 168, 26; --accent-ink: #171717; --accent-soft: rgba(233, 168, 26, .15); }
html[data-accent="lime"] { --accent: #91c53d; --accent-rgb: 145, 197, 61; --accent-ink: #101210; --accent-soft: rgba(145, 197, 61, .15); }
html[data-accent="ocean"] { --accent: #2c86c9; --accent-rgb: 44, 134, 201; --accent-ink: #fff; --accent-soft: rgba(44, 134, 201, .14); }
html[data-accent="violet"] { --accent: #8764d9; --accent-rgb: 135, 100, 217; --accent-ink: #fff; --accent-soft: rgba(135, 100, 217, .14); }

html[data-theme="light"],
html:not([data-theme="dark"]) {
  --page-bg: #f4f4f1;
  --surface: #fff;
  --surface-2: #efefeb;
  --surface-3: #e6e6e0;
  --text: #17181b;
  --text-2: #5d626b;
  --text-3: #7a8089;
  --border: rgba(23, 24, 27, .12);
  --border-strong: rgba(23, 24, 27, .21);
  --header-bg: rgba(244, 244, 241, .94);
  --modal-bg: #fff;
  --input-bg: #fff;
  --danger: #b53333;
  --success: #217748;
  --dark-panel: #17181b;
  --dark-panel-text: #f7f7f4;
  --dark-panel-muted: #b9bcc2;
  color-scheme: light;
}

html[data-theme="dark"] {
  --page-bg: #101114;
  --surface: #191a1e;
  --surface-2: #23252a;
  --surface-3: #2b2d33;
  --text: #f4f4f2;
  --text-2: #b9bcc3;
  --text-3: #8f949d;
  --border: rgba(255, 255, 255, .11);
  --border-strong: rgba(255, 255, 255, .20);
  --header-bg: rgba(16, 17, 20, .94);
  --modal-bg: #1a1b1f;
  --input-bg: #111216;
  --danger: #ff8585;
  --success: #72d59b;
  --dark-panel: #090a0c;
  --dark-panel-text: #f8f8f5;
  --dark-panel-muted: #b7bac1;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .28), 0 10px 28px rgba(0, 0, 0, .20);
  --shadow-md: 0 20px 56px rgba(0, 0, 0, .34);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--page-bg); }
body { margin: 0; }
body.links-page {
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; width: 1.15em; height: 1.15em; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--page-bg);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.button,
.utility-button,
.icon-button,
.segmented-control button,
.accent-grid button {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms var(--ease), border-color 150ms var(--ease), background-color 150ms var(--ease), color 150ms var(--ease), opacity 150ms var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white 12%); }
.button-secondary { border-color: var(--border); background: var(--surface); color: var(--text); }
.button-secondary:hover { border-color: var(--border-strong); background: var(--surface-2); }

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
.icon-button:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.icon-button svg { width: 20px; height: 20px; }

/* Sticky utility bar */
.links-topbar {
  position: sticky;
  z-index: 500;
  top: 0;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
}
@supports (backdrop-filter: blur(16px)) {
  .links-topbar { backdrop-filter: blur(16px) saturate(130%); }
}
.links-topbar-inner {
  display: flex;
  width: min(calc(100% - 28px), var(--page-max));
  min-height: var(--topbar-h);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-inline: auto;
}
.links-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}
.links-brand picture { flex: 0 0 auto; }
.links-brand img { width: 48px; height: 44px; object-fit: contain; }
.links-name { display: grid; min-width: 0; line-height: 1.08; }
.links-name strong { font-size: 14px; font-weight: 900; letter-spacing: -.025em; }
.links-name span { margin-top: 3px; color: var(--text-3); font-size: 11px; font-weight: 700; }
.links-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.utility-button {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  transition: transform 150ms var(--ease), border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.utility-button:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.utility-button svg { width: 18px; height: 18px; }

/* Theme panel */
.theme-panel {
  position: fixed;
  z-index: 900;
  top: calc(var(--topbar-h) + 10px);
  right: max(14px, calc((100vw - var(--page-max)) / 2));
  width: min(360px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--modal-bg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.98);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.theme-panel[aria-hidden="false"] { opacity: 1; pointer-events: auto; transform: none; }
.panel-heading, .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.panel-heading h2, .modal-header h2 { margin: 0; color: var(--text); font-size: 22px; letter-spacing: -.035em; }
.theme-fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.theme-fieldset legend { margin-bottom: 8px; color: var(--text); font-size: 13px; font-weight: 850; }
.theme-fieldset p { margin: 8px 0 0; color: var(--text-3); font-size: 12px; }
.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; border-radius: var(--radius-sm); background: var(--surface-2); }
.segmented-control button { min-height: 38px; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 12px; font-weight: 800; }
.segmented-control button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.accent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.accent-grid button {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 800;
}
.accent-grid button[aria-pressed="true"] { border-color: var(--text); color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.accent-grid button span { width: 17px; height: 17px; flex: 0 0 17px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.accent-grid [data-accent="gold"] span { background: #d7b44b; }
.accent-grid [data-accent="sunset"] span { background: #e7683f; }
.accent-grid [data-accent="citrus"] span { background: #e9a81a; }
.accent-grid [data-accent="lime"] span { background: #91c53d; }
.accent-grid [data-accent="ocean"] span { background: #2c86c9; }
.accent-grid [data-accent="violet"] span { background: #8764d9; }

/* Main frame */
.links-wrap {
  width: min(calc(100% - 28px), var(--page-max));
  margin-inline: auto;
  padding: 24px 0 max(52px, env(safe-area-inset-bottom));
}

/* Hero */
.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 48px);
  overflow: hidden;
  padding: clamp(26px, 5vw, 50px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.hero-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--accent); }
.hero-logo-wrap { display: grid; place-items: center; }
.hero-logo { width: min(100%, 160px); height: auto; object-fit: contain; }
.hero-copy { min-width: 0; }
.hero-copy h1 { margin: 0; font-family: var(--font-display); font-size: clamp(46px, 8vw, 76px); font-weight: 950; line-height: .92; letter-spacing: -.065em; }
.hero-copy p { max-width: 62ch; margin: 16px 0 0; color: var(--text-2); font-size: clamp(15px, 2vw, 18px); line-height: 1.62; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-chips span { display: inline-flex; min-height: 30px; align-items: center; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 11px; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* App download */
.app-download-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr);
  min-height: 360px;
  align-items: stretch;
  gap: 28px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(var(--accent-rgb), .62);
  border-radius: var(--radius-xl);
  background: var(--dark-panel);
  color: var(--dark-panel-text);
  box-shadow: var(--shadow-md);
}
.app-download-card::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 3; width: 6px; background: var(--accent); }
.app-copy { position: relative; z-index: 4; padding: clamp(28px, 5vw, 46px); }
.app-copy .eyebrow { color: var(--accent); }
.app-copy h2 { margin: 0; color: var(--dark-panel-text); font-size: clamp(30px, 4.6vw, 48px); line-height: 1; letter-spacing: -.055em; }
.app-copy > p { margin: 14px 0 0; color: var(--dark-panel-muted); line-height: 1.62; }
.store-buttons { display: grid; gap: 10px; margin-top: 24px; }
.store-button {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius-sm);
  background: #f8f8f6;
  color: #111216;
  text-decoration: none;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease);
}
.store-button:hover { background: #fff; transform: translateY(-1px); }
.store-button svg { width: 29px; height: 29px; flex: 0 0 29px; }
.store-button span { display: grid; line-height: 1.02; }
.store-button small { color: #5f6269; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.store-button strong { margin-top: 3px; font-size: 20px; font-weight: 900; letter-spacing: -.025em; }
.app-note { color: var(--dark-panel-muted) !important; font-size: 12px; }
.app-art { position: relative; min-width: 0; overflow: hidden; }
.app-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark-panel) 0%, transparent 27%); pointer-events: none; }
.app-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .78; }

/* Sections */
.links-section { margin-top: 46px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1; letter-spacing: -.052em; }
.section-intro { max-width: 68ch; margin: 10px 0 18px; color: var(--text-2); font-size: 14px; line-height: 1.58; }
.text-link { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; color: var(--text); font-size: 13px; font-weight: 850; text-decoration: none; }
.text-link:hover { color: var(--accent); }
.text-link svg { width: 16px; height: 16px; }

/* Latest feed */
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.latest-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 170ms var(--ease), border-color 170ms var(--ease), box-shadow 170ms var(--ease);
}
a.latest-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.latest-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms var(--ease); }
a.latest-card:hover .latest-thumb img { transform: scale(1.025); }
.latest-type { position: absolute; z-index: 2; left: 10px; bottom: 10px; display: inline-flex; min-height: 27px; align-items: center; padding: 5px 8px; border-radius: 7px; background: rgba(10, 11, 14, .88); color: #fff; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.latest-type::before { content: ""; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); }
.latest-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--text-3); }
.latest-placeholder svg { width: 38px; height: 38px; }
.latest-body { display: grid; align-content: start; padding: 16px; }
.latest-meta { color: var(--text-3); font-size: 11px; font-weight: 750; }
.latest-body h3 { display: -webkit-box; overflow: hidden; margin: 6px 0 0; font-size: 17px; line-height: 1.25; letter-spacing: -.025em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.latest-body p { display: -webkit-box; overflow: hidden; margin: 9px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.latest-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--text); font-size: 12px; font-weight: 850; }
.latest-open svg { width: 15px; height: 15px; }
.latest-status { min-height: 20px; margin-top: 10px; color: var(--text-3); font-size: 12px; }
.latest-status:empty { display: none; }
.latest-skeleton { pointer-events: none; }
.latest-skeleton .latest-thumb, .latest-skeleton .latest-body span, .latest-skeleton .latest-body strong, .latest-skeleton .latest-body p { position: relative; overflow: hidden; background: var(--surface-2); }
.latest-skeleton .latest-body { gap: 9px; }
.latest-skeleton .latest-body span { width: 42%; height: 11px; border-radius: 5px; }
.latest-skeleton .latest-body strong { width: 86%; height: 42px; border-radius: 7px; }
.latest-skeleton .latest-body p { width: 100%; height: 42px; border-radius: 7px; }
.latest-skeleton .latest-thumb::after, .latest-skeleton .latest-body span::after, .latest-skeleton .latest-body strong::after, .latest-skeleton .latest-body p::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); animation: skeleton 1.5s infinite; }
@keyframes skeleton { to { transform: translateX(100%); } }

/* Explore */
.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.explore-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 84px;
  align-items: center;
  gap: 13px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.explore-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: transparent; transition: background-color 160ms var(--ease); }
.explore-card:hover, .explore-card:focus-visible { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.explore-card:hover::before, .explore-card:focus-visible::before { background: var(--accent); }
.explore-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }
.explore-icon svg { width: 23px; height: 23px; }
.explore-copy { display: grid; min-width: 0; gap: 4px; }
.explore-copy strong { font-size: 15px; font-weight: 900; letter-spacing: -.02em; }
.explore-copy small { overflow: hidden; color: var(--text-2); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.explore-arrow { width: 18px; height: 18px; color: var(--text-3); transition: transform 160ms var(--ease), color 160ms var(--ease); }
.explore-card:hover .explore-arrow { color: var(--accent); transform: translateX(2px); }

/* Social */
.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.social-card { display: flex; min-height: 54px; align-items: center; justify-content: center; gap: 9px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 850; text-decoration: none; transition: transform 150ms var(--ease), border-color 150ms var(--ease), background-color 150ms var(--ease); }
.social-card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.social-card svg { width: 20px; height: 20px; color: var(--accent); }

/* Engagement */
.engagement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.engagement-card { display: grid; grid-template-rows: auto auto auto auto 1fr; align-content: start; min-width: 0; min-height: 310px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.engagement-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }
.engagement-icon svg { width: 23px; height: 23px; }
.engagement-copy h3 { margin: 17px 0 0; font-size: 19px; line-height: 1.1; letter-spacing: -.035em; }
.engagement-copy p { margin: 9px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.52; }
.engagement-action { width: 100%; margin-top: 18px; align-self: end; }
.engagement-status { align-self: end; min-height: 18px; margin: 9px 0 0; color: var(--text-3); font-size: 11px; }
.topic-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0 0; padding: 0; border: 0; }
.topic-picker legend { width: 100%; margin-bottom: 2px; color: var(--text-3); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.topic-picker label { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 10px; font-weight: 800; cursor: pointer; }
.topic-picker input { accent-color: var(--accent); }

/* Share strip */
.share-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-top: 48px; padding: clamp(22px, 4vw, 32px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }
.share-strip h2 { margin: 0; font-size: clamp(24px, 4vw, 36px); line-height: 1; letter-spacing: -.045em; }
.share-strip p { max-width: 60ch; margin: 10px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.share-strip-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* Footer */
.links-footer { display: grid; margin-top: 22px; padding: 28px; border-radius: var(--radius-lg); background: #0b0c0e; color: #e7e8e4; }
.footer-brand { display: inline-flex; width: fit-content; align-items: center; gap: 14px; color: #f5f5f2; text-decoration: none; }
.footer-brand img { width: 64px; height: 56px; object-fit: contain; }
.footer-brand span { display: grid; gap: 3px; }
.footer-brand strong { color: #f5f5f2; font-size: 17px; font-weight: 900; }
.footer-brand small { color: #a9adb5; font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 22px; }
.footer-links a { color: #f0f0ed; font-size: 12px; font-weight: 750; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--accent); }
.footer-legal, .footer-copyright { margin: 18px 0 0; color: #8f939b; font-size: 10px; line-height: 1.6; }
.footer-copyright { margin-top: 8px; color: #b9bcc2; }

/* Modals */
.modal { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); opacity: 0; pointer-events: none; transition: opacity 170ms var(--ease); }
.modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, .72); }
.modal-card { position: relative; z-index: 2; width: min(620px, 100%); max-height: min(86svh, 820px); overflow: auto; padding: clamp(20px, 4vw, 30px); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); background: var(--modal-bg); color: var(--text); box-shadow: 0 24px 80px rgba(0,0,0,.36); transform: translateY(12px) scale(.985); transition: transform 170ms var(--ease); }
.modal[aria-hidden="false"] .modal-card { transform: none; }
.modal-header { margin-bottom: 20px; }
.modal-header h2 { margin: 0; font-size: clamp(25px, 5vw, 36px); line-height: 1; }
.modal-header p { max-width: 52ch; margin: 9px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.share-option { display: grid; min-height: 76px; place-items: center; gap: 7px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 11px; font-weight: 850; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease); }
.share-option:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.share-option svg { width: 24px; height: 24px; color: var(--accent); }

.qr-card { width: min(480px, 100%); text-align: center; }
.qr-card .modal-header { text-align: left; }
.qr-frame { width: min(330px, 100%); margin-inline: auto; padding: 14px; border: 1px solid #ddd; border-radius: var(--radius-md); background: #fff; }
.qr-frame img { width: 100%; height: auto; image-rendering: crisp-edges; }
.qr-url { margin: 12px 0 0; color: var(--text-2); font-size: 13px; font-weight: 800; }
.qr-card .modal-actions { justify-content: center; }

/* Newsletter */
.newsletter-card { width: min(660px, 100%); }
.newsletter-form { display: grid; gap: 14px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-field { display: grid; gap: 6px; }
.form-field > span { color: var(--text); font-size: 12px; font-weight: 850; }
.form-field small { color: var(--text-3); font-weight: 650; }
.form-field input, .verification-controls input, .legal-form input[type="text"], .legal-form input[type="email"] { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--text); outline: 0; }
.form-field input::placeholder, .verification-controls input::placeholder { color: var(--text-3); }
.form-field input:focus, .verification-controls input:focus, .legal-form input:focus { border-color: var(--accent); box-shadow: var(--focus); }
.verification-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.verification-card > div:first-child { display: grid; gap: 3px; }
.verification-label { color: var(--text-3); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.verification-card strong { font-size: 15px; }
.verification-card small { color: var(--text-2); font-size: 11px; }
.verification-controls { display: flex; gap: 7px; align-items: center; }
.verification-controls label { width: 74px; }
.verification-controls input { min-height: 44px; text-align: center; }
.verification-controls .button { min-height: 44px; }
.verification-status { grid-column: 1 / -1; min-height: 17px; margin: 0; color: var(--text-3); font-size: 11px; }
.verification-card.is-verified { border-color: color-mix(in srgb, var(--success) 55%, var(--border)); background: color-mix(in srgb, var(--success) 10%, var(--surface)); }
.verification-card.is-verified .verification-status { color: var(--success); font-weight: 800; }
.verification-card.has-error { border-color: color-mix(in srgb, var(--danger) 60%, var(--border)); }
.verification-card.has-error .verification-status { color: var(--danger); }
.newsletter-submit { width: 100%; min-height: 52px; }
.form-help { margin: -4px 0 0; color: var(--text-3); font-size: 11px; line-height: 1.45; }
.newsletter-flash { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.newsletter-flash[hidden] { display: none; }
.newsletter-flash svg { width: 24px; height: 24px; flex: 0 0 24px; }
.newsletter-flash div { display: grid; gap: 3px; }
.newsletter-flash strong { font-size: 14px; }
.newsletter-flash span { color: var(--text-2); font-size: 12px; }
.newsletter-success { border-color: color-mix(in srgb, var(--success) 55%, var(--border)); color: var(--success); }
.newsletter-error { border-color: color-mix(in srgb, var(--danger) 60%, var(--border)); color: var(--danger); }
.newsletter-sms { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.newsletter-sms > span { color: var(--text); font-size: 12px; font-weight: 850; }
.newsletter-sms small { color: var(--text-3); font-size: 10px; }
.install-steps { display: grid; gap: 12px; margin: 0 0 20px; padding-left: 22px; color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* Toast */
.toast { position: fixed; z-index: 3000; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); min-width: min(320px, calc(100vw - 28px)); max-width: calc(100vw - 28px); padding: 12px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-sm); background: #0c0d0f; color: #fff; box-shadow: 0 16px 48px rgba(0,0,0,.34); font-size: 13px; font-weight: 750; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Consent banner injected by consent.v2.js */
.mc-consent-banner { position: fixed; z-index: 2500; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; display: none; width: min(760px, calc(100% - 32px)); margin-inline: auto; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--modal-bg); color: var(--text); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.mc-consent-banner.show { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.mc-consent-copy { display: grid; gap: 4px; }
.mc-consent-copy strong { font-size: 14px; }
.mc-consent-copy span { color: var(--text-2); font-size: 12px; line-height: 1.45; }
.mc-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.mc-consent-actions a { display: inline-flex; min-height: 42px; align-items: center; padding: 9px 11px; color: var(--text); font-size: 11px; font-weight: 800; }
.mc-consent-actions button { min-height: 42px; }

/* Standalone legal/offline pages */
body.legal-page { padding: 0; }
.legal-topbar { border-bottom: 1px solid var(--border); background: var(--header-bg); }
.legal-topbar-inner { display: flex; width: min(calc(100% - 28px), 820px); min-height: 68px; align-items: center; justify-content: space-between; gap: 16px; margin-inline: auto; }
.legal-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 900; text-decoration: none; }
.legal-brand img { width: 48px; height: 44px; object-fit: contain; }
.legal-shell { width: min(calc(100% - 28px), 820px); margin-inline: auto; padding: 28px 0 max(52px, env(safe-area-inset-bottom)); }
.legal-card { padding: clamp(24px, 5vw, 44px); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.legal-card h1 { margin: 0; font-size: clamp(35px, 7vw, 58px); line-height: .96; letter-spacing: -.06em; }
.legal-card h2 { margin: 32px 0 8px; font-size: 22px; letter-spacing: -.035em; }
.legal-card h3 { margin: 24px 0 8px; font-size: 17px; }
.legal-card p, .legal-card li { color: var(--text-2); font-size: 14px; line-height: 1.68; }
.legal-card a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal-card .legal-meta { margin: 9px 0 24px; color: var(--text-3); font-size: 12px; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.legal-form { display: grid; gap: 12px; margin-top: 24px; }
.consent-option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); cursor: pointer; }
.consent-option input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.consent-option span { display: grid; gap: 3px; }
.consent-option strong { font-size: 14px; }
.consent-option small { color: var(--text-2); font-size: 12px; line-height: 1.45; }
.consent-option.is-required { cursor: default; opacity: .82; }
.legal-footer { margin-top: 16px; color: var(--text-3); font-size: 11px; text-align: center; }
.offline-card { text-align: center; }
.offline-card img { width: 160px; margin: 0 auto 18px; }

/* Responsive */
@media (max-width: 860px) {
  .hero-card { grid-template-columns: 135px minmax(0, 1fr); }
  .app-download-card { grid-template-columns: minmax(310px, .9fr) minmax(0, 1.1fr); }
  .engagement-grid { grid-template-columns: 1fr 1fr; }
  .notification-card { grid-column: 1 / -1; min-height: auto; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; }
  .notification-card .engagement-copy { align-self: center; }
  .notification-card .topic-picker, .notification-card .engagement-action, .notification-card .engagement-status { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --topbar-h: 64px; }
  .links-wrap { padding-top: 16px; }
  .hero-card { grid-template-columns: 1fr; gap: 10px; padding: 26px 22px 28px; }
  .hero-logo-wrap { justify-content: start; }
  .hero-logo { width: 92px; }
  .hero-copy h1 { font-size: clamp(44px, 14vw, 66px); }
  .hero-copy p { font-size: 15px; }
  .hero-actions .button { flex: 1 1 150px; }
  .app-download-card { display: block; min-height: 0; }
  .app-copy { padding: 28px 22px 30px; }
  .app-art { display: none; }
  .latest-grid { grid-template-columns: 1fr; gap: 9px; }
  .latest-card { grid-template-columns: 112px minmax(0, 1fr); min-height: 122px; }
  .latest-thumb { height: 100%; aspect-ratio: auto; }
  .latest-type { top: 8px; right: auto; bottom: auto; left: 8px; padding: 4px 6px; font-size: 8px; }
  .latest-body { padding: 13px; }
  .latest-body h3 { font-size: 15px; -webkit-line-clamp: 2; }
  .latest-body p { font-size: 12px; -webkit-line-clamp: 2; }
  .latest-open { margin-top: 10px; }
  .latest-skeleton .latest-body strong, .latest-skeleton .latest-body p { height: 30px; }
  .explore-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engagement-grid { grid-template-columns: 1fr; }
  .notification-card { grid-column: auto; display: grid; grid-template-columns: none; }
  .notification-card .engagement-copy, .notification-card .topic-picker, .notification-card .engagement-action, .notification-card .engagement-status { grid-column: auto; }
  .engagement-card { min-height: 0; }
  .share-strip { grid-template-columns: 1fr; gap: 18px; }
  .share-strip-actions { justify-content: flex-start; }
  .share-strip-actions .button { flex: 1 1 105px; }
  .mc-consent-banner.show { grid-template-columns: 1fr; }
  .mc-consent-actions { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .links-topbar-inner { width: min(calc(100% - 18px), var(--page-max)); gap: 8px; }
  .links-brand img { width: 43px; height: 40px; }
  .links-name span { display: none; }
  .links-actions { gap: 5px; }
  .utility-button { width: 44px; min-width: 44px; min-height: 44px; padding: 0; }
  .utility-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .utility-secondary { display: inline-flex; }
  .theme-panel { top: auto; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; width: auto; transform: translateY(12px); }
  .theme-panel[aria-hidden="false"] { transform: none; }
  .links-wrap { width: calc(100% - 20px); }
  .hero-card, .app-download-card, .links-footer { border-radius: 20px; }
  .hero-card { padding-left: 20px; }
  .hero-card::before, .app-download-card::before { width: 5px; }
  .hero-chips { display: grid; grid-template-columns: 1fr; }
  .hero-chips span { width: 100%; border-radius: 8px; }
  .store-button { min-height: 60px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 31px; }
  .text-link { min-width: 68px; justify-content: flex-end; }
  .explore-card { grid-template-columns: 46px minmax(0, 1fr) auto; min-height: 78px; padding: 12px; }
  .explore-icon { width: 46px; height: 46px; }
  .explore-copy small { white-space: normal; }
  .modal { padding-inline: 10px; }
  .modal-card { border-radius: 22px; }
  .share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verification-card { grid-template-columns: 1fr; }
  .verification-controls { width: 100%; }
  .verification-controls label { flex: 1; width: auto; }
  .verification-status { grid-column: auto; }
  .newsletter-sms .button { width: 100%; white-space: normal; }
  .footer-brand { align-items: flex-start; }
  .footer-brand small { max-width: 220px; }
  .legal-shell, .legal-topbar-inner { width: calc(100% - 20px); }
  .legal-card { padding: 24px 20px; border-radius: 20px; }
}

@media (max-width: 350px) {
  .links-name { display: none; }
  .utility-button { width: 42px; min-width: 42px; min-height: 42px; }
  .links-actions { gap: 4px; }
  .hero-copy h1 { font-size: 42px; }
  .latest-card { grid-template-columns: 96px minmax(0, 1fr); }
  .social-grid { grid-template-columns: 1fr; }
  .share-strip-actions { display: grid; grid-template-columns: 1fr; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .modal { align-items: start; overflow-y: auto; }
  .modal-card { max-height: none; margin-block: 8px; }
  .theme-panel { max-height: calc(100svh - 82px); overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (forced-colors: active) {
  .hero-card::before, .app-download-card::before, .latest-type::before { background: CanvasText; }
  .button-primary { border: 2px solid CanvasText; }
}

@media print {
  .links-topbar, .theme-panel, .engagement-section, .share-strip, .modal, .toast, .mc-consent-banner { display: none !important; }
  body.links-page, html { background: #fff !important; color: #000 !important; }
  .links-wrap { width: 100%; }
  .hero-card, .app-download-card, .latest-card, .explore-card, .social-card, .links-footer { break-inside: avoid; box-shadow: none !important; }
}

/* Latest-card link/share structure used by links.v50.js */
.latest-card { display: block; }
.latest-link { display: grid; height: 100%; color: inherit; text-decoration: none; }
.latest-share {
  position: absolute;
  z-index: 5;
  top: 9px;
  right: 9px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 10px;
  background: rgba(10,11,14,.84);
  color: #fff;
  cursor: pointer;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease);
}
.latest-share:hover { background: #0a0b0e; transform: translateY(-1px); }
.latest-share svg { width: 18px; height: 18px; }

@media (max-width: 700px) {
  .latest-card { display: block; min-height: 122px; }
  .latest-link { grid-template-columns: 112px minmax(0, 1fr); min-height: 122px; }
  .latest-share { top: auto; right: 8px; bottom: 8px; width: 34px; height: 34px; }
  .latest-open { padding-right: 36px; }
}

@media (max-width: 350px) {
  .latest-link { grid-template-columns: 96px minmax(0, 1fr); }
}
