/*
 * Hyzeer design tokens (ui-ux-design.md v0.4 §4–§6, §13; the look of prototype/v4).
 * The only place in the repository where colour values are written; everything else uses var(--color-*).
 *
 * Theme: "System" follows prefers-color-scheme; "Light" and "Dark" set data-theme on <html>.
 */

:root {
  /* Colours — light (§4.2). Neutrals are plain greys; brand blue and status colours are the only colours. */
  --color-bg: #ffffff;
  --color-surface: #f5f5f5;
  --color-text: #151515;
  /* The same two colours as r, g, b, for Ionic's --ion-*-rgb variables (ionic.css) */
  --color-bg-rgb: 255, 255, 255;
  --color-text-rgb: 21, 21, 21;
  --color-text-secondary: #454545;
  --color-text-muted: #5e5e5e;
  --color-border-strong: #767676;
  --color-border-subtle: #cfcfcf;
  --color-brand: #87cdde;
  --color-brand-tint: #e3f3f7;
  --color-primary: #0b5468;
  --color-on-primary: #ffffff;
  --color-link: #0b5468;
  --color-accent: #a8380a;
  --color-accent-fill: #f76707;
  --color-focus: #151515;
  --color-success: #0f5a30;
  --color-warning: #753f00;
  --color-danger: #9a1c12;
  --color-info: #1a4fc4;

  /* Text on accent-fill badges ("New", "Now") and on filled danger buttons — the same in both themes */
  --color-on-accent-fill: #151515;

  /* On photos (§4.2): the same in both themes, because they sit on the photo, not on the page */
  --color-on-photo: #ffffff;
  --color-photo-pill: #a9dce8;
  --color-on-photo-pill: #0d1b21;
  --color-photo-tag: rgb(255 255 255 / 24%);
  --color-photo-tag-border: rgb(255 255 255 / 35%);
  --photo-fade-top: linear-gradient(rgb(0 0 0 / 62%), rgb(0 0 0 / 0%));
  --photo-fade-bottom: linear-gradient(rgb(0 0 0 / 0%), rgb(0 0 0 / 60%));

  /* Map details (map-editor.md): drawn on the satellite photo, so the same in both themes; muted natural colours */
  --map-water: #4f8fc9;
  --map-woods: #2f6b3a;
  --map-path: #e2d3b5;
  --map-road: #cfcfcf;
  --map-fence: #3a3a3a;
  --map-hedge: #355e2b;
  --map-rock: #9a9a9a;
  --map-edge: #3d3d3d;
  --map-badge: #5d5d5d;
  --map-danger: #c0392b;
  /* A parking area's sign: white P on parking-sign blue */
  --map-parking: #1f5fbf;
  /* Holes (map-editor.md, D108): the teardrop fairway, the flight line in it and the basket's circles, like a sketch
     on the photo */
  --map-fairway: #d6d6d6;
  --map-hole-line: #1b1b1b;
  --map-circle-one: #f0f0f0;
  /* A course map's background (D118): the palette its one colour comes from, ground colours that keep the holes and map
     details readable on top. The maps stripe it with a lighter shade of it, like a mown field. */
  --map-ground-grass: #a0c26e;
  --map-ground-moss: #7fa85a;
  --map-ground-forest: #5b8a45;
  --map-ground-lime: #c4d873;
  --map-ground-sand: #e2d2a2;
  --map-ground-clay: #c39a6b;
  --map-ground-stone: #b3b7ad;
  /* The drawn map's paper and sheet (D120): the course cut out of plain paper, with a faint grid; a sheet without a
     background is plain; ink for its edge, scale bar and north arrow */
  --map-paper: #f2eee3;
  --map-paper-grid: rgb(90 80 50 / 12%);
  --map-sheet: #fbfaf6;
  --map-sheet-edge: rgb(60 70 45 / 55%);
  --map-sheet-shadow: rgb(0 0 0 / 35%);
  --map-sheet-ink: #3c4630;
  /* A mando (D109): a red pin with a black M on a white face */
  --map-mando: #e3000f;
  --map-mando-letter: #111111;

  /* Default course picture (§17): brand blue to deep blue with a white basket, the same for every course */
  --default-photo: linear-gradient(160deg, #87cdde 0%, #0b5468 100%);

  /* Disc colours (player D1): swatches of the real plastic, the same in both themes; a border keeps white visible */
  --disc-white: #f7f7f7;
  --disc-grey: #9aa5ab;
  --disc-black: #1b1b1b;
  --disc-red: #d7263d;
  --disc-orange: #f77f00;
  --disc-yellow: #f5d000;
  --disc-green: #2ba84a;
  --disc-blue: #1e6fd9;
  --disc-purple: #7b3fbf;
  --disc-pink: #f25ca2;
  --disc-clear: linear-gradient(135deg, #e8f4f8, #b8d8e2);
  /* A clear disc where a gradient can't go, e.g. an SVG fill: the gradient's lighter half */
  --disc-clear-solid: #cfe6ee;

  /* Score colours (§4.3) */
  --color-score-eagle: #6b2fb3;
  --color-score-birdie: #0f5a30;
  --color-score-bogey: #7a3d00;
  --color-score-double: #9a1c12;

  /* Podium at the end of a game: the same in both themes, with ink text on each */
  --color-medal-gold: #f2b705;
  --color-medal-silver: #c9d3d8;
  --color-medal-bronze: #d08b55;
  --color-on-medal: #0d1b21;

  /* Typography (§5) */
  --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --font-size-score: 2rem; /* 32 / 40 */
  --line-height-score: 2.5rem;
  --font-size-display: 1.75rem; /* 28 / 34 */
  --line-height-display: 2.125rem;
  --font-size-title: 1.375rem; /* 22 / 28 */
  --line-height-title: 1.75rem;
  --font-size-heading: 1.125rem; /* 18 / 24 */
  --line-height-heading: 1.5rem;
  --font-size-body: 1.0625rem; /* 17 / 24 */
  --line-height-body: 1.5rem;
  --font-size-label: 0.9375rem; /* 15 / 20 */
  --line-height-label: 1.25rem;
  --font-size-small: 0.875rem; /* 14 / 20 */
  --line-height-small: 1.25rem;

  /* Spacing and shape (§6.1) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 4px; /* inputs, small pictures */
  --radius-md: 6px; /* buttons, cards, lists, tables */
  --radius-lg: 10px; /* sheets, dialogs */
  --radius-pill: 999px; /* pills, filter chips, buttons on photos */
  --radius-photo: 14px; /* photo cards */
  --line-width: 1px;
  --line-width-strong: 2px;
  --tap-target: 44px;
  --tap-target-score: 64px;
  --button-height-main: 52px;

  color-scheme: light;
}

/*
 * Dark (§4.2). Same values twice: for "System" and for an explicit "Dark". scripts/check-colors.mjs fails when they
 * differ (review rev01 A8).
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --color-bg: #121212;
    --color-surface: #1a1a1a;
    --color-text: #ededed;
    --color-bg-rgb: 18, 18, 18;
    --color-text-rgb: 237, 237, 237;
    --color-text-secondary: #bdbdbd;
    --color-text-muted: #9a9a9a;
    --color-border-strong: #6e6e6e;
    --color-border-subtle: #333333;
    --color-brand-tint: #1b2a2f;
    --color-primary: #87cdde;
    --color-on-primary: #062530;
    --color-link: #8cc8f0;
    --color-accent: #ff922b;
    --color-accent-fill: #ff922b;
    --color-focus: #ededed;
    --color-success: #4cc37a;
    --color-warning: #f5b544;
    --color-danger: #ff8a80;
    --color-info: #8ab4ff;
    --color-score-eagle: #c9a7ff;
    --color-score-birdie: #6ee7a0;
    --color-score-bogey: #fbbf24;
    --color-score-double: #ff8a80;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --color-bg: #121212;
  --color-surface: #1a1a1a;
  --color-text: #ededed;
  --color-bg-rgb: 18, 18, 18;
  --color-text-rgb: 237, 237, 237;
  --color-text-secondary: #bdbdbd;
  --color-text-muted: #9a9a9a;
  --color-border-strong: #6e6e6e;
  --color-border-subtle: #333333;
  --color-brand-tint: #1b2a2f;
  --color-primary: #87cdde;
  --color-on-primary: #062530;
  --color-link: #8cc8f0;
  --color-accent: #ff922b;
  --color-accent-fill: #ff922b;
  --color-focus: #ededed;
  --color-success: #4cc37a;
  --color-warning: #f5b544;
  --color-danger: #ff8a80;
  --color-info: #8ab4ff;
  --color-score-eagle: #c9a7ff;
  --color-score-birdie: #6ee7a0;
  --color-score-bogey: #fbbf24;
  --color-score-double: #ff8a80;
  color-scheme: dark;
}

@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/courses/_assets/barlow-latin-ext-400-normal-HxX4XjxC.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/courses/_assets/barlow-latin-400-normal-qiz4-Cze.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/courses/_assets/barlow-latin-ext-500-normal-DOaysfXq.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/courses/_assets/barlow-latin-500-normal-BPAOfeC8.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/courses/_assets/barlow-latin-ext-600-normal-B8NK_A3D.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/courses/_assets/barlow-latin-600-normal-DILqtrty.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/courses/_assets/barlow-latin-ext-700-normal-BLuWmldJ.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/courses/_assets/barlow-latin-700-normal-A9pxMQ4z.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:0 0}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{-webkit-transform-origin:0 0;width:1600px;height:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{width:auto;padding:0;max-width:none!important;max-height:none!important}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:#33b5e566}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{box-sizing:border-box;z-index:800;width:0;height:0}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{z-index:800;pointer-events:visiblePainted;pointer-events:auto;position:relative}.leaflet-top,.leaflet-bottom{z-index:1000;pointer-events:none;position:absolute}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{outline-offset:1px;background:#ddd}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{background:#ffffff80;border:2px dotted #38f}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:.75rem;line-height:1.5}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px #000000a6}.leaflet-bar a{text-align:center;color:#000;background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;text-decoration:none;display:block}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom:none;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.leaflet-bar a.leaflet-disabled{cursor:default;color:#bbb;background-color:#f4f4f4}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{text-indent:1px;font:700 18px Lucida Console,Monaco,monospace}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{background:#fff;border-radius:5px;box-shadow:0 1px 5px #0006}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{color:#333;background:#fff;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{padding-right:5px;overflow:hidden scroll}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{font-size:1.08333em;display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{width:1em;height:.6669em;vertical-align:baseline!important;display:inline!important}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{white-space:nowrap;box-sizing:border-box;text-shadow:1px 1px #fff;background:#fffc;border:2px solid #777;border-top:none;padding:2px 5px 1px;line-height:1.1}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{background-clip:padding-box;border:2px solid #0003}.leaflet-popup{text-align:center;margin-bottom:20px;position:absolute}.leaflet-popup-content-wrapper{text-align:left;border-radius:12px;padding:1px}.leaflet-popup-content{min-height:1px;margin:13px 24px 13px 20px;font-size:1.08333em;line-height:1.3}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{pointer-events:none;width:40px;height:20px;margin-top:-1px;margin-left:-20px;position:absolute;left:50%;overflow:hidden}.leaflet-popup-tip{pointer-events:auto;width:17px;height:17px;margin:-10px auto 0;padding:1px;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{color:#333;background:#fff;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{text-align:center;color:#757575;background:0 0;border:none;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;text-decoration:none;position:absolute;top:0;right:0}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";width:24px;filter:progid:DXImageTransform.Microsoft.Matrix(M11=.707107, M12=.707107, M21=-.707107, M22=.707107);margin:0 auto}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;background-color:#fff;border:1px solid #fff;border-radius:3px;padding:6px;position:absolute;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{pointer-events:none;content:"";background:0 0;border:6px solid #0000;position:absolute}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{margin-left:-6px;left:50%}.leaflet-tooltip-top:before{border-top-color:#fff;margin-bottom:-12px;bottom:0}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-top:-12px;margin-left:-6px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;margin-left:-12px;left:0}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-fairways-pane{opacity:.5}.hole-fairway{fill:var(--map-fairway)}.hole-line,.basket-circle{stroke:var(--map-hole-line)}.basket-circle{fill:var(--map-circle-one);fill-opacity:.6}.map-patterns{width:0;height:0;position:absolute;overflow:hidden}.map-ground.grass{fill:var(--map-ground-grass)}.map-ground.moss{fill:var(--map-ground-moss)}.map-ground.forest{fill:var(--map-ground-forest)}.map-ground.lime{fill:var(--map-ground-lime)}.map-ground.sand{fill:var(--map-ground-sand)}.map-ground.clay{fill:var(--map-ground-clay)}.map-ground.stone{fill:var(--map-ground-stone)}.map-ground-shade{fill:var(--color-on-photo);fill-opacity:.14}.map-paper-ground{fill:var(--map-paper)}.map-paper-grid{fill:none;stroke:var(--map-paper-grid);stroke-width:1px}.leaflet-container .map-sheet-shadow{fill:var(--map-sheet-shadow);filter:url(#hyzeer-sheet-shadow)}.leaflet-container .map-sheet{stroke:var(--map-sheet-edge)}.leaflet-container .map-sheet.plain{fill:var(--map-sheet)}.leaflet-container .leaflet-control-scale-line{border-color:var(--map-sheet-ink);color:var(--map-sheet-ink);background:0 0;font-weight:600}.leaflet-container .map-north{background:var(--map-paper);border-radius:50%;place-items:center;width:34px;height:34px;display:grid;box-shadow:0 1px 3px #0000004d}.map-north path{fill:var(--map-sheet-ink)}.leaflet-container .detail{stroke-linecap:round;stroke-linejoin:round}.leaflet-container .detail.faint{stroke-opacity:.55;fill-opacity:.15}.leaflet-container .detail.chosen{stroke:var(--color-accent-fill)}.leaflet-container .detail-area.chosen{stroke-width:4px}.leaflet-container .detail-water{stroke:var(--map-water);fill:url(#hyzeer-map-water);fill-opacity:.85}.leaflet-container .detail-woods{stroke:var(--map-woods);fill:var(--map-woods);fill-opacity:.35}.leaflet-container .detail-map_area{stroke:var(--color-on-photo);stroke-dasharray:6 5;fill:none}.leaflet-container .detail-map_area.leaflet-interactive{pointer-events:visibleStroke}.leaflet-container .detail-parking_area{stroke:none;fill:var(--map-road);fill-opacity:1}.leaflet-container .detail-path{stroke:var(--map-path);stroke-dasharray:2 6}.leaflet-container .detail-path.wide{stroke-dasharray:none;stroke-opacity:.6}.leaflet-container .detail-path.wide.drawn-map:not(.faint){stroke-opacity:1}.leaflet-container .detail-road{stroke:var(--map-road)}.leaflet-container .detail-fence{stroke:var(--map-fence);stroke-dasharray:6 3}.leaflet-container .detail-hedge{stroke:var(--map-hedge)}.leaflet-container .detail-stream{stroke:var(--map-water)}.leaflet-container .detail-tree{stroke:none;fill:url(#hyzeer-tree-broadleaf);fill-opacity:1}.leaflet-container .detail-tree.tree-pine{fill:url(#hyzeer-tree-pine)}.leaflet-container .detail-tree.tree-spruce{fill:url(#hyzeer-tree-spruce)}.leaflet-container .detail-tree.tree-acacia{fill:url(#hyzeer-tree-acacia)}.leaflet-container .detail-tree.tree-acacia_open{fill:url(#hyzeer-tree-acacia_open)}.leaflet-container .detail-tree.tree-palm{fill:url(#hyzeer-tree-palm)}.leaflet-container .detail-tree.faint{fill-opacity:.5}.leaflet-container .detail-rock{stroke:var(--map-edge);fill:var(--map-rock);fill-opacity:.9}.leaflet-container .detail-rock.wide{fill-opacity:.45}.leaflet-container .detail-badge{border:1.5px solid var(--color-on-photo);background:var(--map-badge);color:var(--color-on-photo);border-radius:50%;justify-content:center;align-items:center;font-size:.5625rem;font-weight:800;line-height:1;display:flex;box-shadow:0 1px 2px #00000080}.leaflet-container .detail-badge.faint{opacity:.6}.leaflet-container .detail-badge.chosen{border-color:var(--color-accent-fill);border-width:3px}.leaflet-container .detail-badge:after{content:""}.leaflet-container .detail-toilet:after{content:"WC"}.leaflet-container .detail-sign:after{content:"i";font-family:serif;font-size:.6875rem}.leaflet-container .detail-bin:after{background:var(--color-on-photo);border-radius:0 0 2px 2px;width:5px;height:6px}.leaflet-container .detail-pb{border:1.5px solid var(--color-on-photo);background:var(--color-accent-fill);color:var(--color-on-accent-fill);border-radius:10px;justify-content:center;align-items:center;font-size:.625rem;font-weight:800;line-height:1;display:flex;box-shadow:0 1px 3px #00000080}.leaflet-container .detail-pb.faint{opacity:.6}.leaflet-container .detail-pb.chosen{box-shadow:0 0 0 2px var(--color-on-photo), 0 0 0 4px var(--color-primary)}.leaflet-container .detail-sign-p{border:1.5px solid var(--color-on-photo);background:var(--map-parking);color:var(--color-on-photo);border-radius:50%;justify-content:center;align-items:center;font-size:.75rem;font-weight:800;line-height:1;display:flex;box-shadow:0 1px 2px #00000080}.leaflet-container .detail-sign-p.faint{opacity:.6}.leaflet-container .fair-area.ob{stroke:var(--color-danger);fill:url(#hyzeer-ob-hatch);fill-opacity:1}.leaflet-container .fair-area.inbounds{stroke:var(--color-danger);stroke-dasharray:10 7;fill:var(--color-danger);fill-opacity:0}.leaflet-container .fair-cut-out{fill:url(#hyzeer-ob-hatch);fill-opacity:1}.leaflet-container .fair-cut-out.faint{fill-opacity:.35}.leaflet-container .fair-area.faint{stroke-opacity:.45;fill-opacity:.35}.leaflet-container .fair-area.inbounds.faint{fill-opacity:0}.leaflet-container .fair-outside{stroke:none;fill:var(--color-danger);fill-opacity:.28}.leaflet-container .fair-mando,.leaflet-container .fair-mando.leaflet-interactive{pointer-events:none;background:0 0;border:0}.leaflet-container .fair-mando.faint{opacity:.45}.fair-mando svg{filter:drop-shadow(0 1px 2px #00000080);transform-origin:50%;display:block;overflow:visible}.fair-mando.leaflet-interactive svg>*{pointer-events:auto}.fair-mando .mando-pin{fill:var(--map-mando)}.fair-mando .mando-face{fill:var(--color-on-photo)}.fair-mando .mando-letter{fill:var(--map-mando-letter);font-size:12px;font-weight:900}.fair-mando.chosen svg{transform:scale(1.2)}.fair-mando.chosen .mando-pin{stroke:var(--color-on-photo);stroke-width:2.5px;paint-order:stroke}.leaflet-container .fair-drop{border:2px solid var(--color-on-photo);background:var(--color-photo-pill);color:var(--color-on-photo-pill);border-radius:10px;justify-content:center;align-items:center;font-size:.625rem;font-weight:800;display:flex;box-shadow:0 1px 3px #00000080}.course-map{position:relative}.course-map .map{aspect-ratio:4/3;border-radius:var(--radius-photo);background:var(--color-surface);z-index:0;width:100%;max-height:70vh}.course-map .leaflet-container{font:inherit}.course-map .side{right:var(--space-2);top:var(--space-2);z-index:1000;gap:var(--space-2);flex-direction:column;display:flex;position:absolute}.course-map .side button{background:var(--color-photo-pill);width:44px;height:44px;color:var(--color-on-photo-pill);cursor:pointer;border:0;border-radius:50%;justify-content:center;align-items:center;padding:0;display:inline-flex;box-shadow:0 1px 4px #0006}.course-map .side button[hidden]{display:none}.course-map [data-map-layer][aria-pressed=true]{background:var(--color-primary);color:var(--color-on-primary)}.course-map .hole-fairway.selected{fill:var(--color-accent-fill)}.course-map .map-number{white-space:nowrap;background:var(--color-photo-pill);color:var(--color-on-photo-pill);border:2px solid var(--color-on-photo);border-radius:999px;justify-content:center;align-items:center;font-size:.875rem;font-weight:800;display:flex}.course-map .map-number.selected{background:var(--color-accent-fill);color:var(--color-on-accent-fill);font-size:1.0625rem}.course-map .map-point{border:2px solid var(--color-on-photo);background:var(--color-primary)}.course-map .map-point.tee{border-radius:3px}.course-map .map-point.basket{background:var(--color-accent-fill);border-radius:50%}.course-map .leaflet-control-attribution{background:var(--color-bg);color:var(--color-text-secondary);font-size:.6875rem}.course-map .leaflet-control-attribution a{color:var(--color-link);text-decoration:underline}.map-hatch{width:0;height:0;position:absolute;overflow:hidden}.map-hatch-fill{fill:var(--color-danger);fill-opacity:.18}.map-hatch-line{stroke:var(--color-danger);stroke-width:3px}

/*
 * The public course pages (public-course-pages.md §6.1, §7.2). Served after tokens.css and the built map styles and
 * font (PublicSite) as one file. They look like the website (site/.vitepress: its header, footer, font and widths)
 * with the app's course cards and map; every colour, size and space comes from a token.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Room for the scroll bar on short pages too, as on the website (custom.css): the header doesn't move sideways between a
   page that scrolls and one that doesn't. */
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

/* The footer stays at the bottom of a short page. Barlow is the website's font (the map bundle has its faces), drawn as
   VitePress draws it. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Barlow', var(--font-family);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-variant-numeric: tabular-nums;
  font-synthesis: style;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Distances (§4): both units are in the page and one is shown. */
html[data-units='m'] .ft,
html[data-units='ft'] .m {
  display: none;
}

/* What needs the page script: hidden without JavaScript. The map only once its script runs (courseMap.ts). */
html:not([data-js]) .switch,
html:not([data-js]) .nav-divider,
html:not([data-js]) .nav-row,
html:not([data-map]) .map-section {
  display: none;
}

a {
  color: var(--color-link);
}

:focus-visible {
  outline: var(--line-width-strong) solid var(--color-focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
}

/* The website's headings (landing.css display-l), a size smaller for a page of facts. */
h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  margin: var(--space-7) 0 var(--space-4);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  font-size: var(--font-size-heading);
  font-weight: 600;
  line-height: var(--line-height-heading);
}

p {
  margin: 0 0 var(--space-3);
}

.icon {
  flex: none;
  vertical-align: -0.2em;
}

.muted {
  color: var(--color-text-muted);
}

.skip {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 30;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.skip:focus {
  top: var(--space-2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- Header: the website's (VitePress's nav bar, custom.css) ---------- */

/* The same box as VitePress's VPNavBar: the side padding outside a bar of at most 1376 px (its layout width less 64 px),
   so the logo is at the same place on the website and on these pages. */
.nav {
  position: relative;
  z-index: 20;
  padding: 0 var(--space-2) 0 var(--space-5);
  border-bottom: var(--line-width) solid var(--color-border-subtle);
  background: var(--color-bg);
}

@media (min-width: 768px) {
  .nav {
    padding: 0 var(--space-6);
  }
}

/* Like the website: it stays at the top on wide screens and scrolls away on phones. */
@media (min-width: 960px) {
  .nav {
    position: sticky;
    top: 0;
  }

  /* A link to a section (Courses nearby ↓) leaves its heading below the header. */
  [id] {
    scroll-margin-top: calc(64px + var(--space-4));
  }
}

.nav-bar {
  display: flex;
  align-items: center;
  max-width: 1376px;
  height: 64px;
  margin: 0 auto;
}

/* VPNavBarTitle: its transparent bottom border puts the logo half a pixel higher than the middle */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 64px;
  border-bottom: var(--line-width) solid transparent;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: none;
  margin-left: auto;
}

.nav-links a {
  padding: 0 var(--space-3);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 64px;
  text-decoration: none;
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

/* Open the app: a button (custom.css) */
.nav-links a.nav-app {
  align-self: center;
  margin-left: var(--space-2);
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 600;
  line-height: 40px;
}

.nav-links a.nav-app:hover {
  color: var(--color-on-primary);
  filter: brightness(1.12);
}

.nav-end {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* VPNavBar's line between the menu and the appearance switch */
.nav-divider {
  width: var(--line-width);
  height: 24px;
  margin: 0 var(--space-4) 0 var(--space-2);
  background: var(--color-border-subtle);
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }

  .nav-end {
    margin-left: 0;
  }

  .nav-menu {
    display: none;
  }

  /* The tracks where the website has its switch: 16 px after the line, the last one at the bar's end. The 44 px target
     reaches 2 px past each side of the 40 px track. */
  .nav-end > .switch {
    margin: 0 -2px;
  }

  .nav-end > .switch + .switch {
    margin-left: var(--space-2);
  }
}

/* Phones and tablets: the unit switch stays in the bar, the rest is in the menu, as on the website. */
@media (max-width: 959px) {
  .nav-divider,
  .nav-end > .switch.theme {
    display: none;
  }
}

/* A switch like VitePress's VPSwitch: a 40 × 22 track with a sliding knob, in a 44 px target (WCAG 2.5.8). */
.switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-target);
  min-height: var(--tap-target);
  margin: 0 var(--space-1);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.switch .track {
  position: relative;
  display: block;
  width: 40px;
  height: 22px;
  border: var(--line-width) solid var(--color-border-strong);
  border-radius: 11px;
  background: var(--color-surface);
  transition: border-color 0.25s;
}

.switch:hover .track {
  border-color: var(--color-primary);
}

.switch .check {
  position: absolute;
  top: 1px;
  left: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-bg);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 6%),
    0 1px 2px rgb(0 0 0 / 4%);
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s;
}

.switch[aria-checked='true'] .check {
  transform: translateX(18px);
}

/* VPSwitch's icon: brighter in dark */
html[data-theme='dark'] .switch .check {
  color: var(--color-text);
}

.switch.theme[aria-checked='true'] .icon:first-child,
.switch.theme[aria-checked='false'] .icon:last-child {
  display: none;
}

/* The menu on phones and tablets: works without JavaScript. */
.nav-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu:not([open]) summary .icon:last-child,
.nav-menu[open] summary .icon:first-child {
  display: none;
}

.nav-screen {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: var(--space-3) var(--space-6) var(--space-8);
  background: var(--color-bg);
}

.nav-screen a {
  display: block;
  max-width: 288px;
  margin: 0 auto;
  padding: var(--space-3) 0 11px;
  border-bottom: var(--line-width) solid var(--color-border-subtle);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
}

.nav-screen a.active {
  color: var(--color-primary);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 288px;
  margin: var(--space-5) auto 0;
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Page ---------- */

/* Course pages in a reading column; lists as wide as the website's landing page (landing.css .wrap). */
.column {
  flex: 1;
  width: 100%;
  max-width: 792px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-8);
}

.column.wide {
  max-width: 1120px;
}

/* A course page's sections in bands across the window, like the landing page's (landing.css .band-surface): every
   other one on surface. The band's colour reaches the window's edges while the content stays in the column. */
.course-page > section {
  --band: var(--color-bg);
  padding: var(--space-7) 0;
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}

.course-page > section:nth-of-type(odd) {
  --band: var(--color-surface);
}

.course-page > section > h2:first-child {
  margin-top: 0;
}

.course-page > section > :last-child {
  margin-bottom: 0;
}

.course-page > .actions {
  margin-bottom: var(--space-6);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-target);
  padding: 0 var(--space-4);
  border: var(--line-width) solid var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.12);
}

.button.secondary {
  border-color: var(--color-border-strong);
  background: transparent;
  color: var(--color-text);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
}

.crumbs li + li::before {
  content: '›';
  margin-right: var(--space-2);
}

.crumbs a {
  color: var(--color-text-secondary);
}

.lead {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.intro {
  max-width: 720px;
}

.banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: var(--line-width) solid var(--color-warning);
  border-left-width: 6px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.banner .icon {
  margin-top: 2px;
  color: var(--color-warning);
}

.banner p {
  margin: 0;
}

/* ---------- Course page ---------- */

/* Photos, near the end: two in a row from a small tablet up, three on wide screens like the course cards, rounded like
   the app's photo cards. */
.photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 480px) {
  .photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.photos a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-photo);
}

.photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-surface);
  transition: transform 0.25s;
}

.photos a:hover img {
  transform: scale(1.03);
}

/* The photo viewer (photoViewer.ts): the whole window, black like a photo app. */
.viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0);
  color: var(--color-on-photo);
}

.viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.viewer::backdrop {
  background: rgb(0 0 0 / 50%);
}

html:has(.viewer[open]) {
  overflow: hidden;
}

.viewer-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 1376px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
}

.viewer-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-count {
  font-variant-numeric: tabular-nums;
}

.viewer-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 var(--space-2) var(--space-5);
}

.viewer-photo {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

/* Round buttons on the photo, like the map's (the app's pills on photos). */
.viewer-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--tap-target);
  height: var(--tap-target);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-photo-pill);
  color: var(--color-on-photo-pill);
  cursor: pointer;
}

.viewer-button[hidden] {
  display: none;
}

.viewer-prev,
.viewer-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 1px 4px rgb(0 0 0 / 40%);
}

.viewer-prev {
  left: var(--space-4);
}

.viewer-next {
  right: var(--space-4);
}

/* The pin hangs in front, so a second line on a phone starts under the text, not under the pin. */
.place {
  margin-top: var(--space-1);
  padding-left: 24px;
  text-indent: -24px;
  color: var(--color-text-secondary);
}

.place .icon {
  margin-right: var(--space-1);
}

/* The key facts as the app's chips */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-brand-tint);
  color: var(--color-text);
  font-size: var(--font-size-label);
  font-weight: 600;
  line-height: var(--line-height-label);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

/* Lines short enough to read on the wide page, as the landing page's text (landing.css .narrow) */
.description {
  max-width: 720px;
  white-space: pre-line;
}

.pill {
  display: inline-block;
  padding: 0 var(--space-2);
  border: var(--line-width) solid currentcolor;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-small);
  font-weight: 600;
  line-height: var(--line-height-small);
}

.pill.yes {
  color: var(--color-success);
}

.pill.no {
  color: var(--color-text-muted);
}

/* The map (courseMap.css has the app's look): its buttons stay inside it, under the header. */
.course-map {
  isolation: isolate;
}

.map-hole {
  min-height: var(--line-height-body);
  margin: var(--space-2) 0 0;
}

/* Scorecards */
.layout-card {
  margin: 0 0 var(--space-5);
}

.layout-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.layout-card h3 .pill {
  color: var(--color-text-secondary);
}

.layout-card > p {
  margin: var(--space-1) 0 var(--space-2);
}

/* A card of its own, also on a surface band */
.scroll {
  overflow-x: auto;
  border: var(--line-width) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.scorecard {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.scorecard th,
.scorecard td {
  min-width: 2.75rem;
  padding: var(--space-2);
  border-left: var(--line-width) solid var(--color-border-subtle);
  vertical-align: top;
}

.scorecard tbody tr {
  border-top: var(--line-width) solid var(--color-border-subtle);
}

.scorecard thead,
.scorecard .sum {
  background: var(--color-surface);
}

.scorecard .sum {
  font-weight: 700;
}

/* The row names stay in view while a long card scrolls sideways. */
.scorecard th[scope='row'] {
  position: sticky;
  left: 0;
  border-left: 0;
  background: var(--color-surface);
  text-align: left;
  white-space: nowrap;
}

.hole-label {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  font-weight: 400;
  line-height: var(--line-height-small);
  white-space: nowrap;
}

.notes {
  margin: var(--space-2) 0 0;
  padding-left: var(--space-5);
  font-size: var(--font-size-label);
  line-height: var(--line-height-label);
}

/* Course info, as the app's list of facts */
.info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  border-top: var(--line-width) solid var(--color-border-subtle);
}

.info > div {
  display: contents;
}

.info dt,
.info dd {
  padding: var(--space-3) 0;
  border-bottom: var(--line-width) solid var(--color-border-subtle);
}

.info dt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.info dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.updated {
  margin-top: var(--space-6);
  font-size: var(--font-size-small);
}

/* ---------- Course cards: the app's (CoursePhotoCard.vue), one to three in a row ---------- */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .wide .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--default-photo);
  color: var(--color-on-photo);
  text-decoration: none;
}

.card .picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.card:hover .picture {
  transform: scale(1.03);
}

.card .picture.default {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .top,
.card .bottom {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) 14px;
}

.card .top {
  top: 0;
  align-items: flex-start;
  padding-bottom: 28px;
  background: var(--photo-fade-top);
}

.card .bottom {
  bottom: 0;
  justify-content: flex-end;
  padding-top: 28px;
  background: var(--photo-fade-bottom);
}

.card .title {
  display: block;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.5rem;
}

.card .sub {
  display: block;
  font-size: var(--font-size-small);
  font-weight: 600;
  line-height: var(--line-height-small);
}

.card .tag {
  flex: none;
  padding: var(--space-1) var(--space-3);
  border: var(--line-width) solid var(--color-photo-tag-border);
  border-radius: var(--radius-pill);
  background: var(--color-photo-tag);
  font-size: 0.8125rem;
  font-weight: 700;
}

.pill-on-photo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-photo-pill);
  color: var(--color-on-photo-pill);
  font-size: var(--font-size-label);
  font-weight: 700;
}

/* ---------- Countries and paging ---------- */

.countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.countries a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--tap-target);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s;
}

.countries a:hover {
  background: var(--color-brand-tint);
}

.countries .count {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}

/* ---------- Search ---------- */

.search {
  max-width: 600px;
  margin: var(--space-5) 0;
}

.search label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.search-row {
  display: flex;
  gap: var(--space-2);
}

.search input {
  flex: 1;
  min-width: 0;
  min-height: var(--tap-target);
  padding: 0 var(--space-3);
  border: var(--line-width) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}

/* ---------- Footer: the website's (VitePress's footer) ---------- */

.footer {
  padding: var(--space-6) var(--space-5);
  border-top: var(--line-width) solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s;
}

.footer a:hover {
  color: var(--color-text);
}
