/* =============================================
   White Rose Riichi — shared stylesheet
   Colour tokens: change these to restyle everything
   ============================================= */
:root {
  --brand-dark:  #1a1a2e;
  --brand-gold:  #c9a84c;
  --brand-light-blue: #80b2f3;
  --brand-blue: #297ce9;
  --brand-light: #f5f5f0;
  --text-dark: #010101;
  --text-muted:  #666;
  --card-bg:     #ffffff;
  --card-border: #ddd;
}

/* ── Base ── */
body {
  background: var(--brand-light);
  color: #222;
  margin: 0;
  padding: 0;
}

/* ── Navbar ── */
.site-nav {
  background: var(--brand-dark);   /* solid again, no need for rgba now it's not overlapping */
  padding: 0.15rem 2rem;            /* ← thinner: was 1rem, now 0.6rem */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-nav .logo {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}
.site-nav ul a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.875rem;
  padding-bottom: 2px;
}
.site-nav ul a:hover {
  color: var(--brand-gold);
}
.site-nav ul a.active {
  color: var(--brand-gold);
  border-bottom: 1px solid var(--brand-gold);
}

/* ── Hero ── */
/*.hero {
  background: var(--brand-dark);
  color: #fff;
  text-align: center;
  padding: 4rem 2rem 3rem;
}
  */

/* ── Hero ── */
.hero {
  position: relative;
  background-image: 
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('images/RiverAireHeader.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 7rem 2rem 3rem;  /* ← extra top padding so title clears the nav */
  text-align: center;
  border-radius: var(--pico-border-radius);
}

.hero h1 {
  color: #fff;
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
}
.hero .subtitle {
  color: #aaa;
  font-size: 1rem;
  margin: 0 0 1.75rem;
}
.hero .cta {
  background: var(--brand-gold);
  color: var(--brand-dark);
  border: none;
  font-weight: 700;
  padding: 0.65rem 1.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.hero .cta:hover {
  background: #b8943e;
}

/* ── Page header (non-hero pages) ── */
.page-header {
  background: var(--brand-dark);
  color: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
}
.page-header h1 {
  color: #fff;
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}
.page-header p {
  color: #aaa;
  margin: 0;
  font-size: 0.9rem;
}

/* ── Main content wrapper ── */
.content {
  max-width: min(90%, 1400px);
  margin: 0 auto;
  padding: 0.2rem 1.5rem;
}

/* ── Section title ── */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 1.5rem 0 0.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--brand-blue);
  display: inline-block;
}

.h2 {
  color: var(--brand-dark);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 2.5rem;   /* scales with root font-size, so it respects zoom/accessibility settings */
  width: auto;
  display: block;
}

/* ── Info cards ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.info-card {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.info-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--brand-dark);
}
.info-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-dark);
  line-height: 1.6;
  text-align: center;
}

/* ── Body text ── */
.body-text {
  color: #1d1d1d;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0.75rem 0 0;
  display:block;
}

.body-text-long {
  color: #1d1d1d;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0.75rem 0 0;
  display:block;
  white-space:pre-line;
}

/* ── Schedule table ── */
.schedule-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.schedule-table th {
  background: var(--brand-light-blue);
  color: #000000;
  padding: 0.6rem 1rem;
  text-align: left;
}

.schedule-table td {
  padding: 0.55rem 1rem;
  border-bottom: 0.5px solid #e0e0e0;
  color: #000000;
}
.schedule-table tr:nth-child(even) td {
  background: #f0f0eb;
}

.schedule-table tr:nth-child(odd) td {
  background: #dfdfff;
}


.players-table th {
  background: var(--brand-light-blue);
  color: #000000;
  padding: 0.3rem 0.5rem;
  text-align: left;
  font-size:medium;
  font-weight: bold;
}

.players-table td {
  padding: 0.3rem 0.5rem;
  border-bottom: 0.5px solid #e0e0e0;
  border-left: 0.5px solid #e0e0e0;
  border-right: 0.5px solid #e0e0e0;
  color: #000000;
  font-size:small;
}

/* these are for the paid column, yes and no are manually set by me */
.players-table td.paid {
  color: green;
}

.players-table td.not-paid {
  color: red;
}

.players-table td.paid::before {
  content: "✓ ";
  font-weight: bold;
}

.players-table td.not-paid::before {
  content: "✗ ";
  font-weight: bold;
}

.players-table tbody th {
  text-align: center;
  font-size: small;
}

.players-table tbody tr:nth-child(even) th {
  background: #e6ebf8; /* even ID cells */
  border-bottom: #e0e0e0
}

.players-table tbody tr:nth-child(odd) th {
  background: #c8d4f5; /* odd ID cells */
  border-bottom: #e0e0e0
}

.players-table tr:nth-child(even) td {
  background: #f0f0eb;
}

.players-table tr:nth-child(odd) td {
  background: #dfdfff;
}

/* ── Rules list ── */
.rules-list {
  padding-left: 1.25rem;
  color: #444;
  font-size: 0.9rem;
  line-height: 1.9;
}

/* ── Contact details ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.contact-card {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
  padding: 1.25rem;
}
.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--brand-dark);
}
.contact-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-card a {
  color: var(--brand-gold);
  text-decoration: none;
}
.contact-card a:hover {
  text-decoration: underline;
}

/* ── Registration form ── */
.reg-form {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
  padding: 1.75rem;
  margin-top: 1.25rem;
}
.reg-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-dark);
}
.reg-form input,
.reg-form select,
.reg-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border: 0.5px solid var(--card-border);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--brand-light);
  box-sizing: border-box;
}
.reg-form textarea {
  resize: vertical;
  min-height: 100px;
}
.reg-form .submit-btn {
  background: var(--brand-gold);
  color: var(--brand-dark);
  border: none;
  font-weight: 700;
  padding: 0.65rem 1.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-block;
}
.reg-form .submit-btn:hover {
  background: #b8943e;
}

/* Location */
.locationimg {
  display: block;
  max-width: 100%; /* failsafe */
  height: auto;
  max-width: 900px; /* overrides 100% */
  width: 100%;
  margin: 0.2rem auto;
  border-radius: 4px;
}

/* ── Footer ── */
.site-footer {
  background: var(--brand-dark);
  color: #888;
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8rem;
  margin-top: 3rem;
}
.site-footer a {
  color: var(--brand-gold);
  text-decoration: none;
}

@media (max-width: 600px) {
  .site-nav {
    flex-direction: column;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}