/* Harbor Court Club — static demo site (not njvb.com) */
:root {
  --navy: #0b1f33;
  --navy-deep: #061527;
  --teal: #00b4d8;
  --teal-dark: #0891b2;
  --slate: #5a6b7d;
  --line: #e2e8f0;
  --bg: #f4f7fa;
  --white: #fff;
  --amber: #fff8e6;
  --amber-border: #f0e0b0;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }
/* Wider content — fills most of a laptop/desktop, less empty side white */
.wrap {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 36px);
}

/* Demo banner */
.demo-banner {
  background: var(--amber);
  border-bottom: 1px solid var(--amber-border);
  color: #5c4a12;
  font-size: 13px;
  text-align: center;
  padding: 10px clamp(14px, 3vw, 36px);
}
.demo-banner strong { color: var(--navy); }
.demo-banner a { color: var(--teal-dark); font-weight: 700; }

/* Header — light glass so hero photo can read as continuous under nav on home */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 31, 51, 0.12);
  box-shadow: 0 1px 0 rgba(11, 31, 51, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.brand-text strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--slate);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Mobile menu button (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  margin-left: auto;
  border: 2px solid var(--navy);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  padding: 8px 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover, .nav a.active { color: var(--teal-dark); }
.nav .btn {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 14px;
  border-radius: 6px;
}
.nav .btn:hover { background: var(--teal-dark); }
.nav .btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy) !important;
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
}

/*
 * Hero art: images/harborcourtclubbg.jpg (venue + seal + tagline on the right)
 * Logo mark: images/logo-mark.png (header / footer)
 * Layout target: headline + body + buttons on the left, full seal to the right.
 */
.hero {
  color: #fff;
  /* Extra bottom space so “Experience the Premier…” is not clipped or covered */
  padding: 40px 0 168px;
  position: relative;
  overflow: hidden;
  background-color: var(--navy-deep);
  background-image: url("../images/harborcourtclubbg.jpg");
  background-size: cover;
  /* Seal to the right of headline; lifestyle line lower in the frame */
  background-position: 96% 62%;
  background-repeat: no-repeat;
  min-height: clamp(620px, 78vh, 900px);
  display: flex;
  align-items: flex-start;
}
/* Soft left wash only (no solid card) — seal stays fully visible on the right */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(6, 21, 39, 0.55) 0%,
    rgba(6, 21, 39, 0.28) 32%,
    rgba(6, 21, 39, 0.08) 48%,
    transparent 58%
  );
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  padding-top: 8px;
}
/* Fully transparent — no fill, blur, or rounded panel behind the type */
.hero-copy {
  max-width: min(22.5rem, 34%);
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.8vw, 2.45rem);
  line-height: 1.12;
  max-width: 11ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.5);
}
.hero p {
  margin: 0 0 20px;
  max-width: 100%;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.45);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--teal);
  color: var(--navy-deep) !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
}

/* Sections */
.section { padding: 36px 0; }
.section h2 { margin: 0 0 8px; font-size: 1.4rem; }
.lede { margin: 0 0 20px; color: var(--slate); max-width: 40rem; }

.panels {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .panels { grid-template-columns: 1fr 1fr; }
  .panels-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(6, 21, 39, 0.04);
}
.panel-head {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  font-size: 1.05rem;
  font-weight: 700;
}
.panel-body { padding: 14px 16px 16px; }
.panel-body ul {
  margin: 0;
  padding-left: 1.15rem;
}
.panel-body li { margin-bottom: 8px; }
.panel-body a { font-weight: 600; text-decoration: none; }
.panel-body a:hover { text-decoration: underline; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--slate); font-size: 0.95rem; }
.card a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th {
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tr:last-child td { border-bottom: none; }

/* Schedule view tabs */
.schedule-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.sched-tab {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.sched-tab.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.calendar-subhead {
  margin: 0 0 10px;
}

/* Multi-column season calendar (club-style) */
.season-cal-wrap {
  border-radius: 10px;
}
.season-cal {
  font-size: 0.82rem;
  min-width: 720px;
}
.season-cal th,
.season-cal td {
  padding: 8px 10px;
  vertical-align: top;
  border: 1px solid var(--line);
  border-bottom-color: var(--line);
}
.season-cal thead th {
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
}
.season-cal .cal-group {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.season-cal .cal-fall {
  background: #0b1f33;
}
.season-cal .cal-spring {
  background: #0e3a4d;
}
.season-cal .cal-league {
  background: #16324f;
  font-size: 0.75rem;
}
.season-cal .cal-meta td {
  background: #f0f6fa;
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}
.season-cal tbody tr:nth-child(even) td {
  background: #fafcfd;
}
.season-cal .cal-off {
  background: #fef3c7 !important;
  color: #92400e;
  font-weight: 600;
}
.season-cal .cal-playoff {
  background: #dbeafe !important;
  color: #1e3a5f;
  font-weight: 700;
}
.season-cal .cal-open {
  background: #ecfdf5 !important;
  color: #065f46;
  font-weight: 600;
}
.season-cal .cal-note {
  background: #f8fafc !important;
  color: var(--slate);
  font-style: italic;
  text-align: center;
}

.notice {
  background: var(--amber);
  border: 1px solid var(--amber-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #5c4a12;
  margin-bottom: 16px;
}
.muted { color: var(--slate); font-size: 0.88rem; }

.page-title {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.page-title h1 { margin: 0; font-size: 1.65rem; }
.page-title p { margin: 6px 0 0; color: var(--slate); }
.main { padding: 24px 0 8px; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 32px 0 20px;
  margin-top: 24px;
  font-size: 0.9rem;
}
.site-footer a { color: #7dd3fc; }
.footer-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}
.site-footer h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 5px; }
.footer-bottom {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Fake admin demo page */
.admin-shell {
  max-width: min(960px, calc(100% - 24px));
  margin: 32px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(6, 21, 39, 0.06);
}
.admin-subhead {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  color: var(--navy);
}
.layout-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
}
.layout-fieldset legend {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 6px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}
.check-row input {
  width: auto;
  margin: 0;
}
.admin-shell select,
.admin-shell textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.9rem;
}
.admin-shell textarea {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
}
.label-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .label-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.admin-shell h1 { margin: 0 0 8px; font-size: 1.4rem; }
.admin-top { margin-bottom: 8px; }
.admin-shell label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 14px 0 6px;
}
.admin-shell input, .admin-shell textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.admin-shell button {
  margin-top: 18px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.admin-shell .hint {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--slate);
}
.admin-shell .hint-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.admin-import {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.admin-import h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.import-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 14px 0;
}
.file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.file-label input[type="file"] {
  width: auto;
  max-width: 220px;
  font-size: 0.85rem;
  border: 0;
  padding: 0;
}
.btn-import {
  margin-top: 0 !important;
  background: var(--teal-dark) !important;
}
.btn-text {
  margin-top: 0 !important;
  background: transparent !important;
  color: var(--teal-dark) !important;
  border: 0;
  padding: 0 !important;
  min-height: auto !important;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.link-template {
  font-size: 0.9rem;
  font-weight: 600;
}
.import-preview {
  margin-top: 12px;
}
.schedule-import-note {
  margin-bottom: 14px;
}
.sheet-embed-wrap {
  margin: 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(6, 21, 39, 0.06);
}
.sheet-embed-wrap iframe {
  display: block;
  width: 100%;
  min-height: 70vh;
  height: 720px;
  border: 0;
  background: #fff;
}
.sheet-embed-help {
  margin: 0;
  padding: 10px 14px;
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}
.admin-steps {
  margin: 10px 0 14px;
  padding-left: 1.25rem;
}
.admin-steps li {
  margin-bottom: 6px;
}
.admin-shell code {
  font-size: 0.85em;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
}
.tour-intro-hint {
  margin-top: 12px !important;
}

/* Gallery strip */
.gallery-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .gallery-strip {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(6, 21, 39, 0.04);
}
.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.gallery-item figcaption {
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

/* People */
.people-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .people-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.person-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.person-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.person-role {
  margin: 0 0 8px !important;
  font-size: 0.88rem;
}

/* Registration */
.register-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  max-width: 900px;
}
@media (min-width: 800px) {
  .register-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}
.register-price {
  margin: 0 0 6px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
}
.register-perks {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  line-height: 1.55;
  color: var(--slate);
}
.register-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 12px 0 6px;
}
.register-form input,
.register-form select,
.register-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}

/* Org use-case explorer (Who this is for) */
.use-case-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .use-case-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .use-case-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.use-case-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(6, 21, 39, 0.04);
  font: inherit;
  color: var(--navy);
  cursor: pointer;
  min-height: 140px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.use-case-card:hover,
.use-case-card.is-active {
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.12);
}
.use-case-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.use-case-card-title {
  font-weight: 800;
  font-size: 1.05rem;
}
.use-case-card-tagline {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.4;
  flex: 1;
}
.use-case-card-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-top: 4px;
}
.use-case-detail {
  margin-top: 22px;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  scroll-margin-top: 88px;
}
.use-case-detail-inner h2 {
  margin: 8px 0 6px;
  font-size: 1.5rem;
}
.use-case-detail-inner h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
}
.use-case-detail-icon {
  margin: 0;
  font-size: 2rem;
}
.use-case-how {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}
.use-case-how li {
  margin-bottom: 6px;
}
.use-case-demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.use-case-demo-btn {
  text-decoration: none;
  color: var(--navy) !important;
  border: 2px solid var(--navy);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  background: #fff;
}
.use-case-demo-btn:hover {
  background: var(--bg);
}
.use-case-preset-note {
  margin-top: 16px !important;
  font-size: 0.88rem;
}
.use-case-close {
  margin-bottom: 4px;
}

/* Emergency banner (site-wide) */
.emergency-banner {
  padding: 12px 18px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  border-bottom: 2px solid transparent;
}
.emergency-banner a {
  font-weight: 800;
  margin-left: 6px;
}
.emergency-banner.level-info {
  background: #e0f2fe;
  color: #0c4a6e;
  border-bottom-color: #7dd3fc;
}
.emergency-banner.level-warning {
  background: #fff7ed;
  color: #9a3412;
  border-bottom-color: #fdba74;
}
.emergency-banner.level-danger {
  background: #fef2f2;
  color: #991b1b;
  border-bottom-color: #fca5a5;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.section-head-row h2 {
  margin: 0;
}
.section-inline-title {
  margin: 8px 0 14px;
  font-size: 1.25rem;
}
.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--navy-deep);
  vertical-align: middle;
}
.news-date {
  font-size: 0.85rem;
  margin: 0 0 8px !important;
}
.news-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.join-steps {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
}
.join-steps li {
  margin-bottom: 8px;
}
.join-path .btn-primary {
  display: inline-flex;
  text-decoration: none;
}
.changelog-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fafcfd;
  font-size: 0.85rem;
}
.changelog-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.changelog-row:last-child {
  border-bottom: 0;
}

/* Tutorial blip — multi-format versatility + guardrails */
.tutorial-blip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f0f9fc 0%, #e8f4f8 100%);
  border: 1px solid #b6dce8;
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(6, 21, 39, 0.05);
}
.tutorial-blip[hidden] {
  display: none !important;
}
.tutorial-blip-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.tutorial-blip-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--navy);
}
.tutorial-blip-body {
  min-width: 0;
  flex: 1;
}
.tutorial-blip-body p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334;
}
.tutorial-blip-body ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #334;
}
.tutorial-blip-body li {
  margin-bottom: 4px;
}
.tutorial-blip-guard {
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.88rem !important;
}
.tutorial-blip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 0 !important;
}
.tutorial-blip-actions .btn-import {
  margin-top: 0;
}

/* Guided tour — card always above page content; do not raise target z-index */
body.tour-open {
  overflow: hidden;
}
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(6, 21, 39, 0.35);
  pointer-events: auto;
}
.tour-spotlight {
  position: fixed;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(6, 21, 39, 0.55);
  border: 2px solid var(--teal);
  pointer-events: none;
  z-index: 200001;
  transition: top 0.15s ease, left 0.15s ease, width 0.15s ease, height 0.15s ease;
  box-sizing: border-box;
}
/* Outline only — never raise z-index above the tip card */
.tour-target-active {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 0 3px var(--teal), 0 0 0 6px rgba(14, 165, 164, 0.25);
  outline: none;
}
/* Inline tour anchors (e.g. sample link, reset text) need a box to highlight */
a.tour-target-active,
span.tour-target-active,
button.tour-target-active {
  display: inline-block;
}
.tour-card {
  position: fixed;
  z-index: 200020;
  max-width: 380px;
  width: min(380px, calc(100vw - 24px));
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  color: var(--navy);
  pointer-events: auto;
  box-sizing: border-box;
  /* Never let a huge page section hide the tip */
  max-height: min(70vh, 420px);
  overflow: auto;
}
.tour-progress {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.tour-topic-label {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-dark);
}
.tour-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tour-chip {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.tour-chip:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.tour-chip-more {
  border-style: dashed;
  color: var(--teal-dark);
}
.tour-picker-card {
  max-width: min(440px, calc(100vw - 24px)) !important;
  width: min(440px, calc(100vw - 24px)) !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}
.tour-topic-grid {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.tour-topic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcfd;
  font: inherit;
  cursor: pointer;
  color: var(--navy);
}
.tour-topic-card:hover {
  border-color: var(--teal);
  background: #f0f9fc;
}
.tour-topic-card-title {
  font-weight: 800;
  font-size: 0.95rem;
}
.tour-topic-card-blurb {
  font-size: 0.82rem;
  color: var(--slate);
  font-weight: 500;
}
.tour-topic-done {
  color: var(--teal-dark);
  font-weight: 800;
}
.tour-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.tour-body {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334;
}
.tour-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tour-nav {
  display: flex;
  gap: 8px;
}
.tour-btn {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--navy);
}
.tour-btn.primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.tour-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sched-tab-help {
  margin-left: auto;
  border-style: dashed;
  font-weight: 600;
  color: var(--teal-dark);
}

/* Pasted HTML tables (FrontPage / Excel workflow) */
.html-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.html-table-wrap table,
.html-table-wrap .pasted-schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--white);
}
.html-table-wrap th,
.html-table-wrap td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}
.html-table-wrap th {
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
}
.html-table-wrap tr:nth-child(even) td {
  background: #fafcfd;
}
.admin-html-preview {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafcfd;
  max-height: 320px;
  overflow: auto;
}

/* ---------- Responsive: tablet + phone ---------- */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-inner {
    position: relative;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 12px 10px;
    border-radius: 8px;
  }
  .nav a:hover,
  .nav a.active {
    background: rgba(0, 180, 216, 0.08);
  }
  .nav .btn,
  .nav .btn-outline {
    justify-content: center;
    margin-top: 4px;
  }
  .hero {
    min-height: clamp(560px, 70vh, 760px);
    padding: 36px 0 140px;
    background-position: 90% 60%;
  }
  .hero-copy {
    max-width: min(22rem, 42%);
  }
  .sched-tab-help {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .demo-banner {
    font-size: 12px;
    text-align: left;
    line-height: 1.45;
  }
  .brand img {
    width: 52px;
    height: 52px;
  }
  .brand-text strong {
    font-size: 1rem;
  }
  .hero {
    min-height: clamp(480px, 62vh, 600px);
    padding: 28px 0 120px;
    background-position: 78% 58%;
  }
  .hero-copy {
    max-width: 100%;
    margin-top: 4px;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }
  .hero p {
    font-size: 0.98rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions a {
    justify-content: center;
    width: 100%;
  }
  .section {
    padding: 28px 0;
  }
  .panels {
    grid-template-columns: 1fr;
  }
  .table-wrap,
  .season-cal-wrap {
    -webkit-overflow-scrolling: touch;
  }
  .admin-shell {
    margin: 16px 12px;
    padding: 20px 16px;
    max-width: none;
  }
  .admin-shell input,
  .admin-shell textarea {
    font-size: 16px; /* prevent iOS zoom on focus */
  }
  .import-row {
    flex-direction: column;
    align-items: stretch;
  }
  .schedule-view-tabs {
    flex-direction: column;
  }
  .sched-tab {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 1100px) {
  .hero {
    /* Seal fully right of “Play together…”; Experience line free under buttons */
    background-position: 100% 68%;
    min-height: clamp(680px, 82vh, 960px);
    padding: 48px 0 180px;
  }
  .hero-copy {
    max-width: min(23rem, 32%);
  }
}

@media (min-width: 1400px) {
  .hero {
    background-position: 100% 70%;
  }
  .hero-copy {
    max-width: min(24rem, 30%);
  }
}
