/* Bundled from brand.css + site.css + navbar.css + footer.css (same order as the old
   separate <link> tags) to cut 3 render-blocking requests down to 1. */

/* Self-hosted brand fonts (was a fonts.googleapis.com stylesheet + fonts.gstatic.com file
   fetch -- two extra cross-origin round trips). Latin + Latin Extended subsets only, which
   covers English and accented European characters; Cyrillic/Greek/Vietnamese subsets Google
   also serves are dropped since the site has no content in those scripts. Montserrat 400/600/700
   all point at the same file -- Google serves it as a single variable-weight woff2 for this
   weight range, and the browser renders each declared font-weight from it directly. */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/lato-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/lato-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/lato-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/lato-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

:root {
    --color-sun: #FFC94A;
    --color-sun-deep: #FF8A1F;
    --color-sky-blue: #0077CC;
    --color-turquoise: #00B7C9;
    --color-palm-green: #2BA84A;
    --color-sky-gray: #F5F7FB;

    --color-bg: #FFFFFF;
    --color-bg-alt: #F5F7FB;
    --color-text-main: #1F2933;
    --color-text-muted: #6B7280;
    --color-border-soft: #E5E7EB;

    --color-dark-bg: #0B1B33;
    --color-dark-text: #F9FAFB;

    --gradient-checkmark: linear-gradient(90deg, #0077CC 0%, #00B7C9 50%, #2BA84A 100%);
    --gradient-sunrise: linear-gradient(135deg, #FFC94A 0%, #FF8A1F 50%, #FF6B3D 100%);

    --font-heading: "Montserrat", system-ui, sans-serif;
    --font-body: "Lato", system-ui, sans-serif;
    --font-size-base: 16px;
    --radius-base: 0.75rem;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    min-height: 100vh;
    color: var(--color-text-main);
    background: var(--color-bg);
    overflow-x: hidden;
}

/* Bootstrap has no min-width-0 utility; flex children need this to allow
   text-truncate/ellipsis to shrink below their content's intrinsic width. */
.min-width-0 {
    min-width: 0;
}

img,
.img-fluid,
.card img,
figure img {
    max-width: 100%;
    height: auto;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: var(--gradient-checkmark) !important;
}

.bg-gradient-sunrise {
    background: var(--gradient-sunrise) !important;
}

/* Daily tip flash animation */
@keyframes tipFlash {
    0%, 100% {
        background: linear-gradient(90deg, #0077CC 0%, #00B7C9 50%, #2BA84A 100%);
        box-shadow: 0 0 20px rgba(0, 119, 204, 0.4);
    }
    50% {
        background: linear-gradient(90deg, #FFC94A 0%, #FF8A1F 50%, #FF6B3D 100%);
        box-shadow: 0 0 30px rgba(255, 154, 31, 0.6);
    }
}

.daily-tip-flash {
    animation: tipFlash 0.8s ease-in-out 3;
}

/* Tip highlight flash animation */
@keyframes tipHighlight {
    0%, 100% {
        background-color: rgba(0, 119, 204, 0.15);
        box-shadow: inset 0 0 0 2px #0077CC;
    }
    50% {
        background-color: rgba(255, 154, 31, 0.2);
        box-shadow: inset 0 0 0 2px #FF8A1F;
    }
}

.tip-flash {
    animation: tipHighlight 0.8s ease-in-out 3 forwards;
}

.card-header-home {
    background: linear-gradient(135deg, var(--color-palm-green) 0%, var(--color-turquoise) 100%) !important;
}

.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    background: var(--color-sky-blue);
    color: #fff;
    padding: 0.75rem 1rem;
    z-index: 1050;
    transition: top 0.2s ease-in-out;
    border-radius: 0.25rem;
}

.skip-link:focus,
.visually-hidden-focusable:focus {
    top: 1rem;
}

.visually-hidden-focusable {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button.navbar-toggler {
    border: var(--color-palm-green) !important;
    background:  var(--color-palm-green) !important;
}

button.navbar-toggler:focus-visible,
.gfs-nav .nav-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(53, 116, 161, 0.6);
    outline-offset: 2px;
}

/* High-contrast mode (opt-in, toggled from the Member dropdown). Two WCAG AAA-
   verified pairs (7:1+ against each other) are used everywhere: dark navy on
   white (#04263F/#fff, 15.51:1) and white on dark navy (#fff/#04263F, same
   ratio inverted). Every colored background/text combo on the site collapses
   to one of these two pairs -- brand gradients, buttons, badges and card
   headers included -- rather than only covering the nav/footer text as before.
   Links and hovers are also underlined throughout so distinctions never rely
   on color alone. */
body.high-contrast {
    background: #fff !important;
    color: #1F2933 !important;
}

body.high-contrast h1, body.high-contrast h2, body.high-contrast h3,
body.high-contrast h4, body.high-contrast h5, body.high-contrast h6 {
    color: #04263F !important;
}

body.high-contrast a {
    color: #04263F !important;
    text-decoration: underline;
}

body.high-contrast .gfs-nav .navbar-brand,
body.high-contrast .gfs-nav .nav-link {
    color: #04263f !important;
    text-decoration: none;
}

body.high-contrast .gfs-nav .nav-link:hover,
body.high-contrast .gfs-nav .nav-link:focus-visible {
    color: #04263f !important;
    text-decoration: underline;
}

body.high-contrast .gfs-footer,
body.high-contrast .gfs-footer a {
    color: #1F2933 !important;
}

body.high-contrast .text-muted {
    color: #1F2933 !important;
}

/* Any inline gradient (hero/CTA cards, tip-flash animations, etc.) or brand
   gradient utility class collapses to the safe navy/white pair instead of
   trying to keep every custom gradient's own stops individually accessible. */
body.high-contrast [style*="gradient"],
body.high-contrast .bg-gradient-primary,
body.high-contrast .bg-gradient-sunrise,
body.high-contrast .card-header-home {
    background: #04263F !important;
    background-image: none !important;
    color: #fff !important;
}

body.high-contrast [style*="gradient"] *,
body.high-contrast .card-header-home * {
    color: #fff !important;
}

/* Buttons: every Bootstrap/brand variant collapses to one of the two safe pairs. */
body.high-contrast .btn {
    background: #04263F !important;
    border-color: #04263F !important;
    color: #fff !important;
}

body.high-contrast .btn-light,
body.high-contrast .btn-outline-light,
body.high-contrast .btn-outline-secondary,
body.high-contrast .btn-outline-danger {
    background: #fff !important;
    border-color: #04263F !important;
    color: #04263F !important;
}

/* Badges */
body.high-contrast .badge {
    background: #04263F !important;
    color: #fff !important;
}

/* Stronger, unmistakable borders on form controls */
body.high-contrast .form-control,
body.high-contrast .form-select {
    border: 2px solid #04263F !important;
}

/* Round icon badges used throughout tips/tools/deals panels - background colour is set inline per instance */
.icon-circle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-circle-lg {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

html {
  font-size: var(--font-size-base);
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.navbar {
  background-color: var(--color-bg-alt) !important;
  z-index: 1040;
}

.navbar .dropdown-menu {
  z-index: 1041;
}

.navbar-brand,
.nav-link {
  color: var(--color-text-main) !important;
}
.navbar-logo {
  max-height: 72px;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
}
.navbar-brand:hover,
.nav-link:hover {
  color: var(--color-sky-blue) !important;
}

.resource-header-image {
  width: 100%;
  object-fit: cover;
  max-height: 380px;
}

.resource-value-money {
  color:  #FF8A1F;
  font-size: 0.7em;
}

/* Price tier badges on Resources page */
.price-badge-1 { background:#e8f5e9; color:#2BA84A; }
.price-badge-2 { background:#e3f2fd; color:#0077CC; }
.price-badge-3 { background:#fff3e0; color:#FF8A1F; }
.price-badge-4 { background:#fde8e8; color:#dc3545; }

/* Resource thumbnail in horizontal list layout */
.resource-thumb {
  background: #eef3fb;
}

.resource-card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

@media (min-width: 768px) {
  .resource-card-image {
    width: 270px;
    max-width: 100%;
  }
}

.resource-priority-row {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.resource-priority-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: #fff;
}

.resource-priority-icon.priority-high {
  background-color: #dc2626;
}

.resource-priority-icon.priority-medium {
  background-color: #f59e0b;
}

.resource-priority-icon.priority-low {
  background-color: #16a34a;
}

.resource-priority-label {
  font-weight: 600;
  text-transform: capitalize;
}

.card {
  border-color: var(--color-border-soft);
}

.card-header,
.card-body {
  color: var(--color-text-main);
}

.btn-primary {
  background-color: var(--color-sky-blue);
  border-color: var(--color-sky-blue);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--color-turquoise);
  border-color: var(--color-turquoise);
}

.btn-outline-primary {
  color: var(--color-sky-blue);
  border-color: var(--color-sky-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: rgba(0, 119, 204, 0.08);
  color: var(--color-sky-blue);
}

.alert-info {
  background-color: rgba(0, 183, 201, 0.12);
  border-color: var(--color-turquoise);
  color: var(--color-text-main);
}

.form-control,
.form-select {
  border-color: var(--color-border-soft);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--color-bg), 0 0 0 0.25rem rgba(0, 119, 204, 0.35);
  border-color: var(--color-sky-blue);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
  box-shadow: 0 0 0 0.1rem var(--color-bg), 0 0 0 0.25rem rgba(0, 119, 204, 0.35);
}

body {
  background: radial-gradient(circle at top left, rgba(255, 201, 74, 0.12), transparent 25%),
              linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.card-header-branded {
  background-color: var(--color-sky-blue) !important;
}

.hidden
{
  display: none !important;
}

.news-panel-card {
  height: 420px;
}

@media (max-width: 575.98px) {
  .news-panel-card {
    height: 280px;
  }
}

/* News carousel: fixed panel height (.news-panel-card) drives everything else,
   so the frame/image/buttons never resize between slides or mid-transition.
   min-height:0 is required on the flex-grow chain (card-body, carousel) --
   without it, flex items default to min-height:auto and stretch to fit an
   image's intrinsic size instead of being clipped to the fixed panel height,
   which is what caused the container to balloon/jump per source image. */
.news-panel-card .card-body,
#homeNewsCarousel {
  min-height: 0;
}

#homeNewsCarousel,
#homeNewsCarousel .carousel-inner,
#homeNewsCarousel .carousel-item {
  height: 100%;
}

#homeNewsCarousel .news-slide-frame {
  display: block;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

#homeNewsCarousel .news-slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-body {
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--color-text-main);
}

.article-body section {
  margin-bottom: 2rem;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-sky-blue);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-border-soft);
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

/* Brand-blue carousel arrows */
#homeNewsCarousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230077CC'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
#homeNewsCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230077CC'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
#homeNewsCarousel .carousel-control-prev,
#homeNewsCarousel .carousel-control-next {
  top: 0;
  bottom: 0;
  height: 100%;
  width: 2.5rem;
  border-radius: 0;
  opacity: 1;
}
#homeNewsCarousel .carousel-control-prev {
  background: linear-gradient(to right, rgba(0,0,0,.2), transparent);
}
#homeNewsCarousel .carousel-control-next {
  background: linear-gradient(to left, rgba(0,0,0,.2), transparent);
}
#homeNewsCarousel .carousel-control-prev:hover {
  background: linear-gradient(to right, rgba(0,0,0,.35), transparent);
}
#homeNewsCarousel .carousel-control-next:hover {
  background: linear-gradient(to left, rgba(0,0,0,.35), transparent);
}


/* Resources grid view */
#resourcesList.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
#resourcesList.resources-grid .card {
  margin-bottom: 0 !important;
}
#resourcesList.resources-grid .resource-card-image {
  width: 100%;
}
@media (max-width: 575px) {
  #resourcesList.resources-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile bottom tab bar — add breathing room to content */
@media (max-width: 767px) {
  body:has(nav.fixed-bottom) main#mainContent {
    padding-bottom: 72px !important;
  }
}

/* Hide scrollbar on pill rows */
.overflow-auto::-webkit-scrollbar {
  display: none;
}

.gfs-nav {
    background: var(--color-sky-gray);
    padding: 0.75rem 0;
}

.gfs-nav .navbar-brand,
.gfs-nav .nav-link {
    color: var(--color-sky-blue) !important;
}

.gfs-nav .nav-link {
    font-weight: 600;
    margin-left: 1rem;
}

.gfs-nav .nav-link:hover,
.gfs-nav .nav-link:focus-visible {
    color: var(--color-sun) !important;
}

.gfs-nav .nav-link.active {
    border-bottom: 2px solid var(--color-palm-green);
}

.gfs-nav .dropdown-menu {
    min-width: 12rem;
}

.gfs-nav .dropdown-item:focus-visible,
.gfs-nav .dropdown-item:hover {
    background: rgba(255, 201, 74, 0.12);
    color: var(--color-sky-blue);
}

.gfs-nav .navbar-brand img,
.gfs-nav .navbar-brand svg {
    max-height: 2.5rem;
    width: auto;
    display: block;
}

.gfs-cta {
    background: var(--color-sun-deep);
    color: #fff;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

.gfs-cta:hover {
    background: var(--color-sun);
    color: #000;
}

.gfs-footer {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border-soft);
}
