/* ==========================================================================
   Greenhills — House System
   Page-scoped, built from the tokens in styles.css.
   House NAMES (Diamond / Emerald / Gold / Ruby) are confirmed. House COLOURS
   are not — nothing on the old site documented them. Nothing here assigns a
   colour per house; differentiation is by name and motto only.
   ========================================================================== */

.page-hero--houses { --hero-image: url('/assets/clubs.jpg'); }

.houses-intro { max-width: 780px; margin: 0 auto; text-align: center; }
.houses-intro p { color: var(--muted); font-size: var(--text-lg); line-height: var(--lh-body); margin: 0; }

/* ── House cards ──────────────────────────────────────────────────────── */
.house-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.house-card {
  position: relative;
  overflow: hidden;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: 0 14px 35px rgba(8, 27, 49, .07);
  transition: transform .2s, box-shadow .2s;
}
.house-card:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(8, 27, 49, .12); }
/* House differentiation is brand-led, NOT colour-coded.
   Diamond / Emerald / Gold / Ruby are confirmed house NAMES; their official
   colours are not documented anywhere we can verify. Assigning a colour per
   gem would publish an unverified claim, so every card uses the same navy
   accent and is distinguished by its name and motto alone. Swap this block
   for per-house colours once the school confirms them. */
.house-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-850), var(--blue-700));
}

.house-name {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .5rem;
  font-size: var(--card-title);
  line-height: var(--lh-title);
  color: var(--navy-950);
}
/* Neutral marker — deliberately not a house colour. */
.house-dot {
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--blue-700);
}
.house-card p { margin: 0; color: var(--muted); font-size: var(--text-card); line-height: 1.66; }
.house-tag {
  display: inline-block;
  margin-top: .9rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--blue-700);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── House Cup ────────────────────────────────────────────────────────── */
.cup-panel {
  width: min(1080px, 100%);
  margin: 0 auto;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-850));
  color: #fff;
  border-radius: 8px;
  padding: clamp(2rem, 5vw, 3.25rem);
  box-shadow: var(--shadow);
}
.cup-panel h2 { margin: 0 0 .6rem; font-size: var(--section-title); line-height: var(--lh-heading); }
.cup-panel > p { max-width: 60ch; margin: 0 0 1.75rem; color: rgba(255, 255, 255, .8); font-size: var(--text-card); line-height: 1.66; }
.cup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cup-item {
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
}
.cup-item h3 {
  margin: 0 0 .3rem;
  font-family: var(--font-ui);
  font-size: var(--text-card);
  line-height: 1.3;
  color: #fff;
}
.cup-item p { margin: 0; color: rgba(255, 255, 255, .72); font-family: var(--font-ui); font-size: var(--text-sm); line-height: 1.5; }

.houses-flag {
  width: min(1080px, 100%);
  margin: 1.25rem auto 0;
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .95rem 1.1rem;
  background: var(--blue-100);
  border-left: 3px solid var(--blue-700);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.houses-flag svg { flex: none; margin-top: .15rem; color: var(--blue-700); }

@media (max-width: 900px) {
  .cup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .house-grid { grid-template-columns: 1fr; }
  .houses-intro { text-align: left; }
  .houses-intro p { font-size: var(--text-base); }
}
