
/* Homepage layout fixes */
@media (min-width: 1024px) {
    .featured-story {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 3rem;
    }
}

.featured-story-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.home-hero {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.home-hero-decoration {
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 767px) {
    .home-hero {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }
}

/* Space between featured story and news cards */
.featured-story {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.featured-story + .grid {
    margin-top: 2rem;
}



/* Align homepage heading with the page content */
.home-hero {
    margin-left: 0;
    padding-left: 0;
}


/* Featured story band */
.featured-story {
    background: #edf2f6;
    padding: 22px 1.5rem;
    margin-bottom: 0rem;
    border: 0;
    border-radius: 4px;
}

.featured-story > div {
    min-width: 0;
}

.featured-story h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: clamp(1.75rem, 2.2vw, 2.25rem);
    line-height: 1.15;
    font-weight: 700;
}
.featured-story p {
    line-height: 1.55;
}

.featured-story .text-grey-700 {
    margin-top: 1.25rem;
}

.featured-story > a {
    align-self: center;
}

@media (max-width: 767px) {
    .featured-story {
        padding: 1rem;
        gap: 1.25rem;
    }
}

/* Latest News heading */
.latest-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.latest-eyebrow {
    margin: 0 0 8px;
    color: #26899e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.latest-title {
    margin: 0;
    color: #142d46;
    font-family: Georgia, serif;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.1;
}

.view-all-news {
    color: #26899e;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 6px;
}

.view-all-news:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 600px) {
    .featured-story {
        padding: 1rem;
    }

    .latest-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

.featured-story p {
    font-size: 1.15rem;
    line-height: 1.65;
}

.featured-story .text-grey-700 {
    margin-top: 1.5rem;
}

.featured-story .featured-label {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}


/* Latest news cards */
.latest-news-grid {
    align-items: stretch;
    column-gap: 1rem;
    row-gap: 1.5rem;
}

.latest-news-grid > article {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3eaf0;
    border-radius: 6px;
    background: #fff;
}

.latest-news-grid > article > a {
    display: block;
    overflow: hidden;
    border-radius: 0;
}

.latest-news-grid > article > a img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.latest-news-grid > article > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.latest-news-grid > article > div > a:last-child {
    margin-top: auto;
}

.latest-news-grid h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.045em;
}

.latest-news-grid h3 a {
    color: #142d46;
    text-decoration: none;
    overflow-wrap: break-word;
}

.latest-news-grid h3 a:hover {
    text-decoration: underline;
    text-decoration-color: #26899e;
    text-underline-offset: 4px;
}
.latest-news-grid p {
    margin-top: 0.75rem;
    color: #526579;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .latest-news-grid {
        gap: 1rem;
    }
}

/* Fix latest news grid layout */
.latest-news-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 1rem;
}

.latest-news-grid > article {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.latest-news-grid > article img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 1000px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .latest-news-grid {
        grid-template-columns: 1fr !important;
    }
}
/* Article publication date */
.article-date {
    margin-top: auto;
    padding-top: 1rem;
    color: #718096;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.latest-news-grid > article {
    display: flex;
    flex-direction: column;
}

.latest-news-grid .article-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.latest-news-grid .article-date {
    margin-top: auto;
    padding-top: 1rem;
    color: #718096;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

/* Editorial typography */
.home-hero h1,
.latest-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.featured-story h2,
.latest-news-grid h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.featured-story h2 {
    line-height: 1.12;
}

.latest-news-grid h3 {
    font-size: 1.25rem;
    line-height: 1.22;
}

.featured-story p,
.latest-news-grid p {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

.featured-story p {
    line-height: 1.6;
}

.latest-news-grid p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.latest-eyebrow,
.article-date {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* Keep decorative stripes within the portal width */
.portal-header-stripe {
    width: min(100%, 1190px);
    margin-inline: auto;
    box-sizing: border-box;
}

.featured-date {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #718096;
    letter-spacing: 0.04em;
}

.featured-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.featured-meta-row .featured-date {
    margin: 0;
    flex-shrink: 0;
}

.featured-read-link {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #96d7e5;
    white-space: nowrap;
}

.featured-read-link:hover {
    text-decoration-color: #26899e;
}

@media (max-width: 480px) {
    .featured-meta-row {
        flex-wrap: wrap;
    }
}


/* Portal footer */
.footer-stripe {
    width: calc(100% - 40px);
    max-width: 1190px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.portal-footer {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    color: #142d46;
}

.portal-footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.5rem;
}

.portal-footer-brand {
    max-width: 540px;
}

.portal-footer-logo {
    display: inline-block;
    color: #142d46;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    letter-spacing: -0.04em;
}

.portal-footer-brand p {
    margin-top: 0.4rem;
    color: #526579;
    font-size: 0.9rem;
    line-height: 1.5;
}

.portal-footer-nav,
.portal-footer-legal {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.portal-footer-nav a,
.portal-footer-legal a {
    color: #142d46;
    font-size: 0.875rem;
    text-decoration: none;
}

.portal-footer-nav a:hover,
.portal-footer-legal a:hover {
    color: #26899e;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.portal-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-top: 1px solid #e3eaf0;
    padding-top: 1rem;
}

.portal-footer-bottom > p {
    color: #718096;
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .portal-footer-main,
    .portal-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.25rem;
    }

    .portal-footer-nav,
    .portal-footer-legal {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Match footer width to the main content */
.portal-footer.site-container {
    width: calc(100% - 40px);
    max-width: 1190px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.portal-footer-main,
.portal-footer-bottom {
    width: 100%;
    box-sizing: border-box;
}


/* ========================================
   BADGERHUNT — ARTICLE PAGE
   ======================================== */

.article-page {
    max-width: 1850px;
    margin: 0 auto;
    padding-top: 36px;
    padding-bottom: 36px;
    color: #102a43;
}

.article-header {
    max-width: 1850px;
    margin: 0 auto 38px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #617487;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.article-category {
    color: #087e8b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-meta-divider {
    color: #9aabb9;
}

.article-title {
    max-width: 1850px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #102a43;
}

.article-lead {
    max-width: 1850px;
    margin: 24px 0 0;
    color: #526779;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.65;
}

.article-hero {
    width: 100%;
    margin: 0 auto 48px;
    overflow: hidden;
    border-radius: 4px;
    background: #edf2f6;
}

.article-hero img {
    display: block;
    width: 100%;
    max-height: 640px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-body {
    max-width: 1850px;
    margin: 0 auto;
    color: #263b4d;
    font-size: 19px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.article-body p {
    margin: 0 0 1.5em;
}

.article-body h2 {
    margin: 1.8em 0 0.65em;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
    color: #102a43;
}

.article-body h3 {
    margin: 1.6em 0 0.6em;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1.3;
    color: #102a43;
}

@media (max-width: 640px) {
    .article-body {
        font-size: 17px;
        line-height: 1.8;
    }
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body blockquote {
    margin: 2em 0;
    padding: 8px 0 8px 24px;
    border-left: 4px solid #8ccbd5;
    color: #526779;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.6;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-tags {
    max-width: 1850px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid #dce5eb;
}

.article-tags-label,
.article-source-label {
    display: block;
    margin-bottom: 12px;
    color: #617487;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    padding: 6px 11px;
    border: 1px solid #dce5eb;
    border-radius: 3px;
    color: #34566e;
    font-size: 13px;
}

.article-source {
    max-width: 1850px;
    margin: 28px auto 0;
    padding: 20px 22px;
    border-radius: 4px;
    background: #edf2f6;
}

.article-source a {
    color: #087e8b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-source a:hover {
    color: #102a43;
}

@media (max-width: 640px) {
    .article-page {
        padding-top: 36px;
        padding-bottom: 56px;
    }

    .article-header {
        margin-bottom: 28px;
    }

    .article-title {
        font-size: clamp(32px, 3.5vw, 48px);
        line-height: 1.12;
    }

    .article-lead {
        margin-top: 18px;
        font-size: 18px;
        line-height: 1.6;
    }

    .article-hero {
        margin-bottom: 32px;
    }

    .article-body {
        font-size: 17px;
        line-height: 1.8;
    }

    .article-source {
        padding: 16px;
    }
}


/* Latest News Archive */

.news-archive {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.news-archive-header {
    margin-bottom: 2.5rem;
    max-width: 760px;
}

.news-archive-eyebrow {
    margin-bottom: 0.75rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.news-archive-title {
    margin: 0 0 1rem;
    color: #111827;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.news-archive-description {
    margin: 0;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}

.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 1.75rem;
}

.news-archive-card {
    min-width: 0;
}

.news-archive-image-link {
    display: block;
    overflow: hidden;
    margin-bottom: 1.1rem;
    border-radius: 0.75rem;
    background: #f1f5f9;
    aspect-ratio: 16 / 9;
}

.news-archive-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-archive-image-link:hover .news-archive-image {
    transform: scale(1.04);
}

.news-archive-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
}

.news-archive-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-archive-date {
    margin-bottom: 0.65rem;
    color: #64748b;
    font-size: 0.8rem;
}

.news-archive-card-title {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.news-archive-card-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-archive-card-title a:hover {
    color: #2563eb;
}

.news-archive-card-lead {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
}

.news-archive-read-more {
    margin-top: auto;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.news-archive-read-more:hover {
    text-decoration: underline;
}

.news-archive-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 0.9rem;
}

.news-archive-pagination a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.news-archive-pagination a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .news-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.25rem;
    }
}

@media (max-width: 600px) {
    .news-archive {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .news-archive-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-archive-card-title {
        font-size: 1.2rem;
    }

    .news-archive-pagination {
        gap: 1rem;
    }
}

/* AI and image rights disclaimer */
.article-image-disclaimer {
    margin: 0;
    padding: 0.65rem 0.75rem;
    color: #718096;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0;
}

/* Editorial disclaimer — shared across BadgerHunt sites */
.portal-footer-disclaimer {
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    color: #718096;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.70rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0;
    max-width: 100%;
    text-align: center;
}

/* Shared BadgerHunt portal switcher */

/* ========================================
   Shared BadgerHunt portal switcher
   ======================================== */

.portal-sites-dropdown {
    position: relative;
    display: inline-block;
}

.portal-sites-dropdown > summary {
    list-style: none;
    cursor: pointer;
}

.portal-sites-dropdown > summary::-webkit-details-marker {
    display: none;
}

.portal-sites-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.portal-sites-dropdown-chevron {
    transition: transform 160ms ease;
}

.portal-sites-dropdown[open] .portal-sites-dropdown-chevron {
    transform: rotate(180deg);
}

/* Dropdown panel */
.portal-sites-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    z-index: 1000;

    width: max-content;
    min-width: 18rem;
    max-width: min(32rem, calc(100vw - 2rem));

    max-height: min(70vh, 32rem);
    overflow-y: auto;

    padding: 0.35rem;
    border: 1px solid rgba(127, 127, 127, 0.28);
    border-radius: 0.65rem;

    background: var(--portal-menu-background, var(--color-background, #fff));
    color: var(--portal-menu-foreground, var(--color-foreground, #222));

    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.14);
}

/* Individual portal */
.portal-sites-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 0.45rem 0.65rem;
    border-radius: 0.4rem;

    text-decoration: none;
    white-space: normal;
}

.portal-sites-dropdown-link:hover,
.portal-sites-dropdown-link:focus-visible {
    background: rgba(127, 127, 127, 0.12);
}

/* Portal name and description */
.portal-sites-dropdown-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.portal-sites-dropdown-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
}

.portal-sites-dropdown-description {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    color: #526579;
    opacity: 0.85;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Highlight the current portal */
.portal-sites-dropdown-link.is-current {
    background: #edf2f6;
    color: #142d46;
}

.portal-sites-dropdown-link.is-current .portal-sites-dropdown-name {
    font-weight: 800;
}

.portal-sites-dropdown-link.is-current .portal-sites-dropdown-description {
    font-weight: 600;
    color: #142d46;
    opacity: 1;
}

/* Current portal checkmark */
.portal-sites-current-marker {
    flex-shrink: 0;
    margin-left: 0.35rem;
    margin-right: 0.25rem;
    font-size: 0.85em;
    font-weight: 700;
}

/* Smaller screens */
@media (max-width: 700px) {
    .portal-sites-dropdown-menu {
        min-width: min(18rem, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
    }
}

/* ========================================
   BADGERHUNT BRAND HOMEPAGE
   Consolidated styles — keep all brand rules here
   ======================================== */

.brand-home {
    width: 100%;
    max-width: 1192px;
    margin: 0 auto;
    overflow: visible;
    box-sizing: border-box;
    color: #142d46;
}

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

.brand-home h1,
.brand-home h2,
.brand-home h3,
.brand-home p {
    margin-top: 0;
}

.brand-home h2 {
    margin-bottom: 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    line-height: 1.15;
}

.brand-home p {
    line-height: 1.6;
}

.brand-home .brand-container {
    width: 100%;
    max-width: 1192px;
    margin-inline: auto;
}

/* Hero */
.brand-home .brand-hero {
    position: relative;
    width: 100%;
    min-height: 330px;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid #dce8ee;
    background-color: #eaf2f6;
    background-image: none;
}

/* Image is cropped to fill the hero, not scaled down to fit its full height */
.brand-home .brand-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("/static/images/badgerhunt_hero_badger_mountains.aaf6a9b043f3.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    transform: scale(1);
    transition: transform 450ms ease;
    transform-origin: center right;
}

.brand-home .brand-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, .99) 0%,
        rgba(255, 255, 255, .94) 36%,
        rgba(255, 255, 255, .55) 54%,
        rgba(255, 255, 255, .04) 76%,
        rgba(255, 255, 255, 0) 100%
    );
}

.brand-home .brand-hero:hover::before {
    transform: scale(1.035);
}

.brand-home .brand-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 330px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 2rem;
}

.brand-home .brand-hero-copy {
    position: relative;
    z-index: 1;
    flex: 0 1 560px;
    max-width: 560px;
    min-width: 0;
}

.brand-home .brand-eyebrow {
    margin-bottom: .6rem;
    color: #147b9d;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.brand-home .brand-hero-title {
    max-width: 600px;
    margin-bottom: 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -.025em;
}

.brand-home .brand-hero-text {
    max-width: 520px;
    color: #40566c;
    font-size: 1.02rem;
}

.brand-home .brand-hero-text p:last-child,
.brand-home .brand-approach-copy p:last-child,
.brand-home .brand-support-copy p:last-child {
    margin-bottom: 0;
}

.brand-home .brand-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.brand-home .brand-support-copy .brand-button {
    margin-top: 12px;
}

.brand-home .brand-button {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    padding: .65rem 1rem;
    border: 1px solid #147b9d;
    border-radius: 3px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.brand-home .brand-button-primary {
    background: #147b9d;
    color: #fff;
}

.brand-home .brand-button-primary:hover {
    background: #105f79;
    color: #fff;
}

.brand-home .brand-button-secondary {
    background: rgba(255, 255, 255, .8);
    color: #146b88;
}

.brand-home .brand-button-secondary:hover {
    background: #eaf5f9;
}

.brand-home .brand-hero-aside {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-self: flex-start;
    max-width: 190px;
    margin-top: .25rem;
    margin-right: 50px;
    padding-left: 1rem;
    border-left: 2px solid #1682a3;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
}

/* Principle strip */
.brand-home .brand-principles {
    width: 100%;
    padding: 1.35rem 40px;
    border-bottom: 1px solid #e1edf2;
    background: #fff;
}

.brand-home .brand-principles-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.brand-home .brand-principle {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: .8rem;
}

.brand-home .brand-principle-icon {
    flex: 0 0 auto;
    color: #147b9d;
    font-size: 2rem;
    line-height: 1;
}

.brand-home .brand-principle h2 {
    margin-bottom: .25rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .98rem;
    font-weight: 800;
}

.brand-home .brand-principle p {
    margin-bottom: 0;
    color: #53677b;
    font-size: .84rem;
    line-height: 1.45;
}

/* Featured stories and portal directory: bands stay inside the page container */
.brand-home .brand-featured,
.brand-home .brand-portals {
    width: 100%;
    padding: 22px 20px;
    background: #f0f7fa;
}

.brand-home .brand-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.brand-home .brand-section-heading h2 {
    margin-bottom: 0;
}

.brand-home .brand-featured-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.brand-home .brand-story-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e8ed;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 45, 70, .04);
}

.brand-home .brand-story-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dce8ee;
}

.brand-home .brand-story-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-home .brand-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5eef3, #c8dce6);
}

.brand-home .brand-story-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.brand-home .brand-story-portal {
    margin-bottom: .4rem;
    color: #147b9d;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.brand-home .brand-story-copy h3 {
    margin-bottom: .5rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    line-height: 1.2;
}

.brand-home .brand-story-copy h3 a {
    color: #142d46;
    text-decoration: none;
}

.brand-home .brand-story-copy h3 a:hover {
    color: #147b9d;
}

.brand-home .brand-story-lead {
    margin-bottom: .75rem;
    color: #53677b;
    font-size: .9rem;
    line-height: 1.5;
}

.brand-home .brand-text-link {
    display: inline-block;
    margin-top: auto;
    padding-top: .75rem;
    color: #08779c;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

/* Editorial approach — background fills the BadgerHunt content width */
.brand-home .brand-approach {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 38px 20px;
    overflow: hidden;
    background: #edf3f6;
}

.brand-home .brand-approach-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.brand-home .brand-approach-background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.12);
    transition: transform 700ms ease;
    transform-origin: center;
}

.brand-home .brand-approach:hover .brand-approach-background img {
    transform: scale(1.20);
}

.brand-home .brand-approach::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, .04) 0%,
        rgba(255, 255, 255, .16) 35%,
        rgba(255, 255, 255, .76) 49%,
        rgba(255, 255, 255, .94) 62%,
        rgba(255, 255, 255, .97) 100%
    );
}

.brand-home .brand-approach-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    min-height: 230px;
}

.brand-home .brand-approach-spacer {
    min-width: 0;
    min-height: 180px;
}

.brand-home .brand-approach-copy {
    min-width: 0;
    padding: 8px 0;
}

.brand-home .brand-approach-copy h2 {
    color: #142d46;
}

.brand-home .brand-approach-copy > div,
.brand-home .brand-approach-copy > p {
    color: #40566c;
}

/* Portal cards — image-led directory inspired by the BadgerHunt concept */
.brand-home .brand-portals {
    background: #edf6fa;
}

.brand-home .brand-portals-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
    align-items: stretch;
}

.brand-home .brand-portal-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid #dce7ed;
    border-radius: 4px;
    background: #fff;
    color: #142d46;
    text-decoration: none;
    box-shadow: 0 2px 7px rgba(20, 45, 70, .035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.brand-home .brand-portal-card:hover,
.brand-home .brand-portal-card:focus-visible {
    border-color: #83b9cb;
    box-shadow: 0 6px 18px rgba(20, 45, 70, .10);
    transform: translateY(-2px);
}

.brand-home .brand-portal-image {
    display: block;
    width: 100%;
    aspect-ratio: 2.8 / 1;
    overflow: hidden;
    background: #dce8ee;
}

.brand-home .brand-portal-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.brand-home .brand-portal-card:hover .brand-portal-image img {
    transform: scale(1.055);
}

.brand-home .brand-portal-image-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dcecf3, #a9cbd9);
}

.brand-home .brand-portal-card-body {
    display: flex;
    flex: 1 0 auto;
    align-items: stretch;
    gap: .8rem;
    padding: .9rem 1rem 1rem;
}

.brand-home .brand-portal-mark {
    display: flex;
    flex: 0 0 2.7rem;
    width: 2.7rem;
    height: 2.7rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #258eaa;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.brand-home .brand-portal-card:nth-child(1) .brand-portal-mark { background: #a96f39; }
.brand-home .brand-portal-card:nth-child(2) .brand-portal-mark { background: #bd3838; }
.brand-home .brand-portal-card:nth-child(3) .brand-portal-mark { background: #1688a9; }
.brand-home .brand-portal-card:nth-child(4) .brand-portal-mark { background: #7133b7; }
.brand-home .brand-portal-card:nth-child(5) .brand-portal-mark { background: #319783; }

.brand-home .brand-portal-card-copy {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .28rem;
}

.brand-home .brand-portal-card-copy strong {
    color: #142d46;
    font-size: .98rem;
    line-height: 1.3;
}

.brand-home .brand-portal-card-copy > span:not(.brand-portal-visit) {
    color: #53677b;
    font-size: .84rem;
    line-height: 1.45;
}

.brand-home .brand-portal-card-copy .brand-portal-visit {
    margin-top: auto;
    padding-top: .45rem;
    color: #087fa8;
    font-size: .9rem;
    font-weight: 800;
}

/* Support section */
.brand-home .brand-support {
    display: block;
    width: 100%;
    padding: 28px 0;
    border-top: 1px solid #e1edf2;
    background: #fff;
}

.brand-home .brand-support-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 2rem;
}

.brand-home .brand-support-copy > div:not(.brand-support-actions),
.brand-home .brand-support-copy > p {
    color: #53677b;
}

.brand-home .brand-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.2rem;
}

.brand-home .brand-support-actions .brand-button { margin-top: 0; }

.brand-home .brand-support-options {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.15rem;
    padding-left: 1.5rem;
    border-left: 1px solid #d6e3e9;
}

.brand-home .brand-support-options > div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-home .brand-support-icon {
    display: flex;
    flex: 0 0 2.5rem;
    align-items: center;
    justify-content: center;
    color: #075a7a;
    font-size: 1.8rem;
    line-height: 1;
}

.brand-home .brand-support-option-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .2rem;
}

.brand-home .brand-support-options strong {
    color: #142d46;
    font-size: .95rem;
}

.brand-home .brand-support-options .brand-support-option-copy > span {
    color: #53677b;
    font-size: .85rem;
    line-height: 1.45;
}

/* Responsive layout */
@media (max-width: 1000px) {
    .brand-home .brand-featured-grid,
    .brand-home .brand-portals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-home .brand-principles-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-home .brand-hero-aside {
        display: none;
    }
}

@media (max-width: 700px) {
    .brand-home .brand-container {
        width: 100%;
    }

    .brand-home .brand-hero {
        background-image: linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .82));
    }

    .brand-home .brand-hero-inner {
        min-height: 0;
        padding-block: 2rem;
    }

    .brand-home .brand-featured-grid,
    .brand-home .brand-portals-grid,
    .brand-home .brand-principles-inner,
    .brand-home .brand-approach-inner,
    .brand-home .brand-support-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .brand-home .brand-hero {
        min-height: 0;
        padding-inline: 20px;
        background-image: linear-gradient(
            90deg,
            rgba(255, 255, 255, .97) 0%,
            rgba(255, 255, 255, .88) 58%,
            rgba(255, 255, 255, .5) 100%
        );
    }

    .brand-home .brand-hero-inner {
        padding-block: 2rem;
    }

    .brand-home .brand-hero::before {
        background-position: 62% center;
    }

    .brand-home .brand-principles,
    .brand-home .brand-featured,
    .brand-home .brand-portals,
    .brand-home .brand-support {
        padding-left: 20px;
        padding-right: 20px;
    }

    .brand-home .brand-approach {
        padding: 24px 20px;
    }

    .brand-home .brand-approach::before {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, .08) 0%,
            rgba(255, 255, 255, .58) 28%,
            rgba(255, 255, 255, .94) 48%,
            rgba(255, 255, 255, .98) 100%
        );
    }

    .brand-home .brand-principles-inner {
        gap: 1.1rem;
    }

    .brand-home .brand-approach-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        min-height: 0;
    }

    .brand-home .brand-approach-spacer {
        min-height: 100px;
    }

    .brand-home .brand-support-options {
        padding-top: 1.25rem;
        padding-left: 0;
        border-top: 1px solid #d6e3e9;
        border-left: 0;
    }
}



@media (prefers-reduced-motion: reduce) {
    .brand-home .brand-approach-background img {
        transition: none;
    }

    .brand-home .brand-approach:hover .brand-approach-background img {
        transform: scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-home .brand-portal-card,
    .brand-home .brand-portal-image img { transition: none; }
    .brand-home .brand-portal-card:hover { transform: none; }
}

/* Search page */
.search-page-form {
    max-width: 900px;
    margin: 0 0 2.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
}
.search-page-label {
    display: block;
    margin-bottom: .65rem;
    color: #111827;
    font-size: .9rem;
    font-weight: 700;
}
.search-page-input-row {
    display: flex;
    gap: .65rem;
}
.search-page-input {
    flex: 1;
    min-width: 0;
    padding: .9rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: .65rem;
    background: #fff;
    color: #111827;
    font: inherit;
}
.search-page-input:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
    border-color: #2563eb;
}
.search-page-button {
    padding: .85rem 1.35rem;
    border: 0;
    border-radius: .65rem;
    background: #111827;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.search-page-button:hover { background: #374151; }
.search-page-hint {
    margin: .75rem 0 0;
    color: #64748b;
    font-size: .85rem;
    line-height: 1.5;
}
.search-page-tags,
.search-page-results { margin-top: 2.5rem; }
.search-page-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.1rem;
}
.search-page-section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.search-page-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
}
.search-page-section-heading > a {
    color: #2563eb;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}
.search-page-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.search-page-tag {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: .9rem;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.search-page-tag span {
    color: #64748b;
    font-size: .75rem;
}
.search-page-tag:hover,
.search-page-tag.is-selected {
    border-color: #94a3b8;
    background: #e2e8f0;
    color: #0f172a;
}
.search-page-no-results {
    padding: 1.25rem;
    border-radius: .75rem;
    background: #f8fafc;
    color: #475569;
}
.search-result-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .85rem 0;
}
.search-result-hashtags a {
    color: #475569;
    font-size: .8rem;
    text-decoration: none;
}
.search-result-hashtags a:hover { color: #2563eb; text-decoration: underline; }
@media (max-width: 600px) {
    .search-page-form { padding: 1rem; }
    .search-page-input-row { flex-direction: column; }
    .search-page-button { width: 100%; }
}


/* Legal and information pages */
.legal-page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding-top: clamp(2.5rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 6rem);
}
.legal-page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dce5ec;
}
.legal-page-eyebrow {
    margin: 0 0 .75rem;
    color: #26899e;
    font: 700 .75rem/1.4 Arial, Helvetica, sans-serif;
    letter-spacing: .16em;
}
.legal-page-header h1 {
    margin: 0;
    color: #142d46;
    font: 700 clamp(2rem, 4vw, 3.25rem)/1.1 Georgia, "Times New Roman", serif;
    letter-spacing: -.03em;
}
.legal-page-intro {
    max-width: 720px;
    margin: 1rem 0 0;
    color: #526579;
    font-size: 1.1rem;
    line-height: 1.7;
}
.legal-page-content {
    color: #33475b;
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.legal-page-content h2 {
    margin: 2rem 0 .75rem;
    color: #142d46;
    font: 700 1.45rem/1.3 Georgia, "Times New Roman", serif;
}
.legal-page-content h3 {
    margin: 1.5rem 0 .5rem;
    color: #142d46;
    font-size: 1.1rem;
    font-weight: 700;
}
.legal-page-content p, .legal-page-content ul, .legal-page-content ol {
    margin: 0 0 1rem;
}
.legal-page-content a {
    color: #147e93;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.portal-footer-legal button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.portal-footer-legal button:hover { text-decoration: underline; }
.portal-footer-legal button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}


/* Shared BadgerHunt legal pages */
.legal-page {
    max-width: 900px;
    margin-inline: auto;
    padding-top: clamp(2.5rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 6rem);
}

.legal-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.28);
}

.legal-page-kicker {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

.legal-page-header h1 {
    margin: 0;
    line-height: 1.12;
}

.legal-page-updated {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

.legal-page-content {
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.legal-page-content h2,
.legal-page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.legal-page-content p,
.legal-page-content ul,
.legal-page-content ol {
    margin-bottom: 1rem;
}

.legal-page-content ul,
.legal-page-content ol {
    padding-left: 1.5rem;
}
