/* Dignam Murray Cup: modern golf-club look (extra-condensed display, deep green, lime accent, tinted panels). */
:root {
  --forest: #0D2A1C;
  --green: #124A2F;
  --lime: #D6F25C;
  --sky: #DCECFB;
  --sage: #E8EFCF;
  --white: #FFFFFF;
  --paper: #F7F7F4;
  --ink: #0D2A1C;
  --muted: #4E5F55;
  --line: rgba(13, 42, 28, .14);

  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --text: "Sofia Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 3.5vw, 40px);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; }
::selection { background: var(--lime); color: var(--forest); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .9; margin: 0; letter-spacing: -.005em; }

/* Nav (floats over the hero) */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter); color: var(--white);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark {
  width: 30px; height: 40px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url(img/mark.svg) center / contain no-repeat; mask: url(img/mark.svg) center / contain no-repeat;
}
.brand-text { display: grid; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 25px; text-transform: uppercase; line-height: .9; }
.brand-sub { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; opacity: .85; margin-top: 3px; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
.nav nav a { font-size: 15px; font-weight: 600; text-decoration: none; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .nav-cta { background: var(--lime); color: var(--forest); padding: 8px 16px; border-radius: 6px; }
.nav .nav-cta:hover { text-decoration: none; background: var(--white); }

.nav--solid { position: sticky; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); color: var(--ink); border-bottom: 1px solid var(--line); }
.nav nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Inner page heading */
.page-head { padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(64px, 11vw, 148px); margin-bottom: 20px; }
.page-head .lede { margin: 0; max-width: 46ch; font-size: clamp(19px, 2vw, 22px); color: var(--muted); }
.page-head .chips { margin-top: 24px; }
.page-head .chips li { background: var(--paper); border: 1px solid var(--line); }

.section { padding: 0 var(--gutter); margin-bottom: 16px; }
.panel { border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.panel-sky { background: var(--sky); }
.panel-sage { background: var(--sage); }
.panel-paper { background: var(--paper); border: 1px solid var(--line); }
.panel-forest { background: var(--forest); color: var(--white); }
.panel h2 { font-size: clamp(44px, 6vw, 80px); margin-bottom: 20px; }
.panel .intro { margin: 0 0 28px; color: var(--muted); max-width: 52ch; }
.panel-forest .intro { color: rgba(255,255,255,.75); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }

/* Schedule (tee sheet) */
.sheet { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--forest); }
.sheet li { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sheet time { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.sheet strong { display: block; font-size: 17px; }
.sheet span.sub { color: var(--muted); font-size: 15px; }
.status-pill { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 5px; background: var(--white); white-space: nowrap; }
.status-pill.set { background: var(--lime); }

.venues { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.venue { background: var(--white); border-radius: 10px; padding: 18px 20px; }
.venue h3 { margin: 6px 0 6px; font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; }
.venue p { margin: 0; color: var(--muted); font-size: 15px; }
.venue .field-label { color: var(--muted); }

/* Form */
.form { display: grid; gap: 18px; max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label, .form legend { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--white);
  border: 1px solid rgba(13,42,28,.25); border-radius: 8px; padding: 12px 14px;
}
.input:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: var(--forest); }
.panel-forest .input { border-color: transparent; }
textarea.input { min-height: 96px; resize: vertical; }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.panel-forest .hint, .panel-forest .form-msg { color: rgba(255,255,255,.75); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 10px 16px; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); font-weight: 600; cursor: pointer; }
.choice input:checked + span { background: var(--lime); color: var(--forest); border-color: var(--lime); }
.choice input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
button.cta { border: 0; font: inherit; font-weight: 700; cursor: pointer; width: 100%; max-width: 360px; }
button.cta[disabled] { opacity: .6; cursor: progress; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-msg.error { color: #FFB4A8; }
.done h3 { font-family: var(--display); font-weight: 800; font-size: 48px; text-transform: uppercase; line-height: .95; margin: 0 0 10px; color: var(--lime); }
.done p { margin: 0; color: rgba(255,255,255,.8); }

/* History table */
.records { width: 100%; border-collapse: collapse; }
.records th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 2px solid var(--forest); }
.records td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.records td.blank { color: rgba(13,42,28,.25); }

/* Photos */
.gallery-empty { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.gallery-empty img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.frames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.frames div { aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed rgba(13,42,28,.25); }

/* Merch */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 var(--gutter); margin-bottom: 16px; }
.product { border-radius: var(--radius); padding: 14px; display: grid; grid-template-rows: auto 1fr; gap: 20px; }
.product.panel-sky { background: var(--sky); }
.product.panel-sage { background: var(--sage); }
.product.panel-paper { background: var(--paper); border: 1px solid var(--line); }
.product-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.product-body { padding: 4px 10px 14px; display: flex; flex-direction: column; align-items: flex-start; }
.product h2 { font-size: clamp(44px, 5vw, 64px); margin-bottom: 12px; }
.product p { margin: 0 0 20px; color: var(--muted); max-width: 44ch; }
.swatches { border: 0; padding: 0; margin: 0 0 20px; }
.swatches legend { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.swatches legend span { color: var(--muted); }
.swatch-row { display: flex; gap: 10px; }
.swatch { position: relative; width: 36px; height: 36px; }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); border: 1px solid rgba(13,42,28,.3); box-shadow: 0 0 0 3px var(--white); }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--forest); }
.swatch input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 6px; }
.merch-note .btn { background: var(--lime); color: var(--forest); }
.merch-note .btn .btn-arrow { background: var(--forest); color: var(--lime); }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-photo { position: relative; }
.login-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-side { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vw, 80px); background: var(--white); }
.login-side .brand { color: var(--ink); margin-bottom: 48px; }
.login-side h1 { font-size: clamp(56px, 7vw, 96px); margin-bottom: 14px; }
.login-side p { color: var(--muted); margin: 0 0 28px; max-width: 36ch; }
.login-side .form-msg.error { color: #B3261E; }

/* Hero */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,30,18,.72) 0%, rgba(8,30,18,.15) 45%, rgba(8,30,18,.35) 100%); }
.hero-inner {
  position: relative; width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 0 var(--gutter) clamp(24px, 4vw, 40px);
}
.hero h1 { font-size: clamp(56px, 8.5vw, 112px); max-width: 12ch; }

.booking {
  background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 10px;
  width: min(420px, 100%); box-shadow: 0 20px 40px -18px rgba(0,0,0,.5);
}
.booking-row { display: grid; grid-template-columns: 1fr 1fr; }
.field { padding: 8px 12px 12px; }
.field + .field { border-left: 1px solid var(--line); }
.field-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.field-value { display: block; font-weight: 600; font-size: 16px; }
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--lime); color: var(--forest); border-radius: 8px; padding: 12px 8px 12px 16px;
  font-weight: 700; text-decoration: none; transition: filter .2s;
}
.cta:hover { filter: brightness(.95); }
.cta-arrow, .btn-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; background: var(--forest); color: var(--lime); }
.cta-arrow svg, .btn-arrow svg { width: 15px; height: 15px; }

/* Statement */
.statement { padding: clamp(64px, 10vw, 128px) var(--gutter); }
.statement p {
  margin: 0; max-width: 26ch; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.12; font-weight: 500; letter-spacing: -.02em;
}
.statement .fade { color: rgba(13, 42, 28, .38); }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 var(--gutter); }
.card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; border-radius: var(--radius); padding: 14px; }
.card img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: 8px; }
.card-sky { background: var(--sky); }
.card-forest { background: var(--forest); color: var(--white); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 8px 8px 0; }
.tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; margin-bottom: 16px; background: rgba(255,255,255,.5);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.card-forest .tag { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.card-forest .tag::before { background: var(--lime); }
.card h2 { font-size: clamp(40px, 4.4vw, 56px); margin-bottom: 14px; }
.card p { margin: 0 0 18px; color: var(--muted); max-width: 38ch; }
.card-forest p { color: rgba(255,255,255,.75); }
.chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--white); color: var(--ink); border-radius: 6px; padding: 5px 10px; font-size: 14px; font-weight: 600; }
.card-forest .chips li { background: rgba(255,255,255,.1); color: var(--white); }
.btn {
  margin-top: auto; display: inline-flex; align-items: center; gap: 12px;
  background: var(--forest); color: var(--white); border-radius: 7px; padding: 6px 6px 6px 14px;
  font-weight: 700; font-size: 15px; text-decoration: none;
}
.btn .btn-arrow { background: var(--lime); color: var(--forest); }
.card-forest .btn { background: var(--lime); color: var(--forest); }
.card-forest .btn .btn-arrow { background: var(--forest); color: var(--lime); }

/* Trophy */
.trophy {
  margin: 16px var(--gutter) 0; background: var(--sage); border-radius: var(--radius);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 48px);
}
.trophy h2 { font-size: clamp(64px, 9vw, 120px); margin-bottom: 20px; }
.trophy-copy p { margin: 0 0 28px; color: var(--muted); max-width: 42ch; font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; max-width: 480px; }
.stats div { background: var(--white); border-radius: 8px; padding: 10px 12px; }
.stats dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1.05; }
.trophy-photo { margin: 0; }
.trophy-photo img { border-radius: 10px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Rivalry */
.rivalry { padding: clamp(64px, 9vw, 112px) var(--gutter); }
.rivalry-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.rivalry h2 { font-size: clamp(56px, 8vw, 104px); }
.rivalry-head p { margin: 0; color: var(--muted); max-width: 36ch; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.team-col {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; background: var(--paper);
}
.team-name { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); text-transform: uppercase; line-height: 1; }
.team-score { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 7vw, 88px); line-height: .9; color: var(--green); font-variant-numeric: tabular-nums; }
.textlink { font-weight: 700; text-underline-offset: 5px; }

/* Footer */
.footer { background: var(--forest); color: var(--white); padding: clamp(40px, 6vw, 72px) var(--gutter) 28px; overflow: hidden; }
.footer-mark { margin: 0 0 24px; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .82; font-size: clamp(64px, 13vw, 200px); color: var(--lime); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; }

@media (max-width: 1080px) {
  .cards { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; row-gap: 10px; }
  .nav nav { width: 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .nav nav .nav-cta { margin-left: auto; }
  .brand-sub { display: none; }
  .hero { min-height: 640px; }
  .card { grid-template-columns: 1fr; }
  .card img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .card-body { padding: 4px; }
  .trophy { grid-template-columns: 1fr; }
  .trophy-photo { order: -1; }
  .teams { grid-template-columns: 1fr; }
  .stats dd { font-size: 18px; }
  .split, .gallery-empty, .venues, .form-row, .products { grid-template-columns: 1fr; }
  .sheet li { grid-template-columns: 84px 1fr; }
  .sheet .status-pill { grid-column: 2; justify-self: start; }
  .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { grid-template-columns: 1fr; }
  .login-photo { min-height: 34vh; }
  .records td { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cta { transition: none; } }
