/* Links: bold and modern. Heavy sans headings, crisp white, square-ish corners, high contrast. */
.theme-links {
    --surface: #ffffff;
    --surface-alt: #f2f4f3;
    --ink: #0f1513;
    --ink-soft: #46504c;
    --line: #dfe3e1;
    --heading-weight: 800;
    --radius: 4px;
}
.theme-links h1, .theme-links h2 { letter-spacing: -.03em; }
.theme-links .hero__heading { text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 5rem); line-height: .95; }
.theme-links .btn { border-radius: var(--radius); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.theme-links .book-now { border-left-width: 0; border-top: 6px solid var(--club-accent); }
/* Club bar: a full-width bar in the club's colour, logo or name at left, white menu across it (like the club's own site) */
.theme-links .site-header { background: var(--club-primary); border-bottom: 0; backdrop-filter: none; }
.theme-links .site-brand { color: #fff; }
.theme-links .site-brand__name { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; max-width: 13rem; }
.theme-links .nav-toggle { border-color: rgb(255 255 255 / .6); }
.theme-links .nav-toggle__bars, .theme-links .nav-toggle__bars::before, .theme-links .nav-toggle__bars::after { background: #fff; }
.theme-links .site-nav.is-open { background: var(--club-primary); border-bottom: 0; }
.theme-links .site-nav__item > a, .theme-links .site-nav__sub a { color: #fff; border-color: rgb(255 255 255 / .2); }
.theme-links .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: .35em; }
.theme-links .site-nav__book { background: #fff; color: var(--club-primary); white-space: nowrap; }
@media (min-width: 60rem) {
    .theme-links .site-nav__list { gap: .5rem; }
    .theme-links .site-nav__item > a { color: #fff; text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; font-weight: 600; white-space: nowrap; padding-inline: .55rem; }
    .theme-links .site-nav__item > a:hover { background: rgb(255 255 255 / .12); }
}

/* A wide club logo (the name is in the picture) sits on a white strip, as on the club's own site */
.theme-links .site-brand__logo { width: auto; height: 3rem; max-width: 20rem; padding: .25rem .5rem; flex-shrink: 0; background: #fff; border-radius: 2px; }
.theme-links .site-brand:has(.site-brand__logo) .site-brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 60rem) and (max-width: 80rem) {
    .theme-links .site-nav__item > a { font-size: .66rem; padding-inline: .3rem; letter-spacing: .02em; }
    .theme-links .site-nav__list { gap: 0; }
    .theme-links .site-brand__logo { max-width: 13rem; height: 2.6rem; }
    .theme-links .site-nav__book { font-size: .72rem; padding-inline: .8rem; }
}
@media (min-width: 60rem) and (max-width: 80rem) {
    .theme-links .nav-toggle { display: inline-grid; }
    .theme-links .site-nav { display: none; }
    .theme-links .site-nav.is-open { display: block; position: absolute; inset: var(--header-height) 0 auto 0; max-height: calc(100vh - var(--header-height)); overflow-y: auto; padding: .5rem 1rem 1.25rem; }
    .theme-links .site-nav.is-open .site-nav__item > a { font-size: .9rem; letter-spacing: .03em; padding: .8rem .25rem; }
}
@media (min-width: 60rem) {
    .theme-links .site-brand { flex-shrink: 0; }
    .theme-links .site-nav__item > a { font-size: .72rem; padding-inline: .4rem; }
    .theme-links .site-nav__list { gap: 0; }
    .theme-links .site-nav__book { padding-inline: 1rem; font-size: .75rem; }
}

/* Utility row above the club bar, like the club's own site: small links on the right */
.site-utility { display: none; }
.theme-links .site-utility { display: block; background: #fff; border-bottom: 1px solid rgb(0 0 0 / .08); }
.theme-links .site-utility__inner { display: flex; justify-content: flex-end; align-items: center; min-height: 2.2rem; gap: 1rem; }
.theme-links .site-utility__link { color: var(--club-primary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.theme-links .site-utility__link:hover { text-decoration: underline; }

/* Logo in the top row, menu in the bar beneath it (as on the club's own site) */
.theme-links .site-utility__inner { justify-content: space-between; min-height: 4.6rem; padding-block: .4rem; }
.theme-links .site-utility .site-brand { color: var(--club-primary); }
.theme-links .site-utility .site-brand__logo { height: 3.6rem; max-width: 24rem; padding: 0; background: none; }
.theme-links .site-header__inner { justify-content: center; }
@media (max-width: 59.99rem) {
    .theme-links .site-utility .site-brand__logo { height: 2.8rem; max-width: 16rem; }
    .theme-links .site-header__inner { justify-content: flex-end; }
}

/* Bigger logo, and the course status beside Book a Round in the top row */
.theme-links .site-utility__inner { min-height: 5.6rem; }
.theme-links .site-utility .site-brand__logo { height: 4.6rem; max-width: 30rem; }
.theme-links .site-utility__right { display: flex; align-items: center; gap: 1.25rem; }
.theme-links .site-utility__status { font-size: .75rem; font-weight: 600; color: var(--ink-soft); }
.theme-links .site-utility__status.is-closed { color: #b42318; font-weight: 700; }
@media (max-width: 59.99rem) {
    .theme-links .site-utility .site-brand__logo { height: 3.4rem; max-width: 20rem; }
    .theme-links .site-utility__status { display: none; }
}
.theme-links .site-utility .site-book > summary { background: none; color: var(--club-primary); box-shadow: none; transform: none; min-height: 0; padding: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.theme-links .site-utility .site-book > summary:hover { text-decoration: underline; }
@media (max-width: 59.99rem) {
    .theme-links .site-utility__right { display: none; }
    .theme-links .site-nav__extras { border-bottom-color: rgb(255 255 255 / .2); }
    .theme-links .site-nav__status { color: #fff; }
    .theme-links .site-nav__status.is-closed { color: #ffd2cc; }
    .theme-links .site-nav__extra { color: #fff; border-bottom-color: rgb(255 255 255 / .2); }
}

/* Phone: the menu button and the menu sit in the white top row; the blue bar is hidden */
@media (max-width: 59.99rem) {
    .theme-links .site-header__inner { display: contents; }
    .theme-links .site-utility__inner { padding-right: 3.6rem; }
    .theme-links .site-utility .site-brand__logo { height: auto; width: calc(100vw - 6.2rem); max-width: 100%; }
    .theme-links .nav-toggle { position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); border-color: var(--line); background: #fff; }
    .theme-links .nav-toggle__bars, .theme-links .nav-toggle__bars::before, .theme-links .nav-toggle__bars::after { background: var(--club-primary); }
    .theme-links .site-nav.is-open { inset: 100% 0 auto 0; }
}

/* Desktop dropdowns: the club's blue panel, so the white links show */
@media (min-width: 60rem) {
    .theme-links .site-nav__sub { background: var(--club-primary); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
    .theme-links .site-nav__sub a { color: #fff; text-transform: none; letter-spacing: .01em; font-size: .85rem; font-weight: 500; }
    .theme-links .site-nav__sub a:hover { background: rgb(255 255 255 / .12); }
}
