/* Shared rules. Per-element responsive overrides are generated into each page's <style>. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #FFFFFF; overflow-x: hidden; }
img { max-width: 100%; }
[id] { scroll-margin-top: 16px; }
.gf-scroll-x { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gf-scroll-x > table { min-width: 680px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #1B7B8A; outline-offset: 2px;
}
.gf-menu-btn { display: none; }
/* Top nav bar stays in view while scrolling (Jon, 2026-10-30); in-page links land below it. */
.gf-header { position: sticky !important; top: 0; z-index: 100; }
html { scroll-padding-top: 100px; }

@media (max-width: 1100px) {
  .gf-nav { gap: 20px !important; font-size: 14px !important; }
}
@media (max-width: 960px) {
  /* The phone menu takes the header's colours, so it suits both the light and the dark design. */
  .gf-header { height: 72px !important; padding: 0 20px !important; }
  html { scroll-padding-top: 80px; }
  .gf-header img { height: 32px !important; }
  .gf-menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; margin-left: auto;
    background: none; border: 0; border-radius: 6px; cursor: pointer; color: inherit;
  }
  .gf-menu-btn span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .gf-open .gf-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gf-open .gf-menu-btn span:nth-child(2) { opacity: 0; }
  .gf-open .gf-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gf-nav {
    display: none !important; position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    flex-direction: column !important; align-items: stretch !important; gap: 0 !important;
    background: inherit; border-top: 1px solid rgba(128,128,128,.25); border-bottom: 1px solid rgba(128,128,128,.35);
    padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.08); font-size: 16px !important;
  }
  .gf-open .gf-nav { display: flex !important; }
  .gf-nav > a { padding: 14px 4px !important; border-bottom: 1px solid rgba(128,128,128,.2) !important; }
  .gf-nav > a.gf-btn { margin-top: 12px; text-align: center; border-bottom: 0 !important; padding: 14px 20px !important; }
}
@media (max-width: 1365px) {
  .gf-actions { flex-wrap: wrap !important; }
}
@media (max-width: 900px) {
  /* Skewed pill buttons (index brand cards) are too wide for the 3-column cards just above mobile. */
  [style*="skewX(-"][style*="padding"] { padding-left: 18px !important; padding-right: 18px !important; }
}
@media (max-width: 820px) {
  .gf-fit.gf-fit-inset { margin-left: var(--gf-inset) !important; width: calc(100% - var(--gf-inset)) !important; max-width: calc(100% - var(--gf-inset)) !important; }
  h1 { overflow-wrap: anywhere; hyphens: auto; }
  input, textarea, select { font-size: 16px !important; }
}
