:root {
  --bg: #f7f8fb;
  --bg-deep: #e8ecf4;
  --ink: #0b1c33;
  --ink-soft: #3a4d66;
  --line: rgba(0, 51, 124, 0.14);
  --brand: #00337C;
  --brand-deep: #00245a;
  --accent: #FDE941;
  --accent-soft: #fff7a8;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-solid: #ffffff;
  --danger: #9b2c2c;
  --shadow: 0 18px 50px rgba(0, 36, 90, 0.14);
  --radius: 16px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100% - 2rem));
  --lvl-yellow: #FDE941;
  --lvl-navy: #00337C;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(253, 233, 65, 0.35), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(0, 51, 124, 0.12), transparent 28%),
    linear-gradient(160deg, var(--bg), var(--bg-deep));
  min-height: 100vh;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(0, 51, 124, 0.96);
  border-bottom: 3px solid var(--lvl-yellow);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lvl-yellow);
}

.brand img {
  border-radius: 10px;
  background: var(--lvl-yellow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  font-size: 0.9rem;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--lvl-yellow);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}

.nav-toggle span:not(.sr-only) {
  width: 1rem;
  height: 2px;
  background: var(--lvl-yellow);
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.btn:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: rgba(0, 51, 124, 0.06);
}

.btn-accent {
  background: var(--accent);
  color: var(--brand-deep);
}

.btn-accent:hover {
  background: #ffe95a;
  color: var(--brand-deep);
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: min(52vh, 420px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7faf6;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 36, 90, 0.35), rgba(0, 36, 90, 0.82)),
    url("/assets/img/hero-pitch.jpg") center 40% / cover no-repeat;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto 2.25rem;
  max-width: 40rem;
  padding-top: 2.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 0.65rem;
  animation: rise 700ms ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.2;
  font-weight: 650;
  margin: 0 0 0.7rem;
  max-width: 22ch;
  animation: rise 800ms ease 80ms both;
}

.hero p {
  margin: 0 0 1.15rem;
  font-size: 1.02rem;
  color: rgba(247, 250, 246, 0.88);
  max-width: 38ch;
  animation: rise 900ms ease 140ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1000ms ease 200ms both;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2,
.page-title,
.panel h2,
.creator-side h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.7rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.55rem;
}

.hero .eyebrow,
.cta-band .eyebrow {
  color: var(--lvl-yellow);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.2rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature h3 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
}

.category-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.category-chip {
  display: block;
  padding: 1.1rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 107, 58, 0.35);
}

.category-chip strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.3rem;
}

.category-chip span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.session-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 0 1.4rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: opacity 160ms ease;
}

.session-item:hover {
  opacity: 0.84;
}

.session-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.meta-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(31, 107, 58, 0.1);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-accent {
  background: rgba(201, 120, 22, 0.14);
  color: #8a4f0c;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters input,
.filters select,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
  padding: 0.75rem 0.85rem;
  color: var(--ink);
}

.page-hero {
  padding: 2rem 0 1.15rem;
}

.page-hero .page-title {
  margin-bottom: 0.45rem;
}

.page-hero p {
  max-width: 40rem;
  color: var(--ink-soft);
  margin-top: 0;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head-row h2 {
  margin: 0;
}

.action-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.action-more {
  margin-top: 0.65rem;
}

.action-more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-soft);
  list-style: none;
}

.action-more summary::-webkit-details-marker {
  display: none;
}

.action-more[open] summary {
  margin-bottom: 0.55rem;
}

.site-nav a {
  white-space: nowrap;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.session-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.block-list {
  display: grid;
  gap: 1rem;
}

.block {
  border-left: 4px solid var(--brand);
  padding: 0.2rem 0 0.2rem 1rem;
}

.block h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.block .type {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.block-timer {
  margin: 0.55rem 0 0.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(19, 69, 40, 0.04);
}

.block-timer .timer-display {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.list-clean {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.corner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.corner {
  padding: 0.85rem;
  background: rgba(255, 253, 248, 0.7);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.corner strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-deep);
}

.auth-shell {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 2rem 0 4rem;
}

.auth-panel {
  width: min(420px, 100%);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-weight: 650;
  font-size: 0.92rem;
}

.alert {
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: rgba(155, 44, 44, 0.1);
  color: var(--danger);
}

.alert-success {
  background: rgba(31, 107, 58, 0.12);
  color: var(--brand-deep);
}

.creator-layout {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 1rem;
  padding-bottom: 3rem;
  align-items: start;
}

.palette-item,
.timeline-item {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  cursor: grab;
  user-select: none;
}

.palette-item + .palette-item,
.timeline-item + .timeline-item {
  margin-top: 0.65rem;
}

.palette-item:active,
.timeline-item:active {
  cursor: grabbing;
}

.timeline {
  min-height: 420px;
  border: 2px dashed rgba(31, 107, 58, 0.28);
  border-radius: var(--radius);
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(238, 243, 236, 0.55));
}

.timeline.is-over {
  border-color: var(--accent);
  background: rgba(243, 213, 164, 0.28);
}

.timeline-empty {
  color: var(--ink-soft);
  text-align: center;
  padding: 3rem 1rem;
}

.timeline-item header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: start;
  margin-bottom: 0.45rem;
}

.timeline-item h3 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-display);
}

.timeline-item button {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-weight: 700;
}

.pitch-wrap {
  margin-top: 0.75rem;
}

.session-designer {
  display: block;
}

.session-designer-icons {
  display: none;
}

.session-designer-icons-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.session-designer-stage {
  display: grid;
  gap: 0.55rem;
}

.session-designer-stage .pitch-toolbar,
.session-designer-stage .pitch-size-bar {
  display: none;
}

.session-designer-open {
  width: 100%;
  margin-top: 0.75rem;
}

body:not(.pitch-expanded) .session-designer .pitch-canvas {
  pointer-events: none;
  opacity: 0.95;
}

.pitch-size-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0;
}

.pitch-size-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-right: 0.15rem;
}

.pitch-size-bar .is-active-size,
.pitch-size-bar [aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.pitch-expand-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.pitch-canvas {
  --pitch-w: 68;
  --pitch-h: 105;
  width: min(100%, 220px);
  margin-inline: auto;
  aspect-ratio: var(--pitch-w) / var(--pitch-h);
  max-height: none;
  border-radius: 16px;
  background: linear-gradient(160deg, #1f6b3a, #134528);
  border: 2px solid rgba(255, 255, 255, 0.35);
  position: relative;
  touch-action: none;
  overflow: visible;
}

.pitch-markings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.pitch-markings svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Icon size only — pitch background stays fixed */
.pitch-token {
  --token-rot: 0deg;
  --token-scale: 1;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(var(--token-rot)) scale(var(--token-scale));
}

.pitch-wrap.is-large .pitch-token {
  --token-scale: 1.4;
}

.pitch-wrap.is-xlarge .pitch-token {
  --token-scale: 1.75;
}

body.pitch-expanded {
  overflow: hidden;
}

body.pitch-expanded .session-designer-open {
  display: none;
}

body.pitch-expanded .pitch-wrap {
  position: fixed;
  inset: 0.4rem;
  z-index: 120;
  margin: 0;
  padding: 0.55rem 0.75rem 0.75rem;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
}

body.pitch-expanded .pitch-expand-bar {
  display: flex;
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
  margin-bottom: 0.45rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body.pitch-expanded .pitch-expand-bar .pitch-expand-hint {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}

body.pitch-expanded .session-designer {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(8.25rem, 10.5rem) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

body.pitch-expanded .session-designer-icons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
  overflow: auto;
  padding: 0.55rem;
  border-radius: 12px;
  background: rgba(19, 69, 40, 0.05);
  border: 1px solid var(--line);
}

body.pitch-expanded .session-designer-icons .token-btn {
  width: 100%;
  justify-content: flex-start;
  white-space: nowrap;
}

body.pitch-expanded .session-designer-stage {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-start;
  overflow: auto;
}

body.pitch-expanded .session-designer-stage .pitch-toolbar,
body.pitch-expanded .session-designer-stage .pitch-size-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0;
  width: 100%;
  flex: 0 0 auto;
}

body.pitch-expanded .session-designer-stage .pitch-inline-clear {
  width: 100%;
  flex: 0 0 auto;
}

body.pitch-expanded .session-designer-stage .pitch-canvas {
  /* Explicit size — width:auto in the old grid collapsed the board to 0 */
  width: min(
    100%,
    calc((100vh - 9.5rem) * var(--pitch-w) / var(--pitch-h))
  );
  height: auto;
  max-height: calc(100vh - 9.5rem);
  aspect-ratio: var(--pitch-w) / var(--pitch-h);
  flex: 0 1 auto;
  margin: 0 auto;
  pointer-events: auto;
  opacity: 1;
}

body.pitch-expanded .pitch-token {
  --token-scale: 1.55;
}

body.pitch-expanded .pitch-wrap.is-large .pitch-token {
  --token-scale: 1.85;
}

body.pitch-expanded .pitch-wrap.is-xlarge .pitch-token {
  --token-scale: 2.15;
}

body.pitch-expanded::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 16, 0.55);
  z-index: 110;
}

@media (max-width: 720px) {
  body.pitch-expanded .session-designer {
    grid-template-columns: minmax(5.75rem, 6.75rem) minmax(0, 1fr);
    gap: 0.5rem;
  }

  body.pitch-expanded .session-designer-icons {
    padding: 0.4rem;
  }

  body.pitch-expanded .session-designer-icons .token-btn {
    font-size: 0.75rem;
    padding: 0.32rem 0.4rem !important;
    gap: 0.28rem;
  }

  body.pitch-expanded .session-designer-icons .token-btn .token-preview {
    width: 18px;
    height: 18px;
  }

  body.pitch-expanded .session-designer-stage .pitch-canvas {
    width: min(
      100%,
      calc((100vh - 11rem) * var(--pitch-w) / var(--pitch-h))
    );
    max-height: calc(100vh - 11rem);
  }
}

.pitch-toolbar [aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.pitch-token {
  position: absolute;
  width: 34px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: grab;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  z-index: 2;
  touch-action: none;
}

.pitch-token.is-selected {
  z-index: 5;
  filter: drop-shadow(0 0 0 2px #f3d5a4) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.pitch-token.is-rotating {
  cursor: grabbing;
}

.token-rotate-handle {
  position: absolute;
  left: 50%;
  top: -22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #134528;
  background: #f3d5a4;
  transform: translateX(-50%);
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  z-index: 6;
  touch-action: none;
}

.token-rotate-handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 8px;
  background: #f3d5a4;
  transform: translateX(-50%);
}

.pitch-token:active {
  cursor: grabbing;
}

.pitch-token svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
  overflow: visible;
}

.pitch-token.token-ball {
  width: 32px;
  height: 32px;
}

.pitch-token.token-cone {
  width: 28px;
  height: 34px;
}

.pitch-token.token-pole {
  width: 18px;
  height: 36px;
}

.pitch-token.token-gate {
  width: 42px;
  height: 30px;
}

.pitch-token.token-goal {
  width: 50px;
  height: 36px;
}

.pitch-token.token-mini-goal {
  width: 40px;
  height: 30px;
}

.pitch-token.token-flag {
  width: 30px;
  height: 38px;
}

.pitch-token.token-bib {
  width: 30px;
  height: 34px;
}

.pitch-token.token-arrow-pass,
.pitch-token.token-arrow-run {
  width: 46px;
  height: 26px;
}

.token-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

/* Compact creator: hide icon strip — use Open session designer */
.token-palette.session-designer-icons {
  display: none;
  margin-bottom: 0;
}

body.pitch-expanded .token-palette.session-designer-icons {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.token-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem !important;
}

.token-btn .token-preview {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.token-btn .token-preview svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cta-band {
  margin: 1rem 0 4rem;
  padding: 2.4rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(0, 36, 90, 0.96), rgba(0, 51, 124, 0.88)),
    url("/assets/img/diagram-sample.jpg") right center / cover no-repeat;
  color: #f7faf6;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.7rem;
  max-width: 14ch;
}

.cta-band p {
  max-width: 34ch;
  margin: 0 0 1.2rem;
  color: rgba(247, 250, 246, 0.88);
}

.site-footer {
  border-top: 3px solid var(--lvl-yellow);
  background: rgba(0, 51, 124, 0.06);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.7rem;
}

.site-footer a,
.site-footer p {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 0.45rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.5rem;
}

@media (max-width: 980px) {
  .feature-strip,
  .category-rail,
  .session-grid,
  .session-layout,
  .creator-layout,
  .guide-grid,
  .footer-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: 4.4rem 1rem auto;
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }
}

@media print {
  .site-header,
  .site-footer,
  .print-actions,
  .nav-toggle,
  .skip-link {
    display: none !important;
  }

  body {
    background: white;
  }

  .panel,
  .block {
    box-shadow: none;
    break-inside: avoid;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --- LVL Coach Development improvements --- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

body.user-is-tabbing a:focus,
body.user-is-tabbing button:focus,
body.user-is-tabbing input:focus,
body.user-is-tabbing select:focus,
body.user-is-tabbing textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.tip-banner {
  background: rgba(201, 120, 22, 0.12);
  border-bottom: 1px solid rgba(201, 120, 22, 0.28);
}

.tip-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  font-size: 0.95rem;
}

.tip-inner p {
  margin: 0;
}

.tip-dismiss {
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.breadcrumbs a {
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 600;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.category-pill {
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.category-pill.is-active,
.category-pill:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.session-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.session-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.session-thumb {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(160deg, #1f6b3a, #134528);
  overflow: hidden;
}

.session-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #134528;
}

.session-card-body {
  padding: 1rem 1rem 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.session-card-body h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.session-card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.diagram-panel {
  margin: 0 0 1rem;
}

.diagram-image {
  width: 100%;
  border-radius: 14px;
  background: #134528;
}

.diagram-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.diagram-legend i {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.3rem;
  vertical-align: -1px;
  border-radius: 50%;
}

.leg-player { background: #0f2f1c; border: 2px solid #fff; box-shadow: 0 0 0 1px #0f2f1c; }
.leg-ball { background: var(--accent); }
.leg-arrow {
  width: 1rem !important;
  height: 0.2rem !important;
  border-radius: 2px !important;
  background: var(--accent);
  vertical-align: 0.2rem !important;
}
.leg-cone {
  border-radius: 3px !important;
  background: #f4f1ea;
  border: 1px solid #8a4f0c;
}

.timeline-bar {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
}

.timeline-seg {
  background: rgba(31, 107, 58, 0.16);
  border: 1px solid rgba(31, 107, 58, 0.28);
  border-radius: 10px;
  min-width: 2.4rem;
  padding: 0.45rem 0.35rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.coach-tip {
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
}

.proof-band {
  padding-top: 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.proof-visual {
  min-height: 280px;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(20, 32, 24, 0.15), rgba(20, 32, 24, 0.35)),
    url("/assets/img/brand/training-band.jpg") center / cover no-repeat;
  border: 1px solid var(--line);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem 0;
}

.mobile-cta {
  display: none;
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 30;
  box-shadow: var(--shadow);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

kbd {
  font-family: var(--font-body);
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.05rem 0.35rem;
  background: var(--panel-solid);
}

.print-brand {
  display: none;
}

@media (max-width: 980px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    display: flex;
    position: sticky;
    bottom: 0;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(238, 243, 236, 0.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    z-index: 25;
  }

  .to-top {
    bottom: 4.5rem;
  }
}

@media print {
  .tip-banner,
  .mobile-cta,
  .to-top,
  .related,
  .breadcrumbs,
  .print-actions,
  .site-header,
  .site-footer {
    display: none !important;
  }

  .diagram-image {
    max-height: 360px;
    object-fit: contain;
  }

  .print-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
  }
}

/* —— Batch 2: library, session tools, creator drafts —— */

.filters-wide {
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
}

.filters-wide select[name="sort"],
.filters-wide select[name="per"] {
  min-width: 0;
}

@media (max-width: 1100px) {
  .filters-wide {
    grid-template-columns: 1fr 1fr;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.session-grid.is-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.session-grid.is-compact .session-card-body p {
  display: none;
}

.session-grid.is-compact .session-card-body h3 {
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  .session-grid.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 80;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.continue-band {
  padding-top: 1rem;
  padding-bottom: 0;
}

.continue-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
}

.continue-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.continue-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.65rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.continue-item img,
.continue-fallback {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f6b3a, #0e3d22);
}

.continue-item strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-item small {
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .continue-inner {
    grid-template-columns: 1fr;
  }

  .continue-list {
    grid-template-columns: 1fr;
  }
}

.timer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
}

.timer-display {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
}

.diagram-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(8, 20, 12, 0.88);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

.equip-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.equip-check li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.equip-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand-deep);
}

@media print {
  .toast,
  .timer-bar,
  .lightbox,
  .continue-band {
    display: none !important;
  }
}

.drill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.drill-card h2,
.drill-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0.4rem 0;
}

.share-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
}

.qr-image {
  border-radius: 10px;
  background: #fff;
  padding: 0.35rem;
}

.week-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.week-item {
  display: grid;
  grid-template-columns: 28px 120px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  cursor: grab;
}

.week-item.is-dragging {
  opacity: 0.45;
}

.week-item.is-drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

.week-drag-handle {
  color: var(--ink-soft);
  font-size: 1rem;
  letter-spacing: -0.12em;
  user-select: none;
  text-align: center;
}

.week-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: #134528;
}

.present-mode {
  padding: 1.5rem 0 3rem;
}

.present-top .hero-brand {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brand-deep);
}

.present-diagram {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 16px;
  background: #134528;
  margin: 1rem 0;
}

.pitch-board-svg {
  width: min(100%, 280px);
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: 12px;
  background: #1f6b3a;
}

.present-diagram .pitch-board-svg,
svg.present-diagram.pitch-board-svg {
  max-height: 70vh;
  width: min(100%, 420px);
  background: #1f6b3a;
}

.present-points {
  padding: 1.1rem 1.25rem;
}

body.view-present .tip-banner,
body.view-present .site-footer,
body.view-present .mobile-cta {
  display: none;
}

@media (max-width: 800px) {
  .drill-grid {
    grid-template-columns: 1fr;
  }

  .week-item {
    grid-template-columns: 24px 1fr;
  }

  .week-item img {
    display: none;
  }

  .share-tools {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pitch-toolbar [data-pitch-snap][aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Modal */
.cme-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 32, 24, 0.55);
}

.cme-modal[hidden] {
  display: none !important;
}

.cme-modal-dialog {
  width: min(100%, 420px);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem;
}

.cme-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cme-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.cme-shortcuts-list {
  display: grid;
  gap: 0.55rem;
}

.cme-shortcuts-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

body.cme-modal-open {
  overflow: hidden;
}

/* Present high contrast */
body.present-hi-contrast.view-present {
  background: #000;
  color: #fff;
}

body.present-hi-contrast.view-present .present-top .hero-brand,
body.present-hi-contrast.view-present .present-top h1,
body.present-hi-contrast.view-present .present-top p,
body.present-hi-contrast.view-present .present-points,
body.present-hi-contrast.view-present .present-points h2 {
  color: #fff;
}

body.present-hi-contrast.view-present .present-points.panel {
  background: #111;
  border: 2px solid #fff;
}

body.present-hi-contrast.view-present .btn {
  border-color: #fff;
  color: #fff;
  background: #000;
}

body.present-hi-contrast.view-present .btn:not(.btn-secondary) {
  background: #fff;
  color: #000;
  border-color: #fff;
}

body.present-hi-contrast.view-present .timer-display {
  color: #fff;
  font-weight: 800;
}

body.present-hi-contrast.view-present .present-cues label {
  color: #fff;
}

body.present-hi-contrast.view-present .present-cues input {
  accent-color: #fff;
  width: 1.15rem;
  height: 1.15rem;
}

.present-cues {
  display: grid;
  gap: 0.55rem;
}

.present-cues li label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.present-cues input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand-deep);
  flex-shrink: 0;
}

/* Player large text */
body.player-large-text {
  font-size: 1.2rem;
}

body.player-large-text .page-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

body.player-large-text .panel,
body.player-large-text .list-clean {
  font-size: 1.15em;
  line-height: 1.65;
}

/* Drill of the day */
.drill-of-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.drill-of-day p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 48rem;
}

/* Library search suggest */
.search-suggest {
  position: relative;
  min-width: 0;
}

.search-suggest input {
  width: 100%;
}

.search-suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow: auto;
}

.search-suggest-list a {
  display: block;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
  border-radius: 8px;
}

.search-suggest-list a:hover,
.search-suggest-list a:focus {
  background: var(--bg-deep);
}

/* Account */
.account-details {
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.account-details div {
  display: grid;
  gap: 0.15rem;
}

.account-details dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.account-details dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

@media print {
  .week-list {
    display: block;
    counter-reset: week-row;
  }

  .week-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.65rem 0;
    border: 0;
    border-bottom: 1px solid #222;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    page-break-inside: avoid;
  }

  .week-item::before {
    counter-increment: week-row;
    content: counter(week-row);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .week-item img,
  .week-drag-handle,
  .week-item .print-actions {
    display: none !important;
  }

  .week-item > div {
    grid-column: 2;
  }

  .week-toolbar {
    display: none !important;
  }
}

/* —— Upgrades 36–50 —— */

.qr-image {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.qr-image svg {
  width: 140px;
  height: 140px;
  display: block;
}

.session-sticky-actions {
  display: none;
}

@media (max-width: 980px) {
  .session-sticky-actions {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 26;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: rgba(238, 243, 236, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }

  body.session-detail .mobile-cta {
    display: none;
  }
}

.empty-state--filtered .empty-skeleton {
  display: block;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--line), rgba(255, 255, 255, 0.55), var(--line));
  background-size: 200% 100%;
  animation: empty-shimmer 1.4s ease-in-out infinite;
}

.empty-skeleton {
  display: none;
}

@keyframes empty-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.creator-tour {
  margin: 0 auto 1.25rem;
  width: var(--shell);
  padding: 1rem 1.15rem;
}

.creator-tour[hidden] {
  display: none !important;
}

.creator-tour-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.creator-tour-list {
  list-style: decimal;
  padding-left: 1.2rem;
  margin: 0;
  color: var(--ink-soft);
}

.creator-tour-list li + li {
  margin-top: 0.35rem;
}

.duration-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  color: var(--brand-deep);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
}

.fav-btn.is-pulse {
  animation: fav-pulse 0.55s ease;
}

@keyframes fav-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.opened-stamp {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.continue-item small.opened-ago {
  display: block;
  margin-top: 0.15rem;
  opacity: 0.85;
}

.coach-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: baseline;
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.95rem;
}

.coach-insights-tip {
  flex: 1 1 12rem;
  color: var(--ink-soft);
}

.print-footer-mark {
  display: none;
}

@media print {
  .site-header,
  .site-footer,
  .mobile-cta,
  .to-top,
  .skip-link,
  .session-sticky-actions,
  .creator-tour,
  .nav-toggle,
  .toast {
    display: none !important;
  }

  .print-footer-mark {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0.4rem 0;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: #222;
    border-top: 1px solid #ccc;
  }

  body {
    padding-bottom: 2rem;
  }
}

/* Batch 2 upgrades */
.present-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}

.present-carousel-meta {
  margin: 0;
  font-weight: 600;
}

.present-equip {
  margin-top: 1rem;
}

.timer-overtime .timer-display,
.timer-bar.timer-overtime .timer-display {
  color: #b42318;
  animation: cme-overtime-flash 1s ease-in-out infinite;
}

@keyframes cme-overtime-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.player-cues li,
.player-success {
  font-size: 1.05rem;
  line-height: 1.45;
}

.coach-notes {
  width: 100%;
  min-height: 6rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  resize: vertical;
}

.reflect-check label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.lightbox-board {
  max-width: min(92vw, 720px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
}

.lightbox-board .pitch-board,
.lightbox-board svg {
  width: 100%;
  height: auto;
}

.filters-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(238, 243, 236, 0.97), rgba(238, 243, 236, 0.92));
  padding: 0.65rem 0 0.85rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}

.active-filter-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: inherit;
  text-decoration: none;
  font-size: 0.88rem;
}

.session-grid.is-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.session-grid.is-list .session-card {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: center;
  gap: 0.85rem;
}

.session-grid.is-list .session-thumb {
  min-height: 4.5rem;
}

.session-card-fav {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
}

.session-card {
  position: relative;
}

.session-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.week-preview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.week-preview-strip a {
  display: block;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  color: inherit;
}

.creator-sticky-save {
  display: none;
}

@media (max-width: 720px) {
  .creator-sticky-save {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: rgba(238, 243, 236, 0.96);
    border-top: 1px solid var(--line);
  }

  body:has(#creator-app) {
    padding-bottom: 4.5rem;
  }
}

.password-field {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.password-field input {
  flex: 1;
}

.week-mins-badge {
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.offline-banner {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.55rem 1rem;
  text-align: center;
  background: #243528;
  color: #f5f7f4;
  font-size: 0.92rem;
}

.offline-banner.is-on {
  display: block;
}

.pwa-install {
  display: none;
  margin: 0.75rem 0 0;
}

.pwa-install.is-on {
  display: inline-flex;
}

.week-day-label {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.palette-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0.75rem;
}

.palette-cats button.is-active {
  background: var(--green);
  color: #fff;
}

@media print {
  body.print-cheat .page-hero .breadcrumbs,
  body.print-cheat .action-primary,
  body.print-cheat .action-more,
  body.print-cheat .share-tools,
  body.print-cheat .timer-bar,
  body.print-cheat .coach-tip,
  body.print-cheat .timeline-bar,
  body.print-cheat .corner-grid,
  body.print-cheat .block-timer,
  body.print-cheat .session-sticky-actions,
  body.print-cheat .related-drills,
  body.print-cheat aside .list-clean:last-child {
    display: none !important;
  }

  body.print-cheat .session-layout {
    display: block;
  }

  body.print-cheat .block-list .block p,
  body.print-cheat .block-list .block strong + ul + strong,
  body.print-cheat .block-list .block strong + ul + strong + ul {
    display: none;
  }

  @page {
    size: landscape;
  }

  body.print-landscape-ready .session-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1rem;
    align-items: start;
  }

  body.print-landscape-ready .session-layout > div > .panel:not(:first-child):not(.coach-tip),
  body.print-landscape-ready .coach-tip,
  body.print-landscape-ready .timeline-bar {
    break-inside: avoid;
  }
}

/* Multi-diagram creator + clear */
.pitch-diagram-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
}

.pitch-board-label-field {
  margin: 0 0 0.35rem;
}

.pitch-inline-clear {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.45rem;
}

.pitch-expand-actions {
  display: none;
}

body.pitch-expanded .pitch-inline-clear {
  display: none;
}

body.pitch-expanded .pitch-expand-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.pitch-clear-btn {
  min-width: 3.25rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a2e1b;
  background: rgba(180, 60, 40, 0.08);
  border: 1px solid rgba(180, 60, 40, 0.35);
}

.pitch-clear-btn:hover {
  background: rgba(180, 60, 40, 0.14);
}

.present-diagram-tabs {
  margin-bottom: 0.65rem;
}

.present-diagrams .present-diagram {
  width: 100%;
}

/* Batch 3 — UX */
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-action {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.present-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0.75rem;
}

.present-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
}

.present-dot.is-active {
  background: var(--green);
  border-color: var(--green);
}

body.present-glare.view-present {
  background: #f7f7f2;
  color: #111;
}

body.present-glare.view-present .present-mode,
body.present-glare.view-present .present-points,
body.present-glare.view-present .panel {
  background: #fff;
  color: #111;
  border-color: #222;
}

body.present-glare.view-present .btn {
  border-color: #111;
  color: #111;
  background: #fff;
}

body.present-glare.view-present .btn:not(.btn-secondary) {
  background: #111;
  color: #fff;
}

body.present-glare.view-present .timer-display {
  color: #111;
  font-weight: 800;
}

[data-add-week].is-in-week {
  background: rgba(31, 107, 58, 0.12);
  border-color: var(--green);
}

.continue-item {
  display: grid;
  gap: 0.5rem;
}

.continue-item > a:first-child {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.65rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.week-suggestions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.creator-mobile-tabs {
  display: none;
  gap: 0.45rem;
  padding: 0.65rem 0 0;
}

.creator-signin-interstitial {
  margin: 1rem auto;
  max-width: 36rem;
}

.creator-offline-banner {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #243528;
  color: #f5f7f4;
}

.creator-offline-banner[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .creator-mobile-tabs {
    display: flex;
  }

  .creator-mobile-tabs:not([hidden]) {
    display: flex;
  }
}

/* Session of the week + kid titles */
.sow-card {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1.1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.sow-card:hover {
  transform: translateY(-2px);
}

.sow-media {
  border-radius: 14px;
  overflow: hidden;
  background: #134528;
  aspect-ratio: 800 / 520;
}

.sow-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sow-kid {
  margin: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
}

.week-programme {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.25rem;
}

/* Homepage template variants */
.home-a .hero-media-a {
  background:
    linear-gradient(115deg, rgba(8, 28, 18, 0.72), rgba(8, 28, 18, 0.28) 55%, rgba(8, 28, 18, 0.55)),
    url("/assets/img/hero-pitch.jpg") center 45% / cover no-repeat;
  animation: hero-drift 22s ease-in-out infinite alternate;
}

.home-a .hero {
  min-height: min(70vh, 560px);
}

.home-b .hero-b {
  min-height: min(72vh, 580px);
  background: #0c1f14;
  align-items: center;
}

.home-b .hero-b-board {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 22, 14, 0.55), rgba(8, 22, 14, 0.82)),
    var(--hero-diagram) center 30% / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 16s ease-in-out infinite alternate;
}

.home-b .hero-content-b {
  max-width: 34rem;
  margin-bottom: 3rem;
}

.home-c .hero-c {
  min-height: min(68vh, 540px);
}

.home-c .hero-media-c {
  background:
    linear-gradient(90deg, rgba(10, 24, 16, 0.88) 0%, rgba(10, 24, 16, 0.45) 48%, rgba(10, 24, 16, 0.2) 100%),
    url("/assets/img/diagram-sample.jpg") 70% center / cover no-repeat;
}

.home-c .hero-content-c {
  max-width: 28rem;
}

.home-d .hero-d {
  min-height: min(70vh, 560px);
  background:
    radial-gradient(circle at 70% 40%, rgba(201, 120, 22, 0.22), transparent 42%),
    linear-gradient(165deg, #0f2f1c, #134528 55%, #0a1810);
  align-items: center;
  overflow: hidden;
}

.home-d .hero-d-pitch {
  position: absolute;
  inset: 8% 6% 8% 42%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(160deg, #1f6b3a, #134528);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.home-d .hero-d-pitch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  bottom: 6%;
  width: 2px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.home-d .hero-d-token {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f2f1c;
  border: 2px solid #fff;
  animation: token-drift 5s ease-in-out infinite alternate;
}

.home-d .hero-d-token.t1 { left: 28%; top: 30%; }
.home-d .hero-d-token.t2 { left: 55%; top: 48%; animation-delay: 0.6s; background: #8a4f0c; }
.home-d .hero-d-token.t3 { left: 40%; top: 68%; animation-delay: 1.1s; }

.home-d .hero-d-ball {
  position: absolute;
  left: 46%;
  top: 44%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c97816;
  border: 2px solid #fff;
  animation: token-drift 3.8s ease-in-out infinite alternate-reverse;
}

.home-d .hero-content-d {
  max-width: 30rem;
  margin-bottom: 2.5rem;
}

.home-e .hero-e {
  min-height: min(72vh, 580px);
  align-items: center;
}

.home-e .hero-media-e {
  background:
    linear-gradient(180deg, rgba(10, 24, 16, 0.55), rgba(10, 24, 16, 0.85)),
    url("/assets/img/hero-pitch.jpg") center 60% / cover no-repeat;
}

.home-e .hero-content-e {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.hero-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0 0 1.15rem;
  animation: rise 900ms ease 160ms both;
}

.hero-week-day {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 0.45rem 0.35rem;
  min-height: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-week-day span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.hero-week-day strong {
  font-size: 0.82rem;
}

.hero-week-day small {
  font-size: 0.68rem;
  opacity: 0.85;
  line-height: 1.25;
}

.hero-week-day.is-tonight {
  background: rgba(201, 120, 22, 0.28);
  border-color: rgba(243, 213, 164, 0.55);
  transform: translateY(-2px);
  animation: tonight-pulse 2.4s ease-in-out infinite;
}

@keyframes token-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(10px, -8px); }
}

@keyframes tonight-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 120, 22, 0); }
  50% { box-shadow: 0 0 0 4px rgba(201, 120, 22, 0.18); }
}

@media (max-width: 720px) {
  .sow-card {
    grid-template-columns: 1fr;
  }

  .home-d .hero-d-pitch {
    inset: auto 8% 8% 8%;
    height: 38%;
    top: auto;
  }

  .home-d .hero-content-d {
    margin-bottom: 42%;
  }

  .hero-week-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* LVL Videos / Community / County FA */
.site-header .btn-accent {
  color: var(--brand-deep);
}

.lvl-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .lvl-split {
    grid-template-columns: 1fr;
  }
}

.brand-footer {
  color: var(--brand);
}

.social-row {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.social-row a {
  font-weight: 800;
  color: var(--brand);
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #001a3d;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.video-card {
  text-decoration: none;
  color: inherit;
  padding: 0.65rem;
  transition: transform 180ms ease;
}

.video-card:hover {
  transform: translateY(-2px);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.55rem;
}

.video-card strong {
  font-size: 0.95rem;
  line-height: 1.35;
  display: block;
}

.community-layout,
.county-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.community-feed {
  display: grid;
  gap: 0.85rem;
}

.community-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.community-item a {
  text-decoration: none;
  color: var(--brand);
}

.community-reply {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.access-code {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand);
}

.county-benefits {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.county-benefits h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.county-benefits li {
  margin: 0.35rem 0;
  color: var(--ink-soft);
}

.hero-brand {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lvl-yellow);
}

@media (max-width: 900px) {
  .video-feature,
  .community-layout,
  .county-layout {
    grid-template-columns: 1fr;
  }
}

/* --- LVL PWA + multi-platform share (100 upgrades) --- */
:root {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

html {
  touch-action: manipulation;
}

body {
  padding-bottom: var(--safe-bottom);
}

.site-header {
  padding-top: var(--safe-top);
}

@media (display-mode: standalone), (display-mode: minimal-ui) {
  .pwa-install,
  .pwa-footer-cta,
  [data-ios-install-open] {
    display: none !important;
  }

  body::before {
    content: "";
    display: block;
    height: var(--safe-top);
    background: var(--lvl-navy);
  }
}

.pwa-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.pwa-install.is-on,
.pwa-install {
  display: inline-flex;
}

@media (display-mode: browser) {
  .pwa-install:not(.is-on) {
    display: inline-flex;
    opacity: 0.92;
  }
}

.share-widget {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.share-widget-compact {
  display: inline-flex;
}

.share-sheet[hidden] {
  display: none !important;
}

.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
}

.share-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 36, 90, 0.45);
}

.share-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 1rem));
  max-height: min(88vh, 720px);
  overflow: auto;
  margin-bottom: calc(0.75rem + var(--safe-bottom));
  background: var(--panel-solid);
  border-radius: 18px 18px 14px 14px;
  padding: 1rem 1rem 1.15rem;
  box-shadow: var(--shadow);
  animation: share-rise 220ms ease;
}

@keyframes share-rise {
  from { transform: translateY(18px); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .share-sheet-panel { animation: none; }
}

.share-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.share-sheet-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.15;
}

.share-sheet-url {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  word-break: break-all;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.share-chip {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.55rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

.share-chip:hover,
.share-chip:focus-visible {
  border-color: var(--brand);
  outline: 2px solid rgba(0, 51, 124, 0.2);
  outline-offset: 1px;
}

.share-chip-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}

.share-chip-native { background: var(--brand); }
.share-chip-wa { background: #128C7E; }
.share-chip-fb { background: #1877F2; }
.share-chip-msg { background: #006AFF; }
.share-chip-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.share-chip-tt { background: #111; }
.share-chip-x { background: #111; }
.share-chip-li { background: #0A66C2; }
.share-chip-tg { background: #229ED9; }
.share-chip-sms { background: #3a4d66; }
.share-chip-mail { background: var(--brand-deep); }
.share-chip-rd { background: #FF4500; }
.share-chip-copy { background: var(--brand); }
.share-chip-cap { background: #5b2c6f; }

.share-hint {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  background: var(--accent-soft);
  color: var(--brand-deep);
  border-radius: 10px;
  font-size: 0.9rem;
}

.share-qr-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.share-qr-row p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.qr-image-lg {
  width: 132px;
  height: 132px;
}

.qr-image-lg svg {
  width: 100%;
  height: 100%;
}

.session-card-share {
  padding: 0 0.85rem 0.85rem;
}

.mobile-share-bar {
  display: none;
}

body.session-detail .mobile-share-bar {
  display: none;
}

@media (max-width: 720px) {
  body.session-detail .mobile-share-bar {
    display: block;
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(4.2rem + var(--safe-bottom));
    z-index: 35;
  }

  body.session-detail .mobile-share-bar .share-widget {
    width: 100%;
  }

  body.session-detail .mobile-share-bar .btn {
    width: 100%;
  }

  .share-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ios-install-sheet[hidden] {
  display: none !important;
}

.ios-install-sheet {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: end center;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.install-steps,
.install-diag {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: decimal;
  padding-left: 1.1rem;
}

.install-diag {
  list-style: disc;
}

.offline-banner {
  background: var(--brand-deep);
}

body.share-sheet-open,
body.ios-install-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .install-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .share-widget,
  .mobile-share-bar,
  .ios-install-sheet,
  .pwa-footer-cta {
    display: none !important;
  }

  .qr-image-lg {
    width: 180px;
    height: 180px;
  }
}
