@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
  --paper: #f7f8f2;
  --ink: #203d33;
  --muted: #5d6b61;
  --line: #d7ddd2;
  --green: #183f35;
  --green-hover: #2e5c49;
  --lime: #deeb98;
  --white: #fff;
  --soft: #edf0e6;
  --soft-green: #eaf2e5;
  --amber: #805425;
  --soft-amber: #fbf0df;
  --focus: #9b611b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15.5px/1.55 'DM Sans', sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
[hidden] { display: none !important; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap { width: min(100%, 1320px); margin: 0 auto; padding-inline: 40px; }
.eyebrow { margin: 0 0 8px; color: #536b58; font-size: 11px; font-weight: 750; letter-spacing: 1.45px; line-height: 1.4; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #6c8c44; }
h1, h2, h3 { margin: 0; font-family: 'Manrope', 'DM Sans', sans-serif; line-height: 1.1; letter-spacing: -1px; }
h1 { font-size: clamp(40px, 4vw, 54px); font-weight: 650; letter-spacing: -2.7px; }
h1 em { color: #608248; font-style: normal; }
h2 { font-size: clamp(29px, 3vw, 38px); font-weight: 650; }
h3 { font-size: 22px; font-weight: 650; }

.skip { position: absolute; top: -100px; left: 12px; z-index: 100; padding: 11px 15px; background: var(--green); color: white; }
.skip:focus { top: 10px; }

.masthead { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: 1.05px; text-decoration: none; }
.brand-icon { font-size: 31px; line-height: 1; }
.brand-sub { margin-left: 9px; padding-left: 18px; border-left: 1px solid #abb7ac; font-size: 10px; font-weight: 650; letter-spacing: 1.2px; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.nav-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--ink); font-size: 13px; text-decoration: none; }
.nav-link:hover { text-decoration: underline; }

.hero { min-height: 295px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; padding-top: 18px; padding-bottom: 20px; }
.intro { max-width: 600px; margin: 16px 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 22px; }
.hero-actions p { margin: 0; color: var(--muted); font-size: 14px; }
.hero-actions strong { color: var(--ink); font-size: 17px; }
.edition { margin: 17px 0 0; color: var(--muted); font-size: 12px; }
.primary { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 11px 18px; border: 0; border-radius: 5px; background: var(--green); color: white; font-size: 14px; font-weight: 650; text-decoration: none; }
.primary:hover { background: var(--green-hover); }
.court-art { max-height: 230px; overflow: hidden; border: 1px solid #dfe5d7; border-radius: 9px; background: #e8eddf; }
.court-label { padding-top: 16px; color: #4e6a54; font-size: 9px; letter-spacing: 2px; text-align: center; }
.court-art svg { width: 100%; height: 166px; display: block; object-fit: contain; }
.court-bottom { display: flex; justify-content: space-between; padding: 0 20px 15px; color: #51634e; font-size: 8px; letter-spacing: 1px; }

.explorer { padding: 32px 0 68px; border-top: 1px solid var(--line); background: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-heading > p { max-width: 500px; margin: 0; color: var(--muted); font-size: 14px; }
.experience-tabs { display: flex; gap: 6px; margin: 28px 0 0; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.experience-tabs button { min-height: 46px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 650; }
.experience-tabs button span { min-width: 25px; padding: 1px 7px; border-radius: 20px; background: #dce4d5; font-size: 12px; text-align: center; }
.experience-tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px #173e3212; }

.view-panel { padding-top: 22px; }
.finder { padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 0 10px 28px #173e3212; }
.finder-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.finder h3 { font-size: 21px; }
.text-button { min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--green); font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.filter-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: end; }
.select-field, .search-field { display: grid; grid-column: span 3; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.search-field { grid-column: span 5; }
.select-field select, .search-input { width: 100%; min-height: 46px; border: 1px solid #cfd7ca; border-radius: 5px; background: var(--white); color: var(--ink); }
.select-field select { padding: 9px 34px 9px 11px; }
.search-input { display: flex; align-items: center; gap: 8px; padding: 0 11px; }
.search-input > span { color: #597159; font-size: 22px; }
.search-input input { min-width: 0; flex: 1; padding: 10px 0; border: 0; background: transparent; color: var(--ink); font-size: 15px; outline: 0; }
.search-input:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.search-input input:focus-visible { outline: 0; }
.toggle-field { min-height: 46px; grid-column: span 4; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border: 1px solid #cfd7ca; border-radius: 5px; background: var(--white); color: var(--ink); cursor: pointer; }
.toggle-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-field > span { width: 38px; height: 22px; position: relative; flex: 0 0 auto; border-radius: 30px; background: #cbd4c6; transition: background .18s ease; }
.toggle-field > span::after { content: ''; width: 16px; height: 16px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 4px #173e3240; transition: transform .18s ease; }
.toggle-field input:checked + span { background: var(--green); }
.toggle-field input:checked + span::after { transform: translateX(16px); }
.toggle-field input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.toggle-field strong { font-size: 13px; }

.best-matches { margin-top: 28px; padding: 22px; border-radius: 9px; background: var(--soft); }
.best-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.best-heading h3 { font-size: 20px; }
.best-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.best-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.best-match { min-height: 126px; display: grid; align-content: start; gap: 4px; padding: 16px; border: 1px solid #d4dccf; border-radius: 7px; background: var(--white); text-decoration: none; }
.best-match:hover strong { text-decoration: underline; }
.best-date { color: #61794f; font-size: 12px; font-weight: 750; letter-spacing: .6px; }
.best-match strong { margin-top: 2px; font-family: 'Manrope', sans-serif; font-size: 16px; line-height: 1.25; }
.best-match > span:not(.best-date) { color: var(--muted); font-size: 13px; }
.best-match small { margin-top: 3px; color: var(--ink); font-size: 12px; font-weight: 650; }

.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 27px 0 12px; }
.result-count, .results-note { margin: 0; color: var(--muted); font-size: 13px; }
.result-count { color: var(--ink); font-weight: 650; }
.results-note { text-align: right; }
.event-list { overflow: clip; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.event-list-head,
.event-summary {
  display: grid;
  grid-template-columns: 74px minmax(190px, 2fr) minmax(130px, 1.1fr) 118px 78px 86px 106px 100px 58px;
  gap: 12px;
  align-items: center;
}
.event-list-head { min-height: 42px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: #f1f3ec; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .25px; text-transform: uppercase; }
.event-row { scroll-margin-top: 220px; border-bottom: 1px solid var(--line); }
.event-row:last-child { border-bottom: 0; }
.event-row:target { outline: 3px solid #839f52; outline-offset: -3px; }
.event-summary { min-height: 102px; padding: 14px 16px; list-style: none; cursor: pointer; }
.event-summary::-webkit-details-marker, .team-row summary::-webkit-details-marker { display: none; }
.event-summary:hover { background: #fafbf7; }
.event-row[open] > .event-summary { background: #f4f6ef; }
.event-date { min-height: 68px; display: grid; place-content: center; padding: 6px; border: 1px solid #e0e6da; border-radius: 5px; background: #eef2e8; text-align: center; line-height: 1.15; }
.date-month { font-size: 10px; font-weight: 750; letter-spacing: 1px; }
.event-date strong { margin: 2px 0; font-size: 21px; font-weight: 650; letter-spacing: -1px; }
.date-year { color: var(--muted); font-size: 9px; }
.event-identity { min-width: 0; display: grid; gap: 5px; }
.event-identity strong { font-family: 'Manrope', sans-serif; font-size: 16px; line-height: 1.25; }
.event-identity span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.fit-label, .status-label { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 4px; font-size: 12px; font-weight: 650; line-height: 1.35; }
.fit-label { background: #eef1e4; color: #56653c; }
.fit-label.compatible { background: #f5edda; color: #70542c; }
.fit-label.exact { background: #e7f0e2; color: #365d31; }
.status-label.confirmed { background: var(--soft-green); color: #385e30; }
.status-label.unconfirmed { background: var(--soft-amber); color: var(--amber); }
.status-label.not-recorded { background: #f0eee9; color: #675f52; }
.row-value { min-width: 0; display: grid; gap: 3px; }
.row-value strong { font-size: 13px; line-height: 1.3; }
.row-value span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.deadline-value.urgent strong { color: #87501f; }
.row-action { color: var(--green); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.detail-hide { display: none; }
.event-row[open] .detail-show, .team-row[open] .detail-show { display: none; }
.event-row[open] .detail-hide, .team-row[open] .detail-hide { display: inline; }
.event-details { display: grid; grid-template-columns: 1.08fr 1fr 1fr; gap: 28px; padding: 26px 28px 29px 114px; border-top: 1px solid var(--line); background: #fcfdf9; }
.event-summary-copy { margin: 0 0 16px; font-size: 15px; line-height: 1.6; }
.watch { padding: 13px 14px; border-left: 3px solid #c7ae71; border-radius: 0 4px 4px 0; background: #f8f5eb; }
.watch strong { color: #725a30; font-size: 13px; }
.watch p { margin: 5px 0 0; color: #6d5d45; font-size: 13px; line-height: 1.55; }
.detail-list { margin: 0; }
.detail-list > div { padding: 11px 0; border-top: 1px solid #e3e7df; }
.detail-list > div:first-child { padding-top: 0; border-top: 0; }
.detail-list dt { font-size: 13px; font-weight: 750; }
.detail-list dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.event-cta { width: fit-content; grid-column: 1 / -1; }
.empty { padding: 60px 20px; text-align: center; }
.empty h3 { font-size: 23px; }
.empty p { margin: 9px 0 20px; color: var(--muted); }

.panel-intro { display: flex; align-items: end; justify-content: space-between; gap: 34px; padding: 10px 0 22px; }
.panel-intro h3 { font-size: 28px; }
.panel-intro > p { max-width: 660px; margin: 0; color: var(--muted); font-size: 14px; }
.team-filter { width: min(100%, 310px); margin-bottom: 16px; }
.team-list { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.team-row { scroll-margin-top: 20px; border-bottom: 1px solid var(--line); }
.team-row:last-child { border-bottom: 0; }
.team-row:target { outline: 3px solid #839f52; outline-offset: -3px; }
.team-row summary { min-height: 86px; display: grid; grid-template-columns: minmax(190px, .8fr) minmax(320px, 2fr) 70px; align-items: center; gap: 22px; padding: 16px 20px; list-style: none; cursor: pointer; }
.team-row summary:hover, .team-row[open] summary { background: #f4f6ef; }
.team-status { color: #61724a; font-size: 12px; font-weight: 700; }
.team-identity { display: grid; gap: 4px; }
.team-identity strong { font-family: 'Manrope', sans-serif; font-size: 17px; }
.team-identity span { color: var(--muted); font-size: 13px; }
.team-details { padding: 24px 28px; border-top: 1px solid var(--line); background: #fcfdf9; }
.team-details > .watch { max-width: 780px; margin-bottom: 22px; }
.team-details .detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; }
.team-actions { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.past-notice { color: var(--amber); font-weight: 700; }
.provenance { margin: 20px 0 0; color: var(--muted); font-size: 13px; }

.weekly { overflow: hidden; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.weekly > div { min-height: 68px; display: grid; grid-template-columns: 76px 1fr 1fr; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.weekly > div:last-child { border-bottom: 0; }
.weekly > div > span:first-child { color: #627b45; font-size: 12px; font-weight: 750; letter-spacing: 1px; }
.weekly > div > span:last-child { color: var(--muted); text-align: right; }
.recurring-actions { display: flex; align-items: center; gap: 24px; margin-top: 22px; }
.text-link { color: var(--green); font-size: 14px; font-weight: 700; }

.notes { padding-top: 48px; padding-bottom: 48px; }
.notes h2 { font-size: 29px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 26px 0; }
.notes h3 { font-size: 16px; letter-spacing: -.2px; }
.notes p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.notes .provenance { max-width: 980px; font-size: 13px; }

footer { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
footer .brand { font-size: 13px; }
footer > span, footer > a:last-child { color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 1160px) {
  .wrap { padding-inline: 28px; }
  .hero { gap: 38px; }
  .event-list-head,
  .event-summary { grid-template-columns: 68px minmax(175px, 2fr) minmax(120px, 1.1fr) 105px 70px 76px 96px 90px 52px; gap: 9px; }
  .event-details { padding-left: 104px; }
  .fit-label, .status-label { font-size: 11px; }
}

@media (max-width: 980px) {
  .brand-sub { display: none; }
  .hero { grid-template-columns: 1fr .82fr; min-height: 310px; }
  .court-art svg { height: 180px; }
  .filter-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .select-field { grid-column: span 2; }
  .search-field { grid-column: span 4; }
  .toggle-field { grid-column: span 2; }
  .event-list-head { display: none; }
  .event-list { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  #event-list { display: grid; gap: 12px; }
  .event-row { border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; }
  .event-summary {
    grid-template-columns: 72px minmax(200px, 2fr) minmax(125px, 1fr) minmax(110px, 1fr) 72px;
    grid-template-areas:
      'date identity fit travel action'
      'date price games dupr deadline';
    gap: 12px 14px;
    overflow: visible;
  }
  .event-date { grid-area: date; }
  .event-identity { grid-area: identity; }
  .fit-label { grid-area: fit; }
  .travel-value { grid-area: travel; }
  .event-summary > :nth-child(5) { grid-area: price; }
  .event-summary > :nth-child(6) { grid-area: games; }
  .status-label { grid-area: dupr; }
  .deadline-value { grid-area: deadline; }
  .event-summary .row-action { grid-area: action; }
  .event-details { padding-left: 28px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 12px; }
  body { font-size: 15px; }
  .wrap { padding-inline: 20px; }
  .masthead { height: 68px; }
  .brand { font-size: 14px; }
  .brand-icon { font-size: 28px; }
  .header-nav { gap: 14px; }
  .header-nav a { display: none; }
  .nav-link { font-size: 12px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-top: 29px; padding-bottom: 31px; }
  h1 { font-size: clamp(41px, 12vw, 50px); letter-spacing: -2.5px; }
  .intro { margin: 16px 0; font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .hero-actions .primary { justify-content: space-between; }
  .hero-actions p { display: none; }
  .edition { text-align: center; }
  .court-art { display: none; }
  .explorer { padding: 31px 0 45px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; }
  .experience-tabs { max-width: 100%; margin-top: 20px; }
  .experience-tabs button { min-width: 0; flex: 1 1 0; justify-content: center; gap: 6px; padding-inline: 7px; font-size: 12px; }
  .experience-tabs button span { min-width: 22px; padding-inline: 5px; }
  .view-panel { padding-top: 16px; }
  .finder { position: static; padding: 17px; backdrop-filter: none; }
  .finder-title-row { align-items: start; margin-bottom: 15px; }
  .finder-title-row .text-button { padding-top: 0; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .select-field, .search-field, .toggle-field { grid-column: span 1; }
  .search-field { grid-column: 1 / -1; }
  .toggle-field { align-self: end; }
  .best-matches { display: none; }
  .best-heading { display: block; }
  .best-heading > p { margin-top: 5px; }
  .best-list { grid-template-columns: 1fr; }
  .best-match { min-height: 0; }
  .results-heading { align-items: start; flex-direction: column; gap: 6px; margin-top: 22px; }
  .results-note { text-align: left; }
  .event-summary {
    min-height: 0;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    grid-template-areas:
      'date identity action'
      'date fit fit'
      'travel travel travel'
      'price games dupr'
      'deadline deadline deadline';
    gap: 10px 12px;
    padding: 15px;
    overflow: visible;
  }
  .event-date { grid-area: date; }
  .event-identity { grid-area: identity; }
  .fit-label { grid-area: fit; }
  .travel-value { grid-area: travel; padding-top: 10px; border-top: 1px solid #e4e8df; }
  .event-summary > :nth-child(5) { grid-area: price; }
  .event-summary > :nth-child(6) { grid-area: games; }
  .status-label { grid-area: dupr; align-self: start; }
  .deadline-value { grid-area: deadline; grid-template-columns: auto 1fr; gap: 8px; padding-top: 9px; border-top: 1px solid #e4e8df; }
  .event-summary .row-action { grid-area: action; align-self: start; }
  .event-identity strong { font-size: 17px; }
  .event-details { grid-template-columns: 1fr; gap: 22px; padding: 21px 17px 24px; }
  .event-cta { width: 100%; justify-content: space-between; }
  .panel-intro { align-items: start; flex-direction: column; gap: 10px; padding-top: 7px; }
  .panel-intro h3 { font-size: 25px; }
  .team-filter { width: 100%; }
  .team-row summary { grid-template-columns: 1fr auto; gap: 9px 14px; padding: 15px; }
  .team-status { grid-column: 1 / -1; }
  .team-identity strong { font-size: 17px; }
  .team-details { padding: 20px 16px 23px; }
  .team-details .detail-list { grid-template-columns: 1fr; }
  .team-actions { align-items: stretch; flex-direction: column; }
  .team-actions .primary { width: 100%; }
  .weekly > div { grid-template-columns: 58px 1fr; }
  .weekly > div > span:last-child { grid-column: 2; text-align: left; }
  .recurring-actions { align-items: stretch; flex-direction: column; }
  .recurring-actions .primary { justify-content: space-between; }
  .notes { padding-top: 35px; padding-bottom: 35px; }
  .notes-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 20px; }
  .notes-grid > div { padding-top: 16px; border-top: 1px solid var(--line); }
  footer { min-height: 92px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
  footer > span { display: none; }
}

@media (max-width: 350px) {
  .filter-grid { grid-template-columns: 1fr; }
  .select-field, .search-field, .toggle-field { grid-column: 1; }
  .finder-title-row { display: block; }
  .finder-title-row .text-button { margin-top: 8px; }
  .event-summary { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .status-label { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .court-art, .header-nav, .experience-tabs, .finder, .best-matches, .row-action, .primary, .text-link { display: none !important; }
  body { background: white; }
  .wrap { padding: 0; }
  .hero { min-height: 0; display: block; }
  .view-panel[hidden] { display: none !important; }
  .event-list-head { display: none; }
  .event-row { break-inside: avoid; border: 1px solid var(--line); margin-bottom: 12px; }
  .event-details { display: grid !important; }
  .event-summary { grid-template-columns: 70px 2fr 1fr 1fr 1fr 1fr 1fr 1fr; }
  .notes-grid { grid-template-columns: repeat(3, 1fr); }
}
