/* ClinStride editorial system. Presentation only: document layouts retain their own fonts. */
@font-face {
  font-family: "ClinStride Editorial";
  src: url("/assets/resume-fonts/source-serif-4-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-editorial: "ClinStride Editorial", Georgia, serif;
  --surface-soft: #f5f7fb;
  --surface-tint: #f3faf9;
  --surface-violet: #f5f7fb;
  --gradient-agent: linear-gradient(var(--ink), var(--ink));
  --gradient-smart: linear-gradient(var(--blue), var(--blue));
  --gradient-ai: linear-gradient(var(--blue), var(--blue));
  --shadow-xs: 0 2px 8px rgba(11, 23, 48, .025);
  --shadow-sm: 0 8px 28px rgba(11, 23, 48, .045);
  --shadow: 0 14px 38px rgba(11, 23, 48, .06);
}

body { background: #f8fafc; }
body:has(.public-landing) { background: #fff; }
:is(.public-logo, .brand-logo).clinstride-brand {
  width: max-content;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -.045em;
}
.clinstride-brand-symbol { width: 38px; height: 38px; flex-basis: 38px; }
.clinstride-brand-name { color: inherit; }

/* The public invitation follows the selected editorial reference. */
.public-shell:has(.public-landing) {
  width: min(1440px, calc(100% - 80px));
  padding: 0;
}
.public-shell:has(.public-landing) .public-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 100px;
  margin: 0;
  padding: 12px 0;
}
.public-section-links { display: flex; gap: 30px; margin-left: auto; }
.public-section-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: .9rem;
  text-decoration: none;
  text-underline-offset: 6px;
}
.public-section-links a:hover { text-decoration: underline; }
.public-header-sign-in {
  min-height: 44px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: none;
}
.public-landing { overflow: visible; background: #fff; border: 0; border-radius: 0; box-shadow: none; }
.public-landing::before { display: none; }
.landing-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 68px);
  align-items: stretch;
  padding: 0;
}
.landing-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 44px 0; }
.landing-hero-copy .eyebrow { display: block; margin: 0 0 26px; max-width: 56ch; font-size: .68rem; font-weight: 500; line-height: 1.8; letter-spacing: .18em; color: var(--ink); }
.landing-hero-copy .eyebrow::after { content: ""; display: block; width: 48px; height: 1px; margin-top: 18px; background: var(--teal-hover); }
.landing-hero-copy h1 {
  max-width: 17ch;
  font-family: var(--font-editorial);
  font-size: clamp(2.75rem, 4.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: pretty;
}
.landing-lede { max-width: 46ch; margin: 24px 0 0; color: #334155; font-size: 1.04rem; line-height: 1.75; }
.landing-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.landing-cta-row :is(button, a) { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; min-width: 0; padding: 14px 20px; border-radius: 6px; text-decoration: none; font-size: .9rem; box-shadow: none; }
.landing-cta-row .landing-secondary-cta { color: var(--ink); border-color: var(--ink); background: #fff; }
.landing-cta-note { margin-top: 22px; font-size: .82rem; line-height: 1.6; }
.landing-visual { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; min-height: 580px; padding: 32px; background: var(--surface-soft); }
.landing-campus { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.landing-intelligence-preview { position: relative; width: 100%; max-width: 410px; gap: 20px; padding: 26px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 12px 36px rgba(11, 23, 48, .15); }
.landing-preview-header { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.landing-preview-header .eyebrow { color: var(--ink); font-size: .62rem; font-weight: 500; letter-spacing: .18em; }
.landing-preview-context { font-size: .67rem; font-weight: 400; }
.landing-intelligence-preview h2 { font-family: var(--font-editorial); font-size: clamp(1.5rem, 2vw, 1.9rem); font-weight: 400; line-height: 1.2; letter-spacing: -.04em; }
.landing-insight-list { display: grid; gap: 14px; margin: 0; font-size: .87rem; }
.landing-insight-list > div { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.landing-insight-list dt { font-weight: 600; }
.landing-insight-list dt span { display: inline-block; width: 24px; color: var(--teal-hover); font-size: 1.15rem; }
.landing-insight-list dd { margin: 0; color: #334155; }
.landing-explore { display: flex; align-items: center; gap: 16px; min-height: 44px; width: fit-content; color: var(--blue-hover); font-size: .88rem; text-underline-offset: 4px; }
.landing-journey { margin-top: 32px; padding: 36px 0; border-top: 1px solid #a9b7c9; scroll-margin-top: 24px; }
.landing-journey ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.landing-journey li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; }
.landing-journey li + li { border-left: 1px solid var(--line); padding-left: 28px; }
.journey-number { font-family: var(--font-editorial); font-size: 2.5rem; line-height: 1; color: var(--teal-hover); }
.landing-journey h3 { margin: 0 0 12px; font-family: var(--font-editorial); font-size: 1.24rem; font-weight: 400; line-height: 1.3; letter-spacing: -.025em; }
.landing-journey p, .landing-principles p { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--muted); }
.landing-approach { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.landing-approach h2 { font-family: var(--font-editorial); font-weight: 400; font-size: 2rem; line-height: 1.25; letter-spacing: -.04em; }
.landing-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.landing-principles h3 { font-size: .92rem; line-height: 1.5; margin: 0 0 10px; }
.landing-footer { justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); padding: 24px 0 32px; }
.landing-footer p { font-size: .76rem; color: var(--muted); margin: 0; }
.landing-journey:focus-visible, .landing-approach:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }

/* Working screens: quieter surfaces, familiar controls, the same identity. */
.product-header { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.product-header p { font-size: .83rem; }
.topbar, .shell[data-active-view]:not([data-active-view="profile"]) .topbar { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding-inline: 0; }
.topbar h1 { font-family: var(--font-editorial); font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 400; line-height: 1.2; letter-spacing: -.04em; }
.score-panel, .shell[data-active-view]:not([data-active-view="profile"]) .score-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.context-pill { background: transparent; border: 0; border-left: 2px solid var(--teal-hover); border-radius: 0; padding: 8px 16px; min-height: 0; }
.action-strip { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0; box-shadow: none; backdrop-filter: none; gap: 16px; }
.nav-action { border-radius: 0; border-bottom: 3px solid transparent; min-height: 52px; background: transparent; }
.nav-action.active { color: var(--ink); background: transparent; border-bottom-color: var(--teal-hover); box-shadow: none; font-weight: 650; }
.nav-action:hover { background: var(--surface-soft); }
.panel, .job-card { border-color: var(--line); border-radius: 12px; box-shadow: var(--shadow-xs); }
.panel::before { opacity: .3; }
.panel-header h2 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.3; }
#profileFacts .fact { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 14px 0; }
#profileFacts .fact::before { display: none; }
#profileFacts .fact.editable-memory-fact { padding-bottom: 42px; }
.knowledge-grid { column-gap: 28px; }
.primary-button, .alert-button { background: var(--ink); box-shadow: none; }
.primary-button:hover:not(:disabled), .alert-button:hover:not(:disabled) { background: #1b3153; box-shadow: none; }
.secondary-button { color: var(--ink); border-color: var(--line); box-shadow: none; }
.primary-button, .secondary-button, .quiet-button, .alert-button { border-radius: 7px; }
.eyebrow { color: var(--teal-hover); font-weight: 650; letter-spacing: .1em; }
.onboarding-card, .login-card, .legal-consent-card, .cloud-account-card { background: #fff; border-color: var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
:is(.onboarding-card, .login-card, .legal-consent-card, .cloud-account-card) h1 { font-family: var(--font-editorial); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -.04em; }
.cloud-save-status { background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; font-size: .8rem; }
.cloud-save-status[data-state=error], .cloud-save-status[data-state=conflict] { background: rgba(154, 75, 14, .07); }
.source-option-button, .document-intake { border-radius: 8px; box-shadow: none; }
.field-label :is(input, select, textarea) { font-size: .95rem; font-weight: 400; letter-spacing: normal; }
.agent-search-focus { background: #f5f7fb; border-color: var(--line); }
.score-panel:has(.profile-progress) { min-height: 0; padding: 18px 20px; }
.profile-progress { margin: 10px 0; line-height: 1.5; }
.profile-progress li { padding: 3px 0; }
.settings-modal, .cv-modal, .legal-modal, .cloud-dialog, .quality-feedback-dialog { border-radius: 12px; }
.account-shell .brand { color: var(--ink); font-family: var(--font-editorial); font-size: 29px; font-weight: 400; letter-spacing: -.045em; }
.account-shell .brand img { width: 38px; height: 38px; }
.account-card { border-radius: 12px; box-shadow: var(--shadow-sm); }
.account-card h1 { font-family: var(--font-editorial); font-weight: 400; line-height: 1.2; }
.account-card button { background: var(--ink); border-radius: 7px; }
.account-card button:hover { background: #1b3153; }

@media (max-width: 1100px) {
  .public-shell:has(.public-landing) { width: calc(100% - 48px); }
  .landing-hero { gap: 28px; }
  .landing-hero-copy h1 { font-size: clamp(2.5rem, 4.8vw, 3.5rem); }
  .landing-visual { min-height: 580px; padding: 20px; }
  .landing-intelligence-preview { padding: 22px; }
  .landing-journey li { grid-template-columns: 1fr; gap: 12px; }
  .landing-approach { grid-template-columns: 1fr; gap: 20px; }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .profile-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .score-panel:has(.profile-progress) .score-note { max-width: none; }
  .action-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .public-shell:has(.public-landing) .public-nav { gap: 18px; min-height: 84px; }
  .public-section-links { gap: 18px; }
  .public-section-links a { font-size: .8rem; }
  .landing-hero { grid-template-columns: 1fr; gap: 24px; }
  .landing-hero-copy { padding: 24px 0 8px; }
  .landing-hero-copy h1 { max-width: 18ch; font-size: clamp(2.6rem, 6.7vw, 3.5rem); }
  .landing-lede { max-width: 56ch; }
  .landing-visual { min-height: 440px; }
  .landing-campus { object-position: center 55%; }
  .landing-intelligence-preview { max-width: 380px; }
  .landing-journey ol { gap: 20px; }
  .landing-journey li + li { padding-left: 20px; }
  .landing-principles { gap: 20px; }
}
@media (max-width: 600px) {
  .public-shell:has(.public-landing) { width: calc(100% - 40px); }
  .public-shell:has(.public-landing) .public-nav { flex-wrap: wrap; gap: 6px 12px; padding: 14px 0 8px; }
  .public-section-links { order: 3; width: 100%; justify-content: flex-start; margin: 0; gap: 24px; }
  .public-header-sign-in { margin-left: auto; min-width: 78px; padding-inline: 12px; }
  :is(.public-logo, .brand-logo).clinstride-brand { font-size: 26px; gap: 8px; }
  .clinstride-brand-symbol { width: 34px; height: 34px; flex-basis: 34px; }
  .landing-hero-copy .eyebrow { font-size: .62rem; margin-bottom: 20px; }
  .landing-hero-copy h1 { font-size: clamp(2.4rem, 9vw, 3.2rem); max-width: 15ch; }
  .landing-lede { font-size: .98rem; line-height: 1.7; margin-top: 20px; }
  .landing-cta-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .landing-cta-row :is(button, a) { width: 100%; justify-content: space-between; }
  .landing-cta-note { margin-top: 16px; }
  .landing-visual { min-height: 420px; padding: 16px; }
  .landing-intelligence-preview { padding: 20px; gap: 16px; }
  .landing-preview-header { gap: 8px; }
  .landing-intelligence-preview h2 { font-size: 1.65rem; }
  .landing-insight-list { font-size: .82rem; }
  .landing-journey { padding: 28px 0; margin-top: 28px; }
  .landing-journey ol, .landing-principles { grid-template-columns: 1fr; gap: 24px; }
  .landing-journey li { grid-template-columns: 42px minmax(0, 1fr); gap: 16px; }
  .landing-journey li + li { border-left: 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
  .landing-journey h3 { font-size: 1.3rem; }
  .landing-approach { padding: 32px 0; }
  .landing-approach h2 { font-size: 1.8rem; margin-bottom: 0; }
  .landing-footer { align-items: flex-start; padding-bottom: 24px; }
  .product-header { padding-bottom: 14px; margin-bottom: 16px; }
  .action-strip { gap: 0; }
  .nav-action { padding: 10px 8px; font-size: .83rem; }
  .knowledge-grid { column-gap: 18px; }
  .score-panel:has(.profile-progress), .shell[data-active-view]:not([data-active-view="profile"]) .score-panel:has(.profile-progress) { padding: 14px 16px; }
  .topbar, .shell[data-active-view]:not([data-active-view="profile"]) .topbar { padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-landing *, .public-nav * { scroll-behavior: auto; transition: none; }
}
