/*
 * Public UX guardrails
 *
 * This file is intentionally loaded after the legacy page and theme bundles.
 * It provides one predictable accessibility and responsive layer across every
 * user-facing route while the older page-specific styles remain in place.
 */

:root {
    --public-header-offset: 88px;
    --public-control-height: 44px;
    --public-content-width: 1200px;
    --public-reading-width: 76ch;
}

html {
    scroll-padding-top: var(--public-header-offset);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.public-site {
    overflow-x: clip;
}

.public-site main,
.public-site main > *,
.public-site .container,
.public-site .grid,
.public-site [class*="-grid"] {
    min-width: 0;
}

.public-site img,
.public-site svg,
.public-site canvas {
    max-width: 100%;
}

.public-site :where(h1, h2, h3) {
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.public-site :where(p, li, td, th, label, small) {
    overflow-wrap: anywhere;
}

.public-site :where(section[id], article[id], div[id]) {
    scroll-margin-top: var(--public-header-offset);
}

.public-site :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid #67d5ff !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.2) !important;
}

:root[data-theme="light"] .public-site :where(a, button, input, select, textarea, summary):focus-visible {
    outline-color: #0369a1 !important;
    box-shadow: 0 0 0 5px rgba(3, 105, 161, 0.16) !important;
}

.public-site :where(button, input, select, textarea) {
    font: inherit;
}

.public-site :where(
    button,
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea,
    .btn-primary,
    .btn-secondary,
    .nav-btn,
    .model-portfolio-filter-pill,
    .letter-chip
) {
    min-height: var(--public-control-height);
}

.public-site :where(button, input, select, textarea, a)[disabled],
.public-site :where(button, input, select, textarea, a)[aria-disabled="true"] {
    cursor: not-allowed !important;
    opacity: 0.58;
}

.public-site [hidden] {
    display: none !important;
}

.public-site .skip-link:focus {
    position: fixed !important;
    inset: 12px auto auto 12px !important;
    z-index: 100000 !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
}

.public-site .site-header :where(.nav-link, .theme-toggle, .lang-switcher a, .mobile-menu-toggle, .mobile-auth-shortcut, .mobile-lang-shortcut) {
    min-width: 44px;
    min-height: 44px;
}

.public-site .main-nav .nav-link {
    display: inline-flex;
    align-items: center;
}

.public-site .mobile-dock-link {
    min-height: 54px;
}

.public-site .table-container,
.public-site .tx-table-shell,
.public-site [data-scroll-region] {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.public-site .table-container.is-scrollable,
.public-site .tx-table-shell.is-scrollable,
.public-site [data-scroll-region].is-scrollable {
    box-shadow: inset -18px 0 18px -22px rgba(103, 213, 255, 0.8);
}

.public-site .table-container:focus-visible,
.public-site .tx-table-shell:focus-visible,
.public-site [data-scroll-region]:focus-visible {
    border-radius: 12px;
}

.public-site :where(.flash-message, .alert, .notice, .form-error, .success-message)[role="status"] {
    scroll-margin-top: var(--public-header-offset);
}

.public-site form.is-submitting :where(button[type="submit"], input[type="submit"]) {
    pointer-events: none;
    opacity: 0.68;
}

.public-site .modal[role="dialog"] {
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.public-site .modal-content {
    width: min(100%, 760px);
    max-height: min(88vh, 900px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.public-site .modal-content.modal-sm {
    width: min(100%, 560px);
}

.public-site .modal-content.modal-lg {
    width: min(100%, 1040px);
}

.public-site .modal-close-btn {
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-grid;
    place-items: center;
}

body.public-site.modal-open {
    overflow: hidden;
}

.public-site .ux-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.public-site .ux-pagination button {
    min-width: 44px;
    padding-inline: 1rem;
}

.public-site .ux-pagination-status,
.public-site .ux-results-status {
    color: var(--text-secondary, #aebdd0);
    font-size: 0.92rem;
}

/* Keep the first task visible instead of making every landing page a poster. */
body.page-home .home-page.home-v2-premium .home-v2-hero,
body.page-market .market-directory-page .market-hero-premium,
body.page-social .social-page .social-hero-premium {
    min-height: 0 !important;
    padding: clamp(1.75rem, 3.8vw, 3.4rem) !important;
    gap: clamp(1.5rem, 3vw, 2.75rem) !important;
}

body.page-home .home-page.home-v2-premium .home-v2-hero h1,
body.page-market .market-directory-page .market-hero-premium h1,
body.page-social .social-page .social-hero-premium h1 {
    font-size: clamp(2.65rem, 5.4vw, 5rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.055em !important;
}

body.page-home .home-page.home-v2-premium .home-v2-copy,
body.page-market .market-directory-page .market-hero-copy,
body.page-social .social-page .social-hero-copy {
    align-content: start;
}

body.page-home .home-page.home-v2-premium > section:not(.home-v2-hero) {
    min-height: 0 !important;
    margin-top: clamp(1.75rem, 3vw, 3rem) !important;
    padding-block: clamp(2rem, 4.5vw, 4.25rem) !important;
}

body.page-home .home-page.home-v2-premium .home-v2-entry-panel {
    display: grid;
    gap: 1.25rem;
    margin-top: clamp(1rem, 2vw, 1.75rem) !important;
    padding: clamp(1.35rem, 2.6vw, 2rem) !important;
    border: 1px solid rgba(122, 162, 206, 0.2);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.09), transparent 32%),
        linear-gradient(155deg, rgba(10, 20, 38, 0.96), rgba(6, 13, 26, 0.94));
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.2);
}

body.page-home .home-page.home-v2-premium .home-v2-entry-head {
    display: grid;
    gap: 0.45rem;
    max-width: 48rem;
}

body.page-home .home-page.home-v2-premium .home-v2-entry-head h2 {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

body.page-home .home-page.home-v2-premium .home-v2-entry-head p {
    margin: 0;
    color: rgba(191, 211, 232, 0.82);
    font-size: 0.98rem;
    line-height: 1.55;
}

body.page-home .home-page.home-v2-premium .home-v2-entry-panel .home-v2-start-paths {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-home .home-page.home-v2-premium .home-v2-entry-panel .home-v2-start-path {
    min-height: 100%;
    gap: 0.5rem;
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    border-color: rgba(122, 174, 218, 0.22);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
}

body.page-home .home-page.home-v2-premium .home-v2-entry-panel .home-v2-start-path em {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

body.page-home .home-page.home-v2-premium .home-v2-entry-panel .home-v2-start-path em::after {
    content: "\2192";
    font-size: 1rem;
}

body.page-home .home-page.home-v2-premium .home-v2-entry-evidence {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
    align-items: stretch;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(122, 162, 206, 0.16);
}

body.page-home .home-page.home-v2-premium .home-v2-entry-evidence > * {
    min-width: 0;
    margin: 0 !important;
}

body.page-home .home-page.home-v2-premium .home-v2-entry-evidence .home-v2-proofline {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    max-width: none;
}

body.page-home .home-page.home-v2-premium .home-v2-entry-evidence .home-v2-proofline span {
    width: 100%;
}

:root[data-theme="light"] body.page-home .home-page.home-v2-premium .home-v2-entry-panel {
    border-color: #cbd7e1 !important;
    background:
        radial-gradient(circle at top right, rgba(3, 105, 161, 0.06), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 18px 44px rgba(15, 35, 55, 0.08) !important;
}

:root[data-theme="light"] body.page-home .home-page.home-v2-premium .home-v2-entry-head h2 {
    color: #10253b !important;
    -webkit-text-fill-color: #10253b !important;
}

:root[data-theme="light"] body.page-home .home-page.home-v2-premium .home-v2-entry-head p {
    color: #52677b !important;
}

:root[data-theme="light"] body.page-home .home-page.home-v2-premium .home-v2-entry-panel .home-v2-start-path {
    border-color: #d5dee7 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 22px rgba(15, 35, 55, 0.055) !important;
}

:root[data-theme="light"] body.page-home .home-page.home-v2-premium .home-v2-entry-panel .home-v2-start-path:is(:hover, :focus-visible) {
    border-color: #7cb8d0 !important;
    background: #f8fbfd !important;
    box-shadow: 0 14px 30px rgba(15, 76, 129, 0.1) !important;
}

:root[data-theme="light"] body.page-home .home-page.home-v2-premium .home-v2-entry-panel .home-v2-start-path span,
:root[data-theme="light"] body.page-home .home-page.home-v2-premium .home-v2-entry-panel .home-v2-start-path em {
    color: #0369a1 !important;
    -webkit-text-fill-color: #0369a1 !important;
}

:root[data-theme="light"] body.page-home .home-page.home-v2-premium .home-v2-entry-panel .home-v2-start-path strong {
    color: #10253b !important;
    -webkit-text-fill-color: #10253b !important;
}

:root[data-theme="light"] body.page-home .home-page.home-v2-premium .home-v2-entry-panel .home-v2-start-path small {
    color: #52677b !important;
    -webkit-text-fill-color: #52677b !important;
}

:root[data-theme="light"] body.page-home .home-page.home-v2-premium .home-v2-entry-evidence {
    border-top-color: #d8e1e9;
}

body.page-home .home-page.home-v2-premium .home-v2-positioning-grid,
body.page-home .home-page.home-v2-premium .home-v2-demo-grid,
body.page-home .home-page.home-v2-premium .home-v2-evaluator-grid {
    align-items: start;
}

body.page-social .social-page .social-hero-spotlight {
    min-height: 0 !important;
    padding: clamp(1.35rem, 2.5vw, 2.25rem) !important;
}

body.page-market .market-directory-page .market-hero-stats,
body.page-social .social-page .social-hero-dashboard {
    gap: 0.75rem !important;
}

/* Model catalogue: keep choice controls and real portfolios above the fold. */
body.page-model-portfolios .model-portfolio-page > .container {
    padding-top: clamp(1rem, 2vw, 1.75rem);
}

body.page-model-portfolios .model-portfolio-page .directory-header {
    min-height: 0 !important;
    padding: clamp(1.35rem, 2.5vw, 2.25rem) !important;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-hero-main,
body.page-model-portfolios .model-portfolio-page .model-portfolio-hero-side {
    min-width: 0;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-hero-side {
    position: static !important;
}

body.page-model-portfolios .model-portfolio-page .top-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 0.75rem !important;
}

body.page-model-portfolios .model-portfolio-page .top-stat-card {
    min-height: 11rem !important;
    padding: 1.15rem 1.25rem !important;
}

body.page-model-portfolios .model-portfolio-page .top-stat-card strong {
    font-size: clamp(1.75rem, 3.5vw, 3rem) !important;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-panel {
    padding: 1.15rem 1.25rem !important;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-panel-head {
    margin-bottom: 0.85rem !important;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-guide-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(14rem, 1fr));
    gap: 0.8rem !important;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-guide-item {
    margin: 0 !important;
    min-width: 0;
    min-height: 8.5rem;
    padding: 1rem !important;
    align-items: flex-start;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-guide-item > div {
    min-width: 0;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-guide-item strong {
    overflow-wrap: normal;
    word-break: normal;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-guide-item p {
    margin-top: 0.25rem !important;
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-filter-row {
    position: sticky;
    top: calc(var(--public-header-offset) - 12px);
    z-index: 20;
    margin-block: 1rem !important;
    padding: 0.85rem 1rem !important;
    backdrop-filter: blur(18px);
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-catalog-head {
    margin-block: 1.25rem 1rem !important;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-card {
    height: 100%;
    gap: 0.9rem !important;
    padding: 1.1rem !important;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-grid {
    align-items: stretch;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-card-chips {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 0.5rem;
    min-height: 3.75rem;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-card-chip-primary {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.55rem;
    min-width: 0;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-card-chip-primary .holding-fact-chip,
body.page-model-portfolios .model-portfolio-page .model-portfolio-card-basis {
    white-space: nowrap;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-card-basis {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 0.45rem;
    min-width: 0;
    color: var(--text-muted, #64748b);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-card-basis::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.12);
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-card-performance,
body.page-model-portfolios .model-portfolio-page .model-portfolio-card-body-grid,
body.page-model-portfolios .model-portfolio-page .model-portfolio-mini-chart-panel {
    margin: 0 !important;
}

body.page-model-portfolios .model-portfolio-page .model-portfolio-mini-chart svg {
    max-height: 170px;
}

/* Detail pages should read like dashboards, not oversized empty hero cards. */
body.page-model-portfolio-detail .model-portfolio-page .directory-header,
body.page-model-portfolio-detail .model-portfolio-page .model-portfolio-detail-header {
    min-height: 0 !important;
    padding: clamp(1.25rem, 2.5vw, 2rem) !important;
}

body.page-model-portfolio-detail .model-portfolio-page .model-portfolio-quick-nav,
body.page-model-portfolio-detail .model-portfolio-page .model-portfolio-detail-nav {
    position: sticky;
    top: calc(var(--public-header-offset) - 12px);
    z-index: 19;
    backdrop-filter: blur(18px);
}

body.page-model-portfolio-detail .model-portfolio-page :where(.model-portfolio-overview-grid, .model-portfolio-dashboard-grid, .model-portfolio-snapshot-grid) {
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

body.page-model-portfolio-detail .model-portfolio-page :where(.model-portfolio-panel, .portfolio-holdings-shell) {
    gap: 0.85rem !important;
    padding: 1rem 1.1rem !important;
}

body.page-model-portfolio-detail .model-portfolio-page .portfolio-holdings-header {
    padding-bottom: 0.75rem !important;
}

body.page-model-portfolio-detail .model-portfolio-page :where(.model-portfolio-performance-summary, .model-portfolio-holdings-summary) {
    margin-bottom: 0.75rem !important;
}

body.page-model-portfolio-detail .model-portfolio-page .model-portfolio-performance-summary-hero .model-portfolio-kpi {
    min-height: 92px !important;
    padding: 0.85rem !important;
}

body.page-model-portfolio-detail .model-portfolio-page #model-holdings .model-portfolio-filter-row {
    margin-block: 0 !important;
    padding: 0.75rem !important;
}

body.page-model-portfolio-detail .model-portfolio-page .model-portfolio-holdings-table :where(th, td) {
    padding-block: 0.7rem !important;
}

/* Values in these blocks inherit pale dark-theme text unless explicitly reset. */
:root[data-theme="light"] body.page-model-portfolio-detail .model-portfolio-page .model-portfolio-definition-grid {
    color: #334b61 !important;
    -webkit-text-fill-color: #334b61 !important;
}

:root[data-theme="light"] body.page-model-portfolio-detail .model-portfolio-page .model-portfolio-definition-grid strong {
    color: #10253b !important;
    -webkit-text-fill-color: #10253b !important;
}

:root[data-theme="light"] body.page-model-portfolio-detail .model-portfolio-page .portfolio-holdings-meta {
    color: #52677b !important;
    -webkit-text-fill-color: #52677b !important;
}

/* Company directory: the browser pager keeps a 15,000px table manageable. */
body.page-companies .companies-page .directory-header {
    min-height: 0 !important;
    padding: clamp(1.25rem, 2.5vw, 2rem) !important;
}

body.page-companies .companies-page .directory-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.75rem;
}

body.page-companies .companies-page .directory-search-field {
    display: grid;
    gap: 0.4rem;
}

body.page-companies .companies-page .directory-search-field > span {
    color: var(--text-secondary, #aebdd0);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.page-companies .companies-page .market-search {
    width: 100%;
}

body.page-companies .companies-page .company-directory-status {
    min-width: 12rem;
    text-align: right;
}

body.page-companies .companies-page .market-table tbody tr[hidden] {
    display: none !important;
}

/* Long-form content keeps a readable measure. */
body.page-trust .legal-page,
body.page-trust .trust-page,
body.page-docs .docs-article {
    --public-reading-width: 76ch;
}

body.page-trust .legal-page :where(p, li),
body.page-trust .trust-page :where(p, li),
body.page-docs .docs-article :where(p, li) {
    max-width: var(--public-reading-width);
    line-height: 1.72;
}

/* The footer remains useful without occupying another full screen. */
.public-site .main-footer {
    margin-top: clamp(3rem, 6vw, 5rem) !important;
    padding-block: clamp(2rem, 4vw, 3.5rem) 1.25rem !important;
}

.public-site .footer-grid {
    gap: clamp(1.5rem, 3vw, 3rem) !important;
}

.public-site .main-footer .disclaimer-box {
    margin-top: 1.5rem !important;
    padding: 1rem !important;
}

@media (max-width: 900px) {
    :root {
        --public-header-offset: 76px;
    }

    .public-site main.container,
    .public-site main > .container,
    .public-site .main-footer > .container {
        padding-inline: 1rem !important;
    }

    .public-site :where(.mobile-dock, .mobile-dock.is-authenticated, .mobile-dock.is-guest) {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0.35rem !important;
    }

    .public-site .mobile-dock-text {
        font-size: clamp(0.58rem, 2.4vw, 0.68rem);
        line-height: 1.05;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .public-site :where(.hero-actions, .modal-actions) {
        align-items: stretch;
    }

    .public-site :where(.hero-actions, .modal-actions) > :where(a, button) {
        min-width: 0;
    }

    body.page-home .home-page.home-v2-premium .home-v2-hero,
    body.page-market .market-directory-page .market-hero-premium,
    body.page-social .social-page .social-hero-premium {
        padding: 1.25rem !important;
    }

    body.page-home .home-page.home-v2-premium .home-v2-hero h1,
    body.page-market .market-directory-page .market-hero-premium h1,
    body.page-social .social-page .social-hero-premium h1 {
        font-size: clamp(2.35rem, 11vw, 4rem) !important;
    }

    body.page-home .home-page.home-v2-premium .home-v2-entry-panel .home-v2-start-paths,
    body.page-home .home-page.home-v2-premium .home-v2-entry-evidence {
        grid-template-columns: 1fr;
    }

    body.page-model-portfolios .model-portfolio-page .model-portfolio-guide-list {
        grid-template-columns: 1fr;
    }

    body.page-model-portfolios .model-portfolio-page .model-portfolio-guide-item {
        min-height: 0;
    }

    body.page-model-portfolios .model-portfolio-page .model-portfolio-filter-row,
    body.page-model-portfolio-detail .model-portfolio-page .model-portfolio-quick-nav,
    body.page-model-portfolio-detail .model-portfolio-page .model-portfolio-detail-nav {
        position: static;
    }

    body.page-companies .companies-page .directory-search-row {
        grid-template-columns: 1fr;
    }

    body.page-companies .companies-page .company-directory-status {
        min-width: 0;
        text-align: left;
    }

    .public-site .modal[role="dialog"] {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .public-site .modal-content,
    .public-site .modal-content.modal-sm,
    .public-site .modal-content.modal-lg {
        width: 100% !important;
        max-width: none !important;
        max-height: min(92dvh, 900px) !important;
        border-radius: 20px 20px 0 0 !important;
        padding-bottom: max(1rem, env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 640px) {
    .public-site :where(.btn-primary, .btn-secondary) {
        justify-content: center;
    }

    body.page-model-portfolios .model-portfolio-page .top-stats {
        grid-template-columns: 1fr !important;
    }

    body.page-model-portfolios .model-portfolio-page .top-stat-card {
        min-height: 0 !important;
    }

    body.page-model-portfolios .model-portfolio-page .model-portfolio-filter-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scroll-snap-type: x proximity;
    }

    body.page-model-portfolios .model-portfolio-page .model-portfolio-filter-pill {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .public-site .footer-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem 1rem !important;
    }

    .public-site .footer-links a {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }
}

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

@media (forced-colors: active) {
    .public-site :where(.btn-primary, .btn-secondary, button, input, select, textarea, .badge-mini) {
        border: 1px solid ButtonText !important;
    }
}
