/* ==========================================================================
   styles.css
   --------------------------------------------------------------------------
   Primary Frozen Ledger stylesheet for shared site chrome, rankings, team
   pages, content pages, and NHL History Guide visualizations.

   Contracts:
   - Many selectors are referenced by PHP templates and no-build JavaScript.
   - Do not rename table, filter, chart, glossary, drawer, or history-guide
     selectors without updating the corresponding PHP/JS contracts.
   - Bootstrap utility/grid classes are used in templates and should remain
     compatible with Bootstrap 5.3.x.
   ========================================================================== */

:root {
    --bs-font-sans-serif: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bs-body-font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.5;
    --bs-body-color: #111827;
    --bs-body-bg: #f5f5f5;
    --fli-page-top-gap: 2.5rem;
    --fli-section-gap: 3.5rem;
    --fli-post-hero-gap: 2.5rem;
}


/* ==========================================================================
   Table Sorting
   --------------------------------------------------------------------------
   Sort affordances shared by homepage and team tables. These classes are
   toggled by TableManager and should remain aligned with sortable headers.
   ========================================================================== */

.sortable {
    cursor: pointer;
}

.sort-arrow {
    display: inline-block;
    width: 1em;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

.sort-arrow.inactive {
    color: #9ca3af;
}

.sort-arrow.active {
    color: white;
}

/* ==========================================================================
   Rankings and Team Tables
   --------------------------------------------------------------------------
   Shared table spacing, hover, cell, and logo presentation for generated
   rankings and team season rows. Selectors are coupled to PHP and JS renderers.
   ========================================================================== */

.fli-rankings-table,
.fli-team-season-table {
    --bs-table-bg: transparent;
    --bs-table-border-color: #e5e7eb;
    --bs-table-color: #111827;
    --bs-table-hover-bg: #f3f4f6;
    --bs-table-hover-color: inherit;
    --bs-table-cell-padding-x: 1rem;
    --bs-table-cell-padding-y: 1rem;
    border-color: #e5e7eb;
}

.fli-rankings-table.table > :not(caption) > * > *,
.fli-team-season-table.table > :not(caption) > * > * {
    padding: 0;
}

.fli-rankings-table > thead > tr > .fli-table-head-cell,
.fli-team-season-table > thead > tr > .fli-table-head-cell {
    padding: 0.75rem 1.25rem;
}

.fli-rankings-table > tbody > tr > .fli-rankings-cell,
.fli-team-season-table > tbody > tr > .fli-team-season-cell {
    padding: 1rem 1.25rem;
}

@media (min-width: 768px) {
    .fli-rankings-table > thead > tr > .fli-table-head-cell,
    .fli-team-season-table > thead > tr > .fli-table-head-cell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .fli-rankings-table > tbody > tr > .fli-rankings-cell,
    .fli-team-season-table > tbody > tr > .fli-team-season-cell {
        padding: 1rem 1.5rem;
    }
}


.fli-rankings-table > thead.table-dark > tr > th,
.fli-team-season-table > thead.table-dark > tr > th {
    background-color: #000000;
    border-bottom: 0;
    color: #ffffff;
}

.fli-rankings-table > tbody > tr > *,
.fli-team-season-table > tbody > tr > * {
    background-color: transparent;
    border-bottom: 0;
    border-top: 0;
    color: inherit;
}

.fli-rankings-table > tbody > tr + tr > *,
.fli-team-season-table > tbody > tr + tr > * {
    border-top: 1px solid #e5e7eb;
}

.fli-rankings-table tbody tr,
.fli-team-season-table tbody tr {
    transition: all 0.2s ease;
}

.fli-rankings-table tbody tr:hover,
.fli-team-season-table tbody tr:hover {
    cursor: default;
    transform: translateY(-2px);
}

.fli-rankings-table.table-hover > tbody > tr:hover > *,
.fli-team-season-table.table-hover > tbody > tr:hover > * {
    background-color: #f3f4f6;
    color: inherit;
}

/* ==========================================================================
   Global Page Foundation
   --------------------------------------------------------------------------
   Base body, link, and page-shell rules used across root templates.
   ========================================================================== */

html {
    -webkit-text-size-adjust: 100%;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body,
.fli-page-body {
    background-color: #f5f5f5;
    color: #111827;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

small,
.small {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* ==========================================================================
   Homepage Filter Bar
   --------------------------------------------------------------------------
   Filter controls rendered by rankingsPageController.js. IDs, data attributes,
   and state classes must stay synchronized with the JavaScript controller.
   ========================================================================== */

.fli-home-filter-ui {
    position: relative;
}

.fli-filter-shell {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
}

.fli-table-empty-cell {
    color: #4b5563;
    padding: 3rem 1.5rem !important;
}

.fli-loading-inline {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.fli-inline-strong {
    color: inherit;
    font-weight: 500;
}

.fli-inline-muted {
    color: #4b5563;
}

.fli-rank-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.fli-rank-change--up {
    color: #22c55e;
}

.fli-rank-change--down {
    color: #ef4444;
}

.fli-status-badge {
    align-items: center;
    border-radius: 0.375rem;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1rem;
    padding: 0.25rem 0.5rem;
    text-transform: none;
}

.fli-status-badge--defunct {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.2);
}

.fli-status-badge--best {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.fli-table-action-link {
    min-width: 0;
}

.fli-table-action-link.btn,
.fli-table-action-link.btn.btn-sm {
    align-items: center;
    border-radius: 0.375rem;
    box-shadow: none;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 500;
    justify-content: center;
    line-height: 1.5rem;
    min-height: 0;
    min-width: 0;
    padding: 0.5rem 1rem;
}

.fli-table-action-link.btn.btn-dark {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.fli-table-action-link.btn.btn-secondary {
    background-color: #d1d5db;
    border-color: #d1d5db;
    color: #4b5563;
    opacity: 1;
}

.fli-table-action-link.btn:hover,
.fli-table-action-link.btn:focus-visible {
    box-shadow: none;
    opacity: 0.9;
    transform: none;
}

.fli-table-action-link.btn.btn-secondary:hover,
.fli-table-action-link.btn.btn-secondary:focus-visible {
    background-color: #d1d5db;
    border-color: #d1d5db;
    color: #4b5563;
    opacity: 1;
}

.fli-chart-shell {
    background: #f9fafb;
}

.fli-home-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 20;
}

.fli-home-filter-group {
    min-width: 0;
    position: relative;
    width: 100%;
}

.fli-home-filter-trigger {
    justify-content: center;
    width: 100%;
}

.fli-home-filter-trigger.is-open {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgb(17 24 39 / 0.08);
}

.fli-home-filter-trigger-count {
    align-items: center;
    background: rgb(17 24 39 / 0.12);
    border-radius: 9999px;
    color: inherit;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-width: 1.5rem;
    padding: 0.25rem 0.45rem;
}

.fli-home-filter-trigger.is-active .fli-home-filter-trigger-count {
    background: rgb(255 255 255 / 0.18);
}

.fli-home-filter-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 18px 30px -24px rgb(0 0 0 / 0.4);
    margin-top: 0.5rem;
    overflow: hidden;
    width: 100%;
}

.fli-home-filter-panel-head {
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.875rem 1rem 0.75rem;
}

.fli-home-filter-panel-title {
    color: #111827;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
}

.fli-home-filter-panel-clear,
.fli-home-filter-clear-all {
    background: none;
    border: 0;
    color: #111827;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0;
}

.fli-home-filter-panel-clear:hover,
.fli-home-filter-panel-clear:focus-visible,
.fli-home-filter-clear-all:hover,
.fli-home-filter-clear-all:focus-visible {
    color: #1f2937;
    outline: none;
    text-decoration: underline;
}

.fli-home-filter-options {
    display: grid;
    gap: 0.125rem;
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.5rem;
}

.fli-home-filter-option {
    align-items: center;
    border-radius: 0.75rem;
    cursor: pointer;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.625rem 0.75rem;
}

.fli-home-filter-option:hover,
.fli-home-filter-option:focus-within {
    background: #f9fafb;
}

.fli-home-filter-option input {
    accent-color: #111827;
    margin: 0;
}

.fli-home-filter-option-label {
    color: #111827;
    font-size: 0.9375rem;
    line-height: 1.4;
    min-width: 0;
}

.fli-home-filter-option-count {
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: right;
}

.fli-home-filter-empty {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 0.75rem;
}

.fli-home-filter-active {
    margin-top: 0.875rem;
}

.fli-home-filter-active-row {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fli-home-filter-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.fli-home-active-chip {
    max-width: 100%;
}

.fli-home-active-chip .fli-chip-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fli-home-active-chip-remove {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

@media (min-width: 640px) {
    .fli-home-filter-group {
        flex: 0 1 auto;
        width: auto;
    }

    .fli-home-filter-trigger {
        width: auto;
    }

    .fli-home-filter-panel {
        left: 0;
        margin-top: 0.625rem;
        min-width: 18rem;
        position: absolute;
        top: 100%;
        width: max-content;
        max-width: min(24rem, calc(100vw - 4rem));
    }

    .fli-home-filter-active-row {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ==========================================================================
   Responsive Table Adjustments
   --------------------------------------------------------------------------
   Bootstrap-aligned table spacing changes for tablet and desktop viewports.
   ========================================================================== */

@media (min-width: 768px) {
    #table-container {
        max-height: auto;
        overflow-y: auto;
    }
    thead {
        position: sticky;
        top: 0;
        z-index: 10;
    }
    #chart-container {
        height: 500px !important;
    }
}


/* ==========================================================================
   Supplemental Content Sections
   --------------------------------------------------------------------------
   Shared card, narrative, FAQ, and content-shell styles used by generated and
   registry-driven sections across informational pages.
   ========================================================================== */

.fli-content-section {
    margin-top: var(--fli-section-gap);
}

.fli-page-shell {
    margin-left: auto;
    margin-right: auto;
    max-width: 80rem;
    padding-bottom: 2rem;
    padding-top: var(--fli-page-top-gap);
}

.fli-home-hero + .fli-content-section,
.fli-home-hero + .fli-featured-teams-section,
.fli-team-hero-shell + .fli-content-section {
    margin-top: var(--fli-post-hero-gap);
}

.fli-content-block > * + * {
    margin-top: 1rem;
}

.fli-content-block.row > * + * {
    margin-top: 0;
}

.fli-content-block > .fli-faq {
    margin-top: 1.5rem;
}

.fli-content-narrow {
    margin-left: auto;
    margin-right: auto;
    max-width: 56rem;
}

.fli-content-inner {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    padding: 1.5rem;
}

.fli-content-inline {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.fli-content-block > * + * {
    margin-top: 1rem;
}

.fli-section-title {
    color: #111827;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.fli-section-lead,
.fli-section-text,
.fli-card-text,
.fli-faq p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.fli-card-grid {
    margin-top: 1.25rem;
}

.fli-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 8px 20px -18px rgb(0 0 0 / 0.4);
}

.fli-card-title {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.fli-card-value {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.fli-kpi-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding-left: 1.25rem;
    color: #374151;
}

.fli-kpi-list li {
    line-height: 1.6;
}

.fli-faq {
    display: grid;
    gap: 0.75rem;
}

.fli-faq details {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 0.875rem 1rem;
}

.fli-faq summary {
    align-items: center;
    color: #111827;
    cursor: pointer;
    display: flex;
    font-weight: 600;
    justify-content: space-between;
    gap: 1rem;
    line-height: 1.5;
    list-style: none;
}

.fli-faq summary::after {
    color: #6b7280;
    content: '+';
    flex-shrink: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

.fli-faq summary::-webkit-details-marker {
    display: none;
}

.fli-faq details[open] summary {
    margin-bottom: 0.75rem;
}

.fli-faq details[open] summary::after {
    content: '−';
}

.fli-top-seasons-list {
    display: grid;
    gap: 0.875rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.fli-top-season-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.125rem;
}

.fli-top-season-rank {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fli-top-season-name {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.fli-top-season-score {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .fli-content-inner {
        padding: 2rem;
    }

}

/* End Supplemental Content Sections */

/* ==========================================================================
   Share Controls
   --------------------------------------------------------------------------
   Shared visual states for PHP-rendered share buttons bound by page controllers.
   ========================================================================== */

.share-x,
.share-email {
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.share-x:hover,
.share-x:focus-visible {
    background-color: #27272a;
    box-shadow: 0 10px 20px -12px rgb(0 0 0 / 0.45);
    transform: translateY(-1px);
}

.share-email:hover,
.share-email:focus-visible {
    background-color: #eff6ff;
    box-shadow: 0 10px 20px -12px rgb(29 78 216 / 0.25);
    transform: translateY(-1px);
}

.share-x:focus-visible,
.share-email:focus-visible {
    outline: none;
}

/* ==========================================================================
   Team Analysis Controls
   --------------------------------------------------------------------------
   Relocation, era, score-scope, chart, and rollup styles controlled by
   teamPageController.js. Keep selector names stable with the controller.
   ========================================================================== */

.fli-analysis-controls {
    align-items: start;
    display: grid;
    gap: 1rem 1.5rem;
    grid-auto-rows: max-content;
    grid-template-columns: minmax(0, 1fr) auto;
}

.fli-analysis-control-group {
    align-content: start;
    align-items: start;
    align-self: start;
    display: grid;
    gap: 0.5rem;
    grid-template-rows: auto auto;
    min-width: 0;
}

.fli-analysis-control-group-history {
    min-width: 0;
}

.fli-analysis-control-group-cumulative {
    align-content: start;
    align-items: start;
    align-self: start;
    justify-self: start;
    min-width: 0;
}

.fli-analysis-control-group-cumulative .fli-segmented-control {
    align-self: start;
    margin-top: 0.25rem;
}

.fli-analysis-label {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.fli-chip-row {
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.625rem;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 0.25rem;
    padding-bottom: 0.375rem;
    scrollbar-width: thin;
}

.fli-chip {
    align-items: stretch;
    appearance: none;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.625rem 0.875rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
	text-decoration: none;
}

.fli-chip:hover,
.fli-chip:focus-visible {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgb(17 24 39 / 0.08);
    outline: none;
}

.fli-chip.is-active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.fli-chip-content {
    align-items: center;
    align-self: stretch;
    display: inline-flex;
    gap: 0.5rem;
    line-height: 1;
    min-height: 1.25rem;
}

.fli-chip-logo-wrap {
    align-items: center;
    align-self: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 1.25rem;
    justify-content: center;
    min-height: 1.25rem;
}

.fli-chip-logo {
    display: block;
    flex: 0 0 auto;
    height: 1rem;
    object-fit: contain;
    width: 1rem;
}

.fli-chip.is-active .fli-chip-logo {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.85));
}

.fli-chip-label {
    align-items: center;
    align-self: center;
    display: inline-flex;
    line-height: 1;
    min-height: 1.25rem;
}

.fli-franchise-identity-row,
.fli-home-table-team,
.fli-lineage-identity {
    display: inline-flex;
    gap: 0.75rem;
    min-width: 0;
}

.fli-team-hero-identity {
    align-items: flex-start;
}

.fli-franchise-logo-wrap {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.fli-franchise-logo {
    display: block;
    height: 1.5rem;
    object-fit: contain;
    width: 1.5rem;
}

.fli-franchise-logo-wrap-lg {
    height: 1.75rem;
    width: 1.75rem;
}

.fli-franchise-logo-lg {
    height: 1.75rem;
    width: 1.75rem;
}

.fli-franchise-logo-wrap-hero {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 12px 28px -22px rgb(0 0 0 / 0.5);
    height: 5rem;
    margin-top: 0.25rem;
    padding: 0.5rem;
    width: 5rem;
}

.fli-franchise-logo-hero {
    height: 4rem;
    width: 4rem;
}

.fli-home-table-logo-wrap,
.fli-lineage-logo-wrap {
    height: 1.5rem;
    width: 1.5rem;
}

.fli-home-table-logo,
.fli-lineage-logo {
    height: 1.5rem;
    width: 1.5rem;
}

.fli-home-table-team span:last-child {
    min-width: 0;
}

.fli-table-head-cell {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding-left: 1rem;
    padding-right: 1rem;
    text-transform: uppercase;
}

.fli-table-head-cell-compact {
    padding-bottom: 0.65rem;
    padding-top: 0.65rem;
}

.fli-rankings-cell {
    padding: 1rem;
    vertical-align: middle;
}

.fli-rankings-cell--rank {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
}

.fli-rankings-cell--franchise {
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
}

.fli-rankings-cell--score {
    color: #000000;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
}

.fli-rankings-cell--average {
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.fli-rankings-cell--best {
    color: #000000;
    font-size: 0.875rem;
}

.fli-rankings-cell--action {
    text-align: center;
}

.fli-team-season-cell {
    padding: 1rem;
    vertical-align: middle;
}

.fli-team-season-cell--index,
.fli-team-season-cell--cup {
    text-align: center;
}

.fli-team-season-cell--season {
    text-align: left;
    white-space: nowrap;
}

.fli-team-season-cell--cumulative,
.fli-team-season-cell--total,
.fli-team-season-cell--metric {
    text-align: right;
}

.fli-team-season-cell--index,
.fli-team-season-cell--season,
.fli-team-season-cell--cumulative {
    color: #000000;
    font-weight: 500;
}

.fli-team-season-cell--total {
    color: #000000;
    font-weight: 700;
}

.fli-score-default {
    color: #000000;
}

.fli-score-strong {
    color: #000000;
}

.fli-score-muted {
    color: #9ca3af;
}

.fli-segmented-control {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    gap: 0.5rem;
    max-width: 100%;
    padding: 0.25rem;
    width: fit-content;
}

.fli-chip-segment {
    border-color: transparent;
    box-shadow: none;
}

.fli-analysis-helper {
    color: #4b5563;
    display: grid;
    gap: 0.375rem;
    margin-top: 1rem;
}

.fli-analysis-summary .fli-analysis-helper {
    margin-top: 0;
}

.fli-analysis-helper p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.fli-analysis-rollups {
    margin-top: 1.25rem;
}

.fli-analysis-rollups.is-static {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.fli-analysis-rollups.is-rail {
    display: block;
}

.fli-rollup-rail-shell {
    display: block;
}

.fli-rollup-rail-viewport {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.fli-rollup-rail-track {
    display: flex;
    gap: 1rem;
}

.fli-rollup-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 8px 20px -18px rgb(0 0 0 / 0.4);
    padding: 1.25rem;
}

.fli-rollup-rail-card {
    flex: 0 0 calc(100% - 3.5rem);
    max-width: calc(100% - 3.5rem);
    scroll-snap-align: start;
}

.fli-rollup-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.fli-rollup-title-group {
    flex: 1 1 auto;
    min-width: 0;
}

.fli-rollup-title-row {
    align-items: center;
    display: flex;
    gap: 0.625rem;
    min-width: 0;
}

.fli-rollup-title-logo {
    display: block;
    flex: 0 0 auto;
    height: 1.625rem;
    object-fit: contain;
    width: 1.625rem;
}

.fli-rollup-title {
    color: #111827;
    flex: 1 1 auto;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    min-width: 0;
}

.fli-rollup-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.fli-rollup-badge {
    background: #f3f4f6;
    border-radius: 9999px;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.625rem;
    white-space: nowrap;
}

.fli-rollup-badge.is-current {
    background: rgb(22 163 74 / 0.1);
    color: #166534;
}

.fli-rollup-metric-label {
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-top: 1rem;
    text-transform: uppercase;
}

.fli-rollup-metric-value {
    color: #111827;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0.25rem;
}

.fli-rollup-kpis {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    margin: 1rem 0 0;
}

.fli-rollup-kpis > div {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 0.875rem 1rem;
}

.fli-rollup-kpis dt {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.fli-rollup-kpis dd {
    color: #111827;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0.375rem 0 0;
}

@media (max-width: 767px) {
    .fli-analysis-controls {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 640px) {
    .fli-rollup-rail-card {
        flex-basis: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
}

@media (min-width: 768px) {
    .fli-analysis-rollups.is-static {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fli-analysis-rollups.is-static.is-single-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .fli-rollup-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ==========================================================================
   Site Header and Footer
   --------------------------------------------------------------------------
   Shared navigation, search, Bootstrap offcanvas drawer, footer, and team-link
   styles rendered by FLIHelper::renderGlobalHeader/renderStructuredFooter.
   ========================================================================== */

.fli-site-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 40;
}

.fli-site-header-inner {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 auto;
    max-width: 80rem;
    padding: 0.9rem 1rem;
}

.fli-site-brand {
    align-items: center;
    color: #111827;
    display: inline-flex;
    font-weight: 700;
    gap: 0.75rem;
    min-width: 0;
    text-decoration: none;
}

.fli-site-brand-mark {
    align-items: center;
    background: #111827;
    border-radius: 0.875rem;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.85rem;
    height: 2rem;
    justify-content: center;
    letter-spacing: 0.02em;
    width: 2rem;
}

.fli-site-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.fli-site-brand-text {
    font-size: 1rem;
    line-height: 1;
}

.fli-site-brand-subtitle {
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
}

.fli-site-header-controls {
    display: none;
}

.fli-site-nav {
    align-items: center;
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.fli-site-nav a {
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.fli-site-nav a:hover,
.fli-site-nav a:focus-visible,
.fli-text-link:hover,
.fli-text-link:focus-visible {
    color: #111827;
    outline: none;
    text-decoration: underline;
}

.fli-site-search {
    display: grid;
    gap: 0.625rem;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
}

.fli-site-search-desktop {
    display: none;
}

.fli-site-search input,
.fli-team-finder-form input {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.875rem;
    color: #111827;
    min-width: 0;
    padding: 0.8rem 0.95rem;
}

.fli-site-search button,
.fli-primary-button,
.fli-secondary-button {
    align-items: center;
    border-radius: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
}

.fli-site-search button,
.fli-primary-button {
    background: #111827;
    border: 1px solid #111827;
    color: #ffffff;
}

.fli-secondary-button {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
}

.fli-primary-button:hover,
.fli-primary-button:focus-visible,
.fli-site-search button:hover,
.fli-site-search button:focus-visible,
.fli-secondary-button:hover,
.fli-secondary-button:focus-visible,
.fli-browse-tile:hover,
.fli-browse-tile:focus-visible,
.fli-related-card:hover,
.fli-related-card:focus-visible {
    box-shadow: 0 10px 20px -16px rgb(0 0 0 / 0.35);
    outline: none;
    transform: translateY(-1px);
}

.fli-site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 3rem;
    padding: 2.5rem 1rem 1.5rem;
}

.fli-site-footer-grid {
    margin: 0 auto;
    max-width: 80rem;
}

.fli-site-footer-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.fli-site-footer-about {
    display: grid;
    gap: 0.65rem;
}

.fli-site-footer-about-copy {
    color: #cbd5e1;
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
    max-width: 34rem;
}

.fli-site-footer-links {
    display: grid;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fli-site-footer-links a,
.fli-site-footer-links span {
    color: #cbd5e1;
    font-size: 0.9375rem;
    text-decoration: none;
}

.fli-site-footer-links a:hover,
.fli-site-footer-links a:focus-visible {
    color: #ffffff;
    outline: none;
    text-decoration: underline;
}

.fli-site-footer-teams {
    border-top: 1px solid rgb(255 255 255 / 0.12);
    display: grid;
    gap: 0.875rem;
    margin: 2rem auto 0;
    max-width: 80rem;
    padding-top: 1rem;
}

.fli-site-footer-team-list {
    column-gap: 1rem;
    display: grid;
    gap: 0.5rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.fli-site-footer-team-list a {
    color: #cbd5e1;
    display: inline-flex;
    font-size: 0.9375rem;
    min-width: 0;
    text-decoration: none;
}

.fli-site-footer-team-list a:hover,
.fli-site-footer-team-list a:focus-visible {
    color: #ffffff;
    outline: none;
    text-decoration: underline;
}

.fli-site-footer-meta {
    border-top: 1px solid rgb(255 255 255 / 0.12);
    display: grid;
    gap: 0.5rem;
    margin: 2rem auto 0;
    max-width: 80rem;
    padding-top: 1rem;
}

.fli-site-footer-meta p {
    margin: 0;
}

/* ==========================================================================
   Homepage Shell
   --------------------------------------------------------------------------
   Hero, team finder, featured insights, FAQ preview, and homepage card styles
   for index.php. Several selectors are consumed by rankingsPageController.js.
   ========================================================================== */

.fli-home-hero,
.fli-team-hero-shell {
    margin-top: 0;
}

.fli-home-hero {
    padding: 0;
}

.fli-team-hero-shell {
    padding: 0;
}


.fli-home-hero-main {
    min-width: 0;
}

.fli-home-eyebrow {
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.fli-home-title {
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
}

.fli-home-copy {
    color: #4b5563;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 1rem 0 0;
    max-width: 46rem;
}

.fli-home-cta-row,
.fli-browse-link-row,
.fli-quick-link-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 1.25rem;
}

.fli-home-cta-row .fli-share-tools-hero {
    justify-content: flex-start;
}

.fli-hero-utility {
    margin-top: 1rem;
}

.fli-text-link {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.fli-lineage-example-card,
.fli-team-metric-card,
.fli-snapshot-card,
.fli-related-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 8px 18px -16px rgb(0 0 0 / 0.4);
    padding: 1.25rem;
}

.fli-home-side-card {
    align-self: start;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}


.fli-card-link {
    color: #111827;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 1rem 0 0;
}

.fli-side-card-title {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}


.fli-share-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
}

.fli-share-tools-hero {
    gap: 0.625rem;
    justify-content: flex-start;
}

.fli-share-button {
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    display: inline-flex;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.75rem 1rem;
}

.fli-share-button-hero {
    background: #ffffff;
    color: #111827;
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
}

.fli-share-button-icon {
    flex-shrink: 0;
    height: 1rem;
    width: 1rem;
}

.share-x {
    background: #111827;
    color: #ffffff;
}

.share-email {
    background: #ffffff;
    color: #1d4ed8;
}

.fli-share-button-hero.share-x,
.fli-share-button-hero.share-email {
    background: #ffffff;
    color: #111827;
}

.fli-share-button-hero.share-x:hover,
.fli-share-button-hero.share-x:focus-visible,
.fli-share-button-hero.share-email:hover,
.fli-share-button-hero.share-email:focus-visible {
    background: #f9fafb;
    box-shadow: 0 10px 20px -14px rgb(0 0 0 / 0.25);
}

.fli-featured-teams-section {
    margin-top: var(--fli-post-hero-gap);
}

.fli-featured-team-strip {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 8px 18px -16px rgb(0 0 0 / 0.4);
    padding: 1rem 1.25rem;
}

.fli-featured-team-strip .fli-section-title {
    font-size: 1.125rem;
}

.fli-featured-team-strip .fli-section-text,
.fli-featured-team-strip .fli-team-finder-block {
    margin-top: 0.5rem;
}

.fli-featured-team-strip .fli-quick-link-row {
    margin-top: 0;
}

/* Featured-team cards explain each rotating team slot without changing shared chip styles. */
.fli-featured-team-card-grid {
    margin-top: 0;
}

.fli-featured-team-card {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.875rem;
    color: #111827;
    display: flex;
    min-height: 4.5rem;
    padding: 0.75rem;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fli-featured-team-card:hover,
.fli-featured-team-card:focus-visible {
    border-color: #111827;
    box-shadow: 0 10px 22px -18px rgb(0 0 0 / 0.45);
    outline: none;
    transform: translateY(-1px);
}

.fli-featured-team-card-content {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
}

.fli-featured-team-logo-wrap {
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.fli-featured-team-logo {
    display: block;
    height: 1.45rem;
    object-fit: contain;
    width: 1.45rem;
}

.fli-featured-team-card-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.fli-featured-team-name {
    color: #111827;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
}

.fli-featured-team-label {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
}

.fli-team-finder-form {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 1.25rem;
}

.fli-team-finder-block {
    margin-top: 1.25rem;
}

.fli-rankings-helper {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.fli-rankings-helper.fli-chart-helper {
    margin-bottom: 1.25rem;
}

.fli-browse-grid .fli-card,
.fli-related-card,
.fli-browse-tile {
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fli-browse-tile {
    appearance: none;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.fli-browse-tile.is-selected {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgb(17 24 39 / 0.08);
}

/* ==========================================================================
   Team Page Shell
   --------------------------------------------------------------------------
   Team hero, metadata, chart, season table, insights, and FAQ styles for
   team.php. Chart/table selectors are controlled by teamPageController.js.
   ========================================================================== */

.fli-team-hero {
    display: grid;
    gap: 1.5rem;
}


.fli-team-hero-share {
    display: flex;
}

.fli-team-metric-grid,
.fli-snapshot-grid {
    margin-top: 1.5rem;
}

.fli-team-metric-label,
.fli-snapshot-label {
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.fli-team-metric-value,
.fli-snapshot-value {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.fli-team-metric-detail {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

.fli-snapshot-card.is-emphasis {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}


.fli-snapshot-history-intro {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0 0;
}

.fli-snapshot-history-list {
    display: grid;
    gap: 0.875rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.fli-snapshot-history-item {
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: space-between;
    padding: 0.875rem 1rem;
}

.fli-snapshot-history-item.is-current {
    border-color: #111827;
}

.fli-snapshot-history-identity {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
}

.fli-snapshot-history-logo-wrap {
    flex-shrink: 0;
    height: 2.5rem;
    width: 2.5rem;
}

.fli-snapshot-history-logo {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.fli-snapshot-history-name {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    min-width: 0;
}

.fli-snapshot-history-range {
    color: #6b7280;
    font-size: 0.9375rem;
}


.fli-analysis-table-block {
    margin-top: 1.5rem;
    padding-top: 0;
}

.fli-lineage-timeline {
    display: grid;
    gap: 0.875rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.fli-lineage-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: space-between;
    padding: 1rem 1.125rem;
}

.fli-lineage-item.is-current {
    border-color: #111827;
}

.fli-lineage-name {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    min-width: 0;
}

.fli-lineage-range {
    color: #6b7280;
    font-size: 0.9375rem;
}

.fli-related-card {
    color: inherit;
    display: block;
    text-decoration: none;
}

/* ==========================================================================
   Responsive Layout Adjustments
   --------------------------------------------------------------------------
   Cross-page breakpoint rules layered after base component sections.
   ========================================================================== */

@media (min-width: 768px) {
    .fli-table-head-cell {
        font-size: 0.875rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .fli-rankings-cell {
        padding: 1.25rem 1.5rem;
    }

    .fli-rankings-cell--rank,
    .fli-rankings-cell--franchise,
    .fli-rankings-cell--average {
        font-size: 1.125rem;
    }

    .fli-rankings-cell--score {
        font-size: 1.25rem;
    }

    .fli-team-season-cell {
        font-size: 1.125rem;
        padding: 1.25rem 1.5rem;
    }


    .fli-site-footer-team-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }


    .fli-team-finder-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }


    .fli-team-hero-share {
        justify-content: flex-end;
    }

    .fli-team-hero-share .fli-share-tools-hero {
        justify-content: flex-end;
    }


}

@media (min-width: 1024px) {
    :root {
        --fli-page-top-gap: 3.5rem;
        --fli-section-gap: 4.5rem;
        --fli-post-hero-gap: 3.5rem;
    }


    .fli-site-header-inner {
        align-items: center;
        column-gap: 1.5rem;
        gap: 0.75rem;
        grid-template-columns: auto minmax(0, 1fr);
        padding: 1rem 1.25rem;
    }

    .fli-site-brand {
        margin-right: clamp(1.75rem, 2.4vw, 2.75rem);
    }

    .fli-site-header-controls {
        align-items: center;
        display: flex;
        gap: 1rem;
        justify-content: flex-end;
        justify-self: end;
        min-width: 0;
        width: 100%;
    }

    .fli-site-nav {
        display: inline-flex;
        flex: 0 1 auto;
        flex-wrap: nowrap;
        gap: clamp(0.75rem, 0.95vw, 1rem);
        justify-content: flex-end;
        min-width: 0;
        white-space: nowrap;
    }

    .fli-site-search-desktop {
        display: grid;
        flex: 0 0 clamp(22rem, 26vw, 26rem);
        grid-column: auto;
        max-width: 26rem;
        min-width: 22rem;
        width: clamp(22rem, 26vw, 26rem);
    }

    .fli-site-search-desktop input {
        padding: 0.82rem 1rem;
    }

    .fli-site-search-desktop button {
        white-space: nowrap;
    }

    .fli-site-menu-toggle,
    .fli-site-drawer {
        display: none !important;
    }

}


.fli-site-nav-link.is-active,
.fli-site-drawer-link.is-active,
.fli-site-nav a[aria-current="page"] {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.fli-site-menu-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 0.22rem;
    grid-column: auto;
    justify-content: center;
    justify-self: end;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.65rem;
}

.fli-site-menu-toggle:focus-visible,
.fli-site-drawer-close:focus-visible,
.fli-site-drawer-link:focus-visible,
.fli-content-page-jump-nav a:focus-visible,
.fli-glossary-trigger:focus-visible,
.fli-glossary-popover-link:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.fli-site-menu-toggle-bar {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 1.1rem;
}

.fli-site-drawer.offcanvas {
    border-left: 0;
    box-shadow: 0 18px 40px -28px rgb(15 23 42 / 0.65);
    height: 100dvh;
    max-height: 100dvh;
    max-width: 100vw;
    min-height: 100vh;
    width: 100vw;
    z-index: 1055;
}

.fli-site-drawer .offcanvas-body {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.fli-site-drawer .offcanvas-header {
    align-items: start;
    border-bottom: 0;
    display: grid;
    gap: 0.875rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1rem 1rem 0;
}

.fli-site-drawer-body {
    display: grid;
    gap: 1rem;
    padding: 1rem 1rem 1.75rem;
}

.fli-site-drawer-title {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

.fli-site-drawer-subtitle {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.45;
}

.fli-site-drawer-close {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.25rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.fli-site-search-drawer {
    gap: 0.5rem;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto;
}

.fli-site-search-drawer input {
    border-radius: 0.75rem;
    font-size: 0.95rem;
    padding: 0.72rem 0.85rem;
}

.fli-site-search-drawer button {
    border-radius: 0.75rem;
    font-size: 0.95rem;
    min-height: 2.7rem;
    padding: 0.72rem 0.9rem;
    white-space: nowrap;
}

/* Mobile drawer search control normalization */
.fli-site-search-drawer {
    max-width: 100%;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 7rem;
}

.fli-site-search-drawer input,
.fli-site-search-drawer button {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    font-size: 1rem;
    height: 2.75rem;
    line-height: 1.2;
    max-height: 2.75rem;
    min-height: 2.75rem;
}

.fli-site-search-drawer input {
    min-width: 0;
    width: 100%;
}

.fli-site-search-drawer button {
    flex: 0 0 auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    white-space: nowrap;
    width: 7rem;
}

.fli-site-search-drawer input::-webkit-search-cancel-button,
.fli-site-search-drawer input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.fli-site-drawer-nav {
    display: grid;
    gap: 0.5rem;
}

.fli-site-drawer-link {
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 0;
    text-decoration: none;
}

.offcanvas-backdrop.show {
    background-color: rgba(15, 23, 42, 0.5);
    opacity: 1;
}

.fli-page-shell-content {
    max-width: 80rem;
}

.fli-content-page {
    padding-bottom: 3rem;
}

.fli-content-page--glossary {
    max-width: 80rem;
}

.fli-content-page-hero {
    margin-top: 0;
}

.fli-content-page-nav-shell {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.fli-content-inline.fli-content-block > .fli-section-title,
.fli-content-inline.fli-content-block > .fli-section-text {
    margin-left: auto;
    margin-right: auto;
    max-width: 56rem;
    text-align: center;
}

.fli-content-page .fli-content-inline.fli-content-block.row .fli-section-title,
.fli-content-page .fli-content-inline.fli-content-block.row .fli-section-text {
    margin-left: auto;
    margin-right: auto;
    max-width: 56rem;
    text-align: center;
}

.fli-content-page .fli-content-section .fli-section-title {
    margin-bottom: 1rem;
}

.fli-content-page--history .fli-content-section .fli-section-text,
.fli-content-page--history-guide .fli-content-section .fli-section-text {
    margin-bottom: 1rem;
}

.fli-rankings-heading-block {
    margin-left: auto;
    margin-right: auto;
    max-width: 56rem;
    text-align: center;
}

.fli-rankings-heading-block + .fli-rankings-shell {
    margin-top: 1.25rem;
}

.fli-content-page-hero-card {
    display: grid;
    gap: 1.25rem;
    justify-items: center;
    padding: 0;
}

.fli-content-page-hero-card > * + * {
    margin-top: 0;
}

.fli-content-page-hero-main {
    display: grid;
    gap: 1rem;
    justify-items: center;
    margin-inline: auto;
    max-width: 56rem;
    min-width: 0;
    text-align: center;
}

.fli-content-page-intro {
    margin: 0;
    max-width: 56rem;
    text-align: center;
}

.fli-breadcrumb {
    margin: 1rem auto 0;
    max-width: 56rem;
}

.fli-breadcrumb-list {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    gap: 0.4rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fli-breadcrumb-item {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
}

.fli-breadcrumb-item + .fli-breadcrumb-item::before {
    color: #94a3b8;
    content: "/";
}

.fli-breadcrumb-link {
    color: #334155;
    font-weight: 600;
    text-decoration: none;
}

.fli-breadcrumb-link:hover,
.fli-breadcrumb-link:focus-visible {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.fli-page-meta {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    gap: 0.5rem 0.9rem;
    justify-content: center;
    margin: 0;
}

.fli-page-meta-item {
    display: inline-flex;
    gap: 0.25rem;
}

.fli-content-page-copy {
    display: grid;
    gap: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 56rem;
}

.fli-content-page--history .fli-content-page-copy,
.fli-content-page--history-guide .fli-content-page-copy {
    max-width: none;
}

.fli-content-page-hero-nav {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.fli-content-page-jump-nav {
    margin: 0 auto;
}

.fli-content-page .fli-home-cta-row {
    justify-content: center;
    text-align: center;
}

.fli-content-page-jump-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fli-content-page-jump-nav a {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #111827;
    display: inline-flex;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    text-decoration: none;
}

.fli-content-page-jump-nav a:hover,
.fli-content-page-jump-nav a:focus-visible {
    background: #ffffff;
    box-shadow: 0 12px 24px -18px rgb(15 23 42 / 0.35);
    text-decoration: none;
}

.fli-content-page-list {
    color: #111827;
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding-left: 1.25rem;
}

.fli-content-page-list-numbered {
    list-style: decimal;
}

.fli-glossary-group {
    display: grid;
    gap: 1rem;
}

.fli-glossary-entry {
}

.fli-glossary-trigger {
    color: #111827;
    cursor: help;
    font-weight: 600;
    text-decoration: underline dotted;
    text-underline-offset: 0.16em;
}

.fli-table-glossary-term,
.fli-team-glossary-label,
.fli-team-table-glossary-label {
    color: inherit;
}

.fli-glossary-tooltip,
.fli-glossary-popover {
    background: #111827;
    border-radius: 0.875rem;
    box-shadow: 0 18px 40px -26px rgb(15 23 42 / 0.75);
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.45;
    max-width: min(20rem, calc(100vw - 1.5rem));
    padding: 0.75rem 0.9rem;
    position: absolute;
    z-index: 90;
}

.fli-glossary-popover-body {
    display: grid;
    gap: 0.5rem;
}

.fli-glossary-popover-title {
    font-size: 0.9375rem;
    font-weight: 700;
}

.fli-glossary-popover-link {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
}

.fli-home-teaser-cta {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}


.fli-content-page .fli-faq details {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
}

.fli-content-page .fli-faq details + details {
    margin-top: 0.85rem;
}

.fli-content-page .fli-faq summary {
    color: #111827;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.fli-content-page .fli-faq summary::-webkit-details-marker {
    display: none;
}

.fli-content-page .fli-faq details[open] {
    background: #ffffff;
}

.fli-home-faq-teaser-list {
    display: grid;
    gap: 1rem;
}

.fli-home-faq-teaser-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem 1.125rem;
}

.fli-home-faq-teaser-item h3 {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.fli-home-faq-teaser-item p {
    color: #4b5563;
    margin: 0;
}


.fli-content-card-grid--2,
.fli-content-card-grid--3 {
    margin-top: 0;
}

.fli-context-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem 1.125rem;
}

.fli-context-note .fli-card-title,
.fli-context-note .fli-card-text,
.fli-context-note .fli-section-text {
    margin: 0;
}

/* ==========================================================================
   NHL History Guide Visualizations
   --------------------------------------------------------------------------
   TimelineJS, ECharts, card, and bracket styles for generated history-guide
   sections. Container IDs are referenced by nhlHistoryGuide.js.
   ========================================================================== */

.fli-history-era-stack,
.fli-history-format-grid,
.fli-history-calendar-grid {
    display: grid;
    gap: 1.25rem;
}

.fli-history-era-card,
.fli-history-format-card,
.fli-history-chart-panel,
.fli-history-awards-group,
.fli-history-calendar-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
}

.fli-history-era-header,
.fli-history-chart-header {
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
}

.fli-history-era-header {
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
}

.fli-history-chart-header {
    align-items: center;
    margin-bottom: 1rem;
}

.fli-history-card-title {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}

.fli-history-era-summary,
.fli-history-helper-note,
.fli-history-empty-note,
.fli-history-row-note {
    color: #4b5563;
    font-size: 0.925rem;
    line-height: 1.55;
    margin: 0;
}

.fli-history-helper-note {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
}

.fli-history-row-note {
    display: block;
    margin-top: 0.25rem;
}

.fli-history-meta-list,
.fli-history-format-meta {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.fli-history-meta-list {
    flex: 0 0 13rem;
}

.fli-history-meta-list div,
.fli-history-format-meta div {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    padding: 0.75rem;
}

.fli-history-meta-list dt,
.fli-history-format-meta dt {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.fli-history-meta-list dd,
.fli-history-format-meta dd {
    color: #111827;
    font-size: 0.925rem;
    font-weight: 700;
    margin: 0;
}

.fli-history-era-team-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.fli-history-team-panel {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem;
}

.fli-history-team-panel h4 {
    color: #111827;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.fli-history-team-list,
.fli-history-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fli-history-team-list {
    display: grid;
    gap: 0.65rem;
}

.fli-history-team-marker {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.95rem;
    display: flex;
    gap: 0.75rem;
    padding: 0.7rem;
}

.fli-history-team-marker:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    outline: 0;
}

.fli-history-team-logo-wrap,
.fli-history-team-badge {
    align-items: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 2.15rem;
    height: 2.15rem;
    justify-content: center;
    overflow: hidden;
    width: 2.15rem;
}

.fli-history-team-logo {
    display: block;
    height: 1.65rem;
    object-fit: contain;
    width: 1.65rem;
}

.fli-history-team-badge {
    color: #111827;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.fli-history-team-copy {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.fli-history-team-name {
    color: #111827;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.fli-history-team-meta {
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    gap: 0.35rem 0.5rem;
    line-height: 1.35;
}

.fli-history-status-chip,
.fli-history-kicker {
    align-items: center;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: #3730a3;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 0.35rem 0.55rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.fli-history-format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fli-history-format-card {
    display: grid;
    gap: 1rem;
    grid-template-columns: 5rem minmax(0, 1fr);
}

.fli-history-format-visual {
    align-content: center;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    display: grid;
    gap: 0.4rem;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    min-height: 5rem;
    padding: 0.85rem;
}

.fli-history-format-visual span {
    background: #111827;
    border-radius: 999px;
    display: block;
    height: 0.65rem;
    width: 0.65rem;
}

.fli-history-format-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0.75rem 0;
}

.fli-history-chart {
    height: 420px;
    min-height: 320px;
    width: 100%;
}

.fli-history-table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
}

.fli-history-table {
    border-collapse: separate;
    border-spacing: 0;
    color: #111827;
    font-size: 0.9rem;
    min-width: 720px;
    width: 100%;
}

.fli-history-table th,
.fli-history-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
}

.fli-history-table th {
    background: #111827;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fli-history-table td {
    background: #ffffff;
}

.fli-history-awards-group + .fli-history-awards-group {
    margin-top: 1.25rem;
}

.fli-history-calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fli-history-calendar-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fli-history-event-list {
    display: grid;
    gap: 0.55rem;
}

.fli-history-event-list li {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.45;
    padding-left: 1.15rem;
    position: relative;
}

.fli-history-event-list li::before {
    background: #111827;
    border-radius: 999px;
    content: "";
    height: 0.35rem;
    left: 0;
    position: absolute;
    top: 0.55rem;
    width: 0.35rem;
}

@media (max-width: 991.98px) {
    .fli-history-era-header,
    .fli-history-chart-header,
    .fli-history-format-card {
        display: block;
    }

    .fli-history-meta-list {
        margin-top: 1rem;
    }

    .fli-history-era-team-grid,
    .fli-history-format-grid,
    .fli-history-calendar-grid {
        grid-template-columns: 1fr;
    }

    .fli-history-format-visual {
        margin-bottom: 1rem;
        min-height: 3.5rem;
    }
}

@media (max-width: 575.98px) {
    .fli-history-era-card,
    .fli-history-format-card,
    .fli-history-chart-panel,
    .fli-history-awards-group,
    .fli-history-calendar-card,
    .fli-history-team-panel {
        padding: 1rem;
    }

    .fli-history-chart {
        height: 340px;
    }

    .fli-history-team-marker {
        gap: 0.6rem;
    }

    .fli-history-table {
        font-size: 0.84rem;
        min-width: 640px;
    }
}



/* NHL History Guide TimelineJS panels: shared white-card shell for generated timelines. */
.fli-history-timelinejs-panel {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1.25rem;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 1.25rem;
}

.fli-history-timelinejs {
    background: #ffffff;
    min-height: 620px;
    width: 100%;
}

.fli-history-timelinejs .tl-timeline {
    font-family: inherit;
}

.fli-history-timelinejs .tl-headline {
    color: #0f172a;
}

.fli-history-timelinejs .tl-text p {
    color: #334155;
}

#fliHistoryErasTimeline .tl-timeaxis,
#fliHistoryErasTimeline .tl-timeaxis-content-container,
#fliHistoryErasTimeline .tl-timeaxis-major,
#fliHistoryErasTimeline .tl-timeaxis-minor,
#fliHistoryPlayoffTimeline .tl-timeaxis,
#fliHistoryPlayoffTimeline .tl-timeaxis-content-container,
#fliHistoryPlayoffTimeline .tl-timeaxis-major,
#fliHistoryPlayoffTimeline .tl-timeaxis-minor,
#fliHistoryAwardsTimeline .tl-timeaxis,
#fliHistoryAwardsTimeline .tl-timeaxis-content-container,
#fliHistoryAwardsTimeline .tl-timeaxis-major,
#fliHistoryAwardsTimeline .tl-timeaxis-minor {
    background: transparent !important;
    background-color: transparent !important;
    color: #e5e7eb !important;
}

#fliHistoryErasTimeline .tl-timeaxis .tl-timeaxis-tick,
#fliHistoryPlayoffTimeline .tl-timeaxis .tl-timeaxis-tick,
#fliHistoryAwardsTimeline .tl-timeaxis .tl-timeaxis-tick {
    color: #cbd5e1 !important;
}

#fliHistoryErasTimeline .tl-timeera,
#fliHistoryErasTimeline .tl-timeera *,
#fliHistoryErasTimeline .fli-timeline-boundary-era,
#fliHistoryErasTimeline .fli-timeline-boundary-era *,
#fliHistoryPlayoffTimeline .tl-timeera,
#fliHistoryPlayoffTimeline .tl-timeera *,
#fliHistoryPlayoffTimeline .fli-timeline-boundary-era,
#fliHistoryPlayoffTimeline .fli-timeline-boundary-era *,
#fliHistoryAwardsTimeline .tl-timeera,
#fliHistoryAwardsTimeline .tl-timeera *,
#fliHistoryAwardsTimeline .fli-timeline-boundary-era,
#fliHistoryAwardsTimeline .fli-timeline-boundary-era * {
    background: #020617 !important;
    background-color: #020617 !important;
    border-color: #1f2937 !important;
    box-shadow: none !important;
    color: #e5e7eb !important;
    opacity: 1 !important;
    pointer-events: none !important;
    visibility: visible !important;
}

#fliHistoryErasTimeline .tl-timeera h2,
#fliHistoryErasTimeline .tl-timeera h3,
#fliHistoryErasTimeline .tl-timeera .tl-headline,
#fliHistoryPlayoffTimeline .tl-timeera h2,
#fliHistoryPlayoffTimeline .tl-timeera h3,
#fliHistoryPlayoffTimeline .tl-timeera .tl-headline,
#fliHistoryAwardsTimeline .tl-timeera h2,
#fliHistoryAwardsTimeline .tl-timeera h3,
#fliHistoryAwardsTimeline .tl-timeera .tl-headline {
    color: #f8fafc !important;
}

#fliHistoryErasTimeline .fli-timeline-boundary-era .tl-headline,
#fliHistoryPlayoffTimeline .fli-timeline-boundary-era .tl-headline,
#fliHistoryAwardsTimeline .fli-timeline-boundary-era .tl-headline {
    color: transparent !important;
    opacity: 0 !important;
}

.fli-era-slide-body {
    display: grid;
    gap: 1rem;
}

.fli-era-slide-summary {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
}

.fli-era-slide-fli-note {
    background: rgba(248, 250, 252, 0.9);
    border-left: 3px solid #0f172a;
    border-radius: 0.75rem;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.55;
    padding: 0.75rem 0.85rem;
}

.fli-era-slide-teams {
    display: grid;
    gap: 0.75rem;
}

.fli-era-slide-kicker {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.fli-era-slide-empty {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
}

.fli-era-slide-team-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.fli-era-slide-team {
    align-items: center;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.85rem;
    color: #0f172a;
    display: flex;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.55rem 0.65rem;
}

.fli-era-slide-team img,
.fli-era-slide-team-badge {
    flex: 0 0 2rem;
    height: 2rem;
    width: 2rem;
}

.fli-era-slide-team img {
    object-fit: contain;
}

.fli-era-slide-team-badge {
    align-items: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.6rem;
    font-weight: 900;
    justify-content: center;
}

.fli-era-slide-team-meta {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.fli-era-slide-team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fli-era-slide-team-note {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
}



/* Fixed TimelineJS height for eras to preserve scroll and label readability. */

#fliHistoryErasTimeline {
    height: 910px;
    min-height: 910px;
}

#fliHistoryErasTimeline .tl-timeline {
    height: 910px !important;
}

#fliHistoryErasTimeline .tl-slider,
#fliHistoryErasTimeline .tl-slider-container-mask,
#fliHistoryErasTimeline .tl-slider-container {
    height: 600px !important;
}

#fliHistoryErasTimeline .tl-timenav,
#fliHistoryErasTimeline .tl-timenav-slider,
#fliHistoryErasTimeline .tl-timenav-slider-container-mask,
#fliHistoryErasTimeline .tl-timenav-slider-container {
    height: 220px !important;
    min-height: 220px !important;
}

/* Fixed TimelineJS height for playoff formats to preserve bracket readability. */
#fliHistoryPlayoffTimeline {
    height: 720px;
    min-height: 720px;
}

#fliHistoryPlayoffTimeline .tl-timeline {
    height: 720px !important;
}

#fliHistoryPlayoffTimeline .tl-slider,
#fliHistoryPlayoffTimeline .tl-slider-container-mask,
#fliHistoryPlayoffTimeline .tl-slider-container {
    height: 520px !important;
}

#fliHistoryPlayoffTimeline .tl-timenav,
#fliHistoryPlayoffTimeline .tl-timenav-slider,
#fliHistoryPlayoffTimeline .tl-timenav-slider-container-mask,
#fliHistoryPlayoffTimeline .tl-timenav-slider-container {
    height: 200px !important;
    min-height: 200px !important;
}

/* Fixed TimelineJS height for awards to preserve generated event spacing. */
#fliHistoryAwardsTimeline {
    height: 720px;
    min-height: 720px;
}

#fliHistoryAwardsTimeline .tl-timeline {
    height: 720px !important;
}

#fliHistoryAwardsTimeline .tl-slider,
#fliHistoryAwardsTimeline .tl-slider-container-mask,
#fliHistoryAwardsTimeline .tl-slider-container {
    height: 520px !important;
}

#fliHistoryAwardsTimeline .tl-timenav,
#fliHistoryAwardsTimeline .tl-timenav-slider,
#fliHistoryAwardsTimeline .tl-timenav-slider-container-mask,
#fliHistoryAwardsTimeline .tl-timenav-slider-container {
    height: 200px !important;
    min-height: 200px !important;
}

/* Shared timeline headers used by generated eras, playoff, and awards panels. */
.fli-history-timeline-header {
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.fli-history-playoff-timelinejs-panel,
.fli-history-awards-timelinejs-panel {
    margin-top: 1rem;
}

.fli-award-slide-body {
    display: grid;
    gap: 1rem;
}

.fli-award-slide-topline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fli-award-slide-status,
.fli-award-slide-category,
.fli-award-slide-date {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1;
    padding: 0.45rem 0.6rem;
    text-transform: uppercase;
}

.fli-award-slide-status {
    background: #0f172a;
    color: #ffffff;
}

.fli-award-slide-selection .fli-award-slide-status {
    background: #eef2ff;
    color: #3730a3;
}

.fli-award-slide-discontinued .fli-award-slide-status {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.fli-award-slide-category,
.fli-award-slide-date {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.fli-award-slide-summary {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.fli-award-slide-meta {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.fli-award-slide-meta div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.7rem 0.8rem;
}

.fli-award-slide-meta dt {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.fli-award-slide-meta dd {
    color: #111827;
    font-size: 0.82rem;
    line-height: 1.35;
    margin: 0;
}

.fli-award-slide-note {
    background: rgba(248, 250, 252, 0.9);
    border-left: 3px solid #0f172a;
    border-radius: 0.75rem;
    color: #334155;
    font-size: 0.84rem;
    line-height: 1.55;
    margin: 0;
    padding: 0.72rem 0.85rem;
}

.fli-award-slide-note strong {
    color: #0f172a;
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

@media (max-width: 575.98px) {
    .fli-award-slide-meta {
        grid-template-columns: 1fr;
    }
}

.fli-playoff-slide-body {
    display: grid;
    gap: 1rem;
}

.fli-playoff-slide-topline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fli-playoff-slide-period,
.fli-playoff-slide-badge,
.fli-playoff-slide-duration {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1;
    padding: 0.45rem 0.6rem;
    text-transform: uppercase;
}

.fli-playoff-slide-period {
    background: #0f172a;
    color: #ffffff;
}

.fli-playoff-slide-badge {
    background: #eef2ff;
    color: #3730a3;
}

.fli-playoff-slide-duration {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.fli-playoff-slide-summary {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.fli-playoff-slide-path {
    align-items: stretch;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr));
}

.fli-playoff-slide-step {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-radius: 0.95rem;
    display: grid;
    gap: 0.25rem;
    min-height: 4.25rem;
    padding: 0.72rem;
    position: relative;
}

.fli-playoff-slide-step + .fli-playoff-slide-step::before {
    background: #94a3b8;
    content: "";
    height: 1px;
    left: -0.7rem;
    position: absolute;
    top: 50%;
    width: 0.7rem;
}

.fli-playoff-slide-step-label {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.fli-playoff-slide-step strong {
    color: #0f172a;
    font-size: 0.84rem;
    line-height: 1.3;
}

.fli-playoff-slide-meta {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.fli-playoff-slide-meta div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.7rem 0.8rem;
}

.fli-playoff-slide-meta dt {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.fli-playoff-slide-meta dd {
    color: #111827;
    font-size: 0.82rem;
    line-height: 1.35;
    margin: 0;
}

.fli-playoff-slide-note,
.fli-history-playoff-note {
    background: rgba(248, 250, 252, 0.9);
    border-left: 3px solid #0f172a;
    border-radius: 0.75rem;
    color: #334155;
    font-size: 0.84rem;
    line-height: 1.55;
    margin: 0;
    padding: 0.72rem 0.85rem;
}

.fli-playoff-slide-note strong,
.fli-history-playoff-note strong {
    color: #0f172a;
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.fli-playoff-slide-exception .fli-playoff-slide-badge,
.fli-history-playoff-card-exception .fli-history-kicker {
    background: #fef2f2;
    color: #991b1b;
}

.fli-history-playoff-card-exception {
    border-color: #fecaca;
}

/* Playoff bracket cards rendered from generated historical playoff-format data. */
.fli-history-playoff-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fli-history-playoff-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.fli-history-playoff-card-header {
    align-items: flex-start;
    display: grid;
    gap: 0.45rem;
}

.fli-history-playoff-duration {
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fli-history-playoff-bracket {
    align-items: stretch;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    position: relative;
}

.fli-history-playoff-node {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-radius: 0.95rem;
    display: grid;
    gap: 0.25rem;
    min-height: 4.5rem;
    padding: 0.75rem;
    position: relative;
}

.fli-history-playoff-node + .fli-history-playoff-node::before {
    background: #94a3b8;
    content: "";
    height: 1px;
    left: -0.7rem;
    position: absolute;
    top: 50%;
    width: 0.7rem;
}

.fli-history-playoff-node-step {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.fli-history-playoff-node strong {
    color: #111827;
    font-size: 0.86rem;
    line-height: 1.3;
}

@media (max-width: 991.98px) {
    .fli-history-playoff-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .fli-history-playoff-card {
        padding: 1rem;
    }

    .fli-history-playoff-bracket {
        grid-template-columns: 1fr;
    }

    .fli-history-playoff-node + .fli-history-playoff-node::before {
        height: 0.7rem;
        left: 1.25rem;
        top: -0.7rem;
        width: 1px;
    }

    .fli-playoff-slide-path,
    .fli-playoff-slide-meta {
        grid-template-columns: 1fr;
    }

    .fli-playoff-slide-step + .fli-playoff-slide-step::before {
        height: 0.7rem;
        left: 1.25rem;
        top: -0.7rem;
        width: 1px;
    }
}

