/* ============================================================
   Education Expenses box (box review 2026-11-18, .automation/planning/
   boxesreview/addons/; ONE box of entry cards since 2026-11-19,
   .automation/planning/educationexpensesv2/): js/app/contentboxes/
   college/collegeBoxes.js. The ONE home of the box's look; the cards'
   band and outline are css/entry-cards.css, the add and delete buttons
   the One-Time Benefits ones (.otb-add, .otb-delete).

   - The summary card on top (the Annuity box's hero look): what the
     plan counts for the card, the "All N cards" chip, a line in words,
     and an amber line for years the plan does not count.
   - One label style: every row label is the slider rows' (Medium,
     the quiet label colour), sentence case, a grey sub-line under it
     where the row is about this plan.
   - "How it is paid" rests folded (CollapsibleSections); the Payment
     schedule is a light SegmentedControl over the stored radios.
   ============================================================ */

/* ---- Summary card ---------------------------------------------- */
.college-box .college-hero {
    margin: 0 0 6px;
    padding: 14px 16px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(var(--color-blue-6-rgb), 0.07) 0%, rgba(var(--color-blue-6-rgb), 0) 100%);
    border: 1px solid var(--ui-borders-borderLight);
}

.college-box .college-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 6px;
    row-gap: 4px;
}

.college-box .college-hero-amt {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--ui-text-linkText);
    font-variant-numeric: tabular-nums;
}

.college-box .college-hero-unit {
    font-size: var(--text-medium, 15px);
    font-weight: 600;
    color: var(--ui-text-secondaryText);
}

.college-box .college-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    margin-left: auto;
}

.college-box .college-hero-chips:empty {
    display: none;
}

.college-box .college-chip {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--color-gray-100);
    color: var(--ui-text-secondaryText);
    font-size: var(--text-xs, 12px);
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.college-box .college-hero-line {
    margin-top: 2px;
    font-size: var(--text-small, 14px);
    font-weight: 600;
    color: var(--ui-text-primaryText);
    font-variant-numeric: tabular-nums;
}

.college-box .college-hero-foot:empty {
    display: none;
}

/* Years the plan does not count (before today, after the plan's end). */
.college-box .college-hero-warn {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 5px 0 0;
    font-size: var(--text-small, 14px);
    font-weight: 600;
    line-height: 1.4;
    color: color-mix(in srgb, var(--color-semantic-warning) 70%, var(--ui-text-primaryText));
}

.college-box .college-hero-warn::before {
    content: '';
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-semantic-warning);
    transform: translateY(-1px);
}

/* ---- A card ------------------------------------------------------ */
/* Its own years the plan does not count, under its rows. */
.college-box .college-card-warns {
    margin: 0 0 4px;
}

.college-box .college-card-warns:empty {
    display: none;
}

/* A card What's Counted leaves out: still editable, a step back. */
.college-box .college-card.is-excluded .college-card-body {
    opacity: 0.6;
}

/* ---- Rows: one label style --------------------------------------- */

.college-box .college-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 4px 0;
}

.college-box .college-row-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 6px 0 8px;
}

.college-box .college-label {
    font-size: var(--text-medium, 15px);
    font-weight: 500;
    color: var(--ui-text-primaryText);
}

body.ui-quiet .college-box .college-label {
    font-weight: 400;
    color: var(--qb-label);
}

/* A grey line under a label, about this plan ("Chris's age, not the student's").
   A slider row's label is a flex row: it wraps, and the line takes its own. */
.college-box .slider-label:has(> .college-sub) {
    flex-wrap: wrap;
    align-items: center;
}

.college-box .college-sub {
    display: block;
    flex-basis: 100%;
    margin-top: 1px;
    font-size: var(--text-small, 14px);
    font-weight: 400;
    color: var(--ui-text-secondaryText);
    font-variant-numeric: tabular-nums;
    white-space: normal;
}

.college-box .college-name-input {
    flex: 0 1 210px;
    min-width: 0;
    box-sizing: border-box;
    padding: 5px 9px;
    border: 1px solid var(--ui-borders-borderDefault);
    border-radius: 8px;
    /* Like a slider row's value: no fill at rest, the card's own on its row or in focus. */
    background: transparent;
    color: var(--ui-text-primaryText);
    font-size: var(--text-medium, 15px);
    font-weight: 600;
    text-align: right;
}

.college-box .college-name-row:hover .college-name-input,
.college-box .college-name-input:focus {
    background: var(--ui-backgrounds-cardBg);
}

.college-box .college-name-input::placeholder {
    color: var(--ui-text-mutedText, var(--ui-text-secondaryText));
    font-weight: 400;
}

.college-box .college-name-input:focus {
    text-align: left;
}

.college-box .college-select {
    padding: 6px 8px;
    border: 1px solid var(--ui-borders-borderDefault);
    border-radius: 6px;
    background: var(--ui-backgrounds-formBg, transparent);
    color: var(--ui-text-primaryText);
    font-size: var(--text-small, 14px);
}

.college-box .college-select-full {
    width: 100%;
}

/* A month row: the dropdown sits on the right, as a value does. */
.college-box .college-month-row > .icon-dropdown-wrapper,
.college-box .college-month-row > select {
    flex: 0 0 170px;
    width: 170px;
}

/* ---- How it is paid -------------------------------------------- */
.college-box .college-pay-section .seg-control {
    align-self: flex-start;
}

/* ---- Header "?" (beside the title) --------------------------------
   Option F: white on the open box's dark bar, the row's own text colour
   when the box rests collapsed (quiet-boxes.css section 4). */
.college-box > .content-box-header .college-head-help {
    flex: 0 0 auto;
    margin-left: 8px;
}

body.ui-quiet .content-box-v3.college-box:has(> .content-box-body.collapsed) > .content-box-header .college-head-help {
    color: var(--ui-text-secondaryText);
    border-color: var(--ui-borders-borderDefault);
}
