:root {
  --paper: #fffaf2;
  --paper-2: #f4efe6;
  --ink: #151515;
  --muted: #626262;
  --line: #d9d0c2;
  --red: #d7372f;
  --teal: #00877f;
  --gold: #f4bf30;
  --blue: #2468d8;
  --green: #167a4a;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-color: rgba(215, 55, 47, 0.45);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.35rem, 5rem, 5rem);
  line-height: 0.96;
  margin-bottom: 1rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 250, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 180px;
  height: auto;
}

.brand.mini img {
  width: 130px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.main-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav .nav-cta {
  background: var(--ink);
  color: var(--white);
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.12)),
    url("/img/club1.jpg") center / cover no-repeat;
  color: var(--white);
  padding: clamp(2rem, 7vw, 6rem);
}

.hero-inner {
  max-width: 760px;
  width: 100%;
  min-width: 0;
}

.hero-copy {
  font-size: 1.25rem;
  max-width: 650px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: break-word;
}

.eyebrow {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
  margin-bottom: 0.7rem;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero-actions,
.title-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  line-height: 1.1;
}

.button.primary,
button.primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost.dark {
  color: var(--ink);
  border-color: var(--ink);
}

.button.quiet {
  border-color: var(--line);
  background: transparent;
}

.button.small {
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--gold);
}

.metrics-band div {
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  border-right: 1px solid var(--ink);
}

.metrics-band div:last-child {
  border-right: 0;
}

.metrics-band strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.metrics-band span {
  font-weight: 800;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.7fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.section-grid.compact {
  padding-top: clamp(1.6rem, 5vw, 4rem);
}

.section-heading {
  max-width: 480px;
}

.section-heading p {
  color: var(--muted);
}

.event-list,
.source-list {
  display: grid;
  gap: 0.9rem;
}

.event-list.wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem);
}

.event-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.event-card.slim {
  grid-template-columns: 66px minmax(0, 1fr);
}

.event-card h2,
.event-card h3 {
  margin-bottom: 0.2rem;
}

.date-chip {
  display: grid;
  place-items: center;
  width: 64px;
  min-height: 64px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
}

.date-chip span {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 900;
}

.date-chip small {
  color: var(--gold);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tags span,
.status-line strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
}

.source-link,
.text-link {
  font-weight: 900;
  color: var(--red);
}

.color-band {
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  color: var(--white);
}

.color-band .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.criteria-grid div {
  display: grid;
  gap: 0.45rem;
  min-height: 140px;
  padding: 1rem;
  background: var(--ink);
}

.criteria-grid strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.criteria-grid span {
  color: rgba(255, 255, 255, 0.78);
}

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

.venue-grid.directory,
.article-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.venue-card,
.article-card {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.venue-card.needs-review {
  border-color: var(--gold);
  background: #fff7da;
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-specs,
.spec-grid {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
}

.mini-specs div,
.spec-grid div {
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0.1rem 0 0;
}

.source-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.source-row.static {
  text-decoration: none;
}

.source-row span {
  display: grid;
  gap: 0.2rem;
}

.source-row small {
  color: var(--muted);
}

.source-row em {
  color: var(--teal);
  font-style: normal;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.page-title {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
}

.page-title h1 {
  max-width: 900px;
}

.page-title p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.split-title {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.filter-bar {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.detail-main,
.detail-side,
.admin-panel,
.login-panel,
.large-form,
.empty-state {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.5rem);
}

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

.note-box {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 6px solid var(--teal);
  background: #eaf7f5;
  border-radius: 8px;
}

.score-stack {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.score-stack span {
  padding: 0.65rem;
  background: var(--paper-2);
  border-radius: 8px;
  font-weight: 800;
}

.stack-form,
.large-form {
  display: grid;
  gap: 0.85rem;
}

.large-form {
  max-width: 850px;
  margin: 0 auto clamp(2rem, 6vw, 5rem);
}

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

.source-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 2rem;
}

.article-card {
  min-height: 230px;
}

.article-page {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.article-page header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article-page header p {
  color: var(--muted);
  font-size: 1.14rem;
}

.article-page section {
  margin-bottom: 1.5rem;
}

.empty-state {
  text-align: center;
}

.empty-state.standalone {
  max-width: 720px;
  margin: clamp(2rem, 7vw, 5rem) auto;
}

.flash-wrap {
  position: fixed;
  top: 86px;
  right: 1rem;
  z-index: 20;
  display: grid;
  gap: 0.5rem;
  max-width: 360px;
}

.flash {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.flash.error {
  background: var(--red);
}

.flash.success {
  background: var(--green);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: start;
}

.footer-links a {
  color: var(--white);
  font-weight: 800;
}

.admin-body {
  background: #f6f6f6;
}

.admin-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
}

.admin-title {
  margin-bottom: 1rem;
}

.admin-title h1 {
  font-size: 2.5rem;
}

.admin-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.panel-heading,
.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.admin-panel {
  margin-bottom: 1rem;
}

.admin-list {
  display: grid;
  gap: 0.7rem;
}

.admin-row {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-row.tall {
  align-items: start;
}

.admin-row span {
  display: grid;
  gap: 0.2rem;
}

.admin-row small {
  color: var(--muted);
}

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

.admin-form .full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
  gap: 0.5rem;
}

.inline-form input,
.inline-form select {
  width: auto;
  min-width: 150px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
}

.check-line input {
  width: 18px;
  min-height: 18px;
}

.check-line.compact {
  min-height: 34px;
}

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

.tabs a {
  padding: 0.55rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.tabs a.active {
  background: var(--ink);
  color: var(--white);
}

.login-panel {
  max-width: 480px;
  margin: clamp(2rem, 8vw, 6rem) auto;
}

@media (max-width: 900px) {
  .site-header,
  .admin-header,
  .site-footer,
  .split-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 68vh;
  }

  .metrics-band,
  .admin-metrics,
  .section-grid,
  .detail-layout,
  .criteria-grid,
  .venue-grid,
  .venue-grid.directory,
  .article-grid,
  .spec-grid,
  .two-cols,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .event-card .source-link,
  .event-card .card-actions {
    grid-column: 2;
  }

  .metrics-band div {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .metrics-band div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.18rem;
    line-height: 1.04;
  }

  .brand img {
    width: 150px;
  }

  .main-nav a {
    padding: 0.42rem 0.42rem;
    font-size: 0.84rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero-inner,
  .hero-copy {
    max-width: calc(100vw - 2rem);
  }

  .hero-copy {
    font-size: 1.04rem;
    max-width: 340px;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card .source-link,
  .event-card .card-actions {
    grid-column: auto;
  }

  .source-row,
  .admin-row,
  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .source-row em {
    text-align: left;
  }

  .inline-form {
    justify-content: flex-start;
  }

  .inline-form input,
  .inline-form select {
    width: 100%;
  }
}
