@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&display=swap");


/* ==========================================================================
   Generic-9 layout — supporting styles
   Add to your theme's style.css, a child theme, or Appearance > Customize >
   Additional CSS. Every selector below is scoped to a class that exists in
   generic-9-layout.html, so nothing here leaks into the rest of the site.
   ========================================================================== */

/* --- Type -------------------------------------------------------------- */
/* The comp uses a condensed grotesk. Barlow Condensed / Oswald are the
   closest free matches. Enqueue the font properly in your theme; the @import
   below is here so the markup looks right the moment you paste it. */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&display=swap");

.g9-header,
.g9-hero,
.g9-features,
.g9-cta,
.g9-cards,
.g9-news,
.g9-footer {
  font-family: "Barlow Condensed", "Oswald", "Roboto Condensed", system-ui, sans-serif;
}

.g9-header h1, .g9-hero h1, .g9-features h2, .g9-cta h2,
.g9-cards h2, .g9-cards h3, .g9-news h2, .g9-news h3, .g9-news h4 {
  font-family: inherit;
  text-transform: uppercase;
}

/* --- Header / footer nav bar ------------------------------------------- */
.g9-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 74px;
  background: #fff;
  color: #111;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 12px 0 12px 12px;
  padding: 0 22px;
}

.g9-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.g9-nav li { margin: 0; }
.g9-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 98px;
  padding: 0 26px;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.g9-nav a:hover { color: #fff; }
.g9-nav .is-current a { color: #fff; border-bottom-color: #fff; }
.g9-nav .g9-nav-search a { border-left: 1px solid rgba(255,255,255,.12); }

@media (max-width: 900px) {
  .g9-nav { flex-wrap: wrap; justify-content: center; }
  .g9-nav a { min-height: 52px; padding: 0 16px; }
  .g9-logo { margin: 12px auto; }
}

/* --- Hero -------------------------------------------------------------- */
.g9-eyebrow-rule {
  position: relative;
  padding-top: 14px;
}
.g9-eyebrow-rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 215px;
  max-width: 60%;
  border-top: 1px solid rgba(255,255,255,.55);
}

.g9-scroll-cue {
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 22px solid #6f6f6f;
  position: relative;
}
.g9-scroll-cue span {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: #d8d8d8;
  font-size: 15px;
  line-height: 1;
}

/* --- Inline email capture (hero + footer) ------------------------------ */
.g9-subscribe { display: flex; max-width: 340px; }
.g9-subscribe input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #9a9a9a;
  border-right: 0;
  background: transparent;
  color: #e6e6e6;
  font: inherit;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 0;
}
.g9-subscribe input[type="email"]::placeholder { color: #8f8f8f; }
.g9-subscribe button {
  flex: 0 0 auto;
  border: 1px solid #9a9a9a;
  background: transparent;
  color: #e6e6e6;
  font-size: 16px;
  line-height: 1;
  padding: 0 16px;
  cursor: pointer;
  border-radius: 0;
}
.g9-subscribe button:hover { background: rgba(255,255,255,.08); }

/* --- Circular icon placeholders ---------------------------------------- */
.g9-icon-circle,
.g9-icon-circle-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}
.g9-icon-circle {           /* 3-up features row */
  width: 52px;
  height: 52px;
  background: #9d9d9d;
  color: #3a3a3a;
}
.g9-icon-circle-lg {        /* 8-up card grid */
  width: 62px;
  height: 62px;
  background: #fff;
  color: #222;
}

/* --- Card grid --------------------------------------------------------- */
.g9-card {
  height: 100%;
  border: 1px solid #4a4a4a;
}
.g9-card-rule {
  width: 28px;
  height: 2px;
  background: #8d8d8d;
  margin: 10px auto 0;
}

/* --- News / events ----------------------------------------------------- */
.g9-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #8a8a8a;
}
.g9-news-item + .g9-news-item { margin-top: 18px; }
.g9-news-divider { border-top: 1px solid rgba(255,255,255,.18); }

.g9-event {
  border-bottom: 1px dashed rgba(255,255,255,.3);
  padding-bottom: 12px;
}
.g9-event-date {
  line-height: 1;
  text-align: left;
}
.g9-event-day {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}
.g9-event-month {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  color: #b9b9b9;
  margin-top: 2px;
}

/* --- Footer ------------------------------------------------------------ */
footer.wp-block-template-part{
    margin-top:0!important;
}
.g9-footer .wp-block-social-links { gap: 8px; }
.g9-footer .wp-social-link { width: 26px; height: 26px; }

/* --- Links ------------------------------------------------------------- */
/* The comp has no blue/underlined links; inline links inherit their
   surrounding text colour and only the "Read more>" style is emphasised. */
.g9-news a,
.g9-footer .wp-block-column a:not(.wp-social-link-anchor) {
  color: inherit;
  text-decoration: none;
}
.g9-news a:hover,
.g9-footer .wp-block-column a:not(.wp-social-link-anchor):hover {
  text-decoration: underline;
}
.g9-news a strong { color: #fff; }

/* ==========================================================================
   Block-based header / footer template parts
   Styles the core Navigation, Site Title and Search blocks used in
   parts/header.html and parts/footer.html to match the comp's nav bar.
   ========================================================================== */
.g9-navbar { width: 100%; }
.g9-nav-wrap { align-items: stretch; }

.g9-logo .wp-block-site-title { margin: 0; }
.g9-logo .wp-block-site-title a {
  color: #111;
  text-decoration: none;
}

.g9-nav .wp-block-navigation__container {
  gap: 0;
  align-items: stretch;
}
.g9-nav .wp-block-navigation-item { display: flex; }
.g9-nav .wp-block-navigation-item__content {
  display: flex;
  align-items: center;
  min-height: 98px;
  padding: 0 26px;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.g9-nav .wp-block-navigation-item__content:hover { color: #fff; }
.g9-nav .current-menu-item > .wp-block-navigation-item__content,
.g9-nav .current_page_item > .wp-block-navigation-item__content {
  color: #fff;
  border-bottom-color: #fff;
}

/* Search icon sitting at the end of the bar */
.g9-nav-search.wp-block-search {
  margin: 0;
  display: flex;
  align-items: stretch;
}
.g9-nav-search .wp-block-search__inside-wrapper { align-items: stretch; }
.g9-nav-search .wp-block-search__button {
    align-items:center;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  color: #cfcfcf;
  min-height: 98px;
  margin: 0;
  padding: 0 22px;
  cursor: pointer;
}
.g9-nav-search .wp-block-search__button:hover { color: #fff; }
.g9-nav-search .wp-block-search__button svg {
  fill: currentColor;
  width: 20px;
  height: 20px;
}
.g9-nav-search input.wp-block-search__input {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 0;
  color: #e6e6e6;
  padding: 8px 12px;
}

/* Mobile overlay menu */
.g9-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: #1c1c1c;
  color: #fff;
}
.g9-nav .wp-block-navigation__responsive-container-open,
.g9-nav .wp-block-navigation__responsive-container-close { padding:10px;color: #cfcfcf;align-items:center; }

@media (max-width: 900px) {
  .g9-nav .wp-block-navigation-item__content { min-height: 52px; padding: 0 16px; }
  .g9-nav-search .wp-block-search__button { min-height: 52px; padding: 0 16px; }
}

/* ==========================================================================
   Corrections
   ========================================================================== */

/* The global button style in theme.json targets .wp-element-button — and the
   core Search block's icon button carries that class too, which is why the
   search rendered as a white pill sitting on top of MENU5. Undo it here. */
.g9-nav-search .wp-block-search__button,
.g9-nav-search .wp-block-search__button:hover,
.g9-nav-search .wp-block-search__button:focus,
.g9-nav-search .wp-block-search__button:active {
	background: transparent;
	color: #cfcfcf;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, .12);
	border-radius: 0;
	box-shadow: none;
	letter-spacing: normal;
}
.g9-nav-search .wp-block-search__button:hover { color: #fff; }
.g9-nav-search .wp-block-search__inside-wrapper {
	border: 0;
	background: transparent;
	padding: 0;
}
.g9-nav-search .wp-block-search__input {
	background: #262626;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 0;
	color: #e6e6e6;
}

/* Same collision in the footer: the subscribe form's submit is a plain
   <button>, but keep it immune to any global button styling. */
.g9-subscribe button,
.g9-subscribe button:hover {
	border-radius: 0;
	letter-spacing: normal;
	box-shadow: none;
}

/* aspect-ratio alone leaves a zero-height box if the column hasn't resolved a
   width yet — give the news thumbnails a floor. */
.g9-thumb { min-height: 110px; }

/* The logo group sits inside a flex navbar, where block gap can add stray
   margins; pin it explicitly. */
.g9-navbar > .g9-logo { margin-block: 12px; }
.g9-navbar > .g9-logo,
.g9-navbar > .g9-nav-wrap { align-self: stretch; }

/* Anchor for the search field when it expands out of the bar. */
.g9-header,
.g9-footer { position: relative; }

/* The comp's logo is the four letters "LOGO"; a real site name is longer, so
   stop it wrapping inside the lozenge and let the box grow instead. */
.g9-logo .wp-block-site-title { white-space: nowrap; }
.g9-logo { flex: 0 0 auto; }

/* Keep the menu on one line down to tablet width — below that the Navigation
   block's overlay menu takes over. */
.g9-nav .wp-block-navigation__container { flex-wrap: nowrap; }

@media (max-width: 1100px) {
	.g9-nav .wp-block-navigation-item__content { padding: 0 16px; font-size: 12px; }
	.g9-nav-search .wp-block-search__button { padding: 0 14px; }
}
