/* Layout: title row, three tabs, then one view at a time (Round, History, Stats). Phone first. */
:root {
  --paper: #edf0e8;
  --card: #f9faf6;
  --ink: #17261c;
  --muted: #5a695d;
  --line: #cfd7ca;
  --green: #1f5a3a;
  --p0: #1f5a3a;
  --p1: #6a3d86;
  --p2: #8a5a00;
  --p3: #b0306b;
  --on-p: #f7faf5;
  --under: #14688f;
  --bogey: #a8540f;
  --double: #a42a2a;
  --right: #a42a2a;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1713;
    --card: #17221b;
    --ink: #e5ece1;
    --muted: #93a498;
    --line: #28372d;
    --green: #78d19f;
    --p0: #78d19f;
    --p1: #d3a9ea;
    --p2: #e6c15a;
    --p3: #f09ac3;
    --on-p: #0f1713;
    --under: #5cb8e6;
    --bogey: #f0a45e;
    --double: #ff8a85;
    --right: #ff8a85;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --paper: #0f1713;
    --card: #17221b;
    --ink: #e5ece1;
    --muted: #93a498;
    --line: #28372d;
    --green: #78d19f;
    --p0: #78d19f;
    --p1: #d3a9ea;
    --p2: #e6c15a;
    --p3: #f09ac3;
    --on-p: #0f1713;
    --under: #5cb8e6;
    --bogey: #f0a45e;
    --double: #ff8a85;
    --right: #ff8a85;
    color-scheme: dark;
}

/* Accent colour (chosen under Theme). Player colours stay green and purple. */
:root[data-accent="blue"] { --green: #1f5f99; }
:root[data-accent="orange"] { --green: #a94f12; }
:root[data-accent="berry"] { --green: #8c2f4f; }
@media (prefers-color-scheme: dark) {
  :root[data-accent="blue"]:not([data-theme="light"]) { --green: #7fb8ee; }
  :root[data-accent="orange"]:not([data-theme="light"]) { --green: #f2a65e; }
  :root[data-accent="berry"]:not([data-theme="light"]) { --green: #ee9bb5; }
}
:root[data-theme="dark"][data-accent="blue"] { --green: #7fb8ee; }
:root[data-theme="dark"][data-accent="orange"] { --green: #f2a65e; }
:root[data-theme="dark"][data-accent="berry"] { --green: #ee9bb5; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.35;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  padding-block: max(14px, env(safe-area-inset-top, 0px)) max(32px, env(safe-area-inset-bottom, 0px));
}
.wrap { max-width: 640px; margin: 0 auto; }
button, input, select { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--under); outline-offset: 2px; }

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
  color: var(--green);
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 22px 0 8px;
}
.sub { color: var(--muted); font-size: 0.85rem; margin: 2px 0 0; }

/* Top bar and tabs */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.top > div { min-width: 0; }
.me { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 0.85rem; color: var(--muted); }
.link { background: none; border: 0; padding: 4px 0; color: var(--under); cursor: pointer; text-decoration: underline; font-size: 0.85rem; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--green); }
.tabs button {
  padding: 10px 4px;
  font: 600 1rem/1 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.tabs button[aria-current="page"] { background: var(--green); color: var(--on-p); border-color: var(--green); }

/* Login */
.login { max-width: 360px; margin: 12vh auto 0; }
.login form { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.login label { font: 600 0.78rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.login input { padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.err { min-height: 1.4em; margin: 6px 0 0; color: var(--double); font-size: 0.9rem; }
.primary { padding: 13px 16px; font-weight: 600; background: var(--green); color: var(--on-p); border: 0; border-radius: 6px; cursor: pointer; }
.primary:disabled { opacity: 0.6; }

/* Player cards */
.pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid var(--green); }
.pcard { min-width: 0; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--pc); border-radius: 6px; padding: 8px 10px 10px; }
.p0 { --pc: var(--p0); }
.p1 { --pc: var(--p1); }
.p2 { --pc: var(--p2); }
.p3 { --pc: var(--p3); }
.pname {
  width: 100%;
  font: 600 1.15rem/1.2 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--line);
  padding: 2px 0 4px;
  border-radius: 0;
}
.pacct { width: 100%; margin-top: 6px; padding: 4px; font-size: 0.8rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 8px; margin-top: 8px; }
.k { font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.v { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.v.under, .under { color: var(--under); }
.v.over { color: var(--bogey); }

/* Hole cards */
ol.holes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hole { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px 6px; }
.hd { display: flex; gap: 10px; align-items: flex-start; }
.num { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--green); min-width: 32px; font-variant-numeric: tabular-nums; }
.info { min-width: 0; }
.meta { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.meta span { color: var(--muted); font-weight: 500; }
.plan { font-size: 0.85rem; color: var(--muted); }
.line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "who step" "extras step";
  column-gap: 8px;
  row-gap: 6px;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.who { grid-area: who; display: flex; align-items: center; gap: 7px; min-width: 0; font: 600 1.05rem/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.who::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--pc); border-radius: 2px; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.extras { grid-area: extras; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.tee { font: 500 0.8rem/1 var(--font-body); background: transparent; border: 1px solid var(--line); border-radius: 6px; min-height: 36px; padding: 0 12px; cursor: pointer; }
.tee[data-v="3"] { color: var(--right); border-color: var(--right); font-weight: 600; }
.tee[data-v="1"] { color: var(--green); border-color: var(--green); }
.putts { display: flex; align-items: center; gap: 4px; }
.putts .pl { font: 500 0.78rem/1 var(--font-body); color: var(--muted); padding-right: 2px; }
.putts button { width: 36px; height: 36px; font: 600 1.15rem/1 var(--font-display); background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.putts .pv { min-width: 22px; text-align: center; font: 700 1.15rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.putts .pv.empty { color: var(--muted); font-weight: 500; }
.step { grid-area: step; display: flex; align-items: center; gap: 4px; }
.step button { width: 40px; height: 44px; font: 600 1.4rem/1 var(--font-display); color: var(--on-p); background: var(--pc); border: 0; border-radius: 6px; cursor: pointer; }
.score { min-width: 40px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.score small { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; line-height: 1; min-height: 0.7rem; }
.score.bogey, .bogey { color: var(--bogey); }
.score.double, .double { color: var(--double); }
.score.empty { color: var(--muted); font-weight: 500; }

/* Footer controls */
.foot { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.foot p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.datefield { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.datefield input { padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { padding: 11px 14px; font-weight: 500; font-size: 0.9rem; background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.btn.main { background: var(--green); color: var(--on-p); border-color: var(--green); font-weight: 600; }
.btn.armed { color: var(--double); border-color: var(--double); font-weight: 600; background: transparent; }
.nodata { padding: 28px 8px; text-align: center; color: var(--muted); }

/* History */
ul.rounds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rcard { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px; cursor: pointer; }
.rdate { display: block; font: 600 1rem/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rline { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 0; }
.rline .nm { display: flex; align-items: center; gap: 7px; font: 600 1.1rem/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; min-width: 0; }
.rline .nm::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--pc); border-radius: 2px; }
.rline .tot { font: 700 1.5rem/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rline .tot small { font-size: 0.85rem; font-weight: 600; color: var(--muted); }

/* Round detail table */
.scroll { overflow-x: auto; }
table.card { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 6px; font-variant-numeric: tabular-nums; }
table.card th { font: 600 0.78rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 6px; text-align: center; }
table.card th.p0 { color: var(--p0); }
table.card th.p1 { color: var(--p1); }
table.card th.p2 { color: var(--p2); }
table.card th.p3 { color: var(--p3); }
table.card td { padding: 8px 6px; text-align: center; border-top: 1px solid var(--line); font: 500 1.1rem/1 var(--font-display); }
table.card td.hn { font-weight: 700; color: var(--green); }
table.card td.sc { font-weight: 700; font-size: 1.3rem; }
table.card td.sc small { font: 500 0.7rem/1 var(--font-body); color: var(--muted); margin-left: 3px; }
table.card td.sc sup { color: var(--right); font: 700 0.65rem/1 var(--font-body); margin-left: 2px; }
table.card tr.total td { border-top: 2px solid var(--green); font-weight: 700; }
table.card tr.minor td { font: 500 0.9rem/1 var(--font-body); color: var(--muted); }
.back { margin-bottom: 10px; }

/* Stats */
.who-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.who-tabs button { padding: 8px 12px; font: 600 1rem/1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.who-tabs button[aria-pressed="true"] { background: var(--pc); border-color: var(--pc); color: var(--on-p); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; min-width: 0; }
.tile .note { font-size: 0.8rem; color: var(--muted); }
.chart { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.chart svg { display: block; width: 100%; height: auto; }
.grid-line { stroke: var(--line); stroke-width: 1; }
.par-line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.trend { fill: none; stroke: var(--pc); stroke-width: 2.5; stroke-linejoin: round; }
.dot { fill: var(--pc); stroke: var(--card); stroke-width: 2; }
.axt { fill: var(--muted); font: 12px var(--font-body); }
.axt.end { text-anchor: end; }
.axt.mid { text-anchor: middle; }
.callout { margin: 10px 0 0; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--bogey); border-radius: 6px; font-size: 0.95rem; }
table.holes-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.holes-t th { font: 600 0.75rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 6px 4px; }
table.holes-t td { padding: 7px 4px; border-top: 1px solid var(--line); font-size: 0.95rem; }
table.holes-t td.n { font: 700 1.2rem/1 var(--font-display); color: var(--green); }
table.holes-t td.bar { width: 34%; }
table.holes-t svg { display: block; width: 100%; height: 10px; }
.bar-bg { fill: var(--line); }
.bar-ok { fill: var(--green); }
.bar-under { fill: var(--under); }
.bar-bogey { fill: var(--bogey); }
.bar-double { fill: var(--double); }
.h2h { margin: 12px 0 0; font-size: 0.95rem; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.8rem; }
.v small { font-size: 1rem; color: var(--muted); font-weight: 600; }

/* Course picker and course form */
.coursebar { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; }
.cb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cb-row .sub { margin: 0; }
.cb-links { display: flex; gap: 14px; }
.coursebar select, .statscourse { max-width: 100%; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; flex: 1 1 200px; min-width: 0; }
.statscourse { display: block; width: 100%; margin: 4px 0 12px; }
.statscourse-one { margin: 0 0 12px; }
label.k { display: block; }
.cf-search { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; }
.cf-row { display: flex; gap: 8px; margin-top: 6px; }
.cf-row input { flex: 1; min-width: 0; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.cf-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cf-list .rcard { padding: 10px 12px; }
.cf-t { display: block; font: 600 1.05rem/1.2 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.cf-name { display: block; width: 100%; margin: 4px 0 12px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.cf-count { border: 0; padding: 0; margin: 0 0 12px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cf-count legend { padding: 0; margin-bottom: 4px; }
.cf-count label { display: flex; align-items: center; gap: 6px; font-size: 1rem; }
.cf-count input { width: 20px; height: 20px; }
table.cf-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.cf-table th { font: 600 0.75rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 6px 4px; }
table.cf-table td { padding: 4px; border-top: 1px solid var(--line); }
table.cf-table td.n { font: 700 1.2rem/1 var(--font-display); color: var(--green); width: 48px; }
.cf-par, .cf-yds { padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; width: 100%; max-width: 140px; }
.cf-total { margin: 10px 0 0; }
#cf-msg { min-height: 1.4em; margin: 6px 0 12px; }
.rcourse { display: block; margin: -4px 0 8px; font-size: 0.85rem; color: var(--muted); }
.cf-smsg { margin: 8px 0 0; min-height: 1.4em; font-size: 0.9rem; }

/* Theme panel */
.me-links { display: flex; gap: 14px; align-items: center; }
.themepanel { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.themepanel[hidden] { display: none; }
.tp-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tp-row .k { min-width: 64px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { padding: 8px 14px; background: transparent; border: 0; border-right: 1px solid var(--line); font-size: 0.9rem; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--on-p); font-weight: 600; }
.swatches { display: flex; gap: 10px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.sw[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.sw-green { background: #1f5a3a; }
.sw-blue { background: #1f5f99; }
.sw-orange { background: #a94f12; }
.sw-berry { background: #8c2f4f; }

/* ---- v5: several players, views, compare, account ---- */
.pcards.n1 { grid-template-columns: 1fr; }
.who-kind { font-size: 0.75rem; color: var(--muted); margin: 2px 0 4px; }
.startbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.btn[aria-pressed="true"] { border-color: var(--green); }
.viewbar { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin: 10px 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 12px; font: 600 1rem/1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--pc); border-color: var(--pc); color: var(--on-p); }
.manage { width: 100%; display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.mrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mrow .mname, .prow .mname { flex: 1; min-width: 0; font-weight: 600; }
.mrow.p0, .mrow.p1, .mrow.p2, .mrow.p3 { border-left: 4px solid var(--pc); padding-left: 8px; }
.link.armed { color: var(--double); font-weight: 600; }
.nr-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.nr-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-left: 4px solid var(--pc); padding-left: 8px; }
.nr-row select, .nr-row input { flex: 1; min-width: 120px; }
.modebar { margin-bottom: 12px; }
.ok { margin: 6px 0 0; color: var(--under); font-size: 0.9rem; }
.acct-form { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.people { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.people li { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.prow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.prow input { flex: 1; min-width: 140px; }
table.cmp { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.cmp th, table.cmp td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; }
table.cmp th.p0 { color: var(--p0); } table.cmp th.p1 { color: var(--p1); }
table.cmp td.lead { font-weight: 700; background: var(--card); box-shadow: inset 0 -3px 0 var(--green); }
.who-ahead { font-weight: 700; }
.who-ahead.p0 { color: var(--p0); } .who-ahead.p1 { color: var(--p1); }
.btn.toggle { margin: 10px 0 4px; }
.legend { display: flex; gap: 16px; margin: 0 0 6px; font-weight: 600; }
.lg0 { color: var(--p0); } .lg1 { color: var(--p1); }
.line0 { fill: none; stroke: var(--p0); stroke-width: 2.5; stroke-linejoin: round; }
.line1 { fill: none; stroke: var(--p1); stroke-width: 2.5; stroke-linejoin: round; }
.dot0 { fill: var(--p0); stroke: var(--card); stroke-width: 2; }
.dot1 { fill: var(--p1); stroke: var(--card); stroke-width: 2; }
#cmpa, #cmpb, #cmpcourse { width: 100%; margin-bottom: 8px; }
.btn.toggle { display: block; }

/* ---- v6: weather, offline bar, location ---- */
.wx { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 10px 0; }
.wx p { margin: 4px 0; }
.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-t { font: 700 2.4rem/1 var(--font-display); }
.wx-d { font-weight: 600; }
.wx-verdict { font-weight: 600; }
.wx-hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.wx-hours th, .wx-hours td { padding: 4px 6px; text-align: center; white-space: nowrap; }
.wx-hours td.k { text-align: left; }
.wx-hours td.wet { color: var(--under); font-weight: 700; }
.wx-credit a { color: inherit; }
.offbar { position: sticky; top: 0; z-index: 5; background: var(--bogey); color: var(--on-p); padding: 8px 12px; border-radius: 6px; margin: 8px 0; font-size: 0.9rem; }
.cf-loc { margin: 10px 0; }
a.btn { display: inline-block; text-decoration: none; color: inherit; }
