/* Home Golf Sim UK: shared styles. Draughtsman's-sheet look: pale grey paper, ink navy, one green accent. */
:root {
  --paper: #eef1ef;
  --sheet: #fbfcfb;
  --ink: #15242c;
  --muted: #46575e;
  --faint: #5b6b72;
  --rule: #c5cfd0;
  --rule-soft: #e1e7e6;
  --accent: #0f6e5f;
  --accent-dark: #0a4f44;
  --good-bg: #e3f2e7;
  --warn-bg: #fbf0dc;
  --bad-bg: #fbe5e3;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* Site chrome (prefixed so tool pages can share it) */
.sh-disclose { background: var(--ink); color: #dfe7e6; font-size: 14px; padding: 8px 16px; text-align: center; }
.sh-disclose a { color: #9fd9cb; }
.sh-head { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.sh-head-in { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; justify-content: space-between; }
.sh-logo { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.sh-logo span { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: .01em; }
.sh-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; font-size: 16px; }
.sh-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.sh-nav a:hover, .sh-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.sh-foot { background: var(--ink); color: #c9d4d3; margin-top: 48px; }
.sh-foot-in { max-width: 1180px; margin: 0 auto; padding: 36px 20px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; font-size: 15px; }
.sh-foot h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--sheet); margin: 0 0 6px; }
.sh-foot p { margin: 0 0 8px; max-width: 62ch; }
.sh-foot a { color: #9fd9cb; }
.sh-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; }

/* Page layout */
.page { max-width: 1180px; margin: 0 auto; padding: 40px 20px 8px; }
.narrow { max-width: 760px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 62px); margin: 8px 0 14px; letter-spacing: -.01em; }
h2 { font-size: 34px; margin: 40px 0 12px; }
h3 { font-size: 24px; margin: 28px 0 8px; }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 20px; max-width: 36em; }
.byline { font-size: 14px; color: var(--faint); margin-bottom: 24px; }
article p, article li { max-width: 68ch; }
article ul, article ol { padding-left: 22px; }
article li { margin-bottom: 6px; }
.callout { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 20px; margin: 20px 0; }
.callout strong:first-child { display: block; font-family: var(--font-display); font-size: 21px; margin-bottom: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; background: var(--ink); color: var(--sheet); border: 0; border-radius: 4px; font: 700 16px var(--font-body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent); color: var(--sheet); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--sheet); margin: 16px 0; }
table.data { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 16px; }
table.data th { text-align: left; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--rule); font-weight: 600; }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 14px; white-space: nowrap; }
.pill-good { background: var(--good-bg); }
.pill-warn { background: var(--warn-bg); }
.pill-bad { background: var(--bad-bg); }
.note { font-size: 14px; color: var(--faint); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 16px 0; }
.card { text-decoration: none; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
a.card:hover { border-color: var(--accent); color: var(--ink); }
.card .eyebrow { font-size: 12px; }
.card .t { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.card .d { font-size: 15px; color: var(--muted); }

/* Home */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; padding-top: 48px; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.hero-copy h1 { margin: 0; font-size: clamp(42px, 6vw, 64px); }
.hero-copy .lede { margin: 0; }
.hero-fig { flex: 1 1 360px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hero-fig svg { width: 100%; height: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; }
.hero-fig figcaption { font-size: 13px; color: var(--faint); }
.quick { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.quick label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; flex: 1 1 120px; }
.quick .in { display: flex; align-items: center; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); }
.quick input { width: 100%; border: 0; background: transparent; font: 500 17px var(--font-mono); padding: 10px; color: var(--ink); }
.quick .in span { font: 400 14px var(--font-mono); color: var(--faint); padding-right: 10px; }
.quick .btn { flex: 1 1 160px; }
.stats { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 44px; }
.stats-in { max-width: 1180px; margin: 0 auto; padding: 22px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; }
.stats-in div { display: flex; flex-direction: column; }
.stats-in b { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.stats-in span { font-size: 15px; color: var(--muted); }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.row-head h2 { margin-bottom: 0; }
.who { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-top: 40px; }
.who .mono { width: 120px; height: 120px; flex: 0 0 120px; border-radius: 50%; background: var(--ink); color: var(--sheet); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 54px; }
.who img { width: 120px; height: 120px; flex: 0 0 120px; border-radius: 50%; object-fit: cover; }
.who > div { flex: 1 1 420px; min-width: 0; }
.who h2 { margin: 0 0 8px; font-size: 32px; }
.who p { margin: 0 0 10px; max-width: 62ch; }
