/* Programs Accordion Block
 * Campuses layout first; the Programs and Campus Locations sections at the end reuse its parts.
 */

/* Same width and side padding as the other theme blocks */
.programs-accordion {
    box-sizing: border-box;
    color: var(--color-primary-dark);
    margin: 0 auto;
    max-width: 108rem;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

/* Campuses and Campus Locations sit in their own band; Programs keeps the page spacing */
.programs-accordion--campuses,
.programs-accordion--locations {
    padding-bottom: 80px;
    padding-top: 80px;
}

@media (min-width: 871px) and (max-width: 1024px) {
    .programs-accordion {
        padding-left: 3.125rem;
        padding-right: 3.125rem;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .programs-accordion {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

@media (min-width: 1281px) and (max-width: 1540px) {
    .programs-accordion {
        padding-left: 9.375rem;
        padding-right: 9.375rem;
    }
}

@media (min-width: 1541px) {
    .programs-accordion {
        padding-left: clamp(6rem, 15.046vw, 16.25rem);
        padding-right: clamp(6rem, 15.046vw, 16.25rem);
    }
}

.pa-icon {
    flex: 0 0 auto;
    height: 24px;
    width: 24px;
}

.pa-icon--sm {
    height: 12px;
    width: 12px;
}

/* Shared focus ring */
.pa-filter__link:focus-visible,
.pa-campus__link:focus-visible,
.pa-location__program-link:focus-visible,
.pa-option__title-link:focus-visible,
.pa-option__specialization-link:focus-visible,
.pa-curriculum__summary:focus-visible,
.pa-curriculum__catalog:focus-visible,
.pa-tabs__tab:focus-visible,
.pa-cta__button:focus-visible,
.pa-select:focus-visible,
.pa-option__explore:focus-visible,
.pa-banner-cta__link:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: 2px;
}

/* State filter bar (follows the Page Sub Navigation Bar block); revealed by script.js */
.pa-filter {
    align-items: center;
    background: var(--color-surface-muted);
    border-radius: 16px;
    display: flex;
    margin-bottom: 60px;
    min-height: 80px;
    padding: 0 8px;
}

.pa-filter[hidden] {
    display: none;
}

.pa-filter__list {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 0;
    min-width: 0;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
}

.pa-filter__list::-webkit-scrollbar {
    display: none;
}

/* Items overflow: align to the start so the first item isn't cut off */
.pa-filter.has-overflow .pa-filter__list {
    justify-content: flex-start;
}

.pa-filter__item {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.pa-filter__link {
    border-radius: 8px;
    color: var(--color-primary-dark);
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    padding: 16px;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.pa-filter__link[aria-current="true"] {
    background: var(--color-white);
    box-shadow: 0 4px 8px 0 rgba(48, 48, 48, 0.08);
}

@media (hover: hover) {
    .pa-filter__link:hover {
        background: var(--color-white);
        color: var(--color-primary-dark);
    }
}

/* Scroll chevrons only appear when the items overflow */
.pa-filter__chevron {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--color-primary-dark);
    cursor: pointer;
    display: none;
    flex: 0 0 auto;
    height: 40px;
    justify-content: center;
    padding: 8px;
    width: 40px;
}

.pa-filter.has-overflow .pa-filter__chevron {
    display: flex;
}

.pa-filter__chevron--left svg {
    transform: rotate(180deg);
}

.pa-filter__chevron:hover:not(:disabled) {
    background: rgba(40, 50, 60, 0.1);
}

.pa-filter__chevron:disabled {
    cursor: default;
    opacity: 0.3;
}

@media (prefers-reduced-motion: reduce) {
    .pa-filter__link {
        transition: none;
    }
}

.pa-state[hidden] {
    display: none;
}

.programs-accordion__header {
    margin-bottom: 60px;
    max-width: 584px;
}

.programs-accordion__title {
    color: var(--color-primary-dark);
    font-size: 40px;
    font-weight: 400;
    line-height: 48px;
    margin: 0 0 24px;
}

.programs-accordion__intro {
    color: var(--color-primary-dark);
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    margin: 0;
}

/* State section bar */
.pa-state {
    margin-bottom: 60px;
}

.pa-state__header {
    align-items: center;
    border-bottom: 3px solid var(--color-navy-deep);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding-bottom: 16px;
}

.pa-state__title {
    color: var(--color-navy-deep);
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    margin: 0;
}

.pa-state__count {
    color: var(--color-primary-dark);
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 24px;
}

/* Campus row (native <details>) */
.pa-campus {
    border-bottom: 1px solid var(--color-gray-border);
    margin-left: 17%;
}

.pa-campus[open] {
    background: var(--color-surface-muted);
}

.pa-campus__summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    list-style: none;
    padding: 43px 24px;
}

/* Hide the default disclosure triangle */
.pa-campus__summary::-webkit-details-marker {
    display: none;
}

.pa-campus__summary::marker {
    content: '';
}

.pa-campus__summary:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: -2px;
}

.pa-campus__name {
    color: var(--color-black-pure);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
}

.pa-campus__toggle {
    align-items: center;
    color: var(--color-accent-blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 500;
    gap: 8px;
    line-height: 24px;
}

.pa-campus__summary:hover .pa-campus__toggle-text {
    text-decoration: underline;
}

/* Swap the toggle label with the open state (hidden text is not announced) */
.pa-campus__toggle-text--open,
.pa-campus[open] .pa-campus__toggle-text--closed {
    display: none;
}

.pa-campus[open] .pa-campus__toggle-text--open {
    display: inline;
}

/* Plus / minus toggle icon */
.pa-toggle-icon {
    background: var(--color-accent-blue);
    background-clip: content-box;
    border: 2px solid transparent;
    border-radius: 50%;
    box-sizing: content-box;
    height: 20px;
    position: relative;
    width: 20px;
}

.pa-toggle-icon::before,
.pa-toggle-icon::after {
    background: var(--color-white);
    border-radius: 1px;
    content: '';
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.pa-toggle-icon::before {
    height: 2px;
    width: 12px;
}

.pa-toggle-icon::after {
    height: 12px;
    transition: transform 0.2s ease;
    width: 2px;
}

details[open] > summary .pa-toggle-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}

@media (prefers-reduced-motion: reduce) {
    .pa-toggle-icon::after {
        transition: none;
    }
}

.pa-campus__panel {
    padding: 0 24px 32px;
}

.pa-campus__overview {
    align-items: flex-start;
    display: flex;
    gap: 32px;
    justify-content: space-between;
}

.pa-campus__intro {
    max-width: 584px;
}

.pa-campus__heading,
.pa-cta__heading {
    color: var(--color-primary-dark);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    margin: 0 0 16px;
}

.pa-campus__description,
.pa-cta__body {
    color: var(--color-primary-dark);
    font-size: 14px;
    line-height: 22px;
}

.pa-campus__description p,
.pa-cta__body p {
    margin: 0 0 16px;
}

.pa-campus__link,
.pa-curriculum__catalog {
    align-items: center;
    color: var(--color-green-dark);
    display: inline-flex;
    font-size: 16px;
    font-weight: 500;
    gap: 8px;
    line-height: 24px;
    padding: 14px 0;
    text-decoration: none;
}

.pa-campus__link:hover span,
.pa-curriculum__catalog:hover {
    text-decoration: underline;
}

/* Next start badge */
.pa-start {
    align-items: center;
    background: var(--color-primary-dark);
    border-radius: 8px;
    color: var(--color-green-lime);
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
    margin: 0;
    padding: 16px 24px;
}

.pa-start .pa-start__icon {
    height: 48px;
    width: 48px;
}

/* Lines and dots knocked out of the filled calendar */
.pa-start .pa-icon__cutout {
    stroke: var(--color-primary-dark);
}

.pa-start .pa-icon__cutout-fill {
    fill: var(--color-primary-dark);
}

.pa-start__text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.pa-start__label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 22px;
    text-transform: uppercase;
}

.pa-start__date {
    font-size: 40px;
    font-weight: 600;
    line-height: 48px;
    text-transform: uppercase;
}

/* Curriculum card */
.pa-curriculum {
    background: var(--color-white);
    border-radius: 8px;
    margin: 32px 0;
}

.pa-curriculum__summary {
    align-items: center;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    list-style: none;
    min-height: 126px;
    padding: 24px;
}

.pa-curriculum__summary::-webkit-details-marker {
    display: none;
}

.pa-curriculum__summary::marker {
    content: '';
}

.pa-curriculum__heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pa-curriculum__title {
    color: var(--color-accent-blue);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
}

.pa-curriculum[open] > summary .pa-curriculum__title {
    color: var(--color-primary-dark);
}

.pa-curriculum__summary:hover .pa-curriculum__title {
    text-decoration: underline;
}

.pa-curriculum__count {
    color: var(--color-gray-700-ui);
    font-size: 14px;
    line-height: 22px;
}

.pa-curriculum__credits {
    align-items: center;
    color: var(--color-accent-blue);
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.pa-curriculum__credits-number {
    font-size: 40px;
    font-weight: 700;
    line-height: 40px;
}

.pa-curriculum__credits-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    margin-right: 8px;
    max-width: 72px;
    text-transform: uppercase;
}

.pa-curriculum__body {
    padding: 8px 24px 36px;
}

/* Course group tabs (revealed by script.js) */
.pa-tabs {
    border-bottom: 1px solid var(--color-gray-border);
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
}

.pa-tabs[hidden] {
    display: none;
}

.pa-tabs__tab {
    align-items: flex-end;
    background: none;
    border: 0;
    border-bottom: 4px solid transparent;
    color: var(--color-gray-700-ui);
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    gap: 16px;
    padding: 0 0 16px;
}

.pa-tabs__tab[aria-selected="true"] {
    border-bottom-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
}

.pa-tabs__tab:hover .pa-tabs__name {
    text-decoration: underline;
}

.pa-tabs__name {
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

.pa-tabs__credits {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.pa-group[hidden] {
    display: none;
}

.pa-group + .pa-group {
    margin-top: 32px;
}

.is-tabbed .pa-group + .pa-group {
    margin-top: 0;
}

/* Tabbed panels are focusable; keep the outline subtle */
.pa-group:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: 4px;
}

/* Course table */
.pa-table {
    border-collapse: collapse;
    color: var(--color-gray-700-ui);
    font-size: 14px;
    line-height: 22px;
    width: 100%;
}

.pa-table__caption {
    color: var(--color-gray-700-ui);
    padding: 24px 0;
    text-align: left;
}

.pa-table__group {
    color: var(--color-primary-dark);
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    margin-right: 8px;
}

/* With tabs, the tab names the group; keep it for screen readers only */
.is-tabbed .pa-table__group {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.pa-table th,
.pa-table td {
    padding: 8px 16px;
    text-align: left;
    vertical-align: middle;
}

.pa-table thead th,
.pa-table tfoot th,
.pa-table tfoot td {
    background: var(--color-gray-700-ui);
    color: var(--color-white);
    font-weight: 500;
    padding-bottom: 9px;
    padding-top: 9px;
}

.pa-table thead .pa-table__num {
    text-align: center;
}

.pa-table tfoot .pa-table__num {
    font-weight: 700;
}

.pa-table tbody th,
.pa-table tbody td {
    border-bottom: 1px solid var(--color-gray-border);
}

.pa-table tbody th {
    font-weight: 400;
}

/* Own column, sized to the longest code, so every title starts at the same x */
.pa-table .pa-table__code {
    font-weight: 700;
    padding-right: 23px;
    white-space: nowrap;
    width: 1%;
}

.pa-table .pa-table__title {
    padding-left: 0;
}

.pa-table .pa-table__num {
    padding-right: 16px;
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.pa-table tbody .pa-table__num {
    font-weight: 700;
}

/* Format column with a vertical divider */
.pa-table .pa-table__format {
    padding-left: 16px;
    padding-right: 21px;
    position: relative;
    white-space: nowrap;
    width: 1%;
}

.pa-table .pa-table__format::before {
    background: var(--color-gray-border);
    content: '';
    height: 18px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
}

/* No divider in the total row; its value sits under the credits column */
.pa-table tfoot .pa-table__format::before {
    display: none;
}

.pa-curriculum__notes {
    color: var(--color-primary-dark);
    font-size: 12px;
    line-height: 16px;
    margin-top: 32px;
    max-width: 444px;
}

.pa-curriculum__notes p {
    margin: 0 0 12px;
}

.pa-curriculum__notes p:last-child {
    margin-bottom: 0;
}

.pa-curriculum__catalog {
    font-size: 14px;
    line-height: 22px;
    margin-top: 20px;
}

.pa-curriculum__catalog .pa-icon__cutout {
    stroke: var(--color-white);
}

/* Phone: stack each course row (code + title, then credits | format) */
@media (max-width: 767.98px) {
    .pa-curriculum__summary {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 20px 16px;
    }

    .pa-curriculum__title {
        font-size: 20px;
        line-height: 28px;
    }

    .pa-curriculum__credits-number {
        font-size: 32px;
        line-height: 32px;
    }

    .pa-curriculum__body {
        padding: 0 16px 24px;
    }

    .pa-tabs {
        gap: 20px;
    }

    .pa-tabs__tab {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .pa-tabs__name {
        font-size: 16px;
        line-height: 24px;
    }

    .pa-table thead {
        border: 0;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    /* Block layout so the grid rows below aren't squeezed into one table column */
    .pa-table,
    .pa-table caption,
    .pa-table tfoot {
        display: block;
    }

    /* Shared columns for all rows (via subgrid) keep titles aligned on phones too */
    .pa-table tbody {
        display: grid;
        grid-template-columns: max-content 1fr;
    }

    .pa-table tfoot tr {
        display: flex;
        justify-content: space-between;
    }

    .pa-table tfoot .pa-table__format {
        display: none;
    }

    .pa-table tbody tr {
        border-bottom: 1px solid var(--color-gray-border);
        display: grid;
        grid-column: 1 / -1;
        /* Fallback first; browsers without subgrid ignore the second value */
        grid-template-columns: auto 1fr;
        grid-template-columns: subgrid;
        padding: 10px 0;
        row-gap: 2px;
    }

    /* Row 1: code | title. Row 2: credits | format */
    .pa-table tbody th,
    .pa-table tbody td {
        border: 0;
        padding: 0 8px;
    }

    .pa-table .pa-table__code {
        padding-right: 16px;
        width: auto;
    }

    .pa-table .pa-table__num,
    .pa-table .pa-table__format {
        font-size: 13px;
        text-align: left;
        width: auto;
    }

    .pa-table tbody .pa-table__num::after {
        content: ' credits';
        font-weight: 400;
    }

    .pa-table tbody .pa-table__format {
        margin-left: 4px;
        padding-left: 12px;
    }

    .pa-table tbody .pa-table__format::before {
        height: 14px;
    }
}

.pa-cta__button {
    align-items: center;
    background: var(--color-green-primary);
    border-radius: 999px;
    color: var(--color-white);
    display: inline-flex;
    font-size: 16px;
    font-weight: 500;
    gap: 8px;
    line-height: 24px;
    margin-top: 8px;
    padding: 8px 24px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.pa-cta__button .pa-icon {
    height: 20px;
    width: 20px;
}

.pa-cta__button:hover {
    background: var(--color-green-dark);
    color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
    .pa-cta__button {
        transition: none;
    }
}

/* Tablet and below: badge drops under the intro */
@media (max-width: 870px) {
    .pa-campus__overview {
        flex-direction: column;
        gap: 16px;
    }

    .pa-campus__intro {
        max-width: none;
    }
}

/* Phone: tighter type and spacing, campus list uses full width */
@media (max-width: 767.98px) {
    .pa-filter {
        margin-bottom: 40px;
        min-height: 64px;
        padding: 0 4px;
    }

    .pa-filter__link {
        padding: 12px;
    }

    .programs-accordion__header {
        margin-bottom: 40px;
    }

    .programs-accordion__title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 16px;
    }

    .programs-accordion__intro {
        font-size: 18px;
        line-height: 26px;
    }

    .pa-state {
        margin-bottom: 40px;
    }

    .pa-state__title {
        font-size: 24px;
        line-height: 32px;
    }

    .pa-campus {
        margin-left: 0;
    }

    .pa-campus__summary {
        padding: 24px 16px;
    }

    .pa-campus__name {
        font-size: 20px;
        line-height: 28px;
    }

    .pa-campus__panel {
        padding: 0 16px 24px;
    }

    .pa-campus__heading,
    .pa-cta__heading {
        font-size: 20px;
        line-height: 28px;
    }

    .pa-start {
        padding: 12px 16px;
    }

    .pa-start .pa-start__icon {
        height: 40px;
        width: 40px;
    }

    .pa-start__date {
        font-size: 32px;
        line-height: 40px;
    }
}

/* ==========================================================================
 * Programs layout (sections > program options)
 * Reuses .pa-filter, .pa-state, .pa-campus and .pa-toggle-icon from above.
 * ========================================================================== */

.pa-option[hidden],
.pa-section[hidden] {
    display: none;
}

/* Header row: headline left, "Filter by" selects right */
.programs-accordion__top {
    align-items: flex-start;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.programs-accordion__header--programs {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.pa-dropdown-filters {
    display: flex;
    flex: 0 0 327px;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
}

.pa-dropdown-filters[hidden] {
    display: none;
}

.pa-dropdown-filters__label {
    color: var(--color-primary-dark);
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 2px;
}

.pa-select-wrap {
    position: relative;
}

.pa-select-wrap::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--color-primary-dark);
    content: '';
    pointer-events: none;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.pa-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-radius: 4px;
    box-sizing: border-box;
    color: var(--color-gray-700-ui);
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    height: 48px;
    line-height: 24px;
    padding: 0 48px 0 14px;
    width: 100%;
}

/* Results count over a thin rule */
.pa-results-bar {
    border-bottom: 1px solid var(--color-gray-border);
    margin-bottom: 56px;
    padding-bottom: 14px;
    text-align: right;
}

.pa-results-bar__count {
    color: var(--color-primary-dark);
    font-size: 14px;
    line-height: 22px;
    margin: 0;
}

.pa-option .pa-campus__summary {
    padding: 24px;
}

.pa-option__summary-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.pa-option__title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
}

/* White pill tags */
.pa-option__badge,
.pa-option__location-tag {
    align-items: center;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(40, 50, 60, 0.16);
    box-sizing: border-box;
    color: var(--color-primary-dark);
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    justify-content: center;
    line-height: 22px;
    min-height: 32px;
    min-width: 128px;
    padding: 5px 32px;
    text-align: center;
}

/* Links inside headings and tags keep their parent's color; underline on hover */
.pa-option__title-link,
.pa-location__program-link {
    color: inherit;
    text-decoration: none;
}

.pa-option__title-link:hover,
.pa-location__program-link:hover {
    color: inherit;
    text-decoration: underline;
}

.pa-option__audience,
.pa-option__where-empty,
.pa-option__note {
    color: var(--color-gray-700-ui);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.pa-option__where-empty {
    margin: 0;
}

.pa-option .pa-campus__panel {
    padding: 40px 24px 32px;
}

.pa-option__description {
    color: var(--color-primary-dark);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    max-width: 872px;
}

.pa-option__description p {
    margin: 0 0 16px;
}

.pa-option__description p:last-child,
.pa-option__how-body p:last-child {
    margin-bottom: 0;
}

/* "Where" column left, "How" column right */
.pa-option__details {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 352px);
    justify-content: space-between;
    margin-top: 32px;
}

.pa-option__subhead {
    color: var(--color-primary-dark);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    margin: 0 0 24px;
}

/* Tags size to their text and stay on one line each */
.pa-option__locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pa-option__location-tag {
    flex: 0 0 auto;
    margin: 0;
    min-width: 0;
    padding: 5px 20px;
    white-space: nowrap;
}

.pa-option__how-body {
    color: var(--color-black-pure);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.pa-option__how-body p {
    margin: 0 0 12px;
}

.pa-option__explore-wrap {
    margin: 60px 0 0;
}

/* Locations note: callout with a left rule, full panel width below the columns */
.pa-option__note {
    border-left: 2px solid var(--color-gray-border);
    margin: 24px 0 0;
    max-width: 872px;
    padding: 2px 0 2px 14px;
}

/* "Explore the specializations": heading over a row of blue underlined links */
.pa-option__specializations {
    margin-top: 32px;
}

.pa-option__subhead--tight {
    margin-bottom: 16px;
}

.pa-option__specialization-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pa-option__specialization {
    margin: 0;
}

.pa-option__specialization-link {
    align-items: center;
    color: var(--color-accent-blue);
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    gap: 4px;
    line-height: 22px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pa-option__specialization-link:hover {
    color: var(--color-accent-blue);
    text-decoration: none;
}

.pa-option__note + .pa-option__explore-wrap,
.pa-option__specializations + .pa-option__explore-wrap {
    margin-top: 32px;
}

.pa-option__explore {
    align-items: center;
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--color-green-dark);
    display: inline-flex;
    font-size: 16px;
    font-weight: 500;
    gap: 8px;
    line-height: 24px;
    min-height: 40px;
    padding: 8px 0;
    text-decoration: none;
}

.pa-option__explore:hover {
    color: var(--color-green-dark);
}

.pa-option__explore:hover span,
.pa-banner-cta__link:hover span {
    text-decoration: underline;
}

/* Bottom dark CTA banner */
.pa-banner-cta {
    align-items: center;
    background: var(--color-primary-dark);
    border-radius: 12px;
    color: var(--color-white);
    display: flex;
    gap: 32px;
    justify-content: space-between;
    margin-top: 52px;
    padding: 24px 36px 22px 28px;
}

.pa-banner-cta__text {
    max-width: 440px;
}

.pa-banner-cta__heading {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    margin: 0 0 6px;
}

.pa-banner-cta__body,
.pa-banner-cta__body p {
    color: var(--color-white);
    font-size: 12px;
    line-height: 20px;
    margin: 0;
}

.pa-banner-cta__link,
.pa-banner-cta__link:hover {
    align-items: center;
    color: var(--color-green-lime);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    line-height: 22px;
    text-decoration: none;
}

.pa-banner-cta__link .pa-icon {
    height: 20px;
    width: 20px;
}

/* Tablet and below: stack header/filters and panel columns */
@media (max-width: 870px) {
    .programs-accordion__top {
        flex-direction: column;
    }

    .pa-dropdown-filters {
        flex-basis: auto;
        width: 100%;
    }

    .pa-option__details {
        grid-template-columns: 1fr;
    }

    .pa-banner-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}

/* Phone */
@media (max-width: 767.98px) {
    .pa-results-bar {
        margin-bottom: 40px;
    }

    .pa-option .pa-campus__summary {
        padding: 20px 16px;
    }

    .pa-option .pa-campus__panel {
        padding: 24px 16px;
    }

    .pa-banner-cta {
        padding: 24px 20px;
    }
}

/* ==========================================================================
 * Campus Locations layout (states > campuses with programs, map, and address)
 * Reuses .pa-filter, .pa-state, .pa-campus, .pa-results-bar, .pa-option__subhead
 * and the .pa-option__locations tag list from above.
 * ========================================================================== */

.programs-accordion--locations .programs-accordion__header {
    margin-bottom: 32px;
}

/* Lead-in line, e.g. "18 campuses + online study" */
.pa-results-bar--lead-in {
    margin-bottom: 60px;
    padding-bottom: 16px;
}

.pa-results-bar--lead-in .pa-results-bar__count {
    font-size: 16px;
    line-height: 24px;
}

/* Open panel: programs + link left, map + address right */
.pa-location__panel {
    display: flex;
    gap: 32px;
    justify-content: space-between;
}

/* Programs take the space left of the map; the link sits on the panel's bottom edge, level with the address */
.pa-location__main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 32px;
    justify-content: space-between;
    min-width: 0;
}

/* Online study has no map, so the no-programs text can run the full width too */
.pa-location--online .pa-location__programs-empty {
    max-width: none;
}

/* "Programs at this campus" is SemiBold here (Medium in the Programs layout) */
.pa-location__programs .pa-option__subhead {
    font-weight: 600;
}

/* Shown in place of the tags when no programs are listed */
.pa-location__programs-empty {
    color: var(--color-primary-dark);
    font-size: 14px;
    line-height: 22px;
    margin: 0;
    max-width: 400px;
}

.pa-location__link-wrap {
    margin: 0;
}

/* Map over the address, flush with the panel's right edge under the toggle */
.pa-location__aside {
    display: flex;
    flex: 0 0 376px;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
}

/* The map plugin's own frame and shadow are dropped in favor of this one */
.pa-location__map {
    background: var(--color-surface-muted);
    border: 1px solid var(--color-gray-border);
    border-radius: 16px;
    box-sizing: border-box;
    height: 250px;
    overflow: hidden;
}

.pa-location__map-image,
.pa-location__map .unitek-map-container,
.pa-location__map .unitek-map {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    height: 100% !important;
    max-width: none;
    width: 100% !important;
}

.pa-location__map-image {
    object-fit: cover;
}

.pa-location__address {
    color: var(--color-black-pure);
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    margin: 0;
}

/* Tablet and below: map drops under the programs */
@media (max-width: 870px) {
    .pa-location__panel {
        flex-direction: column;
    }

    .pa-location__aside {
        flex-basis: auto;
    }
}

/* Phone */
@media (max-width: 767.98px) {
    .pa-results-bar--lead-in {
        margin-bottom: 40px;
    }

    .pa-location__map {
        height: 220px;
    }
}

