.open-page {
  min-height: calc(100vh - 3rem);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.open-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(7, 31, 42, .82), rgba(31, 54, 48, .64)),
    url("https://www.theopen.com/-/media/headers/the-open/birkdale-header.jpg");
  background-size: cover;
  background-position: center;
}

.open-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, .62);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .15s ease;
}

.open-back-link:hover {
  color: #ffffff;
}

.open-wordmark {
  display: flex;
  justify-content: center;
  margin: 0 auto .85rem;
}

.open-logo-img {
  display: block;
  width: clamp(8.5rem, 24vw, 13rem);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .32));
}

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  color: #071f2a;
  background: #f1c15b;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.open-hero-title {
  margin: .8rem 0 .35rem;
  color: #ffffff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
}

.open-hero-meta {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: .92rem;
}

.open-hero-date {
  margin: .25rem 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: .78rem;
  font-weight: 700;
}

.open-hero-facts {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.open-hero-facts span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .78);
  padding: .28rem .75rem;
  font-size: .72rem;
  font-weight: 800;
}

.open-band {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

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

.open-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: .5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.open-card-pad {
  padding: 1rem;
}

.open-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.open-table th {
  background: #071f2a;
  color: #f1c15b;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: left;
  padding: .8rem .75rem;
}

.open-table td {
  border-top: 1px solid hsl(var(--border));
  padding: .75rem;
  vertical-align: middle;
}

.open-table-wrap {
  overflow-x: auto;
}

.open-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.open-section-head.plain {
  padding: 0;
  border-bottom: 0;
  margin-bottom: .75rem;
}

.open-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.open-section-head p {
  margin: .15rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: .76rem;
}

.open-team-section,
.open-standings-card,
.open-top-leaderboard,
.open-draft-field-section {
  grid-column: 1 / -1;
}

.open-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.open-player-with-flag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.open-team-rank,
.open-pick-number {
  color: hsl(var(--muted-foreground));
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.open-standings-table td:nth-child(3) {
  font-size: 1rem;
  font-weight: 900;
}

.open-standing-row {
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}

.open-standing-row:hover,
.open-standing-row[aria-expanded="true"] {
  background: hsl(var(--muted) / .42);
}

.open-standing-row.is-cut-risk {
  background: #fff8f8;
  box-shadow: inset 3px 0 0 rgba(244, 63, 94, .32);
}

.open-standing-row.is-cut-risk:hover,
.open-standing-row.is-cut-risk[aria-expanded="true"] {
  background: #fff1f2;
}

.open-expand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid hsl(var(--border));
  border-radius: .35rem;
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  font-size: .95rem;
  font-weight: 900;
  line-height: 1;
}

.open-golfer-detail-row td {
  padding: 0;
  background: hsl(var(--muted) / .2);
}

.open-golfer-detail {
  padding: .25rem 0;
}

.open-golfer-detail table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.open-golfer-detail th {
  padding: .55rem .75rem;
  color: hsl(var(--muted-foreground));
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}

.open-golfer-detail td {
  padding: .58rem .75rem;
  border-top: 1px solid hsl(var(--border));
  background: transparent;
}

.open-golfer-detail tr.is-cut-risk td {
  background: #fff1f2;
}

.open-detail-round-head {
  width: 4rem;
  background: #f1c15b;
  color: #071f2a !important;
  text-align: center !important;
}

.open-detail-round-score {
  font-size: .9rem;
  font-weight: 900;
  text-align: center;
}

.open-detail-name {
  margin-right: .45rem;
  font-weight: 800;
}

.open-detail-player {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-right: .45rem;
}

.open-detail-flag {
  line-height: 1;
}

.open-tag.counting {
  margin-right: .25rem;
  background: rgba(4, 120, 87, .1);
  color: #047857;
}

.open-tag.cut-risk {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.open-tag.cut-risk {
  margin-left: .35rem;
}

.open-cut-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--muted) / .45);
  color: hsl(var(--muted-foreground));
  padding: .34rem .62rem;
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
}


.open-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.open-roasts-section {
  grid-column: 1 / -1;
}

.open-roast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.open-roast-card {
  border: 1px solid hsl(var(--border));
  border-radius: .5rem;
  background: hsl(var(--card));
  padding: .95rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.open-roast-card.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(9rem, .28fr) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding: 1.25rem;
  border-color: rgba(215, 169, 59, .55);
  background: linear-gradient(135deg, #fffaf0, hsl(var(--card)));
}

.open-roast-round {
  color: #071f2a;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.open-roast-card h3 {
  margin: .45rem 0 .35rem;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.25;
}

.open-roast-card.is-featured h3 {
  margin: .35rem 0 0;
  font-size: clamp(1.18rem, 2.6vw, 1.85rem);
  line-height: 1.12;
}

.open-roast-card p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: .78rem;
  line-height: 1.45;
}

.open-roast-card.is-featured p {
  color: hsl(var(--foreground));
  font-size: clamp(.98rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  white-space: pre-line;
}

.open-team-card {
  border: 1px solid hsl(var(--border));
  border-radius: .5rem;
  background: hsl(var(--card));
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.open-team-card.is-cut-risk {
  border-color: rgba(244, 63, 94, .22);
  box-shadow: inset 3px 0 0 rgba(244, 63, 94, .24), 0 1px 2px rgba(15, 23, 42, .05);
}

.open-team-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem .9rem;
  background: hsl(var(--muted) / .55);
  border-bottom: 1px solid hsl(var(--border));
}

.open-team-head h3 {
  margin: .1rem 0 0;
  font-size: 1rem;
  font-weight: 900;
}

.open-team-total {
  min-width: 3.25rem;
  text-align: right;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.open-team-total-label {
  margin-top: .15rem;
  color: hsl(var(--muted-foreground));
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: right;
  text-transform: uppercase;
}

.open-round-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .35rem;
  padding: .65rem .9rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.open-round-strip span {
  display: inline-flex;
  justify-content: center;
  border: 1px solid hsl(var(--border));
  border-radius: .35rem;
  padding: .22rem .25rem;
  color: hsl(var(--muted-foreground));
  font-size: .7rem;
  font-weight: 900;
}

.open-pick-list {
  display: grid;
}

.open-pick-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  padding: .7rem .9rem;
  border-top: 1px solid hsl(var(--border));
}

.open-pick-row:first-child {
  border-top: 0;
}

.open-pick-row.is-counting {
  background: rgba(4, 120, 87, .07);
}

.open-pick-row.is-missing {
  background: rgba(148, 163, 184, .08);
}

.open-pick-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .86rem;
  font-weight: 800;
}

.open-pick-meta {
  margin-top: .1rem;
  color: hsl(var(--muted-foreground));
  font-size: .72rem;
}

.open-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  border: 1px solid hsl(var(--border));
  border-radius: .35rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: .18rem .4rem;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
}

.open-score-badge.counting {
  border-color: rgba(4, 120, 87, .28);
}

.open-score-badge.missing {
  color: hsl(var(--muted-foreground));
}

.open-round-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #071f2a;
  color: #ffffff;
  padding: .35rem .7rem;
  font-size: .76rem;
  font-weight: 900;
}

.open-muted {
  color: hsl(var(--muted-foreground));
}

.open-input,
.open-textarea {
  width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: .5rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  padding: .65rem .8rem;
  font: inherit;
}

.open-textarea {
  min-height: 140px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .8rem;
}

.open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  border: 1px solid hsl(var(--border));
  padding: .65rem .9rem;
  font-size: .85rem;
  font-weight: 700;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  transition: opacity .15s ease, background .15s ease;
}

.open-button.primary {
  border-color: #071f2a;
  background: #071f2a;
  color: white;
}

.open-button.gold {
  border-color: #f1c15b;
  background: #f1c15b;
  color: #071f2a;
}

.open-tag {
  display: inline-flex;
  align-items: center;
  padding: .12rem .45rem;
  border-radius: .35rem;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: .72rem;
  font-weight: 700;
}

.open-score-good {
  color: #047857;
  font-weight: 800;
}

.open-score-bad {
  color: #b91c1c;
  font-weight: 800;
}

@media (max-width: 720px) {
  .open-hide-sm {
    display: none;
  }

  .open-team-grid,
  .open-roast-grid {
    grid-template-columns: 1fr;
  }

  .open-roast-card.is-featured {
    grid-template-columns: 1fr;
  }

  .open-section-head {
    align-items: flex-start;
  }

  .open-pick-row {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
  }

  .open-standings-table {
    min-width: 42rem;
  }

  .open-top-table {
    min-width: 34rem;
  }

  .open-golfer-detail table {
    min-width: 38rem;
  }

  .open-table th,
  .open-table td {
    padding: .65rem .5rem;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .open-team-grid,
  .open-roast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .open-roast-card.is-featured {
    grid-template-columns: 1fr;
  }
}
