/* Kentwood Summer Doubles — static archive styling.
   Hand-written CSS approximating the original Vuetify (Material) look:
   dark app bar, left season navigation drawer, material tables and cards. */

:root {
  --primary: #1976d2;
  --appbar: #272727;
  --bg: #fafafa;
  --card: #ffffff;
  --line: #e0e0e0;
  --muted: #9e9e9e;
  --text: #212121;
  --link: #1565c0;

  /* scorecard hole colors (ported from WeekScoreCard.getHoleClass / HoleChart) */
  --ace: #8db5f8;
  --birdie: #9dd49d;
  --eagle: #6fb96f;
  --albatross: #4f9e4f;
  --par: #eeeeee;
  --bogey: #e89795;
  --double: #df6e6b;
  --triple: #da5956;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- App bar ---------- */
.appbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--appbar);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 12px;
  z-index: 30;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.appbar .menu-btn {
  background: none; border: 0; color: #fff;
  font-size: 22px; cursor: pointer; padding: 8px 12px; line-height: 1;
}
.appbar .title { font-size: 18px; font-weight: 500; margin-left: 4px; }

/* ---------- Nav drawer ---------- */
.drawer {
  position: fixed;
  top: 56px; bottom: 0; left: 0;
  width: 280px;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  z-index: 20;
  transition: transform .2s ease;
}
body.drawer-closed .drawer { transform: translateX(-280px); }
.drawer .nav-item {
  display: block;
  padding: 11px 16px;
  color: var(--text);
  border-bottom: 1px solid #f2f2f2;
  cursor: pointer;
}
.drawer .nav-item:hover { background: #f5f5f5; text-decoration: none; }
.drawer .season-group > .season-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 500;
}
.drawer .season-head .chev { color: var(--muted); font-size: 12px; }
.drawer .sub-links { display: none; background: #fafafa; }
.drawer .season-group.open .sub-links { display: block; }
.drawer .sub-links .nav-item { padding-left: 34px; font-size: 13px; }
.drawer .sub-links .nav-item .sub { color: var(--muted); font-size: 12px; }

/* ---------- Main content ---------- */
.content {
  margin-top: 56px;
  margin-left: 280px;
  padding: 20px 24px 60px;
  transition: margin-left .2s ease;
}
body.drawer-closed .content { margin-left: 0; }
@media (max-width: 900px) {
  .content { margin-left: 0; }
  .drawer { transform: translateX(-280px); }
  body.drawer-open .drawer { transform: translateX(0); box-shadow: 2px 0 8px rgba(0,0,0,.2); }
}

h1 { font-size: 26px; font-weight: 400; margin: 0 0 8px; }
h2 { font-size: 21px; font-weight: 400; }
h3 { font-size: 17px; font-weight: 500; margin: 0; }
.header-section { margin-bottom: 18px; }
.header-section p { color: #555; max-width: 760px; }
.muted, .text-muted { color: var(--muted); }
small.text-muted { font-size: .82em; }

/* ---------- Sections / cards ---------- */
section { margin-bottom: 26px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.10);
  overflow: hidden;
}
.card .card-title { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.card .card-body { padding: 16px; }

/* ---------- Tables ---------- */
.section-title { padding: 12px 4px; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
table.data th, table.data td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data th {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  border-bottom: 2px solid var(--line);
}
table.data tbody tr:hover { background: #f7f9fc; }
.elev { box-shadow: 0 1px 3px rgba(0,0,0,.10); border: 1px solid var(--line); border-radius: 3px; }

/* week selector */
ul.week-list { list-style: none; padding: 0; margin: 6px 0 14px; }
ul.week-list li { display: inline-block; padding: 6px 10px 0 0; font-size: 14px; }
ul.week-list li:first-child { font-weight: 500; }

/* ---------- Scorecard hole cells ---------- */
td.hole { text-align: center; min-width: 26px; font-variant-numeric: tabular-nums; }
td.ace { background: var(--ace); }
td.birdie { background: var(--birdie); }
td.eagle { background: var(--eagle); color: #fff; }
td.albatross { background: var(--albatross); color: #fff; }
td.par { background: var(--par); }
td.bogey { background: var(--bogey); }
td.double-bogey { background: var(--double); color: #fff; }
td.triple-bogey { background: var(--triple); color: #fff; }
.player { display: inline-block; }
.player:not(:first-child)::before { content: " / "; padding: 0 4px; color: var(--muted); }

/* ---------- Division summary (player page) ---------- */
.div-summary .stat-row { display: flex; text-align: center; }
.div-summary .stat-row .stat { flex: 1; padding: 6px; }
.div-summary .stat .big { font-size: 22px; }
.div-summary .stat .label { color: #666; font-size: 13px; }
.div-summary .stat .caption { color: var(--muted); font-size: 12px; }
.div-summary hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

/* ---------- Home / sponsors ---------- */
.sponsor-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.sponsor-card {
  width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.10); overflow: hidden;
}
.sponsor-card .img-wrap {
  height: 200px; display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 10px;
}
.sponsor-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor-card .name { padding: 10px 12px; font-size: 14px; border-top: 1px solid var(--line); }

.chart { width: 100%; min-height: 250px; }
.hole-card { margin-bottom: 16px; }
.hole-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.loading { padding: 60px; text-align: center; color: var(--muted); }
.archive-note {
  margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}
