:root {
  --ink: #132039;
  --text: #4c5d73;
  --muted: #78869a;
  --line: #e3e9f1;
  --accent: #405bd8;
  --accent-dark: #2f47b4;
  --accent-soft: #f1f4ff;
  --canvas: #ffffff;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
}

body {
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", Avenir, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-user-select: none;
  user-select: none;
}

.profile-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 40px 20px;
  background: var(--canvas);
}

.cv-page {
  width: min(794px, 100%);
  min-height: 1123px;
  position: relative;
  padding: 64px 68px 90px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 72px rgba(28, 42, 72, .09);
}

.cv-topline {
  margin: -28px 0 22px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .04em;
  text-align: center;
}

.cv-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 25px;
  border-bottom: 2px solid var(--ink);
}

h1 {
  margin: 0;
  font-family: inherit;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.cv-role {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
}

.cv-uid { min-width: 150px; text-align: right; }
.cv-uid img { display: block; width: 90px; height: auto; margin: 0 0 7px auto; }
.cv-uid strong { display: block; font-size: 16px; letter-spacing: .08em; }

.contact-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 15px 0 7px;
  color: var(--muted);
  font-size: 11px;
}

.contact-line span:first-child { justify-self: start; }
.contact-line span:nth-child(2) { justify-self: center; }
.contact-line span:last-child { justify-self: end; }
.contact-line.contact-count-1 { grid-template-columns: 1fr; }
.contact-line.contact-count-1 span { justify-self: start; }
.contact-line.contact-count-2 { grid-template-columns: 1fr 1fr; }
.contact-line.contact-count-2 span:first-child { justify-self: start; }
.contact-line.contact-count-2 span:last-child { justify-self: end; }

.cv-section { margin-top: 29px; }

.cv-section h2 {
  margin: 0 0 13px;
  font-family: inherit;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.summary {
  margin: 0;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.entry + .entry { margin-top: 20px; }
.entry-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.entry-heading h3,
.compact-entry h3 { margin: 0; font-family: inherit; font-size: 13px; line-height: 1.35; }
.entry-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.entry-heading time { flex: 0 0 auto; color: var(--muted); font-size: 10px; }

ul { margin: 10px 0 0; padding-left: 16px; }
li { padding-left: 3px; color: var(--text); font-size: 11.5px; line-height: 1.55; }
li + li { margin-top: 4px; }

.entry li,
.project p,
.compact-entry > p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.two-column {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 38px;
}

.skill-groups { display: grid; gap: 8px; }
.skill-groups p { margin: 0; color: var(--text); font-size: 11px; line-height: 1.45; }
.skill-groups strong { display: inline-block; width: 62px; color: var(--ink); }
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-list span { border-radius: 99px; padding: 6px 9px; background: var(--accent-soft); color: var(--accent-dark); font-size: 9.5px; font-weight: 600; }

.compact-entry p { margin: 4px 0 0; color: var(--text); font-size: 11px; line-height: 1.5; }
.compact-entry span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.education-list { display: grid; gap: 17px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 28px;
}

.expertise-grid p,
.additional-grid p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: 10.5px;
  line-height: 1.45;
}

.expertise-grid strong,
.additional-grid strong { color: var(--ink); }

.project-list { display: grid; gap: 19px; }
.project { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.project:last-child { padding-bottom: 0; border-bottom: 0; }
.project-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; }
.project-heading h3 { margin: 0; font-size: 13px; }
.project-heading span { flex: 0 0 auto; color: var(--muted); font-size: 9.5px; }
.project p { margin: 7px 0 0; color: var(--text); font-size: 11px; line-height: 1.55; }
.project small { display: block; margin-top: 6px; color: var(--accent); font-size: 9.5px; font-weight: 600; }

.detail-columns { gap: 42px; }
.stacked-list { display: grid; gap: 13px; }
.stacked-list h3 { margin: 0; font-size: 11.5px; line-height: 1.35; }
.stacked-list p { margin: 3px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.4; }
.compact-list { margin-top: 0; }
.language-list { display: grid; gap: 7px; color: var(--text); font-size: 10.5px; }
.additional-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.additional-grid p { grid-template-columns: 1fr; gap: 3px; }

.cv-footer {
  position: absolute;
  left: 68px;
  right: 68px;
  bottom: 35px;
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.claim-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.claim-link:hover,
.claim-link:focus-visible { text-decoration: underline; }
.profile-links { display: flex; align-items: center; justify-content: center; gap: 18px; }
.report-link { margin-top: 20px; color: var(--muted); font-size: 10px; text-decoration: none; }
.report-link:hover, .report-link:focus-visible { color: var(--accent); text-decoration: underline; }
.profile-notice { margin: 16px 0 0; border-radius: 8px; padding: 9px 12px; background: #eef8f4; color: #287565; font-size: 10px; }

.access-state {
  width: min(520px, calc(100% - 40px));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
}

.access-state img { width: 112px; height: auto; margin-bottom: 50px; }
.access-state .access-kicker { margin: 0 0 14px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.access-state h1 { max-width: 470px; font-size: 40px; line-height: 1.12; }
.access-state > p:not(.access-kicker) { margin: 19px 0 4px; color: var(--text); font-size: 13px; line-height: 1.7; }

.lock-view { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: var(--canvas); }
.lock-card { width: min(500px, 100%); border: 1px solid var(--line); padding: 40px; background: #fff; box-shadow: 0 24px 72px rgba(28,42,72,.09); }
.lock-card > img { width: 104px; height: auto; margin-bottom: 42px; }
.lock-card h1 { font-size: 35px; }
.lock-card > p:not(.access-kicker):not(.locked-role) { margin: 18px 0 0; color: var(--text); font-size: 12px; line-height: 1.7; }
.locked-role { margin: 9px 0 0; color: var(--accent); font-size: 12px; font-weight: 600; }
.lock-error { margin-top: 18px; border: 1px solid #efcbd1; border-radius: 8px; padding: 10px 12px; background: #fff6f7; color: #a33b4b; font-size: 11px; }
.pin-form { display: grid; gap: 8px; margin-top: 25px; }
.pin-form label { font-size: 10px; font-weight: 700; }
.pin-form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pin-form input { min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; outline: 0; }
.pin-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(64,91,216,.08); }
.pin-form button { border: 0; border-radius: 8px; padding: 0 16px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.employer-access { margin-top: 19px; color: var(--muted); font-size: 10px; }
.employer-access a, .text-button { color: var(--accent); font-weight: 700; }
.text-button { border: 0; padding: 0; background: none; cursor: pointer; }

@media (max-width: 620px) {
  .profile-view { padding: 16px; }
  .cv-page { min-height: auto; padding: 40px 30px 78px; }
  .cv-heading { flex-direction: column; gap: 20px; }
  .cv-uid { text-align: left; }
  .cv-uid img { margin-left: 0; }
  h1 { font-size: 32px; }
  .contact-line { grid-template-columns: 1fr; gap: 7px; }
  .contact-line span { justify-self: start !important; }
  .two-column,
  .project-grid,
  .expertise-grid,
  .additional-grid { grid-template-columns: 1fr; gap: 0; }
  .two-column .cv-section + .cv-section { margin-top: 29px; }
  .project-grid { gap: 16px; }
  .expertise-grid { gap: 8px; }
  .additional-grid { gap: 11px; }
  .project-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .cv-footer { left: 30px; right: 30px; bottom: 27px; }
  .lock-card { padding: 28px; }
  .pin-form > div { grid-template-columns: 1fr; }
  .pin-form button { min-height: 44px; }
}

@media print {
  html,
  body { display: none !important; }
}
