/* Full editorial export: same source and themes, expanded contributions and career details. */
@page { size:A4; margin:12mm 13mm; }
/* Chrome prints body color only in the page area; tint all sixteen margin boxes for edge-to-edge exports. */
@page febef-dark {
  size:A4; margin:12mm 13mm;
  @top-left-corner { content:''; background:#151619; }
  @top-left { content:''; background:#151619; }
  @top-center { content:''; background:#151619; }
  @top-right { content:''; background:#151619; }
  @top-right-corner { content:''; background:#151619; }
  @right-top { content:''; background:#151619; }
  @right-middle { content:''; background:#151619; }
  @right-bottom { content:''; background:#151619; }
  @bottom-right-corner { content:''; background:#151619; }
  @bottom-right { content:''; background:#151619; }
  @bottom-center { content:''; background:#151619; }
  @bottom-left { content:''; background:#151619; }
  @bottom-left-corner { content:''; background:#151619; }
  @left-bottom { content:''; background:#151619; }
  @left-middle { content:''; background:#151619; }
  @left-top { content:''; background:#151619; }
}
@page febef-light {
  size:A4; margin:12mm 13mm;
  @top-left-corner { content:''; background:#E4E5E7; }
  @top-left { content:''; background:#E4E5E7; }
  @top-center { content:''; background:#E4E5E7; }
  @top-right { content:''; background:#E4E5E7; }
  @top-right-corner { content:''; background:#E4E5E7; }
  @right-top { content:''; background:#E4E5E7; }
  @right-middle { content:''; background:#E4E5E7; }
  @right-bottom { content:''; background:#E4E5E7; }
  @bottom-right-corner { content:''; background:#E4E5E7; }
  @bottom-right { content:''; background:#E4E5E7; }
  @bottom-center { content:''; background:#E4E5E7; }
  @bottom-left { content:''; background:#E4E5E7; }
  @bottom-left-corner { content:''; background:#E4E5E7; }
  @left-bottom { content:''; background:#E4E5E7; }
  @left-middle { content:''; background:#E4E5E7; }
  @left-top { content:''; background:#E4E5E7; }
}
@media print {
  html[data-export='pdf'][data-theme='dark'] body { page:febef-dark; }
  html[data-export='pdf'][data-theme='light'] body { page:febef-light; }
  html[data-export='pdf'][data-theme='dark'] { --bg:#151619; --panel:#202226; --fg:#D1D2D4; --muted:#A9AFB8; --line:#393E46; --accent:#FF9857; --build:#A5DB83; --theory:#81C9EA; --lab:#BAA2E8; --ink:#151619; color-scheme:dark; }
  html[data-export='pdf'][data-theme='light'] { --bg:#E4E5E7; --panel:#EAEBED; --fg:#202226; --muted:#5A606A; --line:#C7CBD2; --accent:#A64408; --build:#3D6C24; --theory:#196180; --lab:#69439D; --ink:#FFFFFF; color-scheme:light; }
  html[data-export='pdf'],html[data-export='pdf'] body { background:var(--bg)!important; color:var(--fg)!important; font:10pt/1.5 var(--sans)!important; print-color-adjust:exact!important; -webkit-print-color-adjust:exact!important; }
  html[data-export='pdf'] .topbar { display:flex!important; height:auto; min-height:15mm; margin:0 0 7mm; padding:0 0 4mm; }
  html[data-export='pdf'] .topbar .tools { display:none!important; }
  html[data-export='pdf'] .rail { display:none!important; }
  html[data-export='pdf'] .layout,html[data-export='pdf'] main { display:block!important; width:auto; max-width:none; padding:0; margin:0; }
  html[data-export='pdf'] .hero { padding:0 0 6mm; border-bottom:1pt solid var(--accent); }
  html[data-export='pdf'] .hero h1 { font:400 32pt/1.08 var(--serif); letter-spacing:-1pt; color:var(--fg)!important; margin:0 0 4mm; }
  html[data-export='pdf'] .hero .export-site-link { display:block!important; width:fit-content; margin:0 0 4mm; font:9pt/1.4 var(--sans); color:var(--accent); text-decoration:underline; text-underline-offset:2px; }
  html[data-export='pdf'] .hero .export-focus { display:block!important; color:var(--fg); margin:0 0 4mm; }
  html[data-export='pdf'] .intro-row { display:block!important; }
  html[data-export='pdf'] .intro-row p,html[data-export='pdf'] .section-intro { color:var(--muted); }
  html[data-export='pdf'] .contact-invitation { display:block; }
  html[data-export='pdf'] .social-link { color:var(--accent); font-size:9pt; }
  html[data-export='pdf'] .social-link::after { color:var(--fg); }
  html[data-export='pdf'] .section { display:block!important; padding:7mm 0 0; border:0; margin:0; }
  html[data-export='pdf'] .section-heading { break-inside:avoid!important; }
  html[data-export='pdf'] #background,html[data-export='pdf'] #technologies,html[data-export='pdf'] #approach { break-before:auto; }
  html[data-export='pdf'] #approach { break-before:page; }
  html[data-export='pdf'] .section-heading h2,html[data-export='pdf'] .background .section-heading h2 { font:600 20pt/1.18 var(--display); letter-spacing:-.5pt; color:var(--fg); }
  html[data-export='pdf'] .section-heading .eyebrow,html[data-export='pdf'] .section-heading h2 span { display:inline; }
  html[data-export='pdf'] #print-contributions { display:grid!important; grid-template-columns:1fr 1fr; gap:4mm 6mm; }
  html[data-export='pdf'] .print-contribution { border-bottom:1px solid var(--line); padding:2mm 0 4mm; }
  html[data-export='pdf'] .print-contribution h3 { color:var(--accent); font:600 12pt/1.25 var(--display); }
  html[data-export='pdf'] .print-contribution p,html[data-export='pdf'] .print-contribution-details { color:var(--fg); font-size:9pt; }
  html[data-export='pdf'] .featured-project-card,html[data-export='pdf'] .post-preview { border-color:var(--line); }
  html[data-export='pdf'] .featured-project-card h3 { color:var(--lab); }
  html[data-export='pdf'] .post-date { color:var(--theory); }
  html[data-export='pdf'] .experience-row { grid-template-columns:25mm 1fr; gap:4mm; padding:4mm 0; border-color:var(--line); break-inside:avoid; }
  html[data-export='pdf'] .experience-row h3 { color:var(--fg); font:600 15pt/1.2 var(--display); }
  html[data-export='pdf'] .experience-row .role { color:var(--accent); }
  html[data-export='pdf'] .experience-inline-detail { display:block!important; margin-top:3mm; }
  html[data-export='pdf'] .experience-inline-detail h4 { font:700 8.5pt/1.4 var(--sans); color:var(--accent); margin:3mm 0 1mm; }
  html[data-export='pdf'] .experience-inline-detail h5 { font:700 8.5pt/1.4 var(--sans); color:var(--fg); margin:2mm 0 1mm; }
  html[data-export='pdf'] .experience-inline-detail p { color:var(--muted); font-size:8.5pt; margin:0; }
  html[data-export='pdf'] .detail-contribution-list { gap:2mm; margin-top:1mm; }
  html[data-export='pdf'] .detail-contribution-item { border-left:1px solid var(--line); padding-left:3mm; break-inside:avoid; }
  html[data-export='pdf'] .principles { border-color:var(--line); }
  html[data-export='pdf'] .principles h3 { color:var(--fg); }
  html[data-export='pdf'] #technology-groups { grid-template-columns:1fr 1fr; gap:2.5mm 5mm; }
  html[data-export='pdf'] .technology-groups h3 { color:var(--tech-tone); font-size:9pt; margin:0 0 1mm; }
  html[data-export='pdf'] .technology-groups li { color:var(--muted); font-size:8.3pt; }
  html[data-export='pdf'] #education-details>summary { color:var(--fg); }
  html[data-export='pdf'] #education-details .education-lead { color:var(--fg)!important; }
  html[data-export='pdf'] #contact h2 { color:var(--fg); font:600 20pt/1.2 var(--display); }
  html[data-export='pdf'] .minimal-footer { border-color:var(--line); color:var(--muted); }
  html[data-export='pdf'] .skip,html[data-export='pdf'] dialog,html[data-export='pdf'] .technology-tooltip,html[data-export='pdf'] noscript { display:none!important; }
}
