@font-face {
    font-family: 'Instrument Sans';
    src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: 'Daily News BQ';
    src: url('/fonts/daily-news-bq-regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --black: #111513;
    --white: #fff;
    --sand: #f4f3ed;
    --blue: #00643b;
    --orange: #e86c3a;
    --button-bg: #245c43;
    --button-hover: #194b35;
    --brand-dark: #173b2d;
    --easeOut: cubic-bezier(0.16, 1, 0.3, 1);
    --easeInOut: cubic-bezier(0.83, 0, 0.17, 1);
    --site-width: 144rem;
    --gutter: clamp(2.4rem, 5.5556vw, 8rem);
    --section-space: clamp(8rem, 7.7778vw, 11.2rem);
    --section-heading-size: clamp(4rem, 4vw, 5.6rem);
    --header-height: 5.6rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 10px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 2rem); }
body {
    font-family: 'Instrument Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--black);
    background: #fdfdfb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #0b7a48; outline-offset: 5px; }
[hidden] { display: none !important; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
::selection { background: #d6efdf; color: #063e2c; }

.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 200; transform: translateY(-200%); padding: 1.2rem 2rem; background: #fff; color: #00643b; border-radius: 0.4rem; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    min-height: 4.4rem;
    padding: 1.1rem 2.2rem;
    border: 1px solid transparent;
    border-radius: 10rem;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--button-bg); color: #fff; }
.btn-primary:hover { background: var(--button-hover); }
.button-arrow { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #eff4e9; color: #234f3a; }
.button-arrow svg { display: block; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .button-arrow svg { transition: transform 0.2s ease; }
    .btn:hover .button-arrow svg, .p-btn:hover .button-arrow svg { transform: translateX(1px); }
}

.header { position: fixed; inset: 0 0 auto; z-index: 100; background: #fdfdfb; color: var(--black); transition: background-color 0.35s ease, color 0.35s ease; }
body::after { content: ''; position: fixed; inset: 0; z-index: 90; background: #10211929; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
@media (min-width: 951px) {
    body:has(.header-nav .nav-dropdown[open])::after { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
}
@media (max-width: 950px) {
    body:has(.header-menu[open])::after { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; width: 100%; height: var(--header-height); padding-inline: var(--gutter); }
.header-logo { display: flex; align-items: center; width: 8.4rem; min-height: 4.4rem; }
.header-logo img { width: 100%; height: auto; transition: filter 0.35s ease; }
.header-nav { display: flex; align-items: center; gap: 0.4rem; }
.nav-link { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 4.4rem; padding: 0.6rem 1rem; font-size: 1.3rem; font-weight: 500; }
.nav-link:hover { color: #00643b; }
.nav-dropdown { position: static; }
.nav-dropdown > summary { position: relative; }
.nav-dropdown-chevron { transition: transform 0.2s; }
.nav-dropdown[open] .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown[open] > summary::after { position: absolute; inset: auto 1rem -0.6rem; height: 1px; background: currentColor; content: ''; }
.nav-dropdown-menu { position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; background: #fdfdfb; border-top: 1px solid #e2e7df; box-shadow: 0 1.6rem 2.4rem #143b2410; color: var(--black); }
.nav-dropdown-inner { display: grid; grid-template-columns: 1fr 1fr 1.1fr; width: 100%; padding-left: var(--gutter); }
.nav-dropdown-group { min-width: 0; padding: 3.6rem 3.2rem; }
.nav-dropdown-group:first-child { padding-left: 0; }
.nav-dropdown-group + .nav-dropdown-group { border-left: 1px solid #e2e7df; }
.nav-dropdown-label { display: block; margin-bottom: 1.8rem; color: #626b62; font-size: 1.2rem; font-weight: 600; }
.nav-dropdown-item { display: block; min-height: 4.4rem; padding-block: 1rem; color: var(--black); font-size: 1.5rem; font-weight: 600; }
.nav-dropdown-item + .nav-dropdown-item { margin-top: 0.8rem; }
.nav-dropdown-item span { display: block; max-width: 29rem; margin-top: 0.5rem; color: #626b62; font-size: 1.3rem; font-weight: 400; line-height: 1.55; }
.nav-dropdown-item:hover, .nav-dropdown-item[aria-current='page'] { color: #00643b; }
.nav-dropdown-feature { min-width: 0; padding: 3.6rem var(--gutter) 3.6rem 3.2rem; border-left: 1px solid #e2e7df; background: #f2f3ee; }
.nav-feature-link { display: block; }
.nav-feature-image { aspect-ratio: 1.91; overflow: hidden; border-radius: 0.3rem; }
.nav-feature-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav-feature-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1.6rem; margin-top: 1.6rem; color: var(--black); font-size: 1.5rem; font-weight: 500; line-height: 1.5; }
.nav-feature-title > span { flex: none; }
.nav-feature-link:hover .nav-feature-title { color: #00643b; }
@media (prefers-reduced-motion: no-preference) {
    .nav-dropdown[open] .nav-dropdown-menu,
    .header-menu[open] .header-menu-nav { animation: navigationReveal 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes navigationReveal { from { opacity: 0; transform: translateY(-1.6rem); } to { opacity: 1; transform: none; } }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 0.8rem; }
.header-cta { position: relative; min-height: 3.2rem; gap: 0.8rem; padding: 0.4rem 0.5rem 0.4rem 1.2rem; font-size: 1.25rem; transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease; }
.header-cta .button-arrow { width: 1.8rem; height: 1.8rem; }
/* Keep a 44px tap area around the compact button. */
.header-cta::after { content: ''; position: absolute; inset: -0.6rem 0; }
.header-login { font-size: 1.3rem; }
.header-menu { display: none; }



.home-page .header.is-overlay:is(:not(.past-hero), .on-security) { background: var(--brand-dark); color: #fff; }
.home-page .header.is-overlay:not(.scrolled):not(.past-hero):not(:has(details[open])) { background: transparent; }
.home-page .header.is-overlay:is(:not(.past-hero), .on-security) .header-logo img { filter: brightness(0) invert(1); }
.home-page .header.is-overlay:is(:not(.past-hero), .on-security) .nav-link:hover { color: #e0ead9; }
.home-page .header.is-overlay:is(:not(.past-hero), .on-security) :focus-visible { outline-color: #fff; }
.home-page .nav-dropdown-menu, .home-page .header-menu-nav { color: var(--black); }
.home-page .nav-dropdown-menu :focus-visible, .home-page .header-menu-nav :focus-visible { outline-color: #0b7a48; }
.home-page .header.is-overlay:has(details[open]) { background: #fdfdfb; color: var(--black); }
.home-page .header.is-overlay:has(details[open]) .header-logo img { filter: none; }
.home-page .header.is-overlay:has(details[open]) .nav-link:hover { color: #00643b; }
.home-page .header.is-overlay:has(details[open]) :focus-visible { outline-color: #0b7a48; }

@media (max-width: 1100px) {
    .header-nav { gap: 0; }
    .header-nav > .nav-link { padding-inline: 0.8rem; }
}

@media (max-width: 950px) {
    .header-nav { display: none; }
    .header-inner { grid-template-columns: 1fr auto; }
    .header-menu { display: block; }
    .header-menu > summary { display: flex; align-items: center; justify-content: center; gap: 0.8rem; min-width: 4.4rem; min-height: 4.4rem; padding: 0.6rem; font-size: 1.3rem; }
    .header-menu .menu-close { display: none; }
    .header-menu[open] .menu-open { display: none; }
    .header-menu[open] .menu-close { display: block; }
    .header-menu-nav { position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; padding: 1.6rem var(--gutter) 2.4rem; background: #fdfdfb; border-bottom: 1px solid #dce3d9; box-shadow: 0 1.6rem 2rem #143b240a; }
    .header-menu-nav a { display: block; min-height: 4.4rem; padding: 1rem 0; color: var(--black); font-size: 1.4rem; font-weight: 500; }
    .header-menu-nav a:hover { color: #00643b; }
    .header-menu-label { display: block; margin-bottom: 0.6rem; color: #626b62; font-size: 1.3rem; font-weight: 600; }
    .header-menu-group { margin-bottom: 1.2rem; padding-bottom: 1.6rem; border-bottom: 1px solid #e2e7df; }
}

@media (max-width: 600px) {
    .header-inner { gap: 0.8rem; }
    .header-logo { width: 8rem; }
    .header-right { gap: 0.4rem; }
    .header-login { display: none; }
    .header-cta { padding-left: 1.1rem; font-size: 1.2rem; }
    .header-menu > summary { font-size: 0; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
}
