/* Shared screen and print styles for both CV formats. */
:root {
  color-scheme: light;
  --ink: #192a35;
  --muted: #455964;
  --accent: #08655f;
  --line: #d8e2df;
  --paper: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #edf1ee;
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid #b96919; outline-offset: 4px; }
h1, h2, h3, p, ul { margin: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px; background: white; z-index: 200; }
.skip-link:focus { top: 12px; }
.download-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.switch-link { color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.download-btn {
  border: 0;
  border-radius: 7px;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.download-btn:hover { background: #084e49; }
.print-hint { color: var(--muted); font-size: 12px; }
.page {
  width: min(1040px, calc(100% - 64px));
  margin: 40px auto 64px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px #192a350b;
}
.designed .page { display: grid; grid-template-columns: 245px minmax(0, 1fr); }
.intro { grid-column: 1 / -1; padding: 48px 48px 32px; border-top: 6px solid var(--accent); }
.header h1 { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.15; letter-spacing: -1.3px; font-weight: 750; }
.title { color: var(--accent); font-size: 18px; font-weight: 600; margin-top: 10px; }
.summary { color: var(--muted); font-size: 15px; line-height: 1.75; }
.intro .summary { margin-top: 22px; max-width: 850px; }
.sidebar { background: #f3f7f5; padding: 32px 24px; border-top: 1px solid var(--line); }
.sidebar-section { margin-bottom: 28px; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-section h2, .section-title {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.4;
  font-weight: 750;
  margin-bottom: 18px;
}
.main { min-width: 0; padding: 32px 40px; border-top: 1px solid var(--line); }
.section { margin-bottom: 28px; }
.section:last-child { margin-bottom: 0; }
.section-title { display: flex; align-items: center; gap: 16px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.exp-item { margin-bottom: 23px; }
.exp-item:last-child { margin-bottom: 0; }
.exp-header, .exp-header-row, .exp-role-row, .edu-header-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; }
.exp-company { font-size: 17px; font-weight: 700; letter-spacing: -.25px; }
.exp-date, .edu-year { color: var(--muted); font-size: 12px; white-space: nowrap; }
.exp-role { font-size: 13px; font-weight: 600; }
.exp-location { color: var(--muted); font-size: 12px; font-weight: 400; }
.exp-bullets { padding-left: 18px; margin-top: 9px; }
.exp-bullets li { color: var(--muted); font-size: 14px; margin-bottom: 5px; padding-left: 2px; }
.exp-bullets li::marker { color: var(--accent); }
strong { color: var(--ink); font-weight: 650; }
.contact-list { list-style: none; padding: 0; }
.contact-item { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; font-size: 12px; overflow-wrap: anywhere; }
.contact-item svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 3px; stroke: var(--accent); }
.contact-item a { color: var(--muted); text-decoration: none; }
.skill-group { margin-bottom: 13px; }
.skill-group-title, .skills-label { font-size: 12px; font-weight: 700; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.skill-tag { font-size: 11px; padding: 2px 7px; background: white; border: 1px solid var(--line); border-radius: 4px; }
.skill-tag.primary { color: var(--accent); border-color: #b4d4c9; font-weight: 600; }
.edu-item { margin-bottom: 12px; }
.edu-title, .edu-degree { font-size: 13px; font-weight: 650; }
.edu-school { font-size: 12px; color: var(--muted); }
.achievements-grid { display: grid; gap: 12px; }
.achievement-item { border-top: 1px solid var(--line); padding-top: 12px; }
.achievement-metric { font-size: 27px; line-height: 1.2; font-weight: 700; color: var(--accent); }
.achievement-label { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ats .page { max-width: 900px; padding: 44px 52px; }
.ats .header { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 2px solid var(--ink); }
.ats .header h1 { font-size: 32px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 5px 16px; font-size: 12px; margin-top: 14px; overflow-wrap: anywhere; }
.contact-row .divider { display: none; }
.skills-row { font-size: 13px; margin-bottom: 5px; }
.skills-label { font-size: inherit; }
.skills-value { color: var(--muted); }
@media (max-width: 700px) {
  .page { width: calc(100% - 24px); margin: 16px auto 24px; }
  .designed .page { grid-template-columns: 1fr; }
  .intro { padding: 28px 22px 24px; }
  .main { grid-row: 2; padding: 28px 22px; }
  .sidebar { padding: 28px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .sidebar-section { margin: 0; min-width: 0; }
  .contact-item { font-size: 13px; }
  .ats .page { padding: 28px 22px; }
  .ats .header h1 { font-size: 28px; }
  .download-bar { gap: 10px 18px; padding: 12px; }
  .print-hint { flex-basis: 100%; text-align: center; }
}
@media (max-width: 420px) {
  .sidebar { grid-template-columns: 1fr; }
  .header h1 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@page { size: A4; margin: 14mm 15mm; }
@media print {
  body { background: white; font-size: 10pt; line-height: 1.4; }
  .download-bar, .skip-link { display: none !important; }
  .page, .ats .page { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .designed .page { display: block; }
  .intro { padding: 0 0 14px; border-top: 0; }
  .header h1, .ats .header h1 { font-size: 25pt; }
  .title { font-size: 12pt; margin-top: 5px; }
  .summary { font-size: 10pt; line-height: 1.5; }
  .intro .summary { margin-top: 12px; }
  .sidebar { background: none; padding: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .sidebar-section { margin: 0; break-inside: avoid; }
  .sidebar-section:last-child { display: none; }
  .main { padding: 16px 0 0; }
  .section { margin-bottom: 18px; }
  .section-title, .sidebar-section h2 { font-size: 9pt; margin-bottom: 10px; break-after: avoid; }
  .exp-item { margin-bottom: 14px; break-inside: avoid; }
  .exp-company { font-size: 11pt; }
  .exp-role { font-size: 10pt; }
  .exp-date, .exp-location, .edu-year { font-size: 9pt; }
  .exp-bullets { margin-top: 5px; }
  .exp-bullets li { font-size: 10pt; line-height: 1.45; margin-bottom: 3px; }
  .contact-item { margin-bottom: 5px; font-size: 9pt; }
  .contact-row { font-size: 9pt; }
  .skill-group { margin-bottom: 5px; }
  .skill-tag { font-size: 8pt; padding: 0 4px; }
  .skill-group-title { font-size: 9pt; }
  .skills-row { font-size: 9pt; }
  .ats .header { padding-bottom: 14px; margin-bottom: 18px; }
  a { text-decoration: none; }
  p, li { orphans: 3; widows: 3; }
}
