﻿/* =========================================================
   ge-chrome.css  \2014   the one-row header and the new footer (pilot, Nov 2026)
   Loaded by /includes/header/header-new.php. At go-live the link moves into the headtag.
   Everything here is scoped to .site-header--one-row or #footer.site-footer, so the
   current header and footer are untouched while the pilot runs.
   Special characters are written as CSS escapes (\2013), never typed.
   ========================================================= */

/* ---------- 1. One-row header: logo \b7  menu \b7  Search+ / Account ---------- */

/* A lower header than before (56px, was 64px plus the 48px navy bar), for more of the page above
   the fold. The sub-nav sticks under it and the jump-to offsets are measured by ge-header.js, so
   they follow automatically. Phones were already 56px. */
:root { --nav-header-h: 56px; }

.site-header--one-row .site-header__inner {
  justify-content: flex-start;
  gap: 6px;
}
.site-header--one-row .site-header__brand { margin-right: 22px; }
.site-header--one-row .site-header__actions { margin-left: auto; }

/* The menu sits inside the white header, so it drops the navy bar. The mega-menu and the
   dropdowns now hang from the bottom of the header (the sticky header is their positioning box),
   which also makes the menu sticky. */
.site-header--one-row .primary-nav {
  position: static;
  flex: 0 1 auto;
  min-width: 0;
  background: none;
  border: 0;
}
.site-header--one-row .primary-nav__inner {
  max-width: none;
  margin: 0;
  padding: 0;
}
.site-header--one-row .primary-nav__list { height: var(--nav-header-h); }

.site-header--one-row .primary-nav__link {
  gap: 5px;
  padding: 0 15px;
  color: var(--c-brand);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;          /* keeps the text centred against the bottom bar */
}
.site-header--one-row .primary-nav__link:hover,
.site-header--one-row .primary-nav__link:focus-visible,
.site-header--one-row .primary-nav__link[aria-expanded=true] {
  background: var(--c-brand-08);
  color: var(--c-brand);
  border-bottom-color: var(--c-brand);
}
.site-header--one-row .primary-nav__link[aria-current=page] { border-bottom-color: var(--c-brand); }

/* The mega-menu now opens straight under a white header, so its top line is navy, like the dropdowns */
.site-header--one-row .mega-menu { border-top: 3px solid var(--c-brand); }

/* Guests: Log in (outline) and Join free (filled navy). Members: the "My Golf" menu. */
.site-header--one-row .header-btn--join {
  background: var(--c-brand); border-color: var(--c-brand); color: #fff; font-weight: 600;
}
.site-header--one-row .header-btn--join:hover,
.site-header--one-row .header-btn--join:focus-visible { background: var(--c-brand-hover); border-color: var(--c-brand-hover); color: #fff; }
@media (max-width: 980px) {
  .site-header--one-row .hdr-guest { display: none; }      /* phones: Log in / Join free are in the menu */
}

/* Plan & Find and More: a group label ("Keep track"), dividers and the Premium crown */
.site-header--one-row .nav-dropdown__divider { height: 1px; margin: 6px 8px; background: var(--c-border); }
.site-header--one-row .nav-dropdown__group {
  margin: 8px 12px 2px; padding-top: 8px; border-top: 1px solid var(--c-border);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280;
}
.site-header--one-row .nav-dropdown a .nav-dropdown__crown { margin-left: auto; width: auto; font-size: 11px; }
/* My Golf menu: the crown leads "Get Premium" like the other icons (nav.css pushes it to the right) */
.site-header--one-row .account-menu__item--upgrade > .fa-crown:first-child { margin-left: 0; font-size: inherit; }

/* Browse Opens: the event types in three groups, as on the Event Types page */
.site-header--one-row .mega-menu__typegrid {
  display: grid; grid-template-columns: 1.15fr 1.45fr 1fr; gap: 18px 28px;
}
.site-header--one-row .mega-menu__typegroup .mega-menu__col-header { margin-bottom: 10px; }
.site-header--one-row .mega-menu__typegroup .mega-menu__types { gap: 6px; }
.site-header--one-row .mega-menu__typegroup .mega-menu__type { padding: 6px 11px; font-size: 13px; }
/* Foot of the menu: A-Z Golf Clubs on the left, the two index pages on the right */
.site-header--one-row .mega-menu__all { margin-left: auto; display: flex; align-items: center; gap: 24px; }
@media (max-width: 1100px) {
  .site-header--one-row .mega-menu__typegrid { grid-template-columns: 1fr 1fr; }
}

/* Narrower desktops: the menu items close up again, then Search+ goes icon-only */
@media (max-width: 1120px) {
  .site-header--one-row .primary-nav__link { padding: 0 10px; }
  .site-header--one-row .site-header__brand { margin-right: 12px; }
}
@media (max-width: 1040px) {
  .site-header--one-row .header-btn[href="/search/"] .header-btn__label { display: none; }
  .site-header--one-row .header-btn[href="/search/"] { padding: 0 11px; }
}

/* Below 981px nav.css already hides .primary-nav and shows the menu button for the drawer */


/* ---------- 2. Footer ---------- */

/* Overrides the old #footer rules in nav.css and entryform.css (same id, one class more) */
#footer.site-footer {
  clear: both;                 /* the older float layouts (#content / #sidebar) need this */
  margin-top: 28px;
  padding: 0 0 100px;          /* room for Snack's sticky footer ad */
  background: var(--c-brand);
  color: rgba(233, 237, 240, 0.86);
  border: 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  /* Navy right across the screen even where the footer sits inside #container (most pages):
     a shadow paints the sides and the clip keeps it to the footer's own height. No extra width,
     so no sideways scrollbar. */
  box-shadow: 0 0 0 100vmax var(--c-brand);
  clip-path: inset(0 -100vmax);
}
#footer.site-footer p { margin: 0; font-size: inherit; line-height: inherit; }
#footer.site-footer a { color: rgba(233, 237, 240, 0.92); text-decoration: none; font-weight: 400; }
#footer.site-footer a:hover { color: #fff; text-decoration: underline; }
#footer.site-footer a:focus-visible,
#footer.site-footer button:focus-visible { outline: 2px solid #fece20; outline-offset: 3px; }

/* Same width as the header and the page, not the whole screen */
.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 36px 16px 0;
  box-sizing: border-box;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}

#footer.site-footer .site-footer__brand {
  display: inline-block;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .2px;
}
#footer.site-footer .site-footer__brand:hover { text-decoration: none; }
#footer.site-footer .site-footer__note {
  margin: 10px 0 16px;
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(233, 237, 240, 0.78);
}

.site-footer__social { display: flex; gap: 8px; }
#footer.site-footer .site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  transition: background-color .2s ease;
}
#footer.site-footer .site-footer__social a:hover { background: rgba(255, 255, 255, 0.2); text-decoration: none; }

#footer.site-footer .site-footer__head {
  margin: 0 0 10px;
  text-align: left;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(233, 237, 240, 0.6);
  border: 0;
  background: none;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin: 0 0 7px; padding: 0; background: none; }
.site-footer__col li::before { content: none; }

/* Logout / Login look like the links beside them */
#footer.site-footer .site-footer__linkbtn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: rgba(233, 237, 240, 0.92);
  cursor: pointer;
}
#footer.site-footer .site-footer__linkbtn:hover { color: #fff; text-decoration: underline; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 30px;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
}
.site-footer__copy { color: rgba(233, 237, 240, 0.7); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Tablets: the about block on its own row, three link columns under it */
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; }
  .site-footer__note { max-width: 60ch; }
}

/* Phones: two link columns, bigger tap targets, everything left-aligned */
@media (max-width: 560px) {
  .site-footer__inner { padding: 28px 16px 0; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .site-footer__col li { margin: 0; }
  #footer.site-footer .site-footer__col a,
  #footer.site-footer .site-footer__linkbtn { display: inline-block; padding: 6px 0; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 22px; }
}

@media print {
  #footer.site-footer { display: none; }
}


/* ---- The top box and the TaylorMade slots (Nov 2026) ------------------------------------------------
   Drawn by ge_top_box() / ge_below_box() in /includes/php/ge-ads.php (page-start.php and page-end.php).
   Everything here is decided before the page draws, from classes set in <head>:
     html.ge-sp-on          this browser may see the sponsorship (live, or the preview cookie): headtag.php
     html.ge-tier-premium   a Premium member (the headtag's tier script, the site's one Premium rule)
     html.ge-sp-free / -premium   a preview forcing that view (?sponsor-preview=free / =premium)
     html.ge-adfree         Premium ad-free is on for this member: /js/ge-ads.js
   so a strip is there as the page loads, with no wait for Memberstack, Snack or the sponsor API. */
.ge-top { display: contents; }                       /* the box itself takes no room: only what shows in it does */

/* Snack's top-slim: holds a banner's space while it waits (is-wait), turns into the white card when a banner
   fills it (is-filled), and gives the space back if none comes (is-empty). ge-ads.js sets the classes */
.ge-top__ad { margin: 0; }
.ge-top__ad #snack-top-slim { margin: 0 auto !important; }
/* Waiting for Snack, or showing a banner: the same size box, so a banner arriving moves nothing (no layout shift).
   Waiting, it is see-through; with a banner it is the white card with its "Advertisement" label */
.ge-top__ad.is-wait, .ge-top__ad.is-filled { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 20px;
    padding: 10px 16px 14px; border: 1px solid transparent; border-radius: 12px; }
.ge-top__ad.is-filled { background: #fff; border-color: #e9edf0; }
.ge-top__ad.is-wait::before, .ge-top__ad.is-filled::before { content: "Advertisement"; display: block; font-size: 10.5px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: #8a97a3; line-height: 1; }
.ge-top__ad.is-wait { background: rgba(255, 255, 255, .55); border-color: #e9edf0; }   /* a faint card with its label while the ad loads */
/* No banner came (a crown, which draws itself above the header, or nothing): no room held, so no grey gap */
.ge-top__ad.is-empty { height: 0; overflow: visible; }
.ge-top__ad.is-empty #snack-top-slim { min-height: 0 !important; }

/* TaylorMade slots: hidden unless this browser may see them, then the creative for this visitor's tier */
.ge-sp-slot, .ge-sp-variant[data-sp-tier] { display: none; }
html.ge-sp-on .ge-sp-slot { display: block; max-width: 970px; margin: 0 auto 20px; }
html.ge-sp-on .ge-sp-slot--below { margin-top: 22px; }
html.ge-sp-on .ge-sp-variant[data-sp-tier="free"],
html.ge-sp-on.ge-tier-premium .ge-sp-variant[data-sp-tier="premium"] { display: block; }
html.ge-sp-on.ge-tier-premium .ge-sp-variant[data-sp-tier="free"] { display: none; }
html.ge-sp-on.ge-sp-free .ge-sp-variant[data-sp-tier="free"],
html.ge-sp-on.ge-sp-premium .ge-sp-variant[data-sp-tier="premium"] { display: block; }
html.ge-sp-on.ge-sp-free .ge-sp-variant[data-sp-tier="premium"],
html.ge-sp-on.ge-sp-premium .ge-sp-variant[data-sp-tier="free"] { display: none; }
/* In a box that is Snack's (or off): the Premium "Powered by" strip only while ad-free is on */
.ge-top:not(.ge-top--sponsor) .ge-sp-slot { display: none; }
html.ge-sp-on.ge-adfree .ge-top:not(.ge-top--sponsor) .ge-sp-slot { display: block; }
@media (min-width: 761px) and (max-width: 1000px) { html.ge-sp-on .ge-sp-slot--top { max-width: 728px; } }

.ge-sp-label { display: block; margin: 0 0 5px; font-size: 11px; font-weight: 600; letter-spacing: .07em;
    text-transform: uppercase; color: #7b8a99; text-align: center; }
.ge-sp-creative { display: block; line-height: 0; border-radius: 10px; overflow: hidden; }
.ge-sp-creative img { display: block; width: 100%; height: auto; }

