/* cv.brondera.com. Undantagen från designprofilen, men i samma familj:
   mörkblått för struktur, isblått för ytor, guld som tunn accent.
   Bara ljust läge, så att skärm och utskrift ser likadana ut. */
:root {
  --navy: #0d2c54;
  --navy-deep: #08203f;
  --ice: #e8f5fd;
  --line: #d6dde6;
  --text: #1c2430;
  --muted: #5b6472;
  --gold: #c9a227;
  --paper: #ffffff;
  --bg: #f4f6f8;
  --max: 64rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--navy); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Verktygsrad: språk och utskrift */
.toolbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem .75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; }
.lang a {
  padding: .3rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--muted);
}
.lang a[aria-current="page"] { background: var(--navy); color: #fff; }
.print {
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .95rem;
  cursor: pointer;
}
.print:hover { border-color: var(--navy); }

/* Själva sidan */
.page {
  max-width: var(--max);
  margin: 0 auto 2rem;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(8, 32, 63, .06), 0 8px 24px rgba(8, 32, 63, .06);
}

.hero {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 2.75rem 2.25rem;
  background: var(--navy);
  color: #fff;
  border-bottom: 2px solid var(--gold);
}
.photo {
  width: 9.5rem;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
}
h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; margin: 0; letter-spacing: -.015em; font-weight: 700; }
.title { margin: .35rem 0 .9rem; font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; color: #cfe3f5; }
.lead { margin: 0; font-size: 1rem; color: #e8eef5; max-width: 42rem; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; }
.main { padding: 1.75rem 2.25rem 2rem 2.75rem; }
.side { padding: 1.75rem 2rem 2rem; background: var(--ice); border-left: 1px solid var(--line); }

section { margin: 0 0 1.75rem; }
section:last-child { margin-bottom: 0; }
h2 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 .85rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--navy);
}
h3 { font-size: 1.1rem; margin: 0; color: var(--navy); }
p { margin: .25rem 0 0; }

.facts { margin: 0; padding-left: 1.1rem; }
.facts li { margin: .3rem 0; }
.facts li::marker { color: var(--gold); }

.job { padding: 1rem 0 1.1rem; border-top: 1px solid var(--line); break-inside: avoid; }
.job:first-of-type { border-top: 0; padding-top: 0; }
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.when { color: var(--muted); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; margin: 0 0 .8rem; break-inside: avoid; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.1rem - 6px);
  top: .5rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--navy);
}
.job-head + .phase .timeline li:first-child::before { background: var(--gold); border-color: var(--gold); }
.role { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.role strong { font-weight: 600; }
.timeline p { color: var(--text); font-size: .95rem; }

.plain { margin: .5rem 0 0; padding-left: 1.1rem; }
.plain li { margin: .3rem 0; }
.note { color: var(--muted); font-size: .9rem; margin-top: .8rem; font-style: italic; }

.edu { list-style: none; margin: 0; padding: 0; }
.edu li { margin: 0 0 .9rem; break-inside: avoid; }
.edu li:last-child { margin-bottom: 0; }
.edu strong { display: block; color: var(--navy); line-height: 1.3; }
.edu .when { display: block; margin-top: .1rem; }
.edu p { font-size: .9rem; }

.side p { font-size: .95rem; }
.side a { font-weight: 600; word-break: break-word; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .15rem .55rem;
  font-size: .82rem;
  color: var(--navy);
}

blockquote { margin: 0; padding: 0 0 0 .9rem; border-left: 3px solid var(--gold); }
blockquote p { font-style: italic; margin: 0; }
blockquote footer { margin-top: .4rem; color: var(--muted); font-size: .85rem; }

footer.site {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
}

/* Hero-knappar */
.cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.btn {
  display: inline-block;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: #ffd23f; border-color: #ffd23f; }
.btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn-secondary:hover { background: rgba(255, 255, 255, .1); }
.hero .btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* I siffror */
.figures { margin: 0; padding: 1.5rem 2.75rem 1.35rem; border-bottom: 1px solid var(--line); }
.figures h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0; }
.kpis div { border-left: 2px solid var(--line); padding-left: .9rem; }
.kpis dt {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.kpis dd { margin: .3rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.footnote { margin: .9rem 0 0; color: var(--muted); font-size: .78rem; }

/* Faser i Oracle-tidslinjen */
.phase { margin-top: 1rem; }
.job-head + .phase { margin-top: .4rem; }
.phase-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .35rem;
  padding-bottom: .2rem;
  border-bottom: 1px dashed var(--line);
}
.phase-name { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.phase-text { margin: .35rem 0 .6rem; font-size: .95rem; }
.timeline .role + .role { margin-top: .15rem; }

/* Kontakt */
.contact { list-style: none; margin: 0; padding: 0; }
.contact li { margin: .2rem 0; font-size: .95rem; }

/* Rekommendation i huvudspalten */
#rekommendation blockquote p, #recommendation blockquote p { margin: 0 0 .5rem; }
#rekommendation, #recommendation { break-inside: avoid; }

/* Mobil */
@media (max-width: 52rem) {
  .cols { grid-template-columns: 1fr; }
  .side { border-left: 0; border-top: 1px solid var(--line); }
  .main, .side { padding: 1.5rem 1.25rem; }
  .figures { padding: 1.25rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 36rem) {
  .hero { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.75rem 1.25rem; text-align: left; }
  .photo { width: 7.5rem; }
  .role, .job-head, .phase-head { flex-direction: column; gap: 0; }
  .kpis dt { font-size: 1.65rem; }
  .page { box-shadow: none; }
}

/* Utskrift: A4, samma tvåspaltiga layout, inga knappar */
@page { size: A4; margin: 12mm 12mm 14mm; }
@media print {
  html, body { background: #fff; font-size: 9.6pt; line-height: 1.42; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .toolbar, footer.site, .cta, .mail-item { display: none; }
  .page { max-width: none; margin: 0; box-shadow: none; }
  .hero { grid-template-columns: 27mm 1fr; gap: 7mm; padding: 6mm 7mm; border-bottom-width: 2.5pt; }
  .photo { width: 27mm; border-radius: 3pt; box-shadow: 0 0 0 1.5pt #fff; }
  h1 { font-size: 22pt; }
  .title { font-size: 11pt; margin: 1mm 0 2.5mm; }
  .lead { font-size: 9.6pt; }
  .cols { display: flex; align-items: stretch; }
  .main { flex: 1 1 auto; min-width: 0; }
  .side { flex: 0 0 58mm; border-left: 1px solid var(--line); border-top: 0; }
  .main { padding: 5mm 6mm 0 7mm; }
  .side { padding: 5mm 5mm 0; }
  section { margin-bottom: 4.5mm; }
  h2 { font-size: 8pt; margin-bottom: 2.5mm; padding-bottom: 1mm; border-bottom-width: 1pt; }
  h3 { font-size: 11pt; }
  .job { padding: 2.5mm 0 3mm; }
  .timeline li { margin-bottom: 2mm; }
  .timeline p, .edu p, .side p { font-size: 9pt; }
  .when { font-size: 8.5pt; }
  .tags li { font-size: 8pt; padding: .3mm 1.6mm; }
  .figures { padding: 3.5mm 7mm 3mm; break-inside: avoid; }
  .figures h2 { margin-bottom: 2mm; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4mm; }
  .kpis div { padding-left: 2.5mm; }
  .kpis dt { font-size: 17pt; }
  .kpis dd { font-size: 8pt; margin-top: .6mm; }
  .footnote { font-size: 7.5pt; margin-top: 2mm; }
  .phase { margin-top: 2.5mm; }
  .phase-name { font-size: 7.5pt; }
  .phase-text { font-size: 9pt; margin: 1mm 0 1.8mm; }
  .note { font-size: 8.5pt; margin-top: 2mm; }
  a { text-decoration: none; color: var(--navy); }
  .job { break-inside: auto; }
  .phase-head, .phase-text { break-inside: avoid; }
  h2, h3, .job-head, .phase-head, .role { break-after: avoid; }
}
