:root {
  color-scheme: light;
  --ink: #173c30;
  --green: #145440;
  --dark: #103b2f;
  --muted: #56685e;
  --gold: #cfaa5b;
  --line: #d8e1d7;
  --paper: #f6f8f4;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font:
    100%/1.5 "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 650;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
}
button:hover {
  filter: brightness(0.92);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #bc8528;
  outline-offset: 3px;
}
a {
  color: var(--green);
}
.wrap {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}
.mast {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mast-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.045em;
  font-size: 1.78rem;
  color: var(--dark);
}
.wordmark b {
  font-weight: 400;
}
.crest {
  width: 42px;
  height: 47px;
  display: inline-grid;
  place-content: center;
  background: #174d3b;
  clip-path: polygon(0 0, 100% 0, 100% 64%, 88% 80%, 50% 100%, 12% 80%, 0 64%);
  position: relative;
}
.crest:before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #d6ba79;
  border-radius: 0 0 50% 50%;
}
.crest i {
  width: 2px;
  height: 23px;
  background: #e2c681;
  position: relative;
  transform: translateX(-3px);
}
.crest i:after {
  content: "";
  position: absolute;
  left: 1px;
  top: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 12px solid #e2c681;
}
.quiet,
.secondary,
.chip {
  color: var(--ink);
  background: #fff;
  border: 1px solid #c4d0c6;
}
.quiet {
  border-radius: 22px;
  padding: 0 1.1rem;
  font-size: 0.89rem;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  margin: 27px 0 0;
  min-height: 235px;
  display: flex;
  align-items: end;
  background: #143e31;
  color: #fff;
}
.hero:before,
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero:before {
  background: url("/fairway.webp") center 51% / cover;
  left: 24%;
}
.hero:after {
  background:
    linear-gradient(
      90deg,
      #113e31 1%,
      #113e31 22%,
      rgba(17, 62, 49, 0.93) 33%,
      rgba(17, 62, 49, 0.64) 47%,
      rgba(17, 62, 49, 0.1) 76%
    ),
    linear-gradient(0deg, rgba(9, 40, 29, 0.23), transparent 59%);
}
.hero-copy {
  padding: 38px 44px;
  max-width: 95%;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.6rem;
  color: #526b54;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 750;
}
.light {
  color: #f3d89b;
}
.dash {
  width: 27px;
  height: 2px;
  background: #d5af62;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2.75rem, 5.4vw, 4.8rem);
  letter-spacing: -0.052em;
  margin: 0 0 0.6rem;
}
h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.65rem);
  letter-spacing: -0.045em;
}
h3 {
  font-size: 1.55rem;
  letter-spacing: -0.029em;
}
h4 {
  font-size: 1.25rem;
}
.hero-meta {
  color: #f5f7ed;
  font-size: 0.96rem;
}
.hero-meta span,
.sepdot {
  margin: 0 0.5rem;
  color: #b69858;
}
.tabs {
  display: flex;
  gap: 1.85rem;
  align-items: stretch;
  border-bottom: 1px solid #cbd5ca;
  margin: 8px 0 28px;
  min-height: 59px;
}
.tabs a {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  color: #5b695f;
  padding: 0 0.15rem;
  font-weight: 650;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tabs a.active {
  border-color: var(--green);
  color: var(--dark);
}
.nav-icon,
.mini-flag {
  font-size: 1.2rem;
  line-height: 1;
}
.panel,
.side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px 27px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 22px;
  align-items: start;
}
.stack,
.form {
  display: grid;
  gap: 16px;
}
.row,
.section-head,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.section-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.section-head p {
  margin-top: 0.35rem;
}
.muted,
.help {
  color: var(--muted);
}
.help,
.small {
  font-size: 0.875rem;
}
.pill {
  background: #eef3ed;
  border: 1px solid #dae4d8;
  color: #365943;
  padding: 0.26rem 0.65rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.pill.live:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #408251;
  border-radius: 50%;
}
.pill.warn,
.flagged {
  background: #fff0cc !important;
  border-color: #bd852c !important;
  color: #6a4306 !important;
}
.pill.good {
  color: #225432;
  background: #e4f3e4;
}
.empty {
  min-height: 190px;
  border-top: 1px solid var(--line);
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 7px;
  padding: 22px 12px;
}
.empty p {
  max-width: 38ch;
  color: var(--muted);
}
.empty-flag {
  display: grid;
  place-content: center;
  width: 46px;
  height: 46px;
  color: #7a663c;
  background: #f5f1e5;
  border-radius: 50%;
  font-size: 1.7rem;
  margin-bottom: 5px;
}
.side.course {
  background: #ecf2e9;
  border-color: #d7e2d2;
}
.side h3 {
  margin-bottom: 13px;
}
.metrics {
  display: flex;
  gap: 0;
}
.metric {
  flex: 1;
  border-left: 1px solid #c3d0bf;
  padding-left: 14px;
}
.metric:first-child {
  border: 0;
  padding-left: 0;
}
.metric strong {
  display: block;
  font: 500 1.8rem var(--serif);
}
.metric small {
  color: var(--muted);
}
.text-action {
  color: var(--green);
  background: none;
  border: 0;
  padding: 8px 0;
  text-align: left;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.side .text-action {
  margin-top: 10px;
}
.intro {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
}
.access {
  border-top: 3px solid var(--gold);
}
.access button {
  margin-top: 14px;
}
.board {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.board th,
.grid-table th {
  color: #53695a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.74rem;
  font-weight: 700;
}
.board td,
.board th,
.grid-table td,
.grid-table th {
  padding: 0.7rem 0.48rem;
  border-bottom: 1px solid var(--line);
}
.board th:last-child,
.board td:last-child {
  text-align: right;
}
.board td strong {
  font-variant-numeric: tabular-nums;
}
.board .cb {
  font-size: 0.83rem;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.rank {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #816429;
}
.tabs-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 1rem 0;
}
.chip {
  border-radius: 22px;
  font-size: 0.9rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
}
.chip[aria-pressed="true"] {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}
.card-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 0.78rem 0;
}
.card-row p,
.card-row strong {
  overflow-wrap: anywhere;
}
.card-row .muted {
  font-size: 0.9rem;
}
.card-row .secondary {
  padding: 0.4rem 0.8rem;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 12px;
}
.form label,
.fields label,
.block {
  display: grid;
  gap: 0.32rem;
  font-size: 0.91rem;
  font-weight: 640;
}
input,
select {
  width: 100%;
  min-width: 0;
  background: white;
  border: 1px solid #b8c8bb;
  border-radius: 5px;
  padding: 0.53rem 0.6rem;
  min-height: 44px;
  font-size: 1rem;
}
select {
  padding-right: 1.5rem;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  flex-shrink: 0;
}
.form label.check,
.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}
.form h3 {
  margin-top: 6px;
}
.scroll {
  max-width: 100%;
  overflow-x: auto;
}
.grid-table {
  border-collapse: collapse;
  text-align: center;
  width: 100%;
}
.grid-table td,
.grid-table th {
  padding: 0.45rem 0.3rem;
}
.grid-table input {
  max-width: 6.3rem;
  text-align: center;
}
.grid-table th[scope="row"] {
  font: 600 1rem system-ui;
  color: var(--ink);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.8rem 0;
  gap: 10px;
  flex-wrap: wrap;
}
.notes {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.7rem 1rem;
}
.notes summary {
  font-weight: 650;
}
.notes[open] summary {
  margin-bottom: 0.7rem;
}
.notice,
.error {
  padding: 12px 16px;
  background: #edf4e9;
  border: 1px solid #ccdccc;
  border-radius: 6px;
  margin-bottom: 14px;
}
.error {
  background: #fff1e7;
  border-color: #e5be9f;
  color: #76380d;
}
.signature {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.signature strong {
  font: italic 1.35rem var(--serif);
}
.signature time {
  font-size: 0.8rem;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: min(470px, calc(100% - 32px));
  width: 100%;
  padding: 26px;
  color: var(--ink);
  max-height: 90dvh;
}
dialog::backdrop {
  background: rgba(10, 29, 21, 0.62);
}
.close {
  font-size: 1.25rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  min-width: 44px;
  padding: 0;
}
.danger {
  color: #893d2d;
  background: #fff;
  border-color: #d9b5a8;
}
.code {
  display: block;
  overflow-wrap: anywhere;
  font: 600 1.04rem/1.8 monospace;
  user-select: all;
  color: var(--ink);
  background: #edf2eb;
  padding: 0.8rem;
  border-radius: 6px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}
footer details {
  max-width: 340px;
}
.skip {
  position: absolute;
  top: -60px;
}
.skip:focus {
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 8px;
}
[hidden] {
  display: none !important;
}
.wide {
  width: 100%;
}
.notice a {
  font-weight: 650;
}
.summary-line {
  color: var(--muted);
  font-size: 0.92rem;
}
.score-foot {
  padding: 10px 0 0;
  color: var(--muted);
}
#content:focus {
  outline: none;
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .mast-inner {
    min-height: 65px;
  }
  .wordmark {
    font-size: 1.48rem;
  }
  .crest {
    width: 33px;
    height: 38px;
  }
  .hero {
    margin-top: 16px;
    min-height: 187px;
  }
  .hero-copy {
    padding: 23px;
  }
  .hero:before {
    left: 8%;
  }
  .hero:after {
    background:
      linear-gradient(
        90deg,
        #113e31 1%,
        rgba(17, 62, 49, 0.89) 36%,
        rgba(17, 62, 49, 0.22)
      ),
      linear-gradient(0deg, rgba(10, 39, 27, 0.4), transparent);
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .layout > .stack {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  }
  .panel,
  .side {
    padding: 18px;
  }
  .tabs {
    gap: 1.2rem;
    margin-bottom: 19px;
    min-height: 54px;
  }
  .tabs a {
    font-size: 0.9rem;
  }
  .hero-meta {
    font-size: 0.88rem;
  }
  .empty {
    min-height: 175px;
  }
  .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-table td,
  .grid-table th {
    padding: 0.42rem 0.15rem;
  }
  .grid-table th {
    font-size: 0.71rem;
  }
  .grid-table input {
    padding: 0.4rem 0.1rem;
  }
  .section-head {
    gap: 10px;
  }
  .quiet {
    padding: 0 0.75rem;
  }
  .board th {
    font-size: 0.72rem;
  }
  .panel.editor {
    padding: 16px 12px;
  }
  .score-table input {
    width: min(16vw, 64px);
  }
}
@media (max-width: 425px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .tabs {
    justify-content: space-between;
    gap: 5px;
  }
  .tabs a {
    gap: 0.25rem;
    font-size: 0.84rem;
  }
  .nav-icon,
  .mini-flag {
    font-size: 1rem;
  }
  .fields {
    gap: 9px;
  }
  .wordmark {
    gap: 0.45rem;
    font-size: 1.27rem;
  }
  .hero-copy {
    padding: 20px;
  }
  .hero {
    min-height: 174px;
  }
  footer {
    flex-wrap: wrap;
  }
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.fields > .panel {
  min-width: 0;
}
@media (max-width: 520px) {
  .fields:has(> .panel) {
    grid-template-columns: 1fr;
  }
}

.organiser-link {
  margin-top: 1rem;
}
.organiser-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
