.ec-wrap, .ec-public {
    --ec-paper: #fbfdfc;
    --ec-ink: #142e2d;
    --ec-muted: #48615c;
    --ec-accent: #0e6157;
    --ec-line: #cfe0da;
    --ec-wash: #edf5f0;
    --ec-focus: #b47d26;
}
.portal-admin-shell .ec-wrap {
    --ec-paper: #142622;
    --ec-ink: #edf7f2;
    --ec-muted: #bdd1c8;
    --ec-accent: #a9edca;
    --ec-line: #2d4940;
    --ec-wash: #20382f;
    --ec-focus: #f0bc66;
}
.ec-wrap { color: var(--ec-ink); margin-block: .45rem 3rem; }
.ec-wrap :is(a, button, input, select, summary):focus-visible {
    outline: 3px solid var(--ec-focus);
    outline-offset: 3px;
}
.ec-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: clamp(17px, 2vw, 28px);
    margin: 0 0 1.4rem;
    color: #fff;
    background: #0d3835;
    box-shadow: 0 12px 32px -30px #063c2c8a;
}
.ec-explorer-hero {
    min-height: 285px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: stretch;
    background: radial-gradient(ellipse at 30% 150%, #187465, transparent 75%), linear-gradient(145deg, #103632, #102b29);
}
.ec-hero-copy {
    z-index: 1;
    padding: clamp(1.55rem, 5vw, 3.5rem);
    align-self: center;
}
.ec-hero h1 {
    color: #fff;
    font-size: clamp(2.05rem, 4.4vw, 4.15rem);
    line-height: 1.1;
    letter-spacing: -.055em;
    font-weight: 800;
    margin: .1rem 0 .8rem;
    text-wrap: balance;
}
.ec-hero p { color: #def0e8; font-size: clamp(.98rem, 1.7vw, 1.18rem); line-height: 1.8; max-width: 37ch; margin: 0; }
.ec-hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.ec-hero-actions a {
    display: inline-flex; align-items: center; gap: .45rem;
    min-height: 44px; justify-content: center;
    padding: .53rem .85rem; border: 1px solid #d2e6dc66; border-radius: 11px;
    color: #f3fff8; text-decoration: none; font-size: .87rem; font-weight: 700;
}
.ec-hero-actions a:first-child { background: #e6f5ec; color: #153e34; border-color: #e6f5ec; }
.ec-hero-actions a:hover { border-color: #f2d291; }
.ec-hero-actions .icon, .ec-link .icon, .ec-cta .icon { width: 1rem; height: 1rem; flex: 0 0 1rem; }
.ec-hero-visual { position: relative; overflow: hidden; min-height: 220px; }
.ec-hero-visual::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent 40%, #1036325c 76%, #103632), linear-gradient(0deg, #102b29c4, transparent 31%);
}
.ec-hero-visual img, .ec-campus-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.ec-hero-visual small { position: absolute; z-index: 1; inset: auto auto .8rem .9rem; color: #fff; font-size: .72rem; line-height: 1.4; }
.ec-filter, .ec-program-search {
    border: 1px solid var(--ec-line); border-radius: 20px;
    box-shadow: 0 14px 30px -30px #1747356f; background: var(--ec-paper);
    padding: clamp(.95rem, 2vw, 1.45rem);
}
.ec-filter-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) auto; gap: .7rem; align-items: end; }
.ec-field { display: grid; gap: .34rem; min-width: 0; margin: 0; }
.ec-field > span:first-child { font-size: .77rem; font-weight: 800; color: var(--ec-muted); }
.ec-field :is(input, select) {
    font: inherit; font-size: .92rem; min-height: 46px; min-width: 0; width: 100%; margin: 0;
    background: var(--ec-wash); border: 1px solid var(--ec-line);
    border-radius: 11px; color: var(--ec-ink); padding: .6rem .75rem;
}
.ec-field :is(input, select):hover { border-color: var(--ec-accent); }
.ec-field input::placeholder { color: var(--ec-muted); opacity: .9; }
.ec-input-icon { position: relative; display: block; }
.ec-input-icon .icon { position: absolute; inset: 50% .7rem auto auto; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ec-muted); pointer-events: none; }
.ec-input-icon input { padding-inline-start: 2rem; }
.ec-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 46px; border: 1px solid #0b5146; border-radius: 11px; padding: .6rem 1rem;
    background: #115c51; color: #fff; font: inherit; font-size: .87rem; font-weight: 800;
    cursor: pointer; white-space: nowrap;
}
.ec-cta:hover { background: #083e36; }
.ec-advanced { border-top: 1px solid var(--ec-line); margin-top: .9rem; padding-top: .5rem; }
.ec-advanced summary, .ec-card-details summary, .ec-admin-school summary, .ec-campus-program details summary {
    list-style: none; cursor: pointer; min-height: 44px; color: var(--ec-accent); font-weight: 800; font-size: .84rem;
}
.ec-advanced summary::-webkit-details-marker, .ec-card-details summary::-webkit-details-marker { display:none; }
.ec-advanced summary { display: flex; align-items: center; gap: .45rem; }
.ec-advanced summary::after { content: '+'; margin-inline-start: auto; font-size: 1.1rem; }
.ec-advanced[open] summary::after { content: '−'; }
.ec-advanced summary > span { border-radius: 30px; padding: .05rem .45rem; font-size: .68rem; background: var(--ec-wash); }
.ec-advanced summary .icon { width: 17px; height: 17px; }
.ec-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .72rem; margin-block: .6rem 1rem; }
.ec-check { display: flex; align-items: center; gap: .5rem; align-self: end; color: var(--ec-ink); font-size: .86rem; min-height: 46px; }
.ec-check input { width: 19px; height: 19px; accent-color: #0e6157; }
.ec-results, .ec-campus-programs { margin-top: 1.65rem; }
.ec-section-head { display: flex; justify-content: space-between; gap: .7rem; align-items: end; margin-block: 0 .9rem; }
.ec-section-head h2 { font-size: clamp(1.32rem, 2vw, 1.85rem); line-height: 1.3; margin: 0; color: var(--ec-ink); }
.ec-section-head p { margin: .18rem 0 0; color: var(--ec-muted); font-size: .82rem; }
.ec-result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; }
.ec-link {
    display: inline-flex; align-items: center; width: fit-content; gap: .34rem; min-height: 44px;
    color: var(--ec-accent); font-size: .8rem; font-weight: 800; line-height: 1.35; text-decoration: none;
}
.ec-link:hover { text-decoration: underline; }
.ec-program-grid, .ec-university-grid, .ec-campus-program-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.45vw, 1.22rem); align-items: start;
}
.ec-program, .ec-university-card, .ec-campus-program {
    min-width: 0; background: var(--ec-paper); border: 1px solid var(--ec-line);
    border-radius: 18px; overflow: hidden; box-shadow: 0 15px 28px -32px #174735b0;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.ec-program:is(:hover, :focus-within), .ec-university-card:is(:hover, :focus-within) {
    border-color: var(--ec-accent);
    box-shadow: 0 19px 30px -28px #136d5c60;
}
.ec-program { padding: .95rem; display: flex; flex-direction: column; min-height: 234px; }
.ec-card-top { display: flex; gap: .45rem; align-items: start; justify-content: space-between; }
.ec-university-chip {
    min-width: 0; min-height: 44px; display: flex; align-items: center;
    gap: .44rem; text-decoration: none; color: var(--ec-muted); font-size: .73rem; font-weight: 800; line-height: 1.38;
}
.ec-university-chip:hover { color: var(--ec-accent); }
.ec-logo {
    width: 38px; height: 38px; flex: 0 0 38px; display: inline-grid; place-items: center;
    border-radius: 9px; border: 1px solid #e3ede9; background: #fff;
    padding: 3px; overflow: hidden;
}
.ec-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.ec-status { color: #255245; background: #e5f1eb; border-radius: 6px; padding: .21rem .4rem; line-height: 1.45; font-size: .62rem; font-weight: 800; text-align: center; max-width: 42%; }
.ec-status--available { background: #d7ecdf; color: #174330; }
.ec-status--full { background: #f9e6dc; color: #713d2b; }
.ec-status--excluded, .ec-status--unavailable { background: #e7edf0; color: #385158; }
.ec-status--price_reported { background: #fbefd1; color: #61430b; }
.ec-program-title { margin-top: .6rem; }
.ec-program h3, .ec-campus-program h3 { margin: 0; color: var(--ec-ink); font-size: clamp(.99rem, 1.5vw, 1.29rem); line-height: 1.42; }
.ec-program h3[dir=ltr], .ec-campus-program h3[dir=ltr] { text-align:right;overflow-wrap:anywhere; }
.ec-program-title p, .ec-campus-program p, .ec-campus-summary > p {
    text-align: start; margin: .18rem 0 0; color: var(--ec-muted); font-size: .76rem; line-height: 1.45; overflow-wrap: anywhere;
}
.ec-program-title p[dir=ltr], .ec-campus-program p[dir=ltr], .ec-campus-summary > p[dir=ltr] { text-align: right; }
.ec-program-tags { display: flex; flex-wrap: wrap; gap: .28rem; padding: 0; margin: .7rem 0; list-style: none; }
.ec-program-tags li {
    padding: .21rem .46rem; border-radius: 5px; background: var(--ec-wash);
    color: var(--ec-muted); font-size: .67rem; font-weight: 700; line-height: 1.35;
}
.ec-prices { margin: auto 0 0; padding: .52rem 0 0; border-top: 1px solid var(--ec-line); list-style: none; }
.ec-prices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .45rem; align-items: baseline; padding: .08rem 0 .16rem; }
.ec-prices bdi { font: 750 1rem/1.45 system-ui,sans-serif; color: var(--ec-ink); }
.ec-prices li span { font-size: .69rem; color: var(--ec-muted); }
.ec-public-apply { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.ec-public-apply .btn { min-height: 44px; white-space: normal; }
.ec-price-empty { margin: auto 0 0; padding: .5rem 0 .15rem; border-top: 1px solid var(--ec-line); color: var(--ec-muted); font-size: .72rem; }
.ec-card-details summary { display: flex; align-items: center; justify-content: space-between; padding-inline: 0; }
.ec-card-details summary .icon { width: 1rem; height: 1rem; transform: rotate(-90deg); }
.ec-card-details[open] summary .icon { transform: rotate(90deg); }
.ec-details-body { padding-top: .5rem; border-top: 1px solid var(--ec-line); animation: ec-reveal .2s ease-out; }
.ec-details-body p { color: var(--ec-muted); font-size: .77rem; margin: 0 0 .2rem; }
.ec-details-body > a { display:flex; }
.ec-publication { margin-block: .35rem; }
.ec-publication button { white-space: normal; }
.ec-pagination { display: flex; justify-content: center; align-items: center; gap: .65rem; margin-block: 1.35rem 0; color: var(--ec-muted); font-size: .86rem; }
.ec-pagination a { display:grid; place-items:center; min-height:44px; padding: .4rem .8rem; border:1px solid var(--ec-line); border-radius:10px; color:var(--ec-accent); font-weight:800; text-decoration:none; background:var(--ec-paper); }
.ec-pagination a:hover { border-color:var(--ec-accent); }
.ec-directory-hero { background: radial-gradient(ellipse at 4% -80%,#1c756b 11%,transparent 69%), linear-gradient(125deg,#103531,#184c44); }
.ec-campus-photo { display: block; height: 167px; overflow: hidden; }
.ec-campus-photo img { width:100%;height:100%;display:block;object-fit:cover;transition:transform .3s ease-out; }
.ec-campus-photo:hover img { transform: scale(1.035); }
.ec-campus-summary { position:relative; padding: .9rem 1rem .45rem; }
.ec-campus-summary .ec-logo { position:absolute; inset: -31px auto auto 1rem; width: 51px; height: 51px; border-radius: 11px; }
.ec-campus-summary h2 { color:var(--ec-ink); font-size:1.15rem; line-height:1.4; margin:0; padding-inline-end: 2.8rem; }
.ec-campus-summary h2 a { color: inherit; text-decoration: none; }
.ec-campus-summary h2 a:hover { color: var(--ec-accent); }
.ec-campus-footer { display:flex; justify-content:space-between;align-items:center;gap:.42rem;border-top:1px solid var(--ec-line);margin-top:.75rem;color:var(--ec-muted);font-size:.76rem; }
.ec-breadcrumb { display:flex;align-items:center;gap:.5rem;min-height:44px;font-size:.79rem;color:var(--ec-muted); }
.ec-breadcrumb a { color:var(--ec-accent); text-decoration:none; min-height:44px; display:flex;align-items:center; }
.ec-breadcrumb .icon { width:.8rem;height:.8rem; }
.ec-campus-hero { min-height: 330px; display:flex; align-items:end; }
.ec-campus-cover { position:absolute; inset:0; }
.ec-campus-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 8%,#081f1e72 50%,#081f1ef5), linear-gradient(0deg,#0b2526ad,transparent 59%); }
.ec-campus-hero .ec-hero-copy { align-self:end; }
.ec-campus-hero .ec-hero-copy p[dir=ltr] { text-align:right; }
.ec-campus-hero .ec-logo { width:59px;height:59px; margin-bottom:.6rem; }
.ec-campus-location {
    display:flex; align-items:center; gap:.7rem; padding:.7rem .9rem; margin-top:1.1rem;
    color:var(--ec-ink); background:var(--ec-wash); border:1px solid var(--ec-line); border-radius:14px;
}
.ec-campus-location > span { display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:10px;background:var(--ec-paper);color:var(--ec-accent); }
.ec-campus-location address { color:var(--ec-muted);font-size:.82rem;font-style:normal; }
.ec-campus-location > a { margin-inline-start:auto; white-space:nowrap; }
.ec-campus-gallery { margin-top:1.5rem; }
.ec-gallery-grid { display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:.65rem; }
.ec-gallery-grid a { display:block; border-radius:13px; overflow:hidden; background:var(--ec-wash); }
.ec-gallery-grid img { width:100%;height:clamp(125px,17vw,228px);object-fit:cover;display:block;transition:transform .3s ease-out; }
.ec-gallery-grid a:hover img { transform:scale(1.04); }
.ec-program-search { display:grid;grid-template-columns:1fr auto;gap:.6rem;align-items:end;margin-bottom:1rem; }
.ec-campus-program { padding:.9rem; }
.ec-campus-program details:not([open]), .ec-admin-school:not([open]) { padding-bottom:0; }
.ec-campus-program details summary, .ec-admin-school summary { display:flex;align-items:center; }
.ec-campus-program details summary::after, .ec-admin-school summary::after { content:"+";margin-inline-start:auto; }
.ec-campus-program details[open] summary::after, .ec-admin-school[open] summary::after { content:"−"; }
.ec-admin-school {
    border:1px solid var(--ec-line);border-radius:14px;padding:.3rem .85rem .8rem;margin-top:1rem;background:var(--ec-paper);
}
.ec-edit-form { display:grid;gap:.52rem; }
.ec-public-nav {
    display:flex; align-items:center;justify-content:space-between;gap:.8rem;
    padding:.5rem clamp(1rem,5vw,3.4rem);border-bottom:1px solid #dce6df;background:#fafdfb;color:#15342d;
}
.ec-public-nav a { text-decoration:none;color:inherit; }
.ec-public-nav nav { display:flex;gap:clamp(.45rem,2vw,1rem);align-items:center;flex-wrap:wrap; }
.ec-public-nav nav a, .ec-public-exit button { display:flex;align-items:center;min-height:44px;font-size:.8rem;font-weight:800; }
.ec-public-nav nav a:hover { text-decoration:underline; }
.ec-public-exit { margin:0; }
.ec-public-exit button { gap:.34rem;padding:.3rem .57rem;border:1px solid #cfe0da;border-radius:9px;background:#edf5f0;color:#15342d;font-family:inherit;cursor:pointer; }
.ec-public-exit button:hover { border-color:#0e6157; }
.ec-public-exit button .icon { width:.9rem;height:.9rem;flex:none; }
.ec-public-nav :is(a,button):focus-visible { outline:3px solid #9a631e;outline-offset:3px; }
.ec-public { max-width:1280px; padding:clamp(.75rem,3vw,2rem); margin:0 auto; }
.ec-footer { text-align:center;color:var(--ec-muted);font-size:.76rem;margin:1.5rem 0; }
@keyframes ec-reveal { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:1250px) {
    .ec-program-grid, .ec-university-grid, .ec-campus-program-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:870px) {
    .ec-filter-main { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ec-find { grid-column:1/-1; }
    .ec-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:570px) {
    .ec-wrap { margin-block:.2rem 1.7rem; }
    .ec-explorer-hero { display:block; min-height:0; }
    .ec-hero { border-radius:16px; margin-bottom:.8rem; }
    .ec-hero-copy { padding:1.15rem .9rem 1rem; }
    .ec-hero h1 { font-size:2rem; margin-bottom:.42rem; letter-spacing:-.04em; }
    .ec-hero p { font-size:.92rem; line-height:1.65; }
    .ec-hero-actions { margin-top:.71rem; gap:.35rem; }
    .ec-hero-actions a { font-size:.72rem; padding:.38rem .55rem; }
    .ec-explorer-hero .ec-hero-actions a:first-child { display:none; }
    .ec-hero-visual { display:none; }
    .ec-filter { border-radius:15px; padding:.72rem; }
    .ec-program-grid, .ec-university-grid, .ec-campus-program-grid { grid-template-columns:minmax(0,1fr); }
    .ec-filter-main { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); }
    .ec-search-field { grid-column:1/-1; }
    .ec-find { grid-column:auto;padding-inline:.42rem; }
    .ec-advanced { margin-top:.63rem; }
    .ec-filter-main, .ec-filter-grid { gap:.55rem; }
    .ec-field :is(input,select) { font-size:1rem; }
    .ec-program { min-height:0; }
    .ec-prices,.ec-price-empty { margin-top:.1rem; }
    .ec-section-head { align-items:start; }
    .ec-result-actions { gap:0; flex-direction:column; align-items:end; text-align:end; }
    .ec-section-head p { font-size:.78rem; }
    .ec-campus-hero { min-height:260px; }
    .ec-campus-hero::after { background:linear-gradient(0deg,#081f1efd 5%,#081f1e6b 68%,transparent); }
    .ec-gallery-grid { grid-template-columns:repeat(2, minmax(0,1fr)); gap:.42rem; }
    .ec-gallery-grid a:first-child { grid-column:1/-1; }
    .ec-gallery-grid img { height:96px; }
    .ec-gallery-grid a:first-child img { height:152px; }
    .ec-campus-location > span { display:none; }
    .ec-public-nav { gap:.4rem; padding-inline:.65rem; }
}
@media (max-width:350px) {
    .ec-public-nav { flex-wrap:wrap; }
    .ec-public-nav nav { width:100%;justify-content:space-between; }
    .ec-find { font-size:.78rem; }
    .ec-find .icon { display:none; }
}
@media (prefers-reduced-motion:reduce) {
    .ec-wrap *, .ec-wrap *::before, .ec-wrap *::after { animation:none !important; transition:none !important; }
}
.ec-prices .ec-staff-price {
    background: #f5f4e8;
    border-color: #e6dfc1;
}
