:root {
  --navy:#102a43;
  --navy-deep:#0b2339;
  --blue:#1d5277;
  --ink:#182e42;
  --muted:#4e6274;
  --line:#dce5ec;
  --pale:#f2f6f8;
  --gold:#d8b57c;
  --radius:14px;
  --shadow:0 10px 28px #102a4308;
  --font:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --teal:#21695e;
  --surface:#f3f7f8;
}

body {background:#fcfdfe}
a {text-underline-offset:.2em}
:focus-visible {outline-color:#217b72}
.site-top {background:linear-gradient(110deg,#0b2238,#103650)}
.masthead {min-height:84px}
.brand-divider {height:34px;background:#ffffff4d}
.brand-name strong {font-size:1.25rem;letter-spacing:.04em}
.brand-name small {font-size:.72rem;letter-spacing:.2em}
.college-mark {width:270px}
.site-navigation {box-shadow:0 3px 12px #102a4308}
.nav nav a {min-height:54px;padding-inline:clamp(6px,.85vw,16px);font-size:.9rem;font-weight:600}
.nav nav a:hover,.nav nav a[aria-current="page"] {background:#eef5f6;color:#155a53}
.nav nav a[aria-current="page"]::after {left:10px;right:10px;height:2px;background:#288378;border-radius:2px}
.nav-account {gap:10px}
.mobile-directory-nav {display:none}
.btn {min-height:44px;border-radius:9px;font-weight:600}
.btn.primary {background:#174c67}
.btn.primary:hover {background:#0d394f}
.btn.outline {border-color:#d1dde5}
.btn.outline:hover {background:#eff5f7}
.btn.compact {min-height:36px}
.text-link {font-weight:600}
.panel,.project-card,.sidebar {border-color:var(--line)}
.panel-heading h2::before {background:#5a9b8e}
.field :is(input,textarea,select) {border-radius:8px}
.field :is(input,textarea,select):focus {border-color:#458b80;outline-color:#d5ece6}
.tag,.status {border-radius:999px}
.chip {border-radius:999px}
.project-card {box-shadow:var(--shadow)}
.project-card:hover {border-color:#8eb8bc;box-shadow:0 12px 26px #102a4310}
.project-body h3,.project-excerpt {overflow-wrap:anywhere}
.project-body .project-publisher,.project-publisher {display:flex;align-items:baseline;gap:7px;margin:0;color:#52687a;font-size:.83rem;line-height:1.55}
.project-publisher .icon {width:16px;height:16px;align-self:start;margin-top:3px;color:#287264}
.project-publisher span {flex:none}
.project-publisher strong {min-width:0;color:#183e57;overflow-wrap:anywhere}
.project-publisher a {text-decoration:underline;text-decoration-color:#91b6b6}
.project-publisher a:hover {color:#17665b;text-decoration-color:currentColor}
.opportunity-summary .project-publisher {margin-block:0 16px}
.title-band {background:linear-gradient(110deg,#edf4f8,#f3f8f6)}
.column-heading h2 {border-bottom-color:#468b80}
.phase-card {border-radius:var(--radius);border-top-color:#76a99d;box-shadow:var(--shadow)}
.tint {background:#f0f5f7}
.workspace {background:#edf3f5}
.sidebar {box-shadow:var(--shadow)}
.sidebar nav a[aria-current="page"] {background:#e8f3f0;color:#1a6257}
#site-footer {background:#0b2339}
.footer-links {font-size:.85rem}

.college-banner {background:#0b2339}
.banner-layout {min-height:clamp(380px,35vw,510px);grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
.banner-copy {padding-block:50px}
.banner-copy h1 {letter-spacing:.015em;font-size:clamp(2.4rem,4.6vw,4.35rem)}
.banner-description {color:#dce9f0;line-height:1.8}
.banner-photo::after {background:linear-gradient(90deg,#0b2339 0%,#0b233968 15%,transparent 38%);border:0}
.banner-photo figcaption {right:clamp(20px,5vw,90px);z-index:1;border-radius:8px}
.banner-cohort {max-width:440px}
.home-columns {gap:clamp(30px,5vw,72px)}

.group-directory,.group-detail {background:var(--surface)}
.group-directory-hero,.group-detail-hero {color:#f3f8fb;background:linear-gradient(120deg,#0b2339 10%,#133a50 67%,#175554);border-bottom:1px solid #31646a}
.group-directory-heading {display:flex;align-items:flex-end;justify-content:space-between;gap:22px;padding-block:clamp(28px,4vw,52px)}
.group-directory-heading h1,.group-detail-heading h1 {font-size:clamp(2.1rem,5vw,3.85rem);line-height:1.16;letter-spacing:-.025em}
.group-directory-heading p {color:#d2e3eb;margin-top:14px;max-width:36em}
.btn.group-create {background:#ecf7f4;color:#144e4a;white-space:nowrap}
.btn.group-create:hover {background:#ccece3}
.group-directory-body {padding-block:clamp(24px,4vw,46px) clamp(44px,6vw,82px);min-height:380px}
.group-list-heading {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 16px;margin-bottom:17px}
.group-list-heading h2 {font-size:clamp(1.3rem,2.3vw,1.65rem);color:var(--navy)}
.group-list-heading span {font-size:.82rem;color:var(--muted)}
.group-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}
.group-grid>.empty {grid-column:1/-1}
.group-grid-single {grid-template-columns:minmax(0,1fr)}
.group-card {display:grid;grid-template-rows:auto 1fr;min-width:0;background:#fff;border:1px solid #dbe6eb;border-radius:20px;box-shadow:0 14px 36px #1534460c;overflow:hidden}
.group-photo {position:relative;margin:0;background:#dbe6eb;aspect-ratio:4/3;overflow:hidden}
.group-photo img {width:100%;height:100%;object-fit:cover;object-position:center}
.group-photo figcaption {position:absolute;left:14px;bottom:13px;border-radius:999px;padding:4px 10px;background:#0b2339e8;color:#f1f8fb;font-size:.72rem;line-height:1.45}
.group-card-content {min-width:0;padding:clamp(19px,2.2vw,33px);display:flex;flex-direction:column;justify-content:center}
.group-card-meta,.group-detail-meta {display:flex;flex-wrap:wrap;align-items:center;gap:8px 13px;font-size:.84rem;color:var(--teal);font-weight:600}
.group-status {display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#edf1f4;color:#486274;font-size:.73rem;line-height:1.45}
.group-status.is-open {background:#e6f5ee;color:#1b644d}
.group-status.is-open::before {content:"";width:6px;height:6px;border-radius:50%;background:#2a8768}
.group-card h3 {font-size:clamp(1.25rem,2.05vw,1.63rem);line-height:1.35;margin:12px 0;color:var(--navy)}
.group-card h3 a:hover {color:#206956;text-decoration:underline}
.group-card-content>p {color:var(--muted);line-height:1.75;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.group-card-footer {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px 14px;margin-top:auto;padding-top:18px;font-size:.79rem;color:#4b6275}
.group-card-footer>span {display:inline-flex;align-items:center;gap:6px}
.group-card-footer .icon {width:17px;height:17px}
.group-card-link {display:inline-flex;align-items:center;gap:7px;color:#175e54;font-weight:700;padding-block:5px}
.group-card-link:hover {text-decoration:underline}
.group-grid-single .group-card {grid-template:1fr / minmax(0,1.04fr) minmax(0,1fr)}
.group-grid-single .group-photo {aspect-ratio:4/3;align-self:stretch}
.group-grid-single .group-card-content {padding:clamp(23px,4.5vw,65px)}
.group-grid-single .group-card h3 {font-size:clamp(1.5rem,3vw,2.45rem);margin-top:14px}
.group-grid-single .group-card-footer {margin-top:23px;border-top:1px solid #e3eaee}
.group-detail-heading {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:clamp(24px,5vw,75px);padding-block:clamp(25px,4vw,54px)}
.group-detail-heading>.group-photo {border-radius:17px;border:1px solid #ffffff3b;box-shadow:0 15px 40px #0618274f}
.group-back {display:inline-block;color:inherit;font-size:.86rem;padding:5px 0}
.group-back:hover {color:inherit;text-decoration:underline}
.group-detail-heading .group-back,.group-focus {color:#caece6}
.group-focus {margin:17px 0 8px;font-size:.9rem;font-weight:600}
.group-detail-heading h1 {font-size:clamp(1.8rem,3.9vw,3.25rem)}
.group-detail-meta {color:#d5e5ec;margin-top:17px}
.group-detail .group-create {margin-top:19px}
.group-detail .activity-row {overflow-wrap:anywhere}
#group-application textarea {scroll-margin-top:28px}
.group-cover-field small,.group-reset-cover {font-size:.76rem;color:var(--muted)}
.group-cover-field input::file-selector-button {font:inherit;font-size:.83rem;border:0;border-radius:5px;padding:5px 8px;margin-right:8px;background:#e9f4f3;color:#1a665d;cursor:pointer}

.account-shell {border:0;background:radial-gradient(ellipse at 70% 0,#e4efef,#f2f6f9 58%,#fafcfd)}
.account-brand {max-width:1120px;display:flex;gap:15px;align-items:center;padding-top:clamp(26px,5vh,52px)}
.account-brand img {width:192px;background:#103553;border-radius:7px;padding:7px 10px}
.account-brand span {font-size:.94rem}
.account-layout {max-width:1120px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.86fr);align-items:stretch;gap:clamp(17px,3vw,36px)}
.account-entry {padding:clamp(22px,4vw,48px);box-shadow:0 18px 54px #102a4312}
.account-photo {position:relative;margin:0;min-height:420px;overflow:hidden;border-radius:var(--radius);background:var(--navy);box-shadow:0 18px 54px #102a4312}
.account-photo img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% 50%}
.account-photo figcaption {position:absolute;inset:auto 0 0;color:#fff;padding:40px 20px 18px;background:linear-gradient(transparent,#092138e6);font-size:.85rem}
.account-tabs {gap:18px}

@media (max-width:1100px) {
  .group-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .group-grid-single {grid-template-columns:minmax(0,1fr)}
}
@media (max-width:980px) {
  .mobile-directory-nav {display:block;background:#f6fafb;border-bottom:1px solid #d9e5eb}
  .mobile-directory-nav .container {display:flex;gap:14px}
  .mobile-directory-nav a {display:inline-flex;align-items:center;gap:6px;padding:10px 7px 8px;border-bottom:2px solid transparent;color:#274f65;font-size:.88rem;font-weight:600}
  .mobile-directory-nav a[aria-current="page"] {color:#195e55;border-color:#318474}
  .mobile-directory-nav .icon {width:17px;height:17px}
  .nav nav a:is([href="#projects"],[href="#groups"]) {display:none}
}
@media (max-width:700px) {
  .group-directory-heading {align-items:flex-start;flex-direction:column}
  .group-grid,.group-grid-single .group-card,.group-detail-heading,.account-layout {grid-template-columns:minmax(0,1fr)}
  .group-grid-single .group-card {grid-template-rows:auto 1fr}
  .group-grid-single .group-card-content {padding:22px}
  .group-grid-single .group-card-footer {margin-top:18px}
  .group-detail-heading>.group-photo {max-width:520px;width:100%}
  .account-photo {min-height:0;aspect-ratio:2.5/1;order:2}
  .account-brand {gap:10px;flex-wrap:wrap}
  .account-brand img {width:166px}
}
@media (max-width:595px) {
  .masthead,.masthead .brand {gap:9px}
  .masthead :is(.college-mark,body[data-page="workspace"] .college-mark) {width:clamp(106px,36vw,174px)}
  .masthead .brand-name strong {font-size:clamp(.8rem,3.5vw,1.05rem)}
  .masthead .brand-name small {font-size:.63rem}
  .masthead .brand-divider {height:27px}
  .banner-layout {grid-template-columns:minmax(0,1fr);min-height:0}
  .banner-copy {padding:33px 0 27px}
  .banner-copy h1 {font-size:clamp(2rem,9vw,3.3rem)}
  .banner-photo::after {background:none}
  .banner-photo figcaption {right:12px;bottom:12px}
}
