/* YC batch index — /yc-batches/ and /yc-batches/<id>/.
 *
 * The pages are built from the shared entity-profile chrome (hero, statline,
 * sections, origin columns, feat cards, ovr-tbl). This file holds only what
 * those styles do not cover: the coverage/method prose blocks and the extra
 * cells in the member table.
 *
 * Semantic tokens only — see docs/contracts/THEME-GUARDRAILS.md. The site is
 * light-only, so there is no dark block here.
 */

/* Coverage line under the hero statline. It is prose, not a quote, so it gets a
   tinted card rather than a left rule. */
.yc-coverage-note {
    margin: 1.5rem 0 0;
    padding: 0.9rem 1.1rem;
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-lighter);
    font-size: 0.875rem;
    line-height: 1.6;
}

.yc-note {
    margin: 1.25rem 0 0;
    color: var(--text-lighter);
    font-size: 0.875rem;
    line-height: 1.6;
}

.yc-method {
    max-width: 68ch;
}

.yc-method p,
.yc-method li {
    color: var(--text-lighter);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.yc-method p { margin: 0 0 0.9rem; }
.yc-method p:last-child { margin-bottom: 0; }

.yc-method ul {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
}

.yc-method li { margin-bottom: 0.5rem; }
.yc-method li strong { color: var(--white); font-weight: 600; }

.yc-method a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.yc-mono {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--text-light);
}

/* Member table. Seven columns need more room than the shared 640px floor; below
   that the wrapper scrolls, which is how every other wide table here behaves. */
.ovr-tbl.yc-members { min-width: 880px; }

.ovr-tbl.yc-members td { vertical-align: top; }

.ovr-tbl.yc-members .ovr-name {
    max-width: 22rem;
    color: var(--white);
    font-weight: 500;
}

.yc-oneliner {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-faint);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yc-flag-unicorn {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.4rem;
    border: 1px solid var(--border-mid);
    border-radius: 999px;
    background: var(--navy-lighter);
    color: var(--purple);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: 1px;
}

.yc-nomatch { color: var(--text-faint); }

@media (max-width: 760px) {
    .yc-coverage-note { font-size: 0.8125rem; }
    .ovr-tbl.yc-members .ovr-name { max-width: 15rem; }
}

/* --- hub aggregate charts (/yc-batches/) ---------------------------------- */

/* Every chart sits on its own card island, whatever the section background. */
.ycb-island {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}

.ycb-island + .ycb-island { margin-top: 16px; }

.ycb-chart-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.ycb-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border-mid);
    border-radius: 999px;
    background: var(--navy);
}

.ycb-toggle button {
    border: 0;
    background: transparent;
    padding: 5px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
}

.ycb-toggle button[aria-pressed="true"] {
    background: var(--white);
    color: var(--navy);
}

.ycb-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ycb-scroll > div,
.ycb-scroll > svg {
    width: max-content;
    min-width: 100%;
}

.ycb-scroll svg {
    display: block;
}

.ycb-grid { stroke: var(--border-light); }
.ycb-axisline { stroke: var(--border-mid); }

.ycb-axis-label {
    fill: var(--text-faint);
    font-size: 11px;
}

.ycb-peak-label {
    fill: var(--white);
    font-size: 12px;
    font-weight: 600;
}

.ycb-bar,
.ycb-seg {
    cursor: default;
}

.ycb-bar:hover,
.ycb-seg:hover {
    opacity: 0.82;
}

.ycb-bar:focus-visible,
.ycb-seg:focus-visible,
.ycb-hit:focus-visible,
.ycb-tm-link:focus-visible .ycb-tm-tile {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
}

.ycb-hit { fill: transparent; }
.ycb-hit:hover { fill: var(--border-light); }

.ycb-ai-line {
    fill: none;
    stroke: var(--white);
    stroke-width: 1.8;
}

.ycb-ai-area { fill: var(--border-light); }
.ycb-ai-dot { fill: var(--white); }

.ycb-ai-gapline {
    stroke: var(--border-mid);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
}

.ycb-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
}

.ycb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78125rem;
    color: var(--text-light);
}

.ycb-chip i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.ycb-strip-title {
    margin: 0 0 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
}

.ycb-strip-note {
    margin: 0 0 10px;
    font-size: 0.84375rem;
    color: var(--text-light);
}

.ycb-tip {
    position: absolute;
    z-index: 60;
    max-width: 280px;
    padding: 8px 11px;
    background: var(--surface-card);
    border: 1px solid var(--border-mid);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    font-size: 0.78125rem;
    line-height: 1.45;
    color: var(--text-light);
    pointer-events: none;
}

.ycb-tip strong { color: var(--white); }

.ycb-table { margin-top: 16px; }

.ycb-table summary {
    cursor: pointer;
    font-size: 0.84375rem;
    font-weight: 600;
    color: var(--text-light);
}

.ycb-table[open] summary { margin-bottom: 10px; }

.ycb-table .ovr-tbl-wrap {
    max-height: 420px;
    overflow: auto;
}

/* Doubly-classed so min-width beats `.ycb-scroll > svg`'s 100% — without it a
   phone squeezes the treemap to viewport width instead of scrolling it. */
.ycb-scroll > svg.ycb-treemap,
.ycb-treemap {
    min-width: 860px;
    height: auto;
}

.ycb-tm-tile {
    stroke: var(--navy);
    stroke-width: 2;
}

.ycb-tm-link:hover .ycb-tm-tile { filter: brightness(0.96); }

.ycb-tm-name {
    fill: var(--white);
    font-weight: 600;
}

.ycb-tm-value { fill: var(--text-light); }

/* dual-handle batch range */
.ycb-range {
    position: relative;
    height: 34px;
    max-width: 640px;
}

.ycb-range-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: var(--navy-lighter);
    border-radius: 2px;
}

.ycb-range-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--blue);
    border-radius: 2px;
}

.ycb-range input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.ycb-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid var(--blue);
    box-shadow: var(--shadow-sm);
    cursor: grab;
}

.ycb-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid var(--blue);
    cursor: grab;
}

.ycb-range-readout {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
}

.ycb-explore-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
    margin-bottom: 20px;
}

.ycb-stat .num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.ycb-stat .label {
    font-size: 0.78125rem;
    color: var(--text-faint);
}

.ycb-explore-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.ycb-col-title {
    margin: 0 0 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.ycb-split-row {
    display: grid;
    grid-template-columns: minmax(90px, 160px) 1fr 96px;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 0.8125rem;
}

.ycb-split-name {
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ycb-split-track {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: var(--navy-lighter);
    overflow: hidden;
}

.ycb-split-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #eb6834; /* theme-guardrail-allow: single-series mark color, same slot as the chart palette */
}

.ycb-split-val {
    color: var(--text-faint);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ycb-empty {
    font-size: 0.8125rem;
    color: var(--text-faint);
}

/* Demo Day dates */
.ycb-dd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.ycb-dd-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
}

.ycb-dd-cell.is-next { border-color: var(--blue); }

.ycb-dd-label {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
}

.ycb-dd-date {
    font-size: 0.84375rem;
    color: var(--text-light);
}

.ycb-dd-state {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.ycb-dd-cell.is-next .ycb-dd-state { color: var(--blue); }

.ycb-dd-copy {
    margin: 0 0 8px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-light);
    max-width: 760px;
}

.ycb-dd-links {
    margin: 0;
    font-size: 0.84375rem;
}

@media (max-width: 760px) {
    .ycb-dd-grid { grid-template-columns: repeat(2, 1fr); }
}

/* founder avatar stack on company cards */
.ycb-founders {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    min-width: 0;
}

.ycb-avatars {
    display: inline-flex;
    flex-shrink: 0;
}

.ycb-ava {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--surface-card);
    background: var(--navy-lighter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ycb-ava + .ycb-ava { margin-left: -9px; }

.ycb-ava b {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-light);
}

.ycb-ava.is-more {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-light);
}

.ycb-ava img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ycb-founder-names {
    font-size: 0.78125rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feat-card-desc {
    margin-top: 6px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 760px) {
    .ycb-island { padding: 14px; }
    .ycb-explore-cols { grid-template-columns: 1fr; gap: 20px; }
    .ycb-chart-head { justify-content: flex-start; }
    .ycb-split-row { grid-template-columns: minmax(80px, 110px) 1fr 90px; }
}

/* Dealroom simplified-sector small multiples */
.ycb-mini-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px 18px;
    margin-top: 14px;
}

/* min-width: 0 — a grid item's min-content width is otherwise set by the
   longest nowrap sector name, pushing the whole grid past a phone viewport. */
.ycb-mini { min-width: 0; }

.ycb-mini-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
    min-width: 0;
}

.ycb-mini-name {
    font-size: 0.71875rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ycb-mini-now {
    font-size: 0.71875rem;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}

.ycb-mini svg {
    display: block;
    width: 100%;
    height: 44px;
    border-bottom: 1px solid var(--border-light);
}

/* island footer logo — quiet on screen; exports compose their own */
.ycb-island-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.ycb-island-foot img {
    height: 16px;
    width: auto;
    opacity: 0.45;
}

/* tag chip row wraps; sits left like a filter row */
.ycb-chart-head.is-left { justify-content: flex-start; }
.ycb-toggle.ycb-tag-toggle { flex-wrap: wrap; border-radius: 18px; }

/* market map cards */
.ycb-maps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.ycb-map-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.ycb-map-card:hover { border-color: var(--border-mid); }

.ycb-map-thumb {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--navy-light);
}

.ycb-map-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.35;
}

.ycb-map-meta {
    font-size: 0.78125rem;
    color: var(--text-faint);
}

@media (max-width: 1000px) {
    .ycb-mini-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
    .ycb-mini-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* tag source + chip rows share the filter line; inactive chip set is swapped out */
.ycb-chart-head.is-left { gap: 10px; flex-wrap: wrap; }
.ycb-toggle.is-hidden { display: none; }

/* batch size: split-bar table in the power-law style — block bars filling the
   row height, value inside the bar when it fits, one color per column */
.ycb-st-row {
    display: grid;
    grid-template-columns: 52px 1fr 1fr 1fr 1fr;
    gap: 4px 16px;
    align-items: center;
    padding: 2px 0;
}

.ycb-st-head {
    padding-bottom: 8px;
    font-size: 0.71875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.ycb-st-label {
    font-size: 0.84375rem;
    font-weight: 600;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.ycb-st-cell {
    display: block;
    min-width: 0;
}

.ycb-st-track {
    position: relative;
    display: flex;
    align-items: center;
    height: 26px;
    background: var(--navy-light);
    border-radius: 4px;
}

.ycb-st-fill {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    border-radius: 4px;
    min-width: 2px;
}

.ycb-st-in {
    padding-left: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff; /* theme-guardrail-allow: label on a dark chart fill, both modes */
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ycb-st-out {
    padding-left: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ycb-st-fill.is-n { background: #eb6834; } /* theme-guardrail-allow: chart series colors, same slots as the validated palette */
.ycb-st-fill.is-raised { background: #2a78d6; } /* theme-guardrail-allow: chart series colors */
.ycb-st-fill.is-uni { background: #4a3aa7; } /* theme-guardrail-allow: chart series colors */
.ycb-st-fill.is-t100 { background: #0f766e; } /* theme-guardrail-allow: chart series colors */

.ycb-size-more { margin-top: 10px; }

.ycb-more-btn {
    border: 1px solid var(--border-mid);
    background: var(--navy);
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    cursor: pointer;
}

.ycb-more-btn:hover { border-color: var(--border-mid); color: var(--white); }

@media (max-width: 760px) {
    .ycb-st-row { grid-template-columns: 38px 1fr 1fr 1fr 1fr; gap: 4px 6px; }
    .ycb-st-track { height: 22px; }
    .ycb-st-in, .ycb-st-out { font-size: 0.65625rem; padding-left: 5px; }
    .ycb-st-head { font-size: 0.59375rem; letter-spacing: 0.02em; }
}
