/* Shared interface contract. Feature layouts live in app.css and tools-premium.css.
   Keep tokens, type, controls, public navigation, catalogue rows and workspace
   chrome here. Do not add another theme or duplicate these selectors elsewhere. */
@font-face {
  font-family: Inter;
  src: url('/brand/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* The full original remains available for every other script. */
@font-face {
  font-family: Inter;
  src: url('/brand/fonts/InterVariable-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-036F,U+2000-206F,U+20A0-20CF,U+2190-21FF,U+2304,U+FEFF,U+FFFD;
}
:root {
  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #fafafa;
  --panel: #fff;
  --panel-2: #f6f7f7;
  --text: #202526;
  --ink: var(--text);
  --muted: #707778;
  --border: #e7e9e8;
  --accent: #166365;
  --accent-2: var(--accent);
  --accent-strong: #104c4e;
  --brand: var(--accent);
  --brand-dark: var(--accent-strong);
  --brand-ink: var(--text);
  --brand-soft: #edf5f3;
  --surface: var(--panel);
  --surface-raised: var(--panel);
  --soft-border: var(--border);
  --shadow: 0 1px 2px #16282406;
  --soft-shadow: var(--shadow);
  --ring: #16636522;
  --danger: #b64040;
  --success: #267448;
  --premium-gold: #9a6b1f;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-to-content {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #102a43;
  color: #ffffff;
  transform: translateY(-160%);
}
.skip-to-content:focus {
  transform: translateY(0);
}
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font: 400 14px/1.6 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
::selection { background: #d5eae4; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
h1 { font-size: 32px; } h2 { font-size: 22px; } h3 { font-size: 17px; } h4 { font-size: 15px; }
p { margin: 0; } p + p { margin-top: .65em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
strong, b { font-weight: 600; }
button, input, textarea, select { font: inherit; }
button, .button-primary, .marketing-register, .marketing-login, a.ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 8px 13px; border: 1px solid transparent;
  border-radius: 7px; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 500; line-height: 1.35; text-decoration: none;
  cursor: pointer; box-shadow: none; transition: background-color .15s, border-color .15s;
}
button:hover, .button-primary:hover, .marketing-register:hover { background: var(--accent-strong); color: #fff; transform: none; box-shadow: none; }
button:active { transform: none; }
button:disabled, button[aria-disabled=true] { cursor: not-allowed; opacity: .5; }
button.ghost, a.ghost, .marketing-login { background: var(--panel); border-color: var(--border); color: var(--text); box-shadow: var(--shadow); }
button.ghost:hover, a.ghost:hover, .marketing-login:hover { background: var(--panel-2); border-color: #cfd5d2; color: var(--text); box-shadow: none; }
button.danger { background: var(--danger); }
input, select, textarea { min-width: 0; width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #dfe3e0; border-radius: 7px; background: var(--panel); color: var(--text); line-height: 1.4; box-shadow: var(--shadow); }
input::placeholder, textarea::placeholder { color: #8a9190; opacity: 1; }
textarea { min-height: 110px; resize: vertical; }
textarea[rows="2"] { min-height: 76px; }
input[type=checkbox], input[type=radio] { width: 16px; min-height: 16px; height: 16px; accent-color: var(--accent); box-shadow: none; }
label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 500; }
label.checkbox, .checkbox-row { display: flex; gap: 9px; align-items: center; font-weight: 400; }
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
summary { cursor: pointer; }
.muted { color: var(--muted); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.stack > * { min-width: 0; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); box-shadow: none; }
.card-row, .section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-row { margin-bottom: 16px; }
.section-heading-row > a { font-size: 13px; text-decoration: none; }
.badge, .status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 0; border-radius: 5px; background: #f0f2f1; color: #606966; font-size: 11px; font-weight: 500; line-height: 1.6; }
.status-pill.is-success { background: #edf6ef; color: #267448; }
.status-pill.is-warning { background: #fbf3e5; color: #94661e; }
.status-pill.is-danger { background: #fbeded; color: var(--danger); }
.ui-icon { width: 18px; height: 18px; flex-shrink: 0; }
svg.ui-icon, svg.nav-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Shared consent controls must be styled before optional feature styles load. */
.cookie-consent-banner {
  position: fixed; inset: auto 0 0; z-index: 1000;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center; gap: clamp(24px, 7vw, 120px);
  padding: 24px max(18px, calc((100vw - 1360px) / 2));
  width: 100%; box-sizing: border-box; background: #000; color: #fff;
  border-top: 1px solid #333; border-radius: 0; box-shadow: 0 -4px 20px #0002;
  max-height: 85dvh; overflow-y: auto;
}
.cookie-consent-banner[hidden] { display: none; }
.cookie-consent-banner strong { display:block; margin-bottom:6px; color:#fff; font-size:1rem; }
.cookie-consent-banner p { margin:0; max-width:700px; color:#fff; font-size:.85rem; line-height:1.45; }
.cookie-consent-banner a { color:#fff; text-decoration:underline; font-weight:600; }
.cookie-consent-actions { display:flex; flex-direction:column; gap:8px; width:100%; }
.cookie-consent-actions button { width:100%; min-height:40px; padding:9px 18px; border:1px solid #fff; border-radius:999px; background:#fff; color:#000; font-size:.9rem; font-weight:600; box-shadow:none; }
.cookie-consent-actions button:hover { background:#e8e8e8; color:#000; }
.cookie-consent-actions button:focus-visible, .cookie-consent-banner a:focus-visible { outline:3px solid #75c9ff; outline-offset:3px; }
.cookie-choices-link { position:fixed; bottom:8px; right:10px; z-index:60; width:auto; padding:5px 10px; border:1px solid #56616b; border-radius:20px; background:#fff; color:#202a33; font-size:.72rem; }
@media (max-width:640px) { .cookie-consent-banner { grid-template-columns:1fr; gap:16px; padding:20px 18px; } }

/* Public pages: a quiet frame; content determines the composition. */
.public-site { background: var(--panel); }
.marketing-shell { display: flex; flex-direction: column; min-height: 100vh; width: 100%; }
.marketing-header { display: flex; align-items: center; gap: 40px; width: min(1120px, calc(100% - 80px)); min-height: 76px; margin: 0 auto; border-bottom: 1px solid var(--border); position: relative; z-index: 30; background: #fff; }
.marketing-brand, .marketing-footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; text-decoration: none; }
.marketing-brand-mark { width: 26px; height: 26px; flex: 0 0 26px; }
.marketing-brand-mark img, .brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-artwork { display: contents; }
.marketing-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.marketing-nav-item { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.marketing-nav-item:hover, .marketing-nav-item.active { color: var(--text); background: transparent; }
.marketing-nav-dropdown { position: relative; }
.marketing-nav-dropdown-toggle { list-style: none; }
.marketing-nav-dropdown-toggle::-webkit-details-marker { display: none; }
.marketing-nav-dropdown-toggle::after { content: '⌄'; font-size: 12px; color: #9aa19e; }
.marketing-nav-menu { position: absolute; top: calc(100% + 12px); left: -15px; min-width: 235px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 12px 40px #15241e12; }
.marketing-nav-menu .marketing-nav-item { display: flex; padding: 9px 10px; border-radius: 5px; }
.marketing-nav-menu .marketing-nav-item:hover { background: var(--panel-2); }
.marketing-auth-actions { display: flex; gap: 10px; align-items: center; }
.marketing-auth-actions .marketing-login { border: 0; box-shadow: none; }
.marketing-mobile-menu { display: none; }
.marketing-main { flex: 1; width: min(1040px, calc(100% - 80px)); min-width: 0; margin: 0 auto; }
.marketing-hero { padding: 48px 0 32px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.marketing-hero h1 { max-width: 850px; font-size: clamp(29px, 3.2vw, 40px); font-weight: 550; line-height: 1.18; letter-spacing: -.045em; }
.marketing-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.marketing-hero-copy { min-width: 0; }
.marketing-subtitle { max-width: 65ch; margin-top: 20px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.marketing-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.marketing-content { display: grid; gap: 64px; padding-bottom: 80px; min-width: 0; }
.marketing-section { display: grid; gap: 24px; min-width: 0; }
.marketing-section-heading { display: grid; gap: 12px; max-width: 760px; }
.marketing-section-heading h2 { font-size: 24px; }
.marketing-section-heading p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.marketing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.marketing-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.marketing-card { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: none; }
.marketing-card:hover { transform: none; box-shadow: none; }
.marketing-card h2, .marketing-card h3 { margin-bottom: 12px; }
.marketing-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.marketing-card.accent { background: var(--panel-2); border-color: var(--border); }
.marketing-list { display: grid; gap: 12px; padding-left: 20px; font-size: 14px; color: var(--muted); }
.marketing-inline-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.marketing-footer { width: min(1120px, calc(100% - 80px)); margin: auto auto 0; padding: 44px 0 20px; border-top: 1px solid var(--border); background: #fff; color: var(--muted); }
.marketing-footer-main { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.marketing-footer-link-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.marketing-footer-column { display: grid; align-content: start; gap: 12px; }
.marketing-footer a { color: var(--muted); font-size: 12px; text-decoration: none; }
.marketing-footer a:hover { color: var(--text); }
.marketing-footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 11px; }
.marketing-footer-meta-links { display: flex; flex-wrap: wrap; gap: 20px; }
.home-page .marketing-hero { padding: 80px 0 44px; }
.home-page .marketing-hero h1 { font-size: clamp(40px, 5vw, 62px); font-weight: 500; letter-spacing: -.06em; }
.home-search { display: flex; gap: 8px; max-width: 680px; padding: 6px; margin-top: 28px; border: 1px solid #d8dfdb; border-radius: 10px; box-shadow: 0 3px 14px #223b2b06; }
.home-search input { border: 0; background: transparent; box-shadow: none; font-size: 15px; min-height: 43px; }
.home-search button { flex: 0 0 auto; padding-inline: 22px; }
.home-discovery { display: grid; gap: 10px; }
.home-discovery h2 { font-size: 15px; font-weight: 500; }
.home-browse-link { display: flex; justify-content: space-between; padding: 24px 0; border-block: 1px solid var(--border); text-decoration: none; }
.home-advertising { display: flex; flex-wrap: wrap; gap: 24px; }
.home-advertising:not(:has(.phd-ad-slot:not([hidden]))) { display: none; }
.home-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Discovery: one search bar, one title link, quiet facts. */
.catalog-tabs { display: flex; gap: 26px; overflow-x: auto; margin-top: -6px; border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.catalog-tabs a { flex: 0 0 auto; padding: 0 0 14px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; text-decoration: none; }
.catalog-tabs a[aria-current=page] { border-color: var(--accent); color: var(--text); font-weight: 600; }
.marketing-content:has(.opportunity-catalog) { gap: 22px; }
.catalog-search { display: grid; gap: 12px; padding: 0 0 20px; }
.catalog-search-fields { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.catalog-search-fields button { min-height: 39px; padding-inline: 20px; }
.catalog-search-fields label { position: relative; }
.catalog-filters > summary { color: var(--muted); font-size: 12px; width: fit-content; }
.catalog-filter-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 16px; align-items: end; padding-top: 16px; }
.catalog-results-heading { display: flex; gap: 20px; justify-content: space-between; padding: 14px 0; border-block: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.catalog-results.opportunity-board-list { display: block; }
.opportunity-result { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: start; gap: 20px 40px; min-width: 0; padding: 26px 38px 26px 0; border-bottom: 1px solid var(--border); }
.opportunity-result-main { min-width: 0; }
.opportunity-result-title { margin: 0 0 7px; font-size: 17px; font-weight: 550; line-height: 1.45; letter-spacing: -.025em; overflow-wrap: anywhere; }
.opportunity-result-title a { display: block; color: var(--text); text-decoration: none; }
.opportunity-result-title a:hover { color: var(--accent); }
.opportunity-result-institution { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 12px; }
.opportunity-result-location::before { content: '·'; margin-right: 14px; color: #afb6b1; }
.opportunity-result-summary { max-width: 72ch; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.opportunity-result-facts { display: grid; gap: 10px; margin: 0; padding-top: 3px; }
.opportunity-result-facts dt { color: var(--muted); font-size: 10px; }
.opportunity-result-facts dd { margin: 2px 0 0; color: #4d5b55; font-size: 12px; }
.result-menu-trigger.ghost { position: absolute; top: 24px; right: 0; min-height: 28px; height: 28px; width: 28px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 23px; color: var(--muted); line-height: 1; }
[data-anchor-menu] { position: fixed; inset: auto; margin: 0; max-width: calc(100vw - 16px); padding: 16px; border: 1px solid #dce1dd; border-radius: 10px; background: #fff; color: var(--text); box-shadow: 0 10px 40px #1a2b1e24; overflow-y: auto; }
.opportunity-result-details { width: 360px; font-size: 13px; line-height: 1.65; }
.opportunity-result-details p { margin: 0 0 14px; }
.opportunity-result-details strong { display: block; margin-bottom: 3px; }
.opportunity-result-links { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.opportunity-result-links a { text-decoration: none; }
.opportunity-result-links button.ghost { justify-content: start; padding: 0; border: 0; box-shadow: none; color: var(--accent); }
.catalog-preview-gate { display: flex; gap: 30px; align-items: center; justify-content: space-between; padding: 32px 0; }
.catalog-preview-gate h2, .catalog-empty h2 { font-size: 19px; margin-bottom: 12px; }
.catalog-preview-gate p, .catalog-empty p, .catalog-note { max-width: 65ch; color: var(--muted); font-size: 13px; }
.catalog-empty { padding: 50px 0; }
.catalog-empty a { display: inline-block; margin-top: 16px; }
.catalog-sponsored { width: min(620px, 100%); margin: 30px auto 0; }
.catalog-sponsored:has(.phd-ad-slot[hidden]), .catalog-sponsored:empty { display: none; }

/* Applicant and admin workspaces share the same navigation and rhythm. */
.app-shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100svh; background: #fff; }
.sidebar { position: sticky; top: 0; height: 100svh; overflow-y: auto; padding: 26px 14px; border-right: 1px solid var(--border); background: #f8f9f8; box-shadow: none; }
.brand-block { margin: 0 10px 24px; }
.brand-row { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { display: inline-flex; width: 25px; height: 25px; }
.brand { color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
.sidebar-search { margin: 0 4px 24px; }
.sidebar-search-input { min-height: 32px; background: #fff; font-size: 12px; }
.sidebar-nav { display: grid; gap: 20px; }
.nav-section { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; }
.sidebar-section-toggle { display: flex; justify-content: space-between; width: 100%; min-height: 24px; padding: 0 10px; border: 0; background: transparent; color: var(--muted); box-shadow: none; text-align: left; }
.sidebar-section-toggle:hover { background: transparent; color: var(--text); }
.sidebar-section-title { margin: 0; font-size: 11px; color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.sidebar-section-chevron { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav-section.is-collapsed .sidebar-section-chevron { transform: rotate(-90deg); }
.nav-section-items { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 7px 10px; border: 0; border-radius: 6px; color: #626b66; font-size: 12px; font-weight: 400; text-decoration: none; box-shadow: none; }
.nav-item:hover { color: var(--text); background: #edf0ed; transform: none; }
.nav-item.active { color: #244a3d; background: #e6eee8; font-weight: 550; }
.nav-icon { width: 16px; height: 16px; color: #808c84; flex-shrink: 0; }
.nav-item.active .nav-icon { color: #48715d; }
.nav-item-badge { margin-left: auto; padding: 1px 5px; border: 1px solid #d6e3d8; border-radius: 4px; color: #5c7861; font-size: 9px; font-weight: 500; background: transparent; }
.main-content { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 0 36px; border-bottom: 1px solid var(--border); background: #fff; box-shadow: none; }
.topbar-title { min-width: 0; margin: 0; font-size: 15px; font-weight: 550; letter-spacing: -.02em; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-notification-link.ghost { min-height: 30px; padding: 5px; border: 0; color: var(--muted); box-shadow: none; }
.account-menu-trigger { min-height: 30px; background: transparent; border: 0; color: var(--muted); box-shadow: none; font-size: 12px; }
.account-menu-trigger:hover { background: var(--panel-2); color: var(--text); }
.account-upgrade.button-primary { min-height: 34px; padding: 7px 12px; white-space: nowrap; font-size: 12px; }
@media(max-width:600px) {
  .user-shell .topbar:has(.account-upgrade) { flex-wrap:wrap; gap:10px; padding-block:12px; }
  .user-shell .topbar:has(.account-upgrade) .topbar-title { flex-basis:100%; }
  .user-shell .topbar:has(.account-upgrade) .topbar-right { width:100%; justify-content:space-between; gap:8px; }
  .user-shell .topbar:has(.account-upgrade) .account-menu { min-width:0; flex:1; text-align:right; }
  .user-shell .topbar:has(.account-upgrade) .account-menu-trigger { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}
.page-wrap { display: grid; align-content: start; gap: 24px; width: min(1320px, 100%); min-width: 0; margin: 0 auto; padding: 32px 36px 64px; }
.page-wrap > .card { background: #fff; }
.page-wrap .card .card { box-shadow: none; }
.opportunity-item { box-shadow: none; }
.opportunity-item:hover { transform: none; box-shadow: none; }
/* Applicant workspace: the same visual foundations across every account page. */
.user-shell {
  --text: #12233b;
  --muted: #5c6e7e;
  --border: #dfe8ed;
  --panel-2: #f2f7fa;
  --brand-ink: #12233b;
  --brand-soft: #e8f4f1;
  --ring: #16636526;
  background: #f5f8fb;
}
.user-shell .main-content { background: radial-gradient(ellipse at 100% 0, #eaf5f6 0, transparent 40%), #f5f8fb; }
.user-shell .sidebar { background: #fcfefe; border-right-color: var(--border); }
.user-shell .brand { color: #12233b; font-weight: 700; }
.user-shell .nav-item { min-height: 39px; padding-block: 9px; font-size: 13px; color: #4c6274; border-radius: 9px; }
.user-shell .nav-item.active { color: #105b58; background: #e4f2ef; font-weight: 600; }
.user-shell .nav-item:hover { background: #edf5f6; color: #105b58; }
.user-shell .nav-icon { color: #377f86; }
.user-shell .sidebar-section-title { color: #627687; }
.user-shell .topbar { background: #ffffffeb; border-bottom-color: var(--border); }
.user-shell .topbar-title { font-size: 18px; font-weight: 650; letter-spacing: -.035em; }
.user-shell .page-wrap { gap: 26px; }
.user-shell .stack { gap: 24px; }
.user-shell .card { border-color: var(--border); border-radius: 16px; box-shadow: 0 3px 14px #173f5307; }
.user-shell .card .card { border-radius: 12px; box-shadow: none; }
.user-shell .card h2 { font-weight: 650; letter-spacing: -.035em; }
.user-shell .card h3 { line-height: 1.4; }
.user-shell :is(input, select, textarea) { border-color: #ccdce4; border-radius: 9px; }
.user-shell :is(input, select, textarea):focus { border-color: var(--accent); }
.user-shell :is(.button-primary, a.ghost, button.ghost) { border-radius: 9px; }
.user-shell .button-primary { font-weight: 600; }
.user-shell .dashboard-search-panel.card { padding: 24px; border: 1px solid var(--border); background: #fff; }
.user-shell .dashboard-search-panel input[type=search] { min-height: 45px; background: #f8fbfd; }
.user-shell .dashboard-advanced-filters > summary { color: var(--accent); font-size: 13px; font-weight: 500; }
.user-shell .positions-header-card { background: linear-gradient(120deg, #fff, #f1f9f7); }
.user-shell .stat-card, .user-shell .metric-tile { border-radius: 12px; border-color: var(--border); background: #fff; }
.user-shell .stat-card strong, .user-shell .metric-tile strong { color: #164f59; }
.user-shell :is(.notification-item, .record-list-item, .application-list-item) { border-color: var(--border); border-radius: 12px; }
.user-shell .notification-item.unread { border-left: 3px solid #348e89; background: #f3faf8; }
.user-shell .candidate-profile-subsection { background: #f8fbfd; border-color: var(--border); border-radius: 12px; }
.user-shell .setup-reminder { padding: 20px 24px; border: 1px solid #d6e7df; border-radius: 14px; background: #f4faf7; }
.user-shell .application-review-panel { border-radius: 16px; border-color: #d6e7e5; background: #f7fcfb; }
@media (max-width: 600px) {
  .user-shell .page-wrap { padding-inline: 14px; }
  .user-shell .topbar-title { font-size: 17px; }
  .user-shell .card { padding: 20px; border-radius: 14px; }
  .user-shell .setup-reminder { padding: 18px; }
  .user-shell .dashboard-search-panel.card { padding: 20px; }
}
.user-account-actions { width: 230px; padding: 6px; }
.user-account-actions .public-growth-actions { display: grid; gap: 1px; }
.user-account-actions form { margin: 0; }
.user-account-actions .ghost { justify-content: start; width: 100%; min-height: 33px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; box-shadow: none; font-size: 12px; text-align: left; }
.user-account-actions .account-delete-trigger { color: var(--danger); }
.user-account-actions .ghost:hover { background: var(--panel-2); }

/* Authentication is a single focused form, including recovery and validation. */
.auth-page { display: grid; align-content: start; gap: 36px; width: min(360px, calc(100% - 40px)); min-height: 100svh; margin: 0 auto; padding: clamp(40px, 9vh, 100px) 0 40px; background: transparent; }
.auth-layout, .auth-shell { display: grid; align-content: start; gap: 36px; width: min(360px, calc(100% - 40px)); margin: 0 auto; padding: clamp(40px, 9vh, 100px) 0 40px; }
.auth-brand, .auth-brand-link { display: inline-flex; align-items: center; gap: 10px; justify-self: start; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.auth-brand-mark { display: inline-flex; flex: 0 0 29px; width: 29px; height: 29px; }
.auth-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.auth-card { display: grid; gap: 18px; width: 100%; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-card h1 { margin: 0 0 10px; font-size: 27px; font-weight: 550; letter-spacing: -.045em; }
.auth-card > p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-card > button[type=submit] { min-height: 42px; margin-top: 4px; }
.auth-card input { min-height: 43px; }
.auth-password-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: -10px; }
.auth-password-label a { font-size: 12px; text-decoration: none; }
.password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; position: relative; }
.password-field input { grid-column: 1 / -1; grid-row: 1; padding-right: 58px; }
.password-toggle { grid-column: 2; grid-row: 1; align-self: center; min-height: 30px; padding: 6px 10px; background: transparent; border: 0; color: var(--muted); font-size: 11px; }
.password-toggle:hover { background: transparent; color: var(--text); }
.oauth-grid { display: grid; gap: 10px; }
.oauth-button { min-height: 42px; border: 1px solid #dfe3e0; background: #fff; color: var(--text); box-shadow: var(--shadow); }
.oauth-button:hover { background: var(--panel-2); color: var(--text); }
.auth-divider { display: flex; align-items: center; gap: 14px; color: #949c97; font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-card .auth-legal-note { color: #8a918c; font-size: 10px; line-height: 1.8; }
.auth-legal-note a { color: inherit; }
.auth-create-profile { text-align: center; }
.auth-create-profile a { font-size: 12px; text-decoration: none; }
.opportunity-text-action { font-size: 12px; text-decoration: none; }
.structured-profile-row { border-color: var(--border); background: transparent; }
.page-wrap > *, .page-grid > *, .stats-grid > *, .commerce-editor-layout > * { min-width: 0; }

@media (max-width: 1100px) {
  .marketing-header { gap: 24px; }
  .marketing-nav { gap: 16px; }
  .marketing-hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
  .app-shell { grid-template-columns: 208px minmax(0, 1fr); }
  .page-wrap { padding: 26px; }
}
@media (max-width: 820px) {
  .marketing-header { width: calc(100% - 40px); min-height: 66px; justify-content: space-between; gap: 16px; }
  .marketing-nav, .marketing-auth-actions { display: none; }
  .marketing-mobile-menu { display: block; }
  .marketing-mobile-menu > summary { list-style: none; border: 1px solid var(--border); padding: 5px 12px; border-radius: 6px; color: var(--text); font-size: 12px; }
  .marketing-mobile-menu > summary::-webkit-details-marker { display: none; }
  .marketing-mobile-menu-panel { position: absolute; top: calc(100% + 4px); left: 0; right: 0; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 16px 36px #1b2a2020; max-height: 75svh; overflow-y: auto; }
  .marketing-mobile-menu-links { display: grid; gap: 16px; }
  .marketing-mobile-menu-links a { text-decoration: none; color: var(--text); }
  .marketing-mobile-submenu summary { font-weight: 500; }
  .marketing-mobile-submenu > div { display: grid; gap: 12px; padding: 14px 0 0 14px; }
  .marketing-mobile-menu-actions { display: flex; gap: 10px; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 20px; }
  .marketing-main, .marketing-footer { width: calc(100% - 40px); }
  .marketing-hero { padding: 36px 0 28px; }
  .marketing-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .marketing-hero h1 { font-size: 32px; }
  .marketing-content { gap: 40px; padding-bottom: 48px; }
  .home-page .marketing-hero { padding: 48px 0 36px; }
  .home-product-grid, .marketing-grid.three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-search-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .catalog-search-fields > label:first-child { grid-column: 1 / -1; }
  .catalog-search-fields > button { grid-column: 1 / -1; }
  .catalog-filter-fields { grid-template-columns: minmax(0, 1fr); }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 60px; padding: 0 20px; }
  .page-wrap { padding: 24px 20px 100px; }
  .card { padding: 20px; }
  .public-growth-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-growth-edit-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .marketing-grid, .marketing-grid.three-col, .home-product-grid { grid-template-columns: minmax(0, 1fr); }
  .marketing-footer-main { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .marketing-footer-link-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketing-footer-meta { margin-top: 32px; }
  .home-search { padding: 5px; }
  .home-search input { font-size: 13px; padding-inline: 8px; }
  .home-search button { padding-inline: 12px; font-size: 12px; }
  .catalog-tabs { gap: 24px; margin-right: -20px; padding-right: 20px; }
  .opportunity-result { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 28px 24px 0; }
  .opportunity-result-title { font-size: 16px; }
  .opportunity-result-summary { font-size: 12px; line-height: 1.75; }
  .opportunity-result-institution { font-size: 11px; gap: 3px 10px; }
  .opportunity-result-location::before { margin-right: 10px; }
  .opportunity-result-facts { display: flex; flex-wrap: wrap; gap: 16px 24px; padding-top: 0; }
  .opportunity-result-facts dt { font-size: 9px; }
  .opportunity-result-facts dd { font-size: 11px; }
  .catalog-preview-gate { display: grid; gap: 20px; }
  .card-row { align-items: start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
