/* ==========================================================================
   Elementor ⇄ prototype compatibility. Keeps Elementor's wrappers neutral so
   MKT widgets render exactly like the prototype. Loaded after the prototype CSS.
   ========================================================================== */

/* Elementor containers that hold an MKT section widget add no spacing of their own. */
.e-con:has(> .elementor-widget[class*="elementor-widget-mkt-"]) { --gap: 0px; --row-gap: 0px; --column-gap: 0px; }
.elementor-widget[class*="elementor-widget-mkt-"] { width: 100%; }
.elementor-widget[class*="elementor-widget-mkt-"] > .elementor-widget-container { margin: 0; padding: 0; }

/* Header/footer templates render inside the theme slots. */
.site-header-slot, .site-footer-slot { display: contents; }
.has-hero .site-header { position: fixed; left: 0; right: 0; top: 0; }
.admin-bar.has-hero .site-header, .admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-hero .site-header, .admin-bar .site-header { top: 46px; } }
/* The hero sits under the fixed header (prototype: margin-top -header-h). */
.has-hero .hero { margin-top: 0 !important; }

/* Hello Elementor resets we don't want. */
body .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.page-content, .site-main { max-width: none; padding: 0; margin: 0; }

/* In the editor, never hide reveal-on-scroll elements. */
.elementor-editor-active .reveal, .elementor-editor-preview .reveal { opacity: 1 !important; transform: none !important; }

/* MetForm fields rendered with the prototype's form look (.field / .input / .btn--primary.btn--lg). */
.mkt-form .mf-input-wrapper { display: grid; gap: var(--space-1); }
.mkt-form .mf-input-label { font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--color-text); margin: 0 0 var(--space-1); }
.mkt-form .mf-input, .mkt-form .mf-input-select .mf_select__control {
  width: 100%; padding: 0.75rem 0.95rem; border: 1px solid var(--color-border) !important; border-radius: var(--radius-md) !important;
  background: var(--color-surface) !important; color: var(--color-text); min-height: 44px; font: inherit; box-shadow: none !important;
}
.mkt-form textarea.mf-input { min-height: 120px; resize: vertical; }
.mkt-form .mf-input:hover { border-color: var(--color-border-strong) !important; }
.mkt-form .mf-input:focus { outline: none; border-color: var(--color-focus) !important; box-shadow: 0 0 0 4px rgba(31, 79, 216, 0.12) !important; }
.mkt-form .metform-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 1.6rem !important; border-radius: var(--radius-pill) !important;
  background: var(--color-primary) !important; color: #fff !important; border: 0 !important; font: 600 var(--fs-base)/1.2 var(--font-body) !important;
  transition: background var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.mkt-form .metform-btn:hover { background: var(--color-primary-700) !important; transform: translateY(-1px); }
.mkt-form .mf-error-message { color: var(--color-error); font-size: var(--fs-xs); }
.mkt-form .e-con { --gap: var(--space-4); }
.mkt-form .mf-input-required-indicator { display: none; }

/* ---------- Portal (server-rendered screens) ---------- */
.pagination a {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit;
  min-width: 40px; height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-pill);
  border: 1px solid var(--color-border); background: var(--color-surface); font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination a[aria-current="page"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.portal-body .btn-group > form, .rep__actions > form, .post-card__actions > form { display: contents; }
.portal-body .post-card__actions .push { margin-left: auto; }
.routine-editing [data-editable] { outline: 1px dashed var(--color-border); outline-offset: -4px; background: var(--color-surface-alt, #f6f6f4); }

/* ---------- Mobile hero: full screen, content anchored to the bottom, no placeholder graphic ---------- */
@media (max-width: 767px) {
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero::before { width: 150vmax; height: 150vmax; right: -80vmax; top: -95vmax; }
  .hero::after { content: ""; position: absolute; z-index: -1; left: -30%; right: -30%; bottom: -35%; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 79, 216, 0.35), transparent); pointer-events: none; }
  .hero__photo { display: none; }
  .hero__inner, .hero:has(.hero__photo) .hero__inner { padding: calc(var(--header-h, 80px) + 2rem) var(--gutter) max(2rem, env(safe-area-inset-bottom)); }
  .hero__kicker { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; width: fit-content; font-size: 0.6rem; letter-spacing: 0; padding-inline: 0.75rem; margin-bottom: var(--space-6); }
  .hero__title { font-size: clamp(2.6rem, 12.5vw, 3.4rem) !important; line-height: 0.98 !important; margin: 0 0 var(--space-5) !important; }
  .hero__tagline { font-size: 1.25rem; margin: 0 0 var(--space-4); min-height: 1.5em; }
  .hero .lead { font-size: 1rem; line-height: 1.6; margin: 0 0 var(--space-7); }
  .hero .btn-group { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
  .hero .btn-group .btn { width: 100%; justify-content: center; }
}

/* ---------- Profile header: the avatar always sits above the cover ---------- */
.profile-head__row .avatar--xl { position: relative; z-index: 3; }
.avatar img { object-position: var(--focus, 50% 30%); }
.profile-cover { background-size: cover; background-position: center; }

/* ---------- Profile editor: photo focus, cover, LinkedIn import, social links ---------- */
.photo-upload--focus { align-items: center; }
.focus-picker { position: relative; width: 180px; max-height: 240px; border-radius: var(--radius-lg); overflow: hidden; cursor: crosshair; border: 1px solid var(--color-border); }
.focus-picker img { display: block; width: 100%; height: auto; }
.focus-picker__dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--color-primary), 0 2px 8px rgba(0,0,0,.35); pointer-events: none; transition: left .2s, top .2s; }
.cover-preview { height: 140px; border-radius: var(--radius-lg); background-size: cover; background-position: center; border: 1px solid var(--color-border); }
.import-card { border: 1px dashed var(--color-primary); background: linear-gradient(180deg, rgba(31,79,216,.05), transparent); }
.import-card .dropzone .hint { margin: var(--space-2) 0 0; text-align: center; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.social-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 500; color: var(--color-text); text-decoration: none; transition: border-color .2s, color .2s; }
.social-links a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.social-links svg { width: 18px; height: 18px; }

/* ---------- Portal shell: avatar-only top right, sign out at the end of the sidebar ---------- */
.portal-user__me { display: inline-flex; border-radius: 50%; transition: box-shadow .2s; }
.portal-user__me:hover, .portal-user__me:focus-visible { box-shadow: 0 0 0 3px rgba(31, 79, 216, 0.25); }
.portal-user__me .avatar--sm { --size: 40px; }
.portal-sidebar__out { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.portal-sidebar__out a { color: var(--color-text-muted); }
@media (max-width: 1023px) { .portal-sidebar__out { margin: 0; padding: 0; border: 0; } }

/* ---------- Jobs ---------- */
.job-list { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.job { display: grid; grid-template-columns: 52px 1fr auto; gap: var(--space-4); align-items: start; }
.job__logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 600; background: #e8eefc; color: #1f4fd8; }
.job h3 { margin: var(--space-2) 0 2px; font-size: var(--fs-lg); }
.job__org { margin: 0 0 var(--space-2); color: var(--color-text); }
.job__details summary { cursor: pointer; font-weight: 500; font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.job__details p { font-size: var(--fs-sm); color: var(--color-text-muted); }
.job__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
.job__actions > form { display: contents; }
.job__actions .btn svg { width: 14px; height: 14px; margin-left: 4px; }
.job--closed { opacity: .65; }
@media (max-width: 640px) { .job { grid-template-columns: 44px 1fr; } .job__logo { width: 44px; height: 44px; } .job__actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- Dashboard: stat tiles, progress ring, today's classes, checklist ---------- */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); margin-top: var(--space-4); }
.dash-stat { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-3); min-height: 132px; text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.dash-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(31, 79, 216, .35); }
.dash-stat__n { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.dash-stat__label { font-size: var(--fs-sm); color: var(--color-text-muted); }
.ring { --p: 0; --shown: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--color-primary, #1f4fd8) calc(var(--shown) * 1%), var(--color-border) 0); transition: --shown 1s; }
.ring > span { width: 50px; height: 50px; border-radius: 50%; background: var(--color-surface); display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 600; }
@property --shown { syntax: "<number>"; inherits: false; initial-value: 0; }
.today-list, .todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.today-list li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md, 12px); transition: background .3s; }
.today-list li div { display: grid; }
.today-list small { color: var(--color-text-muted); font-size: var(--fs-xs); }
.today-list li.is-now { background: rgba(31, 79, 216, .08); box-shadow: inset 3px 0 0 var(--color-primary, #1f4fd8); }
.today-list li.is-done { opacity: .5; }
.today-list__state { font-size: var(--fs-xs); font-weight: 600; color: var(--color-primary, #1f4fd8); white-space: nowrap; }
.todo-list a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md, 12px); color: inherit; text-decoration: none; font-size: var(--fs-sm); }
.todo-list a:hover { background: rgba(10, 10, 10, .04); }
.todo-list a svg { width: 16px; height: 16px; margin-left: auto; opacity: .5; transition: transform .2s; }
.todo-list a:hover svg { transform: translateX(3px); opacity: 1; }
.todo-list__box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--color-border); flex: none; }

/* ---------- Community cards (Marketing Club, Marketers' of PSTU) ---------- */
.community-cards { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .community-cards { grid-template-columns: 1fr 1fr; } }
.community-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-2); min-height: 260px; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-xl); text-decoration: none; color: #fff; background: #0b0d12; isolation: isolate; transition: transform .35s var(--ease); }
.community-card::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 79, 216, .6), transparent 65%); transition: transform .6s var(--ease); }
.community-card--2 { background: #1f4fd8; }
.community-card--2::before { background: radial-gradient(circle, rgba(157, 180, 255, .55), transparent 65%); }
.community-card:hover { transform: translateY(-4px); }
.community-card:hover::before { transform: scale(1.15); }
.community-card .bento__label { color: rgba(255, 255, 255, .7); }
.community-card h3 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.03em; margin: 0; }
.community-card p { color: rgba(255, 255, 255, .75); margin: 0; max-width: 42ch; }
.community-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); margin-bottom: var(--space-4); }
.community-card__icon svg { width: 24px; height: 24px; }
.community-card__cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-sm); padding: 0.75rem 1.25rem; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.community-card > p { margin-bottom: var(--space-6); }
.community-card__cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.community-card:hover .community-card__cta, .community-card:focus-visible .community-card__cta { background: #fff; color: #0b0d12; border-color: #fff; }
.community-card--2:hover .community-card__cta { color: #1f4fd8; }
.community-card:hover .community-card__cta svg { transform: translate(3px, -3px); }
/* Sits right after the alumni / notices sections, so it does not need a full section gap on top */
.community-section { padding-top: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.rep--empty .avatar { background: var(--color-surface-alt, #f1f1ef); color: var(--color-text-muted); }
.rep--empty h3 { color: var(--color-text-muted); }

/* ---------- Profile header: avatar overlaps the cover, details beside it ---------- */
.profile-head { padding: 0 clamp(1.25rem, 1rem + 1.5vw, 2rem) clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.profile-head__row { align-items: flex-start; flex-wrap: nowrap; gap: var(--space-5); }
.profile-head__row .avatar--xl { --size: 148px; margin-top: -64px; flex: none; }
.profile-head__id { padding-top: var(--space-4); }
.profile-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 var(--space-1); }
.profile-head__role { font-size: var(--fs-md); color: var(--color-text-muted); line-height: 1.45; max-width: 60ch; }
.profile-head__meta { align-items: center; margin-top: var(--space-3); }
.profile-head .contact-actions { margin-top: var(--space-4); }
@media (max-width: 640px) {
  .profile-head__row { flex-wrap: wrap; gap: var(--space-2); }
  .profile-head__row .avatar--xl { --size: 116px; margin-top: -58px; }
  .profile-head__id { padding-top: 0; flex-basis: 100%; }
}


/* ---------- Assignment review (teachers) ---------- */
.review__item { padding: var(--space-4) 0; border-top: 1px solid var(--color-border); display: grid; gap: var(--space-3); }
.review__who { display: flex; align-items: center; gap: var(--space-3); }
.review__who h3 { margin: 0; font-size: var(--fs-md); }
.review__who small { color: var(--color-text-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.review__note { margin: 0; color: var(--color-text-muted); font-style: italic; }
.review__grade { display: grid; grid-template-columns: 160px 1fr auto; gap: var(--space-3); align-items: end; }
@media (max-width: 640px) { .review__grade { grid-template-columns: 1fr; } }
.review__missing { border-top: 1px solid var(--color-border); padding-top: var(--space-4); }
.review__missing summary { cursor: pointer; font-weight: 500; margin-bottom: var(--space-3); }
.assign__grade { margin: var(--space-2) 0 0; font-size: var(--fs-sm); color: var(--color-text-muted); }
.assign__grade strong { color: var(--color-text); }

/* ---------- 404 ---------- */
.nf { padding: calc(var(--header-h, 90px) + 1.5rem) 0 clamp(3rem, 2rem + 4vw, 6rem); }
.nf__panel { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); background: #0b0d12; color: #fff; padding: clamp(2rem, 1rem + 5vw, 5rem); }
.nf__panel::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -350px; top: -500px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 79, 216, 0.55), transparent 62%); }
.nf__code { position: absolute; z-index: -1; right: -0.04em; bottom: -0.22em; margin: 0; font-size: clamp(9rem, 6rem + 18vw, 22rem); font-weight: 700; letter-spacing: -0.07em; line-height: 1; color: rgba(255, 255, 255, 0.05); user-select: none; }
.nf h1 { color: #fff; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; margin: 0 0 var(--space-5); max-width: 14ch; }
.nf .lead { color: rgba(255, 255, 255, 0.72); max-width: 44ch; margin: 0 0 var(--space-7); }
@media (max-width: 640px) { .nf .btn-group { display: grid; } .nf .btn-group .btn { justify-content: center; } }

/* ---------- Portal in-place navigation: thin progress bar while a screen loads ---------- */
.portal-progress { position: fixed; z-index: 9999; top: 0; left: 0; height: 3px; width: 0; background: var(--color-primary, #1f4fd8); box-shadow: 0 0 10px rgba(31, 79, 216, .6); opacity: 0; transition: width .2s ease, opacity .3s ease; pointer-events: none; }
.is-loading .portal-progress { width: 75%; opacity: 1; transition: width 8s cubic-bezier(.1, .7, .2, 1), opacity .1s; }
.is-loading .portal-main { opacity: .55; transition: opacity .2s .15s; }
.portal-main { transition: opacity .15s; }
.portal-main h1:focus { outline: none; }

/* ---------- Icons: inline helper ---------- */
.with-ic { display: inline-flex; align-items: center; gap: 0.45em; }
.with-ic > svg { width: 1.05em; height: 1.05em; flex: none; opacity: .75; }

/* ---------- Header: icons in the mobile menu only; roomier panel inset from the screen edges ---------- */
.main-nav .nav-ic { display: none; }
.main-nav__cta .btn svg { width: 16px; height: 16px; }
@media (max-width: 1023px) {
  .main-nav { left: 12px; right: 12px; border-radius: 24px; padding: 6px; }
  .main-nav ul { padding: var(--space-2); gap: 4px; }
  .main-nav a:not(.btn) { display: flex; align-items: center; gap: var(--space-3); padding: 12px 14px; font-size: 1.05rem; font-weight: 500; }
  .main-nav .nav-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--color-surface-alt, #f4f4f2); color: var(--color-text-muted); flex: none; }
  .main-nav .nav-ic svg { width: 18px; height: 18px; }
  .main-nav a[aria-current="page"] .nav-ic { background: #e8eefc; color: #1f4fd8; }
  .main-nav__cta { margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
  .main-nav .main-nav__cta .btn { width: 100%; justify-content: center; gap: 8px; padding-block: 14px; font-size: 1rem; margin: 0; }
}

/* ---------- Mobile hero: content centred in the screen ---------- */
@media (max-width: 767px) {
  .hero { min-height: 100svh; align-items: center; }
  .hero__inner, .hero:has(.hero__photo) .hero__inner { padding: calc(var(--header-h, 72px) + 1rem) var(--gutter) 2.5rem; }
  .hero__kicker { margin-bottom: var(--space-5); }
}

/* ---------- Card titles with an icon tile ---------- */
.card-title { display: flex; align-items: center; gap: 12px; font-size: var(--fs-lg); margin: 0 0 var(--space-4); }
.card-title__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #e8eefc; color: #1f4fd8; flex: none; }
.card-title__ic svg { width: 18px; height: 18px; }
.card__header .card-title { margin: 0; }
aside .card-title { font-size: var(--fs-md); }
.profile-head__meta .with-ic > svg { opacity: .6; }
.badge .with-ic > svg { width: 13px; height: 13px; opacity: 1; }
.profile-head__role .with-ic { align-items: flex-start; }
.profile-head__role .with-ic > svg { margin-top: .3em; }
.quote-card { position: relative; }
.quote-card__ic { display: block; width: 28px; height: 28px; color: #1f4fd8; margin-bottom: var(--space-2); }
.quote-card__ic svg { width: 28px; height: 28px; }

/* ---------- Career & education: connected timeline cards, "See more" after 3 ---------- */
.xp-list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--space-2); }
.xp-list::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--color-border), var(--color-border)) ; border-radius: 2px; }
.xp { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); padding: var(--space-3) var(--space-3) var(--space-3) 0; border-radius: var(--radius-md, 14px); transition: background .2s; }
.xp:hover { background: rgba(10, 10, 10, .025); }
.xp__ic { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text-muted); }
.xp__ic svg { width: 20px; height: 20px; }
.xp--now .xp__ic { background: #1f4fd8; border-color: #1f4fd8; color: #fff; box-shadow: 0 6px 18px rgba(31, 79, 216, .3); }
.xp__ic--edu { background: #f3efe7; border-color: #eadfca; color: #6b5420; }
.xp__body h3 { margin: 2px 0 4px; font-size: var(--fs-md); line-height: 1.3; }
.xp__body p { margin: 0; font-size: var(--fs-sm); color: var(--color-text-muted); }
.xp__org { color: var(--color-text) !important; }
.xp__when { margin-top: 4px !important; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.xp-list.is-collapsed > li:nth-child(n+4) { display: none; }
.xp-more { margin-top: var(--space-3); display: inline-flex; align-items: center; gap: 6px; }
.xp-more svg { width: 16px; height: 16px; transition: transform .25s; }
.xp-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Portal page titles with an icon tile ---------- */
.page-title-ic { display: flex; align-items: center; gap: 14px; }
.page-title-ic__tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #0b0d12; color: #fff; flex: none; box-shadow: 0 8px 20px rgba(11, 13, 18, .18); }
.page-title-ic__tile svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .page-title-ic__tile { width: 40px; height: 40px; border-radius: 13px; } }
.edit-section > .card-title { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.member-card .with-ic { justify-content: center; }
.member-card .with-ic > svg { width: 14px; height: 14px; }
.job .card__meta .with-ic > svg { width: 14px; height: 14px; }
.post-card__actions .btn svg { width: 14px; height: 14px; }
.dash-stat__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #e8eefc; color: #1f4fd8; }
.dash-stat__ic svg { width: 17px; height: 17px; }
.dash-stat__top { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-links .with-ic > svg { width: 15px; height: 15px; opacity: .55; } .footer-links a:hover .with-ic > svg { opacity: 1; }

/* ---------- Directory cards: left aligned, whole card clickable ---------- */
.member-card { position: relative; text-align: left; align-items: stretch; gap: 0; padding: var(--space-5); }
.member-card__head { display: flex; align-items: center; gap: var(--space-3); }
.member-card .avatar { --size: 56px; margin: 0; flex: none; }
.member-card__id { display: grid; gap: 2px; min-width: 0; flex: 1; }
.member-card h3 { font-size: var(--fs-md); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card .member-card__batch .with-ic, .member-card .with-ic { justify-content: flex-start; }
.member-card__tag { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #fdf3dc; color: #8a6116; align-self: flex-start; }
.member-card__tag svg { width: 16px; height: 16px; }
.member-card__facts { list-style: none; margin: var(--space-4) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--color-border); display: grid; gap: var(--space-2); font-size: var(--fs-sm); flex: 1; }
.member-card__facts li { color: var(--color-text); font-weight: 500; min-width: 0; }
.member-card__facts li.is-muted { color: var(--color-text-muted); font-weight: 400; }
.member-card__facts .with-ic { align-items: flex-start; }
.member-card__facts .with-ic > svg { width: 15px; height: 15px; margin-top: .2em; }
.member-card__facts .with-ic > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.member-card__cta { margin-top: var(--space-4); display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-3); border-top: 1px dashed var(--color-border); font-size: var(--fs-sm); font-weight: 600; color: var(--color-text); text-decoration: none; }
.member-card__cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.member-card__cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.member-card:hover .member-card__cta { color: #1f4fd8; }
.member-card:hover .member-card__cta svg { transform: translateX(4px); }

/* ---------- Mobile header: scrolled pill as wide as the hero header; same hamburger; same menu inset ---------- */
@media (max-width: 1023px) {
  .site-header:not(.is-flat) { padding: 8px; }
  .site-header:not(.is-flat) .site-header__bar { padding-left: calc(var(--gutter) - 8px); padding-right: calc(var(--gutter) - 8px); min-height: 64px; }
  .site-header.is-flat .site-header__bar { padding-left: var(--gutter); padding-right: var(--gutter); }
  .nav-toggle { width: 48px; height: 48px; min-width: 48px; padding: 0; justify-content: center; }
  .site-header:not(.is-flat) .main-nav { left: 4px; right: 4px; }
}

/* ---------- Touch: no sideways scrolling, no double-tap zoom, no zoom-in when a field gets focus ---------- */
html, body { overflow-x: clip; max-width: 100%; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 767px) { input, select, textarea, .input, .select, .textarea { font-size: 16px !important; } }

/* ---------- Inner pages: the header stays at the top while scrolling.
   Elementor wraps the header widget, which traps position:sticky; the theme's slot sticks instead. ---------- */
body:not(.has-hero) .site-header-slot { display: block; position: sticky; top: 0; z-index: var(--z-header, 50); }
body:not(.has-hero) .site-header-slot .site-header { position: relative; }
.admin-bar:not(.has-hero) .site-header-slot { top: 32px; }
@media (max-width: 782px) { .admin-bar:not(.has-hero) .site-header-slot { top: 46px; } .admin-bar:not(.has-hero) .site-header { top: 0; } }
.member-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr)); }
.member-card { padding: var(--space-4); }
.member-card__head { gap: 10px; }
.member-card .avatar { --size: 48px; }
.member-card h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: var(--fs-sm); }
.member-card__batch { white-space: nowrap; font-size: var(--fs-xs); }
.member-card__tag { width: 26px; height: 26px; border-radius: 8px; }

/* ---------- Footer: larger, easier-to-read text ---------- */
.site-footer { font-size: 1rem; }
.site-footer .footer-brand p { font-size: 1rem; line-height: 1.6; }
.site-footer h2 { font-size: 0.8rem; }
.footer-links { font-size: 1rem; }
.footer-links li { line-height: 1.5; }
.footer-bottom { font-size: 0.9rem; }
.site-footer .brand__name { font-size: 1.05rem; }
.site-footer .brand__sub { font-size: 0.85rem; }

/* ---------- Home: notices → alumni → community sit closer together ---------- */
.notices-section { padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }

/* ---------- Topic ticker on phones: tighter spacing, smaller words ---------- */
@media (max-width: 767px) {
  .marquee { padding-block: var(--space-4); }
  .marquee__track { gap: var(--space-4); }
  .marquee span { font-size: 1.05rem; gap: var(--space-4); }
}

/* ---------- Open menu: the page behind blurs and dims so the header and menu stay in focus ---------- */
.site-header::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(11, 13, 18, 0.32); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
.site-header:has(.main-nav.is-open)::before { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
html:has(.main-nav.is-open) { overflow: hidden; } /* no page scrolling behind the menu */
/* Menu items without icons (owner preference) */
.main-nav .nav-ic, .main-nav__cta .btn svg { display: none !important; }
@media (max-width: 1023px) { .main-nav a:not(.btn) { gap: 0; padding: 14px 16px; } }
/* Subtitle "Business Administration, PSTU" also on phones */
.site-header .brand__sub, .portal-topbar .brand__sub { display: block !important; font-size: 11px; }

/* ---------- Footer: square top edge; copyright + credit centred on phones ---------- */
.site-footer { border-radius: 0 !important; }
@media (max-width: 767px) { .footer-bottom { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--space-2); } }

/* ---------- Phones: notices → alumni → community read as tidy cards ---------- */
@media (max-width: 767px) {
  .section-heading--split { display: grid; gap: var(--space-3); align-items: start; }
  .section-heading--split > .btn, .section-heading--split > a.btn { justify-self: start; }
  .notices-section .rows { display: grid; gap: var(--space-2); border: 0; }
  .notices-section .rows li { border: 0; }
  .notices-section .rows a { display: grid; grid-template-columns: 1fr 36px; grid-template-areas: "date go" "title go"; align-items: center; gap: 4px var(--space-3); padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
  .notices-section .rows time { grid-area: date; font-size: 0.7rem; }
  .notices-section .rows__title { grid-area: title; font-size: 1rem; line-height: 1.35; }
  .notices-section .rows__go { grid-area: go; display: grid !important; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-surface-alt, #f4f4f2); opacity: 1 !important; transform: none !important; }
  .notices-section .rows__go svg { width: 16px; height: 16px; }
  .star { padding: var(--space-3); gap: var(--space-4); align-items: center; }
  .star__photo { width: 96px; }
  .star__info { padding: 0; }
  .star h3 { font-size: 1.15rem; }
  .community-section { padding-bottom: var(--space-6); }
}

/* ---------- Alumni: a dark feature band so the section stands out (photos stay black & white) ---------- */
.stars-section { position: relative; overflow: hidden; isolation: isolate; background: #0b0d12; color: #fff; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); margin-block: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.stars-section::before { content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -25vmax; top: -45vmax; border-radius: 50%; background: radial-gradient(circle, rgba(31, 79, 216, 0.5), transparent 62%); }
.stars-section::after { content: ""; position: absolute; z-index: -1; width: 50vmax; height: 50vmax; left: -25vmax; bottom: -35vmax; border-radius: 50%; background: radial-gradient(circle, rgba(157, 180, 255, 0.16), transparent 65%); }
.stars-section .eyebrow { color: #9db4ff; }
.stars-section .eyebrow::before { background: #9db4ff; }
.stars-section h2 { color: #fff; }
.stars-section .section-heading p, .stars-section .lead { color: rgba(255, 255, 255, 0.68); }
.stars-section .star { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stars-section .star:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(157, 180, 255, 0.4); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); }
.stars-section .star__photo { background: rgba(255, 255, 255, 0.06); }
.stars-section .bento__label { color: #9db4ff; }
.stars-section .star h3 { color: #fff; }
.stars-section .star__role { color: rgba(255, 255, 255, 0.9); }
.stars-section .star__org { color: rgba(255, 255, 255, 0.55); }

/* ---------- Dashboard ring: filled from the real value; number and % on one line ---------- */
.ring { background: conic-gradient(var(--color-primary, #1f4fd8) calc(var(--p) * 1%), var(--color-border) 0); }
.ring > span { display: flex; align-items: baseline; justify-content: center; white-space: nowrap; gap: 1px; font-size: 0.95rem; }
.ring > span b { font-weight: 600; }
.nowrap { white-space: nowrap; }
/* Ring: brand blue fill, label centred */
.ring { --size: 64px; width: var(--size); height: var(--size); display: grid; place-items: center; background: conic-gradient(#1f4fd8 calc(var(--p) * 1%), #e8eefc 0) !important; }
.ring > span { width: calc(var(--size) - 12px); height: calc(var(--size) - 12px); border-radius: 50%; background: var(--color-surface, #fff); display: flex !important; align-items: center !important; justify-content: center; line-height: 1; font-size: 0.9rem; }
.badge { white-space: nowrap; }
/* Community cards keep white text/icons on hover (the global a:hover colour must not apply) */
.community-card:hover, .community-card:focus-visible, .community-card:hover .community-card__icon, .community-card:hover h3 { color: #fff; }
/* Teacher photos: rounded corners (Elementor resets image radius to 0) */
.tp-hero__photo, .leader__photo img, .leader__photo, .chair-card img { border-radius: var(--radius-lg) !important; }
.person__photo, .person__photo img { border-radius: var(--radius-lg) !important; }
.tp-mini img { border-radius: 50% !important; }
/* ---------- Teacher profile: main sections as cards matching the side cards ---------- */
.tp-main { display: grid; gap: var(--space-4); align-content: start; }
.tp-block { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); margin: 0 !important; }
.tp-block .card-title { font-size: 1.15rem; margin: 0 0 var(--space-4); gap: 10px; }
.tp-block .card-title__ic { width: 32px; height: 32px; border-radius: 10px; }
.tp-block .card-title__ic svg { width: 16px; height: 16px; }
.tp-block > p { margin: 0; color: var(--color-text); line-height: 1.7; }
.tp-block .tag-list { margin: 0; }
.pub-list { margin: 0; }
.pub-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: baseline; padding: var(--space-3) 0; border-top: 1px solid var(--color-border); }
.pub-list li:first-child { border-top: 0; padding-top: 0; }
.pub-list__year { font-family: var(--font-mono); font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; background: #e8eefc; color: #1f4fd8; }
.pub-list__title { line-height: 1.55; }
.tp-hero__text .badge .with-ic > svg { width: 14px; height: 14px; opacity: 1; }
.tp-hero__text > p .with-ic > svg { opacity: .6; }
.tp-side__card .bento__label .with-ic > svg { width: 14px; height: 14px; }
.tp-mini > svg { width: 16px; height: 16px; margin-left: auto; opacity: .35; transition: transform .2s, opacity .2s; flex: none; }
.tp-mini:hover > svg { opacity: 1; transform: translateX(3px); color: #1f4fd8; }
.tp-block .pub-list, .tp-block .pub-list li:first-child { border-top: 0 !important; }
/* Teacher profile: smaller gap between the top card and the content cards */
.tp-hero { padding-bottom: 0 !important; }
.tp-hero + .section--tight, .tp-layout { padding-top: 0; }
section.section--tight:has(.tp-layout) { padding-top: var(--space-4) !important; }
/* Other teachers: every photo reads as a circle (thin ring), rows align to the centre */
.tp-mini { align-items: center; }
.tp-mini img { width: 44px !important; height: 44px !important; object-fit: cover; object-position: center 20%; background: var(--color-surface-alt, #f4f4f2); box-shadow: 0 0 0 1px var(--color-border), 0 2px 6px rgba(10, 10, 10, .06); flex: none; }
/* Teacher profile: same 16px gutter between the columns as between the cards */
.tp-layout { column-gap: var(--space-4) !important; row-gap: var(--space-4) !important; }
.tp-side { display: grid; gap: var(--space-4); align-content: start; }
.tp-side__card { margin: 0 !important; }
/* Sign out in red */
.portal-sidebar .portal-sidebar__out a { color: #c0362c; }
.portal-sidebar .portal-sidebar__out a:hover { color: #9a2a22; background: #fdecea; }

/* ---------- Attendance ---------- */
.att-tools { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.att-count { font-size: var(--fs-sm); color: var(--color-text-muted); font-weight: 500; }
.att-list { list-style: none; margin: 0 0 var(--space-4); padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.att-row { display: grid; grid-template-columns: 28px 36px 1fr auto; gap: var(--space-3); align-items: center; padding: 10px var(--space-4); border-top: 1px solid var(--color-border); }
.att-row:first-child { border-top: 0; }
.att-row:nth-child(even) { background: #fafaf9; }
.att-row__n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-text-muted); text-align: right; }
.att-row__who { display: grid; min-width: 0; }
.att-row__who strong { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-row__who small { font-size: 0.75rem; color: var(--color-text-muted); }
.att-seg { display: inline-flex; border: 1px solid var(--color-border); border-radius: 999px; padding: 3px; background: var(--color-surface); gap: 2px; }
.att-seg input { position: absolute; opacity: 0; pointer-events: none; }
.att-seg label { cursor: pointer; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); transition: background .15s, color .15s; user-select: none; }
.att-seg__full { font-weight: 500; }
.att-seg input:focus-visible + label { outline: 2px solid #1f4fd8; outline-offset: 1px; }
.att-seg input:checked + .att-seg__p { background: #e6f2ec; color: #1c6b45; }
.att-seg input:checked + .att-seg__l { background: #fdf3dc; color: #8a6116; }
.att-seg input:checked + .att-seg__a { background: #fdecea; color: #b42318; }
@media (max-width: 640px) { .att-row { grid-template-columns: 36px 1fr; } .att-row__n { display: none; } .att-seg { grid-column: 1 / -1; justify-self: stretch; } .att-seg label { flex: 1; text-align: center; } .att-seg__full { display: none; } }
.att-dates { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-4); }
.att-dates .chip small { opacity: .6; margin-left: 4px; }
.att-bar { --v: 0; display: inline-block; position: relative; width: 90px; height: 6px; border-radius: 6px; background: #e8eefc; vertical-align: middle; overflow: visible; }
.att-bar > span { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: 6px; background: #1c6b45; }
.att-bar.is-low > span { background: #b42318; }
.att-bar > i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--color-text); opacity: .35; border-radius: 2px; }
.badge--danger { background: #fdecea; color: #b42318; }
.att-overall { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.att-courses { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.att-course h3 { margin: 2px 0 0; font-size: var(--fs-md); }
.att-course.is-low { border-color: #f4c7c2; }
.att-course__pct { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-3) 0; }
.att-course__pct b { font-size: 2rem; letter-spacing: -0.03em; line-height: 1; }
.att-course__pct .att-bar { flex: 1; height: 8px; }
.att-course__stats { list-style: none; margin: 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--color-border); display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 0.75rem; color: var(--color-text-muted); }
.att-course__stats b { display: block; font-size: var(--fs-md); color: var(--color-text); }
.att-course__tip { display: flex; gap: 8px; align-items: center; margin: var(--space-3) 0 0; padding: 10px 12px; border-radius: 12px; background: #fdecea; color: #b42318; font-size: var(--fs-sm); }
.att-course__tip svg { width: 16px; height: 16px; flex: none; }
.att-course__dates { margin-top: var(--space-3); font-size: var(--fs-sm); }
.att-course__dates summary { cursor: pointer; color: var(--color-text-muted); }
.att-course__dates p { margin: 6px 0 0; }
.toolbar .field--narrow:has(input[type="date"]) { min-width: 170px; }

/* ---------- Archives ---------- */
.arc-hero { position: relative; isolation: isolate; overflow: hidden; background: #0b0d12; color: #fff; min-height: clamp(380px, 55vh, 560px); display: flex; align-items: flex-end; padding: calc(var(--header-h, 90px) + 2rem) 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); margin-top: calc(-1 * var(--header-h, 0px)); }
.arc-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: arc-zoom 14s ease-out both; }
.arc-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 13, 18, .25) 0%, rgba(11, 13, 18, .45) 45%, rgba(11, 13, 18, .92) 100%); }
.arc-hero--empty::after { background: radial-gradient(circle at 85% 0%, rgba(31, 79, 216, .55), transparent 55%); }
@keyframes arc-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.arc-hero__inner { width: 100%; }
.arc-hero .breadcrumb ol, .arc-hero .breadcrumb a { color: rgba(255, 255, 255, .75); }
.arc-hero h1 { color: #fff; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; margin: 0 0 var(--space-4); max-width: 16ch; }
.arc-hero .lead { color: rgba(255, 255, 255, .78); max-width: 52ch; margin: 0; }
.arc-hero__credit { display: inline-flex; margin-top: var(--space-5); font-size: var(--fs-sm); color: rgba(255, 255, 255, .7); text-decoration: none; }
.arc-hero__credit:hover { color: #fff; }
.arc-hero .album__meta { color: rgba(255, 255, 255, .8); margin-bottom: var(--space-3); }
.arc-hero .badge { background: rgba(255, 255, 255, .14); color: #fff; }
.arc-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); align-items: center; margin-bottom: var(--space-5); }
.albums { display: grid; gap: var(--space-5) var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.album { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.album__cover { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-alt, #f1f1ef); }
.album__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.album:hover .album__cover img { transform: scale(1.05); }
.album__count { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(11, 13, 18, .65); color: #fff; font-size: 0.75rem; backdrop-filter: blur(6px); }
.album__count .with-ic > svg { width: 13px; height: 13px; opacity: 1; }
.album__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 0.8rem; color: var(--color-text-muted); margin-top: 6px; }
.album h2 { font-size: var(--fs-md); margin: 0; letter-spacing: -0.01em; line-height: 1.3; }
.album:hover h2 { color: #1f4fd8; }
.album__date { font-size: 0.8rem; color: var(--color-text-muted); }
.gallery { columns: 3 260px; column-gap: var(--space-3); }
.gallery__item { display: block; margin-bottom: var(--space-3); border-radius: var(--radius-md, 14px); overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.gallery__item img { width: 100%; height: auto; display: block; transition: transform .5s var(--ease), filter .3s; }
.gallery__item:hover img { transform: scale(1.03); filter: brightness(1.05); }
.arc-foot { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; margin-top: var(--space-6); }
.lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(6, 8, 12, .94); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 112px); object-fit: contain; border-radius: 10px; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 12px; right: 12px; font-size: 1.1rem; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 0.85rem; font-family: var(--font-mono); }
.album-manage { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: var(--space-4); }
.album-manage__item { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.album-manage__item.is-cover { border-color: #1f4fd8; box-shadow: 0 0 0 2px #1f4fd8; }
.album-manage__item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.album-manage__item figcaption { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px; }
.album-manage__item figcaption form { display: contents; }
.albums--portal { margin-top: var(--space-2); }
/* Archives: the usual pill header; the hero slides up underneath it so there is no white band */
.arc-hero { margin-top: -88px !important; padding-top: calc(88px + 2.5rem) !important; }
.arc-hero .breadcrumb [aria-current] { color: #fff; }
/* Phones: the building fills the hero behind the copy; the text sits at the bottom over a dark fade */
@media (max-width: 767px) {
  .hero:has(.hero__photo) { min-height: 100svh; align-items: flex-end; }
  .hero__photo { display: block !important; position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero__photo img { object-position: 46% 35%; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(11, 13, 18, .55) 0%, rgba(11, 13, 18, .2) 20%, rgba(11, 13, 18, .45) 34%, rgba(11, 13, 18, .9) 50%, #0b0d12 66%) !important; }
  .hero:has(.hero__photo) .hero__inner { padding: calc(var(--header-h, 80px) + 2rem) var(--gutter) max(1.75rem, env(safe-area-inset-bottom)) !important; }
  .hero__kicker { margin-bottom: var(--space-4); background: rgba(11, 13, 18, .45); }
  .hero__title { font-size: clamp(2.4rem, 11.5vw, 3.1rem) !important; margin: 0 0 var(--space-3) !important; }
  .hero__tagline { font-size: 1.1rem; margin: 0 0 var(--space-3); }
  .hero .lead { font-size: .95rem; margin: 0 0 var(--space-6); }
  .hero .btn-group .btn { min-height: 52px; padding-block: .8rem; font-size: 1rem; }
}
.arc-filters .chip { text-decoration: none; }

/* Archives filter row: chips and the batch select on one centred line, no underlines */
.arc-filters { align-items: center; }
.arc-filters .chip-group { margin: 0; align-items: center; }
.arc-filters .chip, .arc-filters .chip:hover { text-decoration: none !important; }
.arc-batch { margin: 0; display: flex; align-items: center; }
.arc-batch .select { height: 40px; min-height: 40px; padding-block: 0; }
/* Pill header sits closer to the top of the screen */
.site-header:not(.is-flat) { padding-top: 6px !important; padding-bottom: 6px !important; }
.arc-hero { margin-top: -76px !important; padding-top: calc(76px + 2.5rem) !important; }
/* With the WordPress toolbar, only the sticky slot is offset — the header inside it must not be pushed down again */
body:not(.has-hero) .site-header-slot .site-header { top: 0 !important; }
/* Header a little lower from the top edge; page content starts closer below it */
.site-header:not(.is-flat) { padding-top: 12px !important; padding-bottom: 8px !important; }
.page-header { padding-top: clamp(1.25rem, 0.75rem + 1.5vw, 2.25rem) !important; }
.about-hero { padding-top: clamp(1.25rem, 0.75rem + 1.5vw, 2.25rem) !important; }
.tp-hero { padding-top: clamp(1rem, 0.75rem + 1vw, 1.75rem) !important; }
.arc-hero { margin-top: -84px !important; padding-top: calc(84px + 2.5rem) !important; }

/* About: calmer banner — shorter, building centred, soft fade instead of a heavy dark block */
.about-hero__media { aspect-ratio: 5 / 2; margin-top: var(--space-6); border-radius: var(--radius-xl); background: #16233f; box-shadow: 0 30px 60px -30px rgba(22, 35, 63, .45); }
.about-hero__media img { object-fit: cover; object-position: 50% 62%; transform: none; }
.about-hero__media::after { background: linear-gradient(180deg, rgba(22, 35, 63, 0) 55%, rgba(22, 35, 63, .35) 100%) !important; }
@media (max-width: 767px) { .about-hero__media { aspect-ratio: 4 / 3; } }
.about-hero__media { background:
    linear-gradient(180deg, transparent 84%, #2f5d33 84%, #2f5d33 100%),
    linear-gradient(180deg, #16233f 0%, #2b4a7e 50%, #7c93b8 84%); }
.about-hero__media img { object-fit: contain; object-position: 50% 100%; }
.about-hero__media::after { background: none !important; }
@media (max-width: 767px) { .about-hero__media img { object-fit: cover; object-position: 50% 70%; } }
.about-hero__media { aspect-ratio: 16 / 7; background: #16233f; }
.about-hero__media img { object-fit: cover; object-position: 50% 60%; }
@media (max-width: 767px) { .about-hero__media { aspect-ratio: 4 / 3; } .about-hero__media img { object-fit: cover; object-position: 50% 65%; } }
/* Balanced header spacing: 16px above the pill, a calm 56px gap before page content */
.site-header:not(.is-flat) { padding-top: 16px !important; padding-bottom: 0 !important; }
.page-header, .about-hero { padding-top: 56px !important; }
.tp-hero { padding-top: 40px !important; }
@media (max-width: 767px) { .site-header:not(.is-flat) { padding-top: 10px !important; } .page-header, .about-hero { padding-top: 36px !important; } .tp-hero { padding-top: 24px !important; } }
.arc-hero { margin-top: -84px !important; padding-top: calc(84px + 3rem) !important; }
.about-hero__media { background: #bcdcfb; box-shadow: 0 30px 60px -30px rgba(31, 79, 216, .35); }
.about-hero__media img { object-position: 50% 55%; }
@media (max-width: 767px) { .about-hero__media img { object-position: 55% 60%; } }
/* A little more air above the pill header */
.site-header:not(.is-flat) { padding-top: 24px !important; }
@media (max-width: 767px) { .site-header:not(.is-flat) { padding-top: 14px !important; } }
.arc-hero { margin-top: -92px !important; padding-top: calc(92px + 3rem) !important; }
.about-hero__media { background: #0f1a33 !important; box-shadow: 0 30px 60px -30px rgba(15, 26, 51, .55) !important; }
/* Archives hero: library illustration, framed so the building sits right and text reads on the left */
.post-type-archive-mkt_album .arc-hero__img { object-position: 62% 60%; animation: none; }
.post-type-archive-mkt_album .arc-hero::after { background: linear-gradient(90deg, rgba(11, 13, 18, .82) 0%, rgba(11, 13, 18, .55) 38%, rgba(11, 13, 18, .1) 70%), linear-gradient(0deg, rgba(11, 13, 18, .55), transparent 40%) !important; }
@media (min-width: 900px) {
  .post-type-archive-mkt_album .arc-hero__img { width: 125%; left: 22%; right: auto; object-position: 50% 60%; }
  .post-type-archive-mkt_album .arc-hero { background: #3a73cf; }
}
@media (max-width: 899px) {
  .post-type-archive-mkt_album .arc-hero__img { object-position: 70% 55%; }
  .post-type-archive-mkt_album .arc-hero::after { background: linear-gradient(180deg, rgba(11, 13, 18, .55) 0%, rgba(11, 13, 18, .72) 45%, rgba(11, 13, 18, .9) 100%) !important; }
}

/* ======================= Page hero banner (every inner page) ======================= */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: #0b0d12; color: #fff; display: flex; align-items: flex-end;
  min-height: clamp(400px, 54vh, 540px); margin-top: -92px; padding: calc(92px + 3rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -25vmax; top: -45vmax; border-radius: 50%; background: radial-gradient(circle, rgba(31, 79, 216, .45), transparent 62%); }
.page-hero__photo { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 60%; overflow: hidden; }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; animation: photo-in 1.4s var(--ease) both; }
.page-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0d12 0%, rgba(11, 13, 18, .6) 28%, rgba(11, 13, 18, 0) 62%), linear-gradient(0deg, rgba(11, 13, 18, .55), transparent 40%); }
.page-hero__inner { width: 100%; position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.6rem); letter-spacing: -0.045em; line-height: 1; margin: 0 0 var(--space-4); max-width: 13ch; }
.page-hero h1 span { color: rgba(255, 255, 255, .55); }
.page-hero .lead { color: rgba(255, 255, 255, .74); max-width: 48ch; margin: 0; }
.page-hero .breadcrumb ol, .page-hero .breadcrumb a { color: rgba(255, 255, 255, .7); }
.page-hero .breadcrumb [aria-current] { color: #fff; }
.page-hero .hero__kicker { margin-bottom: var(--space-5); width: fit-content; align-self: flex-start; }
.page-hero .album__meta { color: rgba(255, 255, 255, .8); margin-top: var(--space-4); }
.page-hero .badge { background: rgba(255, 255, 255, .14); color: #fff; }
.page-hero .arc-hero__credit { display: inline-flex; margin-top: var(--space-5); font-size: var(--fs-sm); color: rgba(255, 255, 255, .7); text-decoration: none; }
.page-hero--about h1 { max-width: 14ch; }
.page-hero--about .lead { max-width: 52ch; }
@media (max-width: 767px) {
  .page-hero { min-height: 0; margin-top: -76px; padding: calc(76px + 2rem) 0 2.25rem; }
  .page-hero__photo { width: 100%; }
  .page-hero__photo::after { background: linear-gradient(180deg, rgba(11, 13, 18, .55) 0%, rgba(11, 13, 18, .78) 50%, rgba(11, 13, 18, .94) 100%); }
  .page-hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
}
.page-hero { margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
/* per-illustration framing inside the banner */
.page-hero__photo img[src*="scene-sculpture"] { object-position: 62% 18%; }
.page-hero__photo img[src*="scene-admin"] { object-position: 50% 45%; }
.page-hero__photo img[src*="scene-fba-front"] { object-position: 50% 45%; }
.page-hero__photo img[src*="scene-pstu-garden"] { object-position: 50% 70%; }
/* Pill header: near-solid white so it stands out over the dark page banners */
.site-header:not(.is-flat) .site-header__bar {
  background: rgba(255, 255, 255, .94) !important;
  border: 1px solid rgba(255, 255, 255, .9) !important;
  box-shadow: 0 10px 30px -8px rgba(5, 10, 25, .45), 0 0 0 1px rgba(10, 10, 10, .04) !important;
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
}

/* ---------- Contact: one grid, even 16px gaps; fuller info card; form in the site's type ---------- */
.contact-cards { gap: var(--space-4); }
.contact-layout { display: grid; gap: var(--space-4) !important; margin-top: var(--space-4); align-items: stretch !important; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: repeat(3, 1fr) !important; } .contact-layout .contact-form { grid-column: span 2; } }
.contact-note { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: var(--space-3); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--radius-xl); background: #1f4fd8; color: #fff; }
.contact-note::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -180px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(157, 180, 255, .55), transparent 65%); }
.contact-note__art { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; object-fit: cover; object-position: 50% 60%; opacity: .32; mix-blend-mode: luminosity; -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%); mask-image: linear-gradient(180deg, transparent, #000 55%); }
.contact-note .eyebrow { color: rgba(255, 255, 255, .8); }
.contact-note h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); margin: 0; letter-spacing: -0.03em; }
.contact-hours { list-style: none; margin: var(--space-2) 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.contact-hours li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); }
.contact-hours b { color: #fff; font-weight: 600; white-space: nowrap; }
.contact-hours b.is-closed { color: rgba(255, 255, 255, .6); font-weight: 500; }
.contact-note p { color: rgba(255, 255, 255, .78); margin: 0; font-size: var(--fs-sm); }
.contact-note .btn-group { margin-top: var(--space-2); gap: var(--space-2); }
.contact-note .btn svg { width: 16px; height: 16px; }
.contact-note .btn { gap: 6px; }
.contact-note__community { margin-top: auto; padding-top: var(--space-5); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--fs-sm); }
.contact-note__community span { width: 100%; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.contact-note__community a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.contact-note__community a:hover { border-color: #fff; }
.contact-form { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) !important; }
.contact-form h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: -0.03em; margin: 0; }
.contact-form__intro { margin: 6px 0 var(--space-5); font-size: var(--fs-sm); }
/* MetForm in the site's type */
.mkt-form, .mkt-form :is(input, textarea, select, button, label, .mf-input-label) { font-family: var(--font-body, Geist, system-ui, sans-serif) !important; letter-spacing: normal; }
.mkt-form .mf-input-label { font-size: var(--fs-sm) !important; font-weight: 500 !important; color: var(--color-text-muted, #5c5f66) !important; }
.mkt-form .mf-input { font-size: 1rem !important; color: var(--color-text) !important; background: #fafaf9 !important; border: 1px solid var(--color-border) !important; padding: 12px 14px !important; min-height: 48px; }
.mkt-form .mf-input:focus { background: #fff !important; }
.mkt-form .mf-input::placeholder { color: #9a9ca3; }
.mkt-form .metform-btn { font-size: .95rem !important; font-weight: 600 !important; padding: 13px 26px !important; box-shadow: none !important; }

/* ---------- Statement: words fill with colour while scrolling (only once the script is running) ---------- */
.statement__text .fw { color: var(--color-text); }
.statement__text .fw--muted { color: var(--color-text-muted); }
.js-scroll-fill .statement__text[data-scroll-fill] .fw { color: #d4d6db; transition: color .35s ease; }
.js-scroll-fill .statement__text[data-scroll-fill] .fw.is-on { color: var(--color-text); }
.js-scroll-fill .statement__text[data-scroll-fill] .fw--muted.is-on { color: var(--color-text-muted); }
@media (prefers-reduced-motion: reduce) { .js-scroll-fill .statement__text[data-scroll-fill] .fw { transition: none; } }
.pagination__gap { padding: 0 4px; color: var(--color-text-muted); align-self: center; }
