/**
 * Goodwood Lyrical Data — front-end styles.
 *
 * All rules are scoped under .gw-strategy-details so nothing here can tie
 * with the theme's reset.css on specificity (hello-elementor lesson).
 *
 * Font/color are set EXPLICITLY, not inherited: the theme applies Gilroy +
 * #10223E to wpDataTables cells specifically, and plain inheritance delivers
 * -apple-system/#333 instead (verified on lyricaldev, 2026-08-05). Values
 * below are the computed styles of the wpDataTables details table (ID-50)
 * this replaces: gilroy 15px cells, 600-weight labels, 11px padding, white
 * cell background, 41.6%-wide label column, 13px/600 as-of line, navy 1px
 * row borders (bottom on every row, top on the first), #C9D9E5 row hover
 * with a 0.5s fade.
 */

.gw-strategy-details .gw-as-of {
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #10223e;
    margin: 0 0 12px;
}

.gw-strategy-details .gw-details-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.gw-strategy-details .gw-details-table tbody tr {
    border-bottom: 1px solid #10223e;
}

.gw-strategy-details .gw-details-table tbody tr:first-child {
    border-top: 1px solid #10223e;
}

.gw-strategy-details .gw-details-table th,
.gw-strategy-details .gw-details-table td {
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #10223e;
    background: #fff;
    padding: 11px;
    text-align: left;
    vertical-align: top;
    border: none;
    transition: background-color 0.5s;
}

.gw-strategy-details .gw-details-table tbody tr:hover th,
.gw-strategy-details .gw-details-table tbody tr:hover td {
    background-color: #c9d9e5;
}

.gw-strategy-details .gw-details-table th {
    font-weight: 600;
    width: 40%;
    white-space: nowrap;
}

.gw-strategy-details .gw-details-table td {
    font-weight: 400;
}

/* ── Top 10 Holdings table ──────────────────────────────────────────────
   Copied from the wpDataTables holdings tables (ID-37 family): navy header
   (gilroy 14px/700 white on #10223E, 7px 10px padding), gilroy 15px navy
   cells on TRANSPARENT background (unlike the details table's white),
   600-weight Name column, right-aligned numeric columns, navy 1px row
   borders, #C9D9E5 hover with 0.5s fade, 14px footnote. */

.gw-strategy-holdings .gw-as-of {
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #10223e;
    margin: 0 0 12px;
}

.gw-strategy-holdings .gw-holdings-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.gw-strategy-holdings .gw-holdings-table thead th {
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background-color: #10223e;
    padding: 7px 10px;
    text-align: left;
    border: none;
}

/* Column widths (set on the header cell; the column follows). Name takes the
   remaining space. */
.gw-strategy-holdings .gw-holdings-table thead th.gw-col-industry {
    width: 20%;
}

.gw-strategy-holdings .gw-holdings-table thead th.gw-col-mkt-cap {
    width: 15%;
}

.gw-strategy-holdings .gw-holdings-table tbody tr {
    border-bottom: 1px solid #10223e;
}

.gw-strategy-holdings .gw-holdings-table tbody td {
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #10223e;
    background: transparent;
    padding: 11px;
    text-align: left;
    vertical-align: top;
    border: none;
    transition: background-color 0.5s;
}

.gw-strategy-holdings .gw-holdings-table tbody td.gw-name {
    font-weight: 600;
}

.gw-strategy-holdings .gw-holdings-table thead th.gw-num,
.gw-strategy-holdings .gw-holdings-table tbody td.gw-num {
    text-align: right;
}

.gw-strategy-holdings .gw-holdings-table tbody tr:hover td {
    background-color: #c9d9e5;
}

.gw-strategy-holdings .gw-footnote {
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: #10223e;
    margin: 12px 0 0;
}

/* Mobile: the table scrolls horizontally inside its own wrapper instead of
   crushing 4-5 columns into the viewport. min-width keeps the columns
   readable; the page itself never scrolls sideways. The footnote and as-of
   line sit outside the scroll area. */
@media (max-width: 700px) {
    .gw-strategy-holdings .gw-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gw-strategy-holdings .gw-holdings-table {
        min-width: 560px;
    }

    .gw-strategy-holdings .gw-holdings-table thead th,
    .gw-strategy-holdings .gw-holdings-table tbody td {
        padding: 8px 6px;
    }
}

/* ── Strategy Vehicles table (main /strategies/ page) ───────────────────
   Same wpDataTables skin the holdings table replicates: navy header
   (gilroy 14px/700 white on #10223E), gilroy 15px navy cells on transparent
   background, navy 1px row borders, #C9D9E5 hover with 0.5s fade. Strategy
   Name cells are links (detail page or fund popup) in the 600 weight the
   name column carries elsewhere. */

.gw-strategy-vehicles .gw-as-of {
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #10223e;
    margin: 0 0 12px;
}

.gw-strategy-vehicles .gw-vehicles-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    /* Fixed layout + explicit column widths: the two stacked instances
       (U.S. / International-Global) must line up column-for-column, which
       auto layout can't guarantee — it sizes to each table's content. */
    table-layout: fixed;
}

.gw-strategy-vehicles .gw-vehicles-table thead th.gw-col-name {
    width: 40%;
}

.gw-strategy-vehicles .gw-vehicles-table thead th.gw-col-vehicle {
    width: 22%;
}

.gw-strategy-vehicles .gw-vehicles-table thead th.gw-col-asset-class {
    width: 20%;
}

.gw-strategy-vehicles .gw-vehicles-table thead th.gw-col-inception {
    width: 18%;
}

.gw-strategy-vehicles .gw-vehicles-table thead th {
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background-color: #10223e;
    padding: 7px 10px;
    text-align: left;
    border: none;
}

.gw-strategy-vehicles .gw-vehicles-table tbody tr {
    border-bottom: 1px solid #10223e;
}

.gw-strategy-vehicles .gw-vehicles-table tbody td {
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #10223e;
    background: transparent;
    padding: 11px;
    text-align: left;
    vertical-align: top;
    border: none;
    transition: background-color 0.5s;
}

.gw-strategy-vehicles .gw-vehicles-table tbody td.gw-name {
    font-weight: 600;
}

.gw-strategy-vehicles .gw-vehicles-table tbody td.gw-name a {
    color: #2196f3;
    text-decoration: none;
}

/* Inception Date header is click-to-sort (gw-vehicles-sort.js). Server
   renders oldest-first (aria-sort=ascending); the arrow tracks direction. */
.gw-strategy-vehicles .gw-vehicles-table thead th.gw-col-inception {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.gw-strategy-vehicles .gw-vehicles-table thead th.gw-col-inception::after {
    content: " \25B2"; /* ▲ */
    font-size: 11px;
}

.gw-strategy-vehicles .gw-vehicles-table thead th.gw-col-inception[aria-sort="descending"]::after {
    content: " \25BC"; /* ▼ */
}

.gw-strategy-vehicles .gw-vehicles-table tbody tr:hover td {
    background-color: #c9d9e5;
}

/* Mobile: horizontal scroll inside the wrapper, same as the holdings table —
   five columns never crush into the viewport. */
@media (max-width: 700px) {
    .gw-strategy-vehicles .gw-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gw-strategy-vehicles .gw-vehicles-table {
        min-width: 640px;
    }

    .gw-strategy-vehicles .gw-vehicles-table thead th,
    .gw-strategy-vehicles .gw-vehicles-table tbody td {
        padding: 8px 6px;
    }
}

/* ── Weightings donut chart ─────────────────────────────────────────────
   Chart.js doughnut replacing the Highcharts donut (600×600, 80% cutout,
   bottom legend). The holder caps the size and centers it; Chart.js
   handles responsive scaling inside. */

.gw-strategy-weightings .gw-as-of {
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #10223e;
    text-align: center;
    margin: 0 0 12px;
}

.gw-strategy-weightings {
    width: 100%;
}

/* CSS owns the chart geometry: an explicit square box that Chart.js fills
   (maintainAspectRatio:false). The canvas is absolutely positioned so its
   intrinsic size can never stretch the box — the aspect-ratio square is
   authoritative. 600px square matches the old Highcharts chart, WHEN the
   Elementor column allows it: this widget sizes to its container (the old
   Highcharts chart drew 600px regardless and overflowed narrow columns). */
/* The square holds ONLY the donut (legend is HTML below it), so 450px ≈
   the old Highcharts chart's ~422px plot area. */
.gw-strategy-weightings .gw-chart-holder {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.gw-strategy-weightings .gw-chart-holder > canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Server-rendered legend: stacked, one sector per line, circle dots.
   Click toggles the slice (wired in gw-weightings-chart.js). */
.gw-strategy-weightings .gw-chart-legend {
    list-style: none;
    width: fit-content;
    margin: 18px auto 0;
    padding: 0;
}

.gw-strategy-weightings .gw-chart-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 2;
    color: #10223e;
    cursor: pointer;
}

.gw-strategy-weightings .gw-chart-legend li.gw-off {
    opacity: 0.45;
}

.gw-strategy-weightings .gw-chart-legend .gw-dot {
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* ── Firm Timeline (/who-we-are/) ───────────────────────────────────────
   Replicates the Qi Addons horizontal alternating timeline it replaces:
   Gilroy 24/600 #00368F dates, 18/400 #333 text, 16px navy dots on a 2px
   navy line, 5 columns visible (2 on mobile), chevron arrows scroll the
   snap track (gw-timeline.js). First entry sits below the line. */

.gw-firm-timeline {
    position: relative;
    padding: 0 34px;
}

.gw-firm-timeline .gw-tl-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gw-firm-timeline .gw-tl-track::-webkit-scrollbar {
    display: none;
}

.gw-firm-timeline .gw-tl-item {
    flex: 0 0 20%;
    min-width: 20%;
    scroll-snap-align: start;
    /* Equal-height halves around a 2px line row: the line stays at the exact
       vertical center of every item no matter which half's content is taller,
       which is also what keeps the nav arrows (top: 50%) on the line. */
    display: grid;
    grid-template-rows: 1fr 2px 1fr;
}

.gw-firm-timeline .gw-tl-half {
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.gw-firm-timeline .gw-tl-top {
    justify-content: flex-end;
    padding: 0 16px 24px;
}

.gw-firm-timeline .gw-tl-bottom {
    justify-content: flex-start;
    padding: 24px 16px 0;
}

/* Content centers under/over each dot, matching the original. */
.gw-firm-timeline .gw-tl-half {
    text-align: center;
}

.gw-firm-timeline .gw-tl-mid {
    position: relative;
    height: 2px;
    background: #10223e;
}

.gw-firm-timeline .gw-tl-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10223e;
}

.gw-firm-timeline .gw-tl-date {
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #00368f;
    margin: 0 0 18px;
}

.gw-firm-timeline .gw-tl-text {
    font-family: gilroy, -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #333;
    margin: 0;
}

.gw-firm-timeline .gw-tl-nav,
.gw-firm-timeline .gw-tl-nav:hover,
.gw-firm-timeline .gw-tl-nav:focus,
.gw-firm-timeline .gw-tl-nav:active {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    /* Explicit on every state — the theme's global button styles otherwise
       paint their own (pink) hover background onto these. */
    background: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

.gw-firm-timeline .gw-tl-prev {
    left: 0;
}

.gw-firm-timeline .gw-tl-next {
    right: 0;
}

.gw-firm-timeline .gw-tl-nav[disabled] {
    opacity: 0.25;
    pointer-events: none;
}

.gw-firm-timeline .gw-tl-nav[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .gw-firm-timeline .gw-tl-item {
        flex-basis: 50%;
        min-width: 50%;
    }

    .gw-firm-timeline .gw-tl-half {
        min-height: 200px;
    }
}

/* Phones: one full item with a peek of the next — 2-up leaves the text only
   ~112px wide at 375px; 70% gives it ~170px and the peek signals scroll.
   Halved side padding tightens the gap between neighboring items. */
@media (max-width: 480px) {
    .gw-firm-timeline .gw-tl-item {
        flex-basis: 70%;
        min-width: 70%;
    }

    .gw-firm-timeline .gw-tl-top {
        padding: 0 8px 24px;
    }

    .gw-firm-timeline .gw-tl-bottom {
        padding: 24px 8px 0;
    }
}

.gw-strategy-details .gw-visually-hidden,
.gw-strategy-holdings .gw-visually-hidden,
.gw-strategy-vehicles .gw-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .gw-strategy-details .gw-details-table th {
        white-space: normal;
        width: auto;
    }

    .gw-strategy-details .gw-details-table th,
    .gw-strategy-details .gw-details-table td {
        padding: 8px 6px;
    }
}
