/* A4 document designs are isolated from the surrounding website and editor. */
.cv-paper{padding:42px 42px 48px;--doc-accent:#195b63;color:#222}
.cv-paper::before{display:none}
.cv-paper .cv-paper-content{height:1028px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:0;overflow:visible}
.cv-paper .cv-page-header:empty{display:none}
.cv-paper .cv-paper-content:has(>.cv-page-header:empty){grid-template-rows:minmax(0,1fr)}
.cv-paper .cv-page-body{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;gap:0}
.cv-paper .cv-doc-main,.cv-paper .cv-doc-rail{height:100%;min-height:0;overflow:hidden}
.cv-paper .cv-doc-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:0 0 22px;margin:0 0 22px;border:0;border-bottom:1px solid #777;background:transparent}
.cv-paper .cv-doc-identity{min-width:0;flex:1}
.cv-paper .cv-doc-header h1{font:700 37px/1.08 Georgia,serif;text-transform:uppercase;margin:0 0 12px;color:#161616}
.cv-paper .cv-doc-role{font:500 12px/1.5 Arial,sans-serif;text-transform:uppercase;margin:0;color:inherit}
.cv-paper .cv-doc-contact{flex:0 1 190px;font:11px/1.7 Arial,sans-serif;border:0;padding:0;color:inherit;overflow-wrap:anywhere}
.cv-paper .cv-doc-unit{padding:0 0 5px;background:none;border:0;border-radius:0;box-shadow:none;min-width:0}
.cv-paper .cv-doc-unit h2{font:700 13px/1.4 Arial,sans-serif;text-transform:uppercase;margin:14px 0 7px;padding:0 0 4px;color:var(--doc-accent);border:0;border-bottom:1px solid #b8c5c8;background:none}
.cv-paper .cv-doc-unit h3{font:700 13px/1.4 Arial,sans-serif;color:#222;margin:0 0 3px}
.cv-paper .cv-doc-unit p{font:12px/1.45 Arial,sans-serif;margin:0 0 2px;color:inherit}
.cv-paper .cv-doc-meta{font:11px/1.5 Arial,sans-serif;color:inherit;background:none;border:0;padding:0;gap:3px 12px;margin-bottom:5px}
.cv-paper .cv-doc-footer{left:42px;right:42px;bottom:22px;border:0;padding-top:8px;font-size:9px;color:#647178}
.cv-paper .cv-experience-start:not(:has(h2)){padding-top:12px}
.cv-bottom-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
.cv-bottom-row>div{min-width:0}
.cv-bottom-row>div+div{border-left:1px solid #b7c5c3;padding-left:20px}
.cv-paper .cv-doc-portrait{padding:12px 0 28px}
.cv-doc-portrait img{display:block;width:178px;height:178px;object-fit:cover;border-radius:50%;margin:auto}
.cv-photo-editor{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding-block:16px;border-top:1px solid var(--v4-line)}
.cv-photo-editor>label{width:100%}.cv-photo-status:empty{display:none}.cv-photo-status{color:var(--v4-copy);font-size:12px}
.cv-photo-mini{width:64px;height:64px;object-fit:cover;border-radius:50%}

/* Profile: full-height terracotta rail, portrait, contact, languages and skills. */
.cv-paper.template-profile{padding:42px 36px 48px 28px;--doc-accent:#333;background:linear-gradient(to right,#8e3c27 0,#8e3c27 244px,#fff 244px)}
.cv-paper.template-profile .cv-page-body{grid-template-columns:188px minmax(0,1fr);gap:58px}
.cv-paper.template-profile .cv-doc-main{grid-column:2;grid-row:1}
.cv-paper.template-profile .cv-doc-rail{grid-column:1;grid-row:1;color:#fff;padding:0}
.cv-paper.template-profile .cv-doc-header{display:block;border:0;padding:14px 0 30px;margin:0}
.cv-paper.template-profile .cv-doc-header h1{font-size:32px}
.cv-paper.template-profile .cv-doc-unit h2{font-family:Georgia,serif;color:#292929;border-color:#aeb2b3}
.cv-paper.template-profile .cv-doc-rail h2{font:700 12px/1.5 Georgia,serif;color:#fff;border-color:#d6a58f;margin-top:26px;padding-bottom:10px}
.cv-paper.template-profile .cv-doc-rail h3,.cv-paper.template-profile .cv-doc-rail p{color:#fff;font-size:11px;line-height:1.75}
.cv-paper.template-profile .cv-doc-footer{left:278px;right:36px}

/* Maritime: full-width masthead and a proper sea-service table. */
.cv-paper.template-marine{--doc-accent:#165c69;padding:0 42px 48px}
.cv-paper.template-marine .cv-paper-content{height:1070px}
.cv-paper.template-marine .cv-page-header{margin-inline:-42px}
.cv-paper.template-marine .cv-doc-header{background:#165563;color:white;padding:38px 42px 30px;border:0;margin-bottom:16px}
.cv-paper.template-marine .cv-doc-header h1{color:white;font-size:36px}
.cv-paper.template-marine .cv-doc-header .cv-doc-role,.cv-paper.template-marine .cv-doc-contact{color:white}
.cv-paper.template-marine .cv-sea-unit{padding:0}
.cv-sea-table{width:100%;border-collapse:collapse;table-layout:fixed;font:11px/1.45 Arial,sans-serif;color:#222}
.cv-sea-table th,.cv-sea-table td{padding:6px 5px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid #b9cbd0;overflow-wrap:anywhere;background:transparent}
.cv-sea-table th{font-weight:700;background:#e5ecee;border-top:1px solid #a2b8bd}

/* Technical: shared dark masthead and a quiet qualifications rail. */
.cv-paper.template-technical{padding:0 36px 48px;--doc-accent:#a76b10;background:linear-gradient(to right,#fff 0,#fff 558px,#f0f0ee 558px)}
.cv-paper.template-technical .cv-paper-content{height:1070px}
.cv-paper.template-technical .cv-page-body{grid-template-columns:minmax(0,1fr) 180px;gap:38px}
.cv-paper.template-technical .cv-page-header{margin-inline:-36px}
.cv-paper.template-technical .cv-doc-header{background:#282b2d;color:white;padding:36px;margin:0 0 14px;border:0}
.cv-paper.template-technical .cv-doc-header h1{font-family:'Arial Narrow',Arial,sans-serif;color:white;font-size:34px}
.cv-paper.template-technical .cv-doc-surname{color:#e0a037}
.cv-paper.template-technical .cv-doc-role,.cv-paper.template-technical .cv-doc-contact{color:white}
.cv-paper.template-technical .cv-doc-rail{padding:0;border:0}
.cv-paper.template-technical .cv-doc-unit h2{color:#222;border-color:#cfad73}
.cv-paper.template-technical .cv-doc-rail h2{border-color:#b9b9b4}
.cv-paper.template-technical .cv-experience-start h3{border-left:2px solid #b77d24;padding-left:12px}
.cv-paper.template-technical .cv-experience-task{border-left:1px solid #d3aa65;padding-left:12px}

/* Nordic: editorial nameplate and dated experience timeline. */
.cv-paper.template-leadership{--doc-accent:#17573f;padding:42px}
.cv-paper.template-leadership .cv-doc-header{align-items:flex-start;border-color:#50806d;padding-bottom:24px}
.cv-paper.template-leadership .cv-doc-header h1{font:400 48px/1 Georgia,serif;color:#164e39;max-width:330px}
.cv-paper.template-leadership .cv-doc-unit h2{font:700 13px/1.4 Arial,sans-serif;border:0;color:#17573f}
.cv-paper.template-leadership .cv-experience-start{position:relative;padding-left:135px;border-left:1px solid #719786;margin-left:6px}
.cv-paper.template-leadership .cv-experience-start h2{margin-left:-141px;background:white;padding-top:12px;padding-bottom:12px}
.cv-paper.template-leadership .cv-experience-start h3::before{content:'';position:absolute;left:-4px;width:7px;height:7px;margin-top:6px;border-radius:50%;background:#17573f}
.cv-paper.template-leadership .cv-experience-start .cv-doc-meta>span:last-child{position:absolute;left:14px;top:16px;width:108px;font-size:10px;margin:0}
.cv-paper.template-leadership .cv-experience-start:has(h2) .cv-doc-meta>span:last-child{top:62px}
.cv-paper.template-leadership .cv-experience-start:has(h2)::before{content:'';position:absolute;top:0;left:-2px;width:3px;height:62px;background:white}
.cv-paper.template-leadership .cv-experience-task{padding-left:135px;margin-left:6px;border-left:1px solid #719786}

/* Classic: monochrome serif hierarchy, no decorative panels. */
.cv-paper.template-compact{--doc-accent:#222;padding:42px}
.cv-paper.template-compact .cv-doc-header{display:block;text-align:center;border:0;border-bottom:1px solid #666;padding-bottom:24px}
.cv-paper.template-compact .cv-doc-header h1{font:400 36px/1.2 Georgia,serif}
.cv-paper.template-compact .cv-doc-contact{margin-top:12px}
.cv-paper.template-compact .cv-doc-contact>div{display:inline}
.cv-paper.template-compact .cv-doc-contact>div+div::before{content:' | ';white-space:pre}
.cv-paper.template-compact .cv-doc-unit h2{font:700 13px/1.4 Georgia,serif;color:#222;border-color:#888}
.cv-paper.template-compact .cv-doc-unit h3{font-family:Georgia,serif}
.cv-paper.template-compact .cv-doc-unit p{font-family:Georgia,serif;font-size:12px}
@media(max-width:680px){#cv-storage{align-items:center;flex-wrap:wrap}#cv-storage>label{width:100%}}
.cv-context>small{font-size:11px;color:var(--v4-muted);max-width:190px;line-height:1.5;align-self:center}
@media print{
  body.oh-cv-page .page>footer,body.oh-cv-page .page>#footer,body.oh-cv-page .page>.site-footer{display:none!important}
  body.oh-cv-page .page>:not(#cv-studio){display:none!important}
  body.oh-cv-page #cv-studio .cv-paper-content{overflow:visible!important}
  body.oh-cv-page #cv-studio .cv-page-header{overflow:visible!important}
  body.oh-cv-page #cv-studio .cv-paper{box-sizing:border-box!important}
}
