/*
 * APR Network — Shared Brand System
 * Extracted from bd-theme-2024-main for cross-site consistency.
 * Source of truth: aprnetwork.org main WP theme
 *
 * 1rem = 25.3341px at 1440px viewport
 */

@import url("https://use.typekit.net/gfp3lvt.css");

:root {
    /* Fonts */
    --f-dm: dm-sans, sans-serif;
    --f-horizon: horizonbold;
    --f-montserrat: montserrat, sans-serif;

    /* Weights */
    --bdLight: 300;
    --bdRegular: 400;
    --bdMedium: 500;
    --bdSemiBold: 600;
    --bdBold: 700;
    --bdExtraBold: 800;
    --bdBlack: 900;

    /* Colors */
    --bd-red: #ED1C24;
    --bd-pink: #E26B69;
    --bd-light-pink: #F18F8E;
    --bd-sky-blue: #D1E8FC;
    --bd-grayrish-blue: #324559;
    --bd-white: #ffffff;
    --bd-off-white: #F7F8FA;
    --bd-light-gray: #E8ECF0;
    --bd-mid-gray: #8A95A3;

    /* Transitions */
    --transition-ease: 0.35s cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* Responsive rem scaling — matches main site */
@media (min-width: 48rem) {
    :root {
        font-size: calc(1rem + ((1vw - .48rem) * 1.389));
    }
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--f-dm);
    font-weight: var(--bdRegular);
    color: var(--bd-grayrish-blue);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* GTM injects tracking pixels (img, iframe) as direct body children after .site-wrapper.
   These inline elements inherit line-height and create a visible white gap below the footer. */
body > img,
body > iframe,
body > script {
    display: none !important;
}

/* ─── Focus Styles ─── */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--bd-red);
    outline-offset: 2px;
}

/* ─── Typography ─── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-dm);
    color: var(--bd-grayrish-blue);
    margin-top: 0;
    line-height: 1.25;
}

h1 {
    font-weight: var(--bdBold);
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-weight: var(--bdBold);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-weight: var(--bdSemiBold);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

h4 {
    font-weight: var(--bdSemiBold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 0.71rem;
    line-height: 170%;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

a {
    color: var(--bd-red);
    text-decoration: none;
    transition: var(--transition-ease);
}

a:hover {
    color: var(--bd-pink);
}

ul, ol {
    padding-left: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

li {
    font-size: 0.71rem;
    line-height: 170%;
    margin-bottom: 0.3rem;
}

strong {
    font-weight: var(--bdSemiBold);
}

em, .text-italic {
    font-style: italic;
}

/* ─── Buttons ─── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.131514rem;
    border-radius: 1.184175rem;
    padding-inline: 1.2rem;
    font-family: var(--f-dm);
    font-weight: var(--bdBold);
    font-size: 0.59rem;
    letter-spacing: 0.04rem;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-ease);
    white-space: nowrap;
}

.btn-primary {
    color: var(--bd-white);
    background-color: var(--bd-red);
}

.btn-primary:hover {
    color: var(--bd-white);
    background-color: var(--bd-grayrish-blue);
}

.btn-secondary {
    color: var(--bd-white);
    background-color: var(--bd-grayrish-blue);
}

.btn-secondary:hover {
    color: var(--bd-white);
    background-color: var(--bd-red);
}

.btn-outline {
    color: var(--bd-grayrish-blue);
    background-color: transparent;
    border: 1px solid var(--bd-grayrish-blue);
}

.btn-outline:hover {
    color: var(--bd-white);
    background-color: var(--bd-grayrish-blue);
}

.btn i,
.btn svg {
    font-size: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
}

/* ─── Layout ─── */

.container {
    max-width: 47.366988rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.container-narrow {
    max-width: 36rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

/* ─── Utility ─── */

.text-center { text-align: center; }
.text-white { color: var(--bd-white); }
.text-red { color: var(--bd-red); }
.text-pink { color: var(--bd-pink); }

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