/* ============================================================
   arion.css — Core design system and global styles
   Load order: arion.css → nav.css → app.css (legacy, to remove)
   ============================================================ */

@import "lib/bootstrap/dist/css/bootstrap.min.css";

/* ── Design tokens ── */
:root {
    --slate-50: #F9F9F7;
    --slate-100: #F2F1ED;
    --slate-200: #E1E0D9;
    --slate-300: #C9C7BB;
    --slate-400: #A6A499;
    --slate-500: #898781;
    --slate-600: #52514E;
    --slate-800: #0B0B0B;
    --blue-500: #5B9BDB;
    --blue-600: #2A78D6;
    --blue-800: #184F95;
    --arion-blue: #6FA3E0;
    --report-gold: #E8A33D;
    --report-gold-dark: #8A5A06;
    --report-gold-soft: rgba(232, 163, 61, 0.06);
    --background-color: #F9F9F7;
    --background-color-secondary: #F2F1ED;
    --text-color: #0B0B0B;
    --text-muted-alt: #898781;
    --text-muted-lt: var(--text-muted-alt);
    --text-muted-dk: #52514E;
    --form-bg-color: #FCFCFB;
    --shadow-color: rgba(11, 11, 11, 0.16);
    --hero-gradient: radial-gradient(circle at 15% 20%, rgba(42,120,214,0.14), transparent 45%), radial-gradient(circle at 85% 0%, rgba(74,58,167,0.10), transparent 40%), linear-gradient(180deg,#111318 0%, #1c2027 100%);
    --border-soft: rgba(11, 11, 11, 0.10);
    --badge-g1-bg: #fdecec;
    --badge-g1-fg: #a52222;
    --badge-g2-bg: #fdf1e3;
    --badge-g2-fg: #8a5a06;
    --badge-g3-bg: #eef3fd;
    --badge-g3-fg: #1c4f95;
    --badge-lr-bg: #eef7f1;
    --badge-lr-fg: #0d6b3f;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: "Lora", Georgia, serif;
    --font-brand: var(--font-heading);
    --font-body: "Inter", var(--font-sans);
    --page-max-width: 1320px;
    --page-gutter: 32px;
    --page-gutter-mobile: 20px;
    --page-section-heading-spacing: 10px;
    --filter-action-spacing: 10px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-soft: 0 1px 2px rgba(11, 11, 11, 0.03);
}

/* ── Container max-width override ── */
@media (min-width: 1680px) {
    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 1640px;
    }
}

/* ── Full-height flex layout so footer always reaches the bottom ──
   html/body fill the viewport; #app (Blazor root) becomes a flex
   column; .pageBody grows to fill leftover space; the footer-outer
   wrapper in Footer.razor then sits flush at the bottom with no
   white gap on short-content pages.
   ──────────────────────────────────────────────────────────────── */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    font-family: var(--font-sans);
    color: var(--text-color) !important;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 19.6px;
    /* Offset for fixed navbar — desktop */
    padding-top: 78px;
}

/* Blazor's root element — inherit the flex column */
#app {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

/* The .page div Blazor wraps around layout content */
.page {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

/* Main content area grows; footer stays at natural size */
.pageBody {
    flex: 1 0 auto;
    min-height: 0;
}

.containerMain {
    max-width: var(--page-max-width);
    margin-bottom: 0;
    padding: 26px var(--page-gutter) 80px;
}



@media (max-width: 1399.98px) {
    body {
        padding-top: 68px;
    }
}

button,
input,
select,
textarea,
[class*="body-"],
[class*="btn-font-"] {
    font-family: var(--font-sans);
}

@media (min-width: 1200px) {
    body {
        padding-top: 48px;
    }
}

/* Mobile navbar is more compact — reduce body offset to match */
@media (max-width: 575.98px) {
    body {
        padding-top: 46px;
    }
}

/* Fixed header sits outside flow — collapse the element itself */
.site-nav-shell {
    height: 0;
    overflow: visible;
}

h1:focus {
    outline: none;
}

img:focus {
    outline: none;
}

a {
    cursor: pointer;
    text-decoration: none;
}

/* ── Typography ── */
label.lblDark {
    color: var(--arion-dark);
    font-size: 1rem;
    font-weight: 600;
    opacity: 1;
}

.form-option {
    font-weight: 300 !important;
}

.subText {
    opacity: 0.8 !important;
}

.subTextSmall {
    font-size: 14px;
}

/* ── Colour overrides ── */
i,
.text-primary {
    color: #1b6ec2 !important;
    opacity: 1 !important;
}

a,
.btn-link {
    color: #006bb7;
}

    a.arionLink {
        color: #1b6ec2;
    }

/* ── Buttons ── */
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-icon {
    display: flex;
    align-items: center;
}

/* ── Forms ── */
.nav-link:focus-visible {
    outline: 0;
    box-shadow: none !important;
}

.input-group {
    color: rgb(99, 98, 85, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.input-group-text {
    color: var(--arion-dark);
    font-size: 0.8rem;
    font-weight: 500;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Layout helpers ── */
.noMargin {
    margin: 0 !important;
}

.noGutter {
    --bs-gutter-x: 0 !important;
}

    .noGutter > * {
        padding-left: 0;
        padding-right: 0;
    }

.smallGutter {
    --bs-gutter-x: 1em !important;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

.fitWidth {
    max-width: -webkit-fill-available;
    width: -webkit-fill-available;
}

.flexRow {
    display: flex;
    justify-content: space-between;
}

.rightAlignFix {
    display: block;
    width: 100%;
    text-align: right !important;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

.cursor-pointer {
    cursor: pointer;
}

/* ── Page structure ── */
.pageHeader {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--hero-gradient);
    color: white;
    padding: 46px 0 54px;
    display: flex;
    justify-content: space-between;
}

.pageBody > .pageHeader::before {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: -180px;
    width: min(58vw, 900px);
    height: 620px;
    background: url('/img/logos/BrandMark.png') center / contain no-repeat;
    content: "";
    filter: grayscale(1) brightness(2);
    opacity: 0.08;
    pointer-events: none;
    transform: translateY(-50%) scale(0.74);
}

.pageBody > .pageHeader > .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--page-max-width);
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
}

.pageHeader p,
.pageHeader h3 {
    margin: 0;
}

.pageHeader h3 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: normal;
}

.page-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.page-hero-copy {
    min-width: 0;
}

.page-hero-eyebrow {
    margin-top: 0;
    color: #9fb3d6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.page-hero-title {
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.2;
}

.pageHeader .page-hero-subtitle {
    max-width: 640px;
    margin: 10px 0 0;
    color: #cfd4de;
    font-size: 15px;
    line-height: 1.55;
}

.page-hero-ad {
    flex: 0 1 520px;
    max-width: 520px;
    margin-left: auto;
}

.page-hero-actions {
    margin-top: 16px;
}

.page-hero-ad .adPnl {
    max-width: 520px;
    margin: 0;
}

.page-hero-ad .adImage {
    display: block;
    width: 100%;
    height: auto;
}

.page-section-heading {
    margin-bottom: 24px;
}

/* Sections introduced by a standard page heading begin flush with the
   content area; the heading's own bottom margin provides the separation. */
.containerMain:has(.page-section-heading) {
    padding-top: var(--page-section-heading-spacing);
}

/* The containing page supplies the shared spacing; nested semantic sections
   must not add the same value a second time. */
section:has(> .page-section-heading) {
    padding-top: 0;
}

.page-section-heading h2 {
    margin: 0 0 8px;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.55;
}

.page-section-heading p {
    margin: 0;
    color: var(--text-muted-dk);
    font-size: 14.5px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.55;
}

.surface-card {
    padding: 20px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--form-bg-color);
    box-shadow: var(--shadow-soft);
}

/* ── Data tables ── */
.table {
    color: var(--text-color);
    font-size: 13.2px;
    line-height: 1.55;
}

    .table > thead > tr > th {
        border-bottom: 1px solid var(--border-soft);
        background: var(--slate-100);
        color: var(--slate-600);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .table > tbody > tr > td {
        border-color: var(--border-soft);
    }

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: #f5f6f3;
    color: var(--text-color);
}

@media (max-width: 991.98px) {
    .containerMain {
        padding: 32px var(--page-gutter-mobile) 56px;
    }

        .containerMain:has(.page-section-heading) {
            padding-top: var(--page-section-heading-spacing);
        }

    .pageHeader {
        padding: 38px 0 44px;
    }

    .pageBody > .pageHeader::before {
        left: -250px;
        width: 760px;
        opacity: 0.065;
    }

    .pageBody > .pageHeader > .container {
        padding-right: var(--page-gutter-mobile);
        padding-left: var(--page-gutter-mobile);
    }

    .page-hero-content {
        align-items: flex-start;
    }
}

/* Legacy footer rules — superseded by Footer.razor.css .footer-outer.
   Kept so any bare <footer> elements still get the right background. */
footer {
    background: var(--hero-gradient);
    color: white;
    padding-top: 1em;
    padding-bottom: 1.2em;
}

.pageFooter {
    padding: 3em 0;
    color: white;
}

    .pageFooter p,
    .pageFooter h3 {
        margin: 0;
    }

/* ── Cards and panels ── */
.card {
    background-color: var(--background-color);
    border: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    background: #283C61;
    background: radial-gradient(circle, rgba(40, 60, 97, 1) 0%, rgba(29, 41, 61, 1) 100%);
}

.darkPnl {
    padding: 24px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background-color: var(--slate-100);
    box-shadow: var(--shadow-soft);
}

.formPnl {
    padding: 24px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--form-bg-color);
    box-shadow: var(--shadow-soft);
}

.bodyPnl {
    padding: 24px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--form-bg-color);
    box-shadow: var(--shadow-soft);
}

.highlightPanel {
    background-color: #f1f5fd;
    border-radius: 5px;
    padding: 1em;
}

.highlightCard {
    display: flex;
    padding: 12px 20px 14px 20px;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    border-radius: 12px;
    border: 1px solid var(--slate-300);
    background: var(--form-bg-color);
}

/* Soft blue highlight for tracked-horse rows in race field tables */
.tracked-row > td {
    background-color: #f0f7ff !important;
    border-color: #cfe2ff !important;
}

.adPnl {
    margin-top: auto;
    max-width: 550px;
    justify-self: end;
}

.adPnl-lg {
    width: 728px;
}

.adImage {
    border-radius: var(--arion-border-radius);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.imgPanel {
    border: solid;
    border-color: #f1f5fd;
    border-width: 1em;
    border-radius: 8px;
}

.arionStallionContactPanel {
    background-color: #e2e8f0;
    border-radius: 10px;
}

.arionStallionImage {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    border: 2px solid #dee2e6;
    object-fit: contain;
}

.arionStudLogo {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: contain;
    display: block;
}

/* ── Data rows ── */
.dataRow {
    background-color: var(--form-bg-color);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 0.8em 1em;
}

.dataRow-lt {
    background-color: var(--form-bg-color);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 0.8em 1em;
    box-shadow: var(--shadow-soft);
}

    .dataRow-lt.dataRow-sm {
        padding: 0.4em 0.8em 0.5em 0.8em !important;
    }

.dataRowLabel {
    font-size: 12px;
    color: var(--text-muted-lt);
}

.dataRowValue {
    font-size: 0.9rem;
    color: var(--text-muted-dk);
    font-weight: 500;
}

.text-muted-alt {
    color: var(--text-muted-alt) !important;
}

.hoverRow:hover {
    border: 1px solid rgb(206, 212, 218);
}

.hover-lt:hover {
    background-color: var(--slate-50);
    cursor: pointer;
}

.reportRow {
    cursor: pointer;
}

    .reportRow:hover {
        background-color: #f1f5fd;
    }

.selectableRow {
    cursor: pointer;
}

    .selectableRow:hover {
        background-color: #f1f5fd;
    }

.detail-row {
    background-color: var(--slate-100);
    padding: 10px 15px;
    border-radius: 8px;
}

.detail-row-label {
    font-weight: 400;
}

/* ── Skeleton loader ── */
.skel {
    border-radius: 5px;
    background: linear-gradient(90deg, var(--slate-300) 40%, var(--slate-100) 50%, var(--slate-300) 60%);
    background-size: 300%;
    background-position-x: 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    to {
        background-position-x: 0%;
    }
}

/* ── Animations ── */
.fade-in {
    animation: fadeIn 0.4s ease-in forwards;
}

.fade-out {
    animation: fadeOut 0.4s ease-in forwards;
}

.fadeInOutElem {
    display: inline;
    -webkit-animation: fadeinout 2s linear 1 forwards;
    animation: fadeinout 2s linear 1 forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fadeinout {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}

/* ── Pagination ── */
.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--background-color-secondary);
    border-color: var(--background-color-secondary);
}

.page-link {
    color: var(--background-color-secondary);
}

    .page-link:hover {
        color: var(--background-color-secondary);
    }

/* ── Tabs — arion-tabs ── */
.arion-tabs li.nav-item,
.arion-tabs li.nav-item .nav-link,
.arion-tabs li.nav-item .nav-link.active,
.arion-tabs li.nav-item .nav-link[aria-selected="true"] {
    all: unset !important;
    display: inline-block !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    font: inherit !important;
    color: inherit !important;
}

.arion-tabs .nav-tabs {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 0.5rem !important;
    border-bottom: none !important;
}

.arion-tabs li.nav-item .nav-link {
    padding: 0.5rem 1rem !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    color: #333 !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    border-bottom: 3px solid transparent !important;
}

    .arion-tabs li.nav-item .nav-link:hover,
    .arion-tabs li.nav-item .nav-link:focus {
        border-bottom: 3px solid #1d293d !important;
        color: #111 !important;
        background-color: #e2e8f0 !important;
        border-top-left-radius: 4px !important;
        border-top-right-radius: 4px !important;
    }

    .arion-tabs li.nav-item .nav-link.active,
    .arion-tabs li.nav-item .nav-link[aria-selected="true"] {
        padding: 0.5rem 1rem !important;
        background-color: transparent !important;
        color: #000 !important;
        border-bottom: 3px solid #1d293d !important;
        box-shadow: none !important;
        font-weight: 500 !important;
    }

/* ── Tabs — arion-subtabs ── */
.arion-subtabs li.nav-item,
.arion-subtabs li.nav-item .nav-link,
.arion-subtabs li.nav-item .nav-link.active,
.arion-subtabs li.nav-item .nav-link[aria-selected="true"] {
    all: unset !important;
    display: inline-block !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    font: inherit !important;
    color: inherit !important;
}

.arion-subtabs .nav-tabs {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 0.5rem !important;
    border-bottom: none !important;
}

.arion-subtabs li.nav-item .nav-link {
    padding: 0.5rem 1rem !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    color: #333 !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
    margin: 5px !important;
}

    .arion-subtabs li.nav-item .nav-link:hover,
    .arion-subtabs li.nav-item .nav-link:focus {
        color: #FFF !important;
        background-color: #1d293d !important;
        border-radius: 4px !important;
    }

    .arion-subtabs li.nav-item .nav-link.active,
    .arion-subtabs li.nav-item .nav-link[aria-selected="true"] {
        padding: 0.5rem 1rem !important;
        background-color: #1d293d !important;
        color: #FFF !important;
        box-shadow: none !important;
        font-weight: 500 !important;
        margin: 5px !important;
        font-size: 12px !important;
        border-radius: 4px !important;
    }

/* ── Arion table styles ── */
.arionRowStyle {
    border-radius: 5px;
    background-color: var(--form-bg-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.arionColTitleText {
    font-weight: 100;
    font-size: small;
    color: slategrey;
    letter-spacing: -0.1px;
}

.arionColBodyText {
    letter-spacing: -0.1px;
}

.arionColBodyTextFiltered {
    font-weight: 600;
    letter-spacing: -0.1px;
}

.arionScaledImage {
    max-width: 3em;
    height: auto;
    display: block;
}

.rowTruncateText {
    width: 100%;
    overflow: hidden;
    white-space: normal !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-bottom: 3px;
    margin-top: 3px;
}

/* ── Expanded stats row ── */
.expanded-stats {
    display: flex;
    flex-wrap: wrap;
    width: auto;
}

@media (max-width: 767.98px) {
    .expanded-stats {
        display: none;
    }

        .expanded-stats.show {
            display: flex;
        }
}

/* ── Responsive sticky panels ── */
@media (max-width: 768px) {
    .sticky-panel,
    .scrollable-content {
        position: static;
        height: auto;
        overflow: visible;
    }
}

/* ── Carousel ── */
button.carousel-control-prev {
    justify-content: start;
    width: fit-content;
}

button.carousel-control-next {
    justify-content: end;
    width: fit-content;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: var(--slate-500);
}

    ::-webkit-scrollbar-thumb:window-inactive {
        background: var(--slate-500);
    }

/* ── Blazor error boundary ── */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ── Landing page helpers ── */
.container-landing {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.content-landing {
    width: 65vw;
    height: 75vh;
}

.content-center {
    align-items: center;
    justify-self: center;
}

.landing-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
}

.landing-section-dark {
    color: white;
    background: var(--hero-gradient);
}

.img-slide {
    max-height: 45vh;
}

.caption {
    display: flex;
    padding: 1em;
    justify-content: center;
}

.borderBottom {
    border-bottom: 1px solid #62748e;
}

.icon-col {
    color: var(--text-muted-dk);
    align-items: self-end;
}

/* ── Icon colour ── */
.arion-icon path[stroke] {
    stroke: currentColor;
}

/* ============================================================
   z-index ladder (reference)
   navbar (fixed)          → 1040  (inline style on TopMenu)
   mobile menu (absolute)  → 1039
   chatbot modal           → 1050
   filter overlays/flyouts → 2000  ← beats everything
   ============================================================ */

/* ── Filter overlays and sale/race selector flyouts ──────────────
   These must sit above the fixed navbar (z-index: 1040) and the
   chatbot modal (z-index: 1050). Using 2000 gives clear headroom.
   ────────────────────────────────────────────────────────────── */
.filter-overlay,
.filter-overlay--flyout,
.flyout-backdrop--visible {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2000 !important;
}

/* Mobile flyout panel — full screen, no rounded corners */
@media (max-width: 575.98px) {
    .filter-overlay--flyout {
        align-items: flex-start;
        justify-content: stretch;
        animation: none;
    }

    .filter-panel--flyout {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh;
        max-height: 95vh;
        border-radius: 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
        animation: flyoutSlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@keyframes flyoutSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* pesky styles that wont stick */
.ahup-pnl {
    background: var(--slate-100);
    border-radius: 8px;
    border-color: var(--slate-800);
    border-width: 1px;
    border-style: solid;
    padding: 12px;
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
}

.usl-search-form__header {
    border-bottom: 1px solid var(--slate-400);
    margin-bottom: 1em;
}

.usl-search-form__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
}

.usl-search-form__subtitle {
    font-size: 0.8rem;
    color: var(--text-muted-lt);
    margin-top: 2px;
    padding-bottom: 1em;
}

/* ── Account manage cards ──────────────────────────────────── */
.manage-card {
    background: var(--form-bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    margin-bottom: 24px;
    overflow: hidden;
}

.manage-card-header {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 15px 24px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--form-bg-color);
}

.manage-card-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--slate-800);
    margin: 0;
}

.manage-card-body {
    padding: 26px 24px;
}

.manage-section-label {
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-600);
    margin: 0 0 12px;
}

/* ── Segmented control ──────────────────────────────────────
   Slate-track pill toggle. Standalone filter/binary choice, and
   the nested level of the .arion-tabs row. Source: ArionUI SegmentedControl.
   Markup: <div class="arion-segmented [arion-segmented--sm]">
             <button class="arion-segmented__option is-active">…</button>
             <button class="arion-segmented__option">…</button>
           </div>
   ──────────────────────────────────────────────────────────── */
.arion-segmented {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 100px;
}

.arion-segmented__option {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    margin: 0;
    padding: 6px 15px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--slate-500);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}

    .arion-segmented__option:not(.is-active):hover {
        color: var(--text-color);
    }

    .arion-segmented__option.is-active {
        color: var(--text-color);
        background: var(--form-bg-color);
        box-shadow: 0 1px 2px rgba(15, 23, 43, 0.12);
    }

    .arion-segmented__option:focus-visible {
        outline: 2px solid var(--blue-500);
        outline-offset: 1px;
    }

/* Compact size */
.arion-segmented--sm .arion-segmented__option {
    padding: 5px 12px;
    font-size: 12px;
}

/* ── Pill ───────────────────────────────────────────────────
   Small inline label: categories, product types, counts, status
   tags. Replaces the six near-identical per-component pills that
   had grown across MyPortfolios (.pr-category, .pdp-pill,
   .mpl-category-pill, .mfl-type-pill, .pbm-type-pill,
   .phr-report-count) plus their neutral-tag siblings.

   Markup: <span class="arion-pill arion-pill--info">Stallions</span>

   Variants map to the --badge-* token pairs so a pill and a status
   badge of the same meaning always agree in colour:
     --info   blue    categories, product types, counts (default)
     --muted  slate   neutral / "none yet" states
     --warn   amber   needs attention, ineligible, sale tags
     --ok     green   confirmed, added
     --alert  red     failed, blocked
   ──────────────────────────────────────────────────────────── */
.arion-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2em 0.6em;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
    /* Unmodified pills read as --info rather than rendering
       transparent if a modifier is ever omitted. */
    background: var(--badge-g3-bg);
    color: var(--badge-g3-fg);
}

    .arion-pill .bi {
        font-size: 11px;
        line-height: 1;
    }

.arion-pill--info {
    background: var(--badge-g3-bg);
    color: var(--badge-g3-fg);
}

.arion-pill--muted {
    background: var(--slate-100);
    color: var(--text-muted-dk);
}

.arion-pill--warn {
    background: var(--badge-g2-bg);
    color: var(--badge-g2-fg);
}

.arion-pill--ok {
    background: var(--badge-lr-bg);
    color: var(--badge-lr-fg);
}

.arion-pill--alert {
    background: var(--badge-g1-bg);
    color: var(--badge-g1-fg);
}

/* Compact size — for dense rows (rails, narrow columns). */
.arion-pill--sm {
    padding: 0.15em 0.5em;
    font-size: 10.5px;
}

/* ── Race-grade variants ─────────────────────────────────────
   The --badge-* token pairs are NAMED for race grades, and this
   is the case they were named for: G1 red, G2 amber, G3 blue,
   Listed green.

   Kept separate from the semantic variants above even though the
   colours currently coincide (--g1 and --alert are both red).
   They mean different things: --alert says "something failed",
   --g1 says "Group One". Aliasing them would mean a future
   retint of the error colour silently restaging every black-type
   pill on the site.

   Markup: <span class="arion-pill arion-pill--sm arion-pill--g1">G1w</span>
   ──────────────────────────────────────────────────────────── */
.arion-pill--g1 {
    background: var(--badge-g1-bg);
    color: var(--badge-g1-fg);
}

.arion-pill--g2 {
    background: var(--badge-g2-bg);
    color: var(--badge-g2-fg);
}

.arion-pill--g3 {
    background: var(--badge-g3-bg);
    color: var(--badge-g3-fg);
}

.arion-pill--lr {
    background: var(--badge-lr-bg);
    color: var(--badge-lr-fg);
}

/* ── Tabs (primary level) ────────────────────────────────────
   Signature 3px slate underline. Project default primary tab row;
   pair the nested level with .arion-segmented. Source: ArionUI NestedTabs.
   Markup: <div class="arion-tabs">
             <button class="arion-tab is-active">Label
               <span class="arion-tab__count">(12)</span></button>
             <button class="arion-tab">Label</button>
           </div>
   ──────────────────────────────────────────────────────────── */
.arion-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--slate-200);
}

.arion-tab {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    margin: 0 0 -1px 0;
    padding: 9px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--slate-500);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

    .arion-tab:not(.is-active):hover {
        color: var(--text-color);
    }

    .arion-tab.is-active {
        color: var(--text-color);
        border-bottom-color: var(--slate-800);
    }

    .arion-tab:focus-visible {
        outline: 2px solid var(--blue-500);
        outline-offset: 2px;
    }

.arion-tab__count {
    margin-left: 4px;
    font-weight: 400;
    font-size: 0.9em;
    color: var(--slate-400);
}
