/* MyRésumé Page — shared stylesheet (screen + print). No dependencies, system fonts only. */

:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #4f46e5;
  --accent-2: #0ea5e9;
  --accent-rgb: 79, 70, 229;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, .06), 0 16px 36px rgba(15, 23, 42, .12);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", serif;
  --max: 1080px;
  --gutter: clamp(16px, 5vw, 32px);
}
[data-accent="teal"]    { --accent: #0f766e; --accent-2: #22c55e; --accent-rgb: 15, 118, 110; }
[data-accent="rose"]    { --accent: #be123c; --accent-2: #f97316; --accent-rgb: 190, 18, 60; }
[data-accent="amber"]   { --accent: #b45309; --accent-2: #f59e0b; --accent-rgb: 180, 83, 9; }
[data-accent="emerald"] { --accent: #047857; --accent-2: #14b8a6; --accent-rgb: 4, 120, 87; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); }
:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .55); outline-offset: 3px; border-radius: 6px; }

/* ---------- top bar ---------- */
.demo-banner { background: #fef3c7; color: #78350f; text-align: center; font-size: .85rem; font-weight: 600; padding: 8px var(--gutter); }
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 251, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; flex: none; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.brand-name { display: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 720px) { .brand-name { display: inline; } }
.nav { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-size: .9rem; font-weight: 600;
  transition: background-color .2s, color .2s;
}
.nav a:hover, .nav a[aria-current="true"] { background: rgba(var(--accent-rgb), .1); color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(36px, 9vw, 96px) 0 clamp(36px, 8vw, 80px);
  color: var(--hero-fg, var(--ink-2));
  background: var(--hero-bg,
    radial-gradient(60% 80% at 88% 0%, rgba(var(--accent-rgb), .14), transparent 60%),
    radial-gradient(50% 60% at 0% 40%, rgba(var(--accent-rgb), .07), transparent 60%));
}
.hero-inner { display: grid; gap: 28px; align-items: center; }
.hero-photo { order: -1; width: clamp(112px, 30vw, 160px); }
@media (min-width: 820px) {
  .hero-inner--photo { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .hero-photo { order: 0; width: 100%; }
}
.hero-text { min-width: 0; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hero-eyebrow, var(--muted)); margin-bottom: 10px; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; color: var(--hero-title, var(--ink));
  font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.08; letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.headline { margin-top: 12px; font-size: clamp(1.1rem, 3.2vw, 1.45rem); font-weight: 600; color: var(--hero-headline, var(--accent)); overflow-wrap: anywhere; }
.hero-fact { display: inline-block; margin-top: 12px; padding: 4px 14px; border-radius: 999px; background: rgba(127, 127, 127, .16); font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.intro { margin-top: 16px; max-width: 60ch; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; border: 4px solid #fff; box-shadow: var(--shadow-hover); }
.photo--initials {
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: #fff;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--accent-rgb), .35); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .5); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

/* ---------- sections ---------- */
.section { padding: clamp(44px, 8vw, 80px) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-title {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; letter-spacing: -.01em; color: var(--ink);
}
.section-title::before { content: ""; flex: none; width: 28px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.subhead { font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; }
.prose { max-width: 70ch; font-size: 1.06rem; }
.prose p + p { margin-top: 1em; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: .92rem; overflow-wrap: anywhere;
  transition: transform .2s, border-color .2s, background-color .2s, box-shadow .2s;
}
.section--alt .tag { background: var(--bg); }
.tag:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .06); box-shadow: var(--shadow); }
.tags--small { margin-top: 14px; gap: 8px; }
.tag--small { padding: 4px 10px; font-size: .8rem; color: var(--muted); }

/* cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.section--alt .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(var(--accent-rgb), .35); }
.card--full { height: 100%; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.card-head > div { min-width: 0; }
.card-title { font-size: 1.15rem; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.card-sub { color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.card-date { font-size: .88rem; font-weight: 700; color: var(--accent); }
.card-meta { margin-top: 8px; font-weight: 600; color: var(--ink-2); }
.card-text { margin-top: 10px; }
.card-link { margin-top: 14px; font-weight: 700; }
.bullets { margin-top: 12px; }
.bullets li { position: relative; padding-left: 20px; margin-top: 8px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* timeline */
.timeline { display: grid; gap: 18px; }
.timeline-item { position: relative; padding-left: 28px; min-width: 0; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: -18px; width: 2px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-item::after {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15);
}

/* projects grid */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-item { min-width: 0; }

/* credentials */
.two-col { display: grid; gap: 28px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; gap: 40px; } }
.plain-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.plain-list li:first-child { padding-top: 0; }
.plain-list strong { color: var(--ink); }

/* contact */
.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact-grid > li { min-width: 0; }
.contact-card {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 68px;
  padding: 16px 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
  text-decoration: none; overflow-wrap: anywhere;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .5); box-shadow: var(--shadow); }
.contact-label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-weight: 600; color: var(--ink); }

/* footer */
.footer { padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--muted); font-size: .9rem; }
.footer-name { font-weight: 600; color: var(--ink-2); }
.footer-note { margin-top: 4px; font-size: .8rem; }
.footer-note a { color: inherit; }

/* ---------- animations (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-anim { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Only hidden when JS has confirmed it can reveal them again. */
.reveal-ready [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--stagger, 0ms);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- templates (selected with "template" in the customer JSON) ---------- */
.tag a { color: inherit; text-decoration: none; }
.btn--link { background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 4px; padding: 0 10px; font-weight: 600; }
.btn--link:hover { transform: none; box-shadow: none; }

/* minimal: flat, text-first, serif headings */
[data-template="minimal"] { --bg: #fff; --surface: #fff; --radius: 6px; --shadow: none; --shadow-hover: none; }
[data-template="minimal"] .topbar { background: rgba(255, 255, 255, .92); }
[data-template="minimal"] .hero { background: none; border-bottom: 1px solid var(--line); padding-bottom: clamp(28px, 5vw, 52px); }
[data-template="minimal"] .hero h1 { font-weight: 600; letter-spacing: -.01em; }
[data-template="minimal"] .headline { color: var(--ink-2); font-weight: 500; }
[data-template="minimal"] .photo { border: 0; border-radius: 50%; box-shadow: none; }
[data-template="minimal"] .photo--initials { background: var(--ink); }
[data-template="minimal"] .section, [data-template="minimal"] .section--alt { background: none; border: 0; border-bottom: 1px solid var(--line); }
[data-template="minimal"] .section-title { font-family: var(--font); font-size: .95rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
[data-template="minimal"] .section-title::before { display: none; }
[data-template="minimal"] .card, [data-template="minimal"] .section--alt .card { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
[data-template="minimal"] .card:hover { transform: none; box-shadow: none; }
[data-template="minimal"] .tag, [data-template="minimal"] .section--alt .tag { border-radius: 4px; background: none; }
[data-template="minimal"] .tag:hover { transform: none; box-shadow: none; }
[data-template="minimal"] .timeline-item::after { width: 8px; height: 8px; left: 2px; top: 11px; box-shadow: none; }
[data-template="minimal"] .btn { border-radius: 6px; }
[data-template="minimal"] .contact-card { border-radius: 6px; background: none; }

/* bold: dark hero, strong type, accent edges (uses the accent colour) */
[data-template="bold"] {
  --hero-bg: linear-gradient(155deg, #0b1120 0%, #121c36 62%, rgba(var(--accent-rgb), .7) 160%);
  --hero-fg: #cbd5e1; --hero-title: #fff; --hero-headline: var(--accent-2); --hero-eyebrow: #94a3b8;
}
[data-template="bold"] .hero h1 { font-family: var(--font); font-weight: 800; letter-spacing: -.035em; }
[data-template="bold"] .btn--primary { background: var(--accent-2); color: #0b1120; }
[data-template="bold"] .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
[data-template="bold"] .photo { border-color: rgba(255, 255, 255, .18); }
[data-template="bold"] .section-title { text-transform: uppercase; letter-spacing: .05em; font-weight: 800; font-size: clamp(1.25rem, 3.4vw, 1.6rem); }
[data-template="bold"] .section-title::before { width: 40px; height: 6px; }
[data-template="bold"] .card { border-left: 5px solid var(--accent); border-radius: 12px; }
[data-template="bold"] .tag, [data-template="bold"] .section--alt .tag { background: var(--ink); border-color: var(--ink); color: #fff; }
[data-template="bold"] .tag:hover { background: var(--accent); border-color: var(--accent); }
[data-template="bold"] .tag--small, [data-template="bold"] .section--alt .tag--small { background: none; border-color: var(--line); color: var(--muted); }

/* centered: centred hero, round photo, serif headings */
[data-template="centered"] .hero-inner--photo { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
[data-template="centered"] .hero-photo { order: -1; width: clamp(120px, 28vw, 176px); }
[data-template="centered"] .photo { border-radius: 50%; }
[data-template="centered"] .hero h1 { font-weight: 600; }
[data-template="centered"] .intro { margin-inline: auto; }
[data-template="centered"] .hero-actions { justify-content: center; }
[data-template="centered"] .section-title { justify-content: center; text-align: center; }
[data-template="centered"] .section-title::after { content: ""; flex: none; width: 28px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
[data-template="centered"] .prose { margin-inline: auto; text-align: center; }
[data-template="centered"] .tags { justify-content: center; }

/* ---- colourful set: fixed palettes (the "accent" setting is ignored) ---- */

/* sunset: warm orange to magenta */
[data-template="sunset"] {
  --bg: #fff7f2; --surface: #fff; --line: #fde1d3;
  --accent: #be123c; --accent-2: #ea580c; --accent-rgb: 190, 18, 60;
  --hero-bg: linear-gradient(135deg, #c2410c 0%, #be123c 55%, #86198f 120%);
  --hero-fg: #ffedd5; --hero-title: #fff; --hero-headline: #fff; --hero-eyebrow: #fed7aa;
}
[data-template="sunset"] .topbar { background: rgba(255, 247, 242, .9); }
[data-template="sunset"] .btn--primary { background: #fff; color: #9f1239; }
[data-template="sunset"] .btn--primary:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
[data-template="sunset"] .btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); }
[data-template="sunset"] .photo { border-color: rgba(255, 255, 255, .75); }
[data-template="sunset"] .photo--initials { background: rgba(255, 255, 255, .22); }
[data-template="sunset"] .card { border-top: 4px solid var(--accent-2); }
[data-template="sunset"] .tag:not(.tag--small):nth-child(5n+1) { background: #ffedd5; }
[data-template="sunset"] .tag:not(.tag--small):nth-child(5n+2) { background: #fee2e2; }
[data-template="sunset"] .tag:not(.tag--small):nth-child(5n+3) { background: #fce7f3; }
[data-template="sunset"] .tag:not(.tag--small):nth-child(5n+4) { background: #fef3c7; }
[data-template="sunset"] .tag:not(.tag--small):nth-child(5n+5) { background: #ffe4e6; }

/* ocean: teal to deep blue */
[data-template="ocean"] {
  --bg: #f0f9ff; --surface: #fff; --line: #d6e9f5;
  --accent: #0369a1; --accent-2: #0891b2; --accent-rgb: 3, 105, 161;
  --hero-bg: linear-gradient(135deg, #0e7490 0%, #0369a1 55%, #3730a3 120%);
  --hero-fg: #e0f2fe; --hero-title: #fff; --hero-headline: #a5f3fc; --hero-eyebrow: #bae6fd;
}
[data-template="ocean"] .topbar { background: rgba(240, 249, 255, .9); }
[data-template="ocean"] .btn--primary { background: #fff; color: #075985; }
[data-template="ocean"] .btn--primary:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
[data-template="ocean"] .btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); }
[data-template="ocean"] .photo { border-color: rgba(255, 255, 255, .75); }
[data-template="ocean"] .photo--initials { background: rgba(255, 255, 255, .2); }
[data-template="ocean"] .card { border-top: 4px solid var(--accent-2); }
[data-template="ocean"] .tag:not(.tag--small):nth-child(5n+1) { background: #cffafe; }
[data-template="ocean"] .tag:not(.tag--small):nth-child(5n+2) { background: #e0f2fe; }
[data-template="ocean"] .tag:not(.tag--small):nth-child(5n+3) { background: #dbeafe; }
[data-template="ocean"] .tag:not(.tag--small):nth-child(5n+4) { background: #e0e7ff; }
[data-template="ocean"] .tag:not(.tag--small):nth-child(5n+5) { background: #ccfbf1; }

/* playful: pastel, thick outlines, hard shadows */
[data-template="playful"] {
  --bg: #fffdf5; --surface: #fff; --ink: #1e1b4b; --ink-2: #312e81; --line: #e9d5ff; --radius: 20px;
  --accent: #7c3aed; --accent-2: #ec4899; --accent-rgb: 124, 58, 237;
  --shadow: 5px 5px 0 var(--accent-2); --shadow-hover: 8px 8px 0 var(--accent-2);
  --hero-bg: linear-gradient(135deg, #fef3c7 0%, #fce7f3 50%, #e0f2fe 100%);
}
[data-template="playful"] .topbar { background: rgba(255, 253, 245, .92); }
[data-template="playful"] .hero h1 { font-family: var(--font); font-weight: 800; letter-spacing: -.03em; }
[data-template="playful"] .photo { border: 3px solid var(--ink); border-radius: 32px; box-shadow: 6px 6px 0 var(--accent-2); }
[data-template="playful"] .photo--initials { background: var(--accent); }
[data-template="playful"] .btn { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
[data-template="playful"] .btn--primary { background: var(--accent); color: #fff; }
[data-template="playful"] .btn--ghost { background: #fff; color: var(--ink); }
[data-template="playful"] .btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
[data-template="playful"] .btn--link { border: 0; box-shadow: none; }
[data-template="playful"] .section--alt { background: #faf5ff; }
[data-template="playful"] .section-title { font-weight: 800; }
[data-template="playful"] .section-title::before { width: 36px; height: 10px; border-radius: 6px; background: var(--accent-2); }
[data-template="playful"] .card { border: 2px solid var(--ink); }
[data-template="playful"] .card:hover { transform: translate(-2px, -2px); border-color: var(--ink); }
[data-template="playful"] .contact-card { border: 2px solid var(--ink); background: #fff; }
[data-template="playful"] .tag { border: 2px solid var(--ink); color: var(--ink); }
[data-template="playful"] .tag:not(.tag--small):nth-child(5n+1) { background: #fde68a; }
[data-template="playful"] .tag:not(.tag--small):nth-child(5n+2) { background: #fbcfe8; }
[data-template="playful"] .tag:not(.tag--small):nth-child(5n+3) { background: #bbf7d0; }
[data-template="playful"] .tag:not(.tag--small):nth-child(5n+4) { background: #bae6fd; }
[data-template="playful"] .tag:not(.tag--small):nth-child(5n+5) { background: #ddd6fe; }
[data-template="playful"] .tag--small { border-width: 1px; }

/* ---- more themes ---- */

/* executive: navy and gold, formal serif */
[data-template="executive"] {
  --bg: #f7f5ef; --surface: #fff; --ink: #0b1b33; --ink-2: #2c3b52; --muted: #66748a; --line: #e4dfd2;
  --accent: #0b2a5b; --accent-2: #b8892b; --accent-rgb: 11, 42, 91; --radius: 8px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .06), 0 6px 18px rgba(11, 27, 51, .06);
  --shadow-hover: 0 2px 4px rgba(11, 27, 51, .08), 0 14px 30px rgba(11, 27, 51, .12);
  --hero-bg: linear-gradient(135deg, #0b1b33 0%, #102a52 70%, #1b3a6b 125%);
  --hero-fg: #d6deec; --hero-title: #fff; --hero-headline: #e3c377; --hero-eyebrow: #9fb0cc;
}
[data-template="executive"] .topbar { background: rgba(247, 245, 239, .92); }
[data-template="executive"] .hero h1 { font-weight: 600; letter-spacing: -.01em; }
[data-template="executive"] .btn--primary { background: #e3c377; color: #0b1b33; }
[data-template="executive"] .btn--primary:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
[data-template="executive"] .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
[data-template="executive"] .photo { border: 3px solid #e3c377; border-radius: 12px; }
[data-template="executive"] .photo--initials { background: #102a52; color: #e3c377; }
[data-template="executive"] .section-title { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
[data-template="executive"] .section-title::before { width: 34px; height: 3px; border-radius: 0; background: var(--accent-2); }
[data-template="executive"] .card { border-radius: 6px; border-left: 3px solid var(--accent-2); }
[data-template="executive"] .tag, [data-template="executive"] .section--alt .tag { border-radius: 4px; background: rgba(11, 42, 91, .06); border-color: rgba(11, 42, 91, .18); color: var(--accent); }
[data-template="executive"] .timeline-item::after { background: var(--accent-2); box-shadow: 0 0 0 4px rgba(184, 137, 43, .2); }
[data-template="executive"] .card-date { color: #8a6516; }

/* midnight: full dark mode with a violet-cyan glow */
[data-template="midnight"] {
  color-scheme: dark;
  --bg: #0b1020; --surface: #121a33; --ink: #f1f5ff; --ink-2: #b8c4e0; --muted: #8b9bc0; --line: #243056;
  --accent: #9b8cff; --accent-2: #22d3ee; --accent-rgb: 155, 140, 255;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 12px 30px rgba(0, 0, 0, .4);
  --shadow-hover: 0 0 0 1px rgba(155, 140, 255, .4), 0 16px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(155, 140, 255, .2);
  --hero-bg: radial-gradient(60% 90% at 85% 0%, rgba(155, 140, 255, .38), transparent 60%), radial-gradient(50% 70% at 0% 70%, rgba(34, 211, 238, .2), transparent 60%), #0b1020;
  --hero-fg: #b8c4e0; --hero-title: #fff; --hero-headline: var(--accent-2); --hero-eyebrow: #8b9bc0;
}
[data-template="midnight"] .topbar { background: rgba(11, 16, 32, .85); }
[data-template="midnight"] .btn--primary { background: linear-gradient(135deg, #9b8cff, #22d3ee); color: #0b1020; }
[data-template="midnight"] .btn--primary:hover { box-shadow: 0 10px 28px rgba(155, 140, 255, .4); }
[data-template="midnight"] .btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); }
[data-template="midnight"] .photo { border-color: rgba(255, 255, 255, .14); }
[data-template="midnight"] .demo-banner { background: #3b2f0b; color: #fde68a; }

/* terminal: monospace, green on black, for developers */
[data-template="terminal"] {
  color-scheme: dark;
  --bg: #070d08; --surface: #0d170e; --ink: #d9ffdc; --ink-2: #a4d8a9; --muted: #6fa274; --line: #1c3320;
  --accent: #4ade80; --accent-2: #a3e635; --accent-rgb: 74, 222, 128; --radius: 4px;
  --font: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; --serif: var(--font);
  --shadow: none; --shadow-hover: 0 0 0 1px rgba(74, 222, 128, .5), 0 0 24px rgba(74, 222, 128, .15);
  --hero-bg: linear-gradient(rgba(74, 222, 128, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 222, 128, .07) 1px, transparent 1px), #070d08;
  --hero-fg: #a4d8a9; --hero-title: #d9ffdc; --hero-headline: var(--accent); --hero-eyebrow: #6fa274;
}
[data-template="terminal"] .topbar { background: rgba(7, 13, 8, .9); }
[data-template="terminal"] .hero { background-size: 32px 32px; }
[data-template="terminal"] .hero h1 { font-weight: 700; letter-spacing: -.02em; }
[data-template="terminal"] .hero h1::before { content: "> "; color: var(--accent); }
[data-template="terminal"] .btn { border-radius: 4px; }
[data-template="terminal"] .btn--primary { background: var(--accent); color: #04130a; }
[data-template="terminal"] .btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
[data-template="terminal"] .photo { border: 2px solid var(--accent); border-radius: 6px; box-shadow: none; }
[data-template="terminal"] .photo--initials { background: #0d170e; color: var(--accent); }
[data-template="terminal"] .section-title::before { content: "//"; width: auto; height: auto; background: none; color: var(--accent); font-weight: 800; border-radius: 0; }
[data-template="terminal"] .card { border-radius: 4px; }
[data-template="terminal"] .tag { border-radius: 3px; }
[data-template="terminal"] .tag:not(.tag--small)::before { content: "#"; color: var(--accent); margin-right: 3px; }
[data-template="terminal"] .timeline-item::after { border-radius: 2px; }
[data-template="terminal"] .demo-banner { background: #1c3320; color: #bbf7d0; }

/* forest: earthy greens on warm cream, organic shapes */
[data-template="forest"] {
  --bg: #f4f1e8; --surface: #fffdf7; --ink: #1c2a1e; --ink-2: #3b4b3d; --muted: #6a7a6c; --line: #ded9c8;
  --accent: #2f6b3f; --accent-2: #b5894a; --accent-rgb: 47, 107, 63; --radius: 22px;
  --shadow: 0 1px 2px rgba(31, 42, 31, .05), 0 10px 26px rgba(47, 107, 63, .08);
  --hero-bg: radial-gradient(70% 90% at 92% 0%, rgba(47, 107, 63, .2), transparent 62%), radial-gradient(45% 60% at 0% 100%, rgba(181, 137, 74, .2), transparent 60%);
}
[data-template="forest"] .topbar { background: rgba(244, 241, 232, .9); }
[data-template="forest"] .hero h1 { font-weight: 600; }
[data-template="forest"] .photo { border-radius: 38% 62% 56% 44% / 46% 40% 60% 54%; border-color: #fffdf7; }
[data-template="forest"] .photo--initials { background: linear-gradient(135deg, #2f6b3f, #6a9a4b); }
[data-template="forest"] .section-title::before { width: 14px; height: 14px; border-radius: 50% 0 50% 0; background: var(--accent); }
[data-template="forest"] .tag, [data-template="forest"] .section--alt .tag { background: rgba(47, 107, 63, .08); border-color: rgba(47, 107, 63, .25); color: var(--accent); }
[data-template="forest"] .timeline-item::after { border-radius: 50% 0 50% 0; width: 14px; height: 14px; left: -1px; }

/* blush: soft rose and peach, elegant italics */
[data-template="blush"] {
  --bg: #fff7f5; --surface: #fff; --ink: #3a1f2b; --ink-2: #5a3a48; --muted: #96748a; --line: #f3dde2;
  --accent: #b4235c; --accent-2: #f59e8b; --accent-rgb: 180, 35, 92; --radius: 24px;
  --shadow: 0 1px 2px rgba(180, 35, 92, .05), 0 10px 26px rgba(180, 35, 92, .09);
  --hero-bg: linear-gradient(160deg, #ffe3e9 0%, #ffeede 55%, #fff7f5 100%);
}
[data-template="blush"] .topbar { background: rgba(255, 247, 245, .92); }
[data-template="blush"] .hero h1, [data-template="blush"] .headline, [data-template="blush"] .section-title { font-style: italic; }
[data-template="blush"] .hero h1 { font-weight: 600; }
[data-template="blush"] .section-title { font-family: var(--serif); font-weight: 600; }
[data-template="blush"] .photo { border-radius: 50%; border-color: #fff; box-shadow: 0 14px 34px rgba(180, 35, 92, .25); }
[data-template="blush"] .tag, [data-template="blush"] .section--alt .tag { background: #ffeef1; border-color: #f8cdd7; color: var(--accent); }

/* editorial: magazine style, cream paper, bold serif, labels in a side column */
[data-template="editorial"] {
  --bg: #faf8f3; --surface: #faf8f3; --ink: #111; --ink-2: #2b2b2b; --muted: #6a6a6a; --line: #d9d4c7;
  --accent: #b3261e; --accent-2: #111; --accent-rgb: 179, 38, 30; --radius: 0px; --shadow: none; --shadow-hover: none;
}
[data-template="editorial"] .topbar { background: rgba(250, 248, 243, .94); border-bottom: 2px solid #111; }
[data-template="editorial"] .brand-mark { border-radius: 0; background: #111; }
[data-template="editorial"] .hero { background: none; border-bottom: 4px double #111; padding-bottom: clamp(28px, 5vw, 56px); }
[data-template="editorial"] .hero h1 { font-size: clamp(2.6rem, 9vw, 5.4rem); line-height: 1; font-weight: 700; letter-spacing: -.03em; }
[data-template="editorial"] .eyebrow { color: var(--accent); letter-spacing: .18em; }
[data-template="editorial"] .headline { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ink-2); }
[data-template="editorial"] .photo { border-radius: 0; border: 1px solid #111; box-shadow: none; filter: grayscale(1); }
[data-template="editorial"] .photo--initials { background: #111; color: #faf8f3; filter: none; }
[data-template="editorial"] .btn { border-radius: 0; }
[data-template="editorial"] .btn--primary { background: #111; color: #faf8f3; }
[data-template="editorial"] .btn--primary:hover { box-shadow: none; }
[data-template="editorial"] .btn--ghost { background: transparent; border-color: #111; color: #111; }
[data-template="editorial"] .section, [data-template="editorial"] .section--alt { background: none; border: 0; border-bottom: 1px solid var(--line); }
[data-template="editorial"] .section-title { display: block; margin: 0 0 20px; font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); border-top: 2px solid #111; padding-top: 10px; }
[data-template="editorial"] .section-title::before { display: none; }
@media (min-width: 820px) {
  [data-template="editorial"] .section .container { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 0 44px; align-items: start; }
}
[data-template="editorial"] .card, [data-template="editorial"] .section--alt .card { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
[data-template="editorial"] .card:hover { transform: none; box-shadow: none; }
[data-template="editorial"] .card-title { font-family: var(--serif); font-size: 1.25rem; }
[data-template="editorial"] .tag, [data-template="editorial"] .section--alt .tag { border-radius: 0; background: none; border-color: #111; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; padding: 6px 12px; }
[data-template="editorial"] .tag:hover { transform: none; box-shadow: none; background: #111; color: #faf8f3; }
[data-template="editorial"] .tag--small { text-transform: none; letter-spacing: 0; }
[data-template="editorial"] .timeline-item::after { border-radius: 0; width: 8px; height: 8px; left: 2px; top: 11px; box-shadow: none; background: #111; }
[data-template="editorial"] .contact-card { border-radius: 0; background: none; border-color: #111; }

/* sidebar: classic two-column CV with a sticky profile panel (honours accent colours) */
[data-template="sidebar"] {
  --bg: #eef1f6;
  --hero-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --hero-fg: #cbd5e1; --hero-title: #fff; --hero-headline: var(--accent-2); --hero-eyebrow: #94a3b8;
}
[data-template="sidebar"] .hero h1 { font-family: var(--font); font-weight: 800; letter-spacing: -.03em; font-size: clamp(2rem, 5vw, 2.7rem); }
[data-template="sidebar"] .btn--primary { background: var(--accent-2); color: #0f172a; }
[data-template="sidebar"] .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
[data-template="sidebar"] .photo { border-color: rgba(255, 255, 255, .2); border-radius: 24px; }
@media (min-width: 960px) {
  [data-template="sidebar"] main { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); align-items: start; }
  [data-template="sidebar"] .hero { grid-column: 1; grid-row: 1 / span 24; position: sticky; top: 57px; min-height: calc(100vh - 57px); padding: 44px 0; }
  [data-template="sidebar"] .hero .container { padding-inline: 30px; }
  [data-template="sidebar"] .hero-inner--photo { grid-template-columns: minmax(0, 1fr); text-align: left; gap: 22px; align-items: start; }
  [data-template="sidebar"] .hero-photo { order: -1; width: 150px; }
  [data-template="sidebar"] .section { grid-column: 2; }
  [data-template="sidebar"] .section .container { max-width: 820px; margin-inline: 0; padding-inline: clamp(28px, 4vw, 56px); }
}

/* ---------- MyRésumé Page landing page ---------- */
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { height: 34px; width: auto; }
.home-hero .hero-text { max-width: 720px; }
.home-hero h1 { font-size: clamp(2rem, 6.4vw, 3.5rem); }
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.step { counter-increment: step; }
.step .card-title::before {
  content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px;
  border-radius: 50%; background: rgba(var(--accent-rgb), .12); color: var(--accent); font-size: .9rem; font-weight: 800;
}
.price-card { max-width: 440px; text-align: center; }
.price { font-size: 3.2rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq p { margin-top: 10px; }

/* ---------- print / "Save as PDF" ----------
   Default PDF follows the page's template (colours, hero, headings).
   html.print-plain (the "Plain PDF" button) strips everything back to a neutral layout. */
@page { size: A4; margin: 12mm; }
@media print {
  html { font-size: 10.5pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar, .skip, .hero-actions, .footer-note { display: none !important; }
  .container { max-width: none; padding-inline: 0; }
  .hero-anim, [data-reveal], .reveal-ready [data-reveal] { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }

  body[data-template] { background: #fff; color: #111; }
  body[data-template] .hero { padding: 0 0 10pt; border-radius: 0; background: var(--hero-bg, none); color: var(--hero-fg, #111); }
  body[data-template] .hero-inner, body[data-template] .hero-inner--photo { grid-template-columns: minmax(0, 1fr) 28mm; gap: 12pt; text-align: left; justify-items: stretch; align-items: center; }
  body[data-template] .hero-photo { order: 0; width: 28mm; }
  body[data-template] .photo { border: 0; box-shadow: none; border-radius: 6pt; }
  body[data-template] .hero h1 { font-size: 24pt; color: var(--hero-title, #111); }
  body[data-template] .headline { font-size: 12pt; color: var(--hero-headline, var(--accent)); }
  body[data-template] .eyebrow { color: var(--hero-eyebrow, #555); }
  body[data-template] .intro { margin: 5pt 0 0; font-size: 10pt; max-width: none; }

  body[data-template] .section, body[data-template] .section--alt { padding: 9pt 0; background: none; border: 0; }
  body[data-template] .section-title { display: flex; justify-content: flex-start; text-align: left; font-family: var(--font); font-size: 12.5pt; text-transform: none; letter-spacing: 0; color: #111; margin-bottom: 7pt; padding-bottom: 3pt; border-bottom: 1.5pt solid var(--accent); break-after: avoid; }
  body[data-template] .section-title::before, body[data-template] .section-title::after,
  body[data-template] .timeline-item::before, body[data-template] .timeline-item::after { display: none; }
  body[data-template] .timeline { gap: 9pt; }
  body[data-template] .timeline-item { padding-left: 0; break-inside: avoid; }
  body[data-template] .card, body[data-template] .section--alt .card { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; break-inside: avoid; }
  body[data-template] .grid { gap: 10pt; }
  body[data-template] .grid-item, body[data-template] .plain-list li, body[data-template] .contact-card { break-inside: avoid; }
  body[data-template] .card-title { font-size: 11.5pt; }
  body[data-template] .prose { max-width: none; font-size: 10.5pt; }
  body[data-template] .tag, body[data-template] .section--alt .tag { background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .35); color: #111; box-shadow: none; padding: 1.5pt 8pt; font-size: 9.5pt; }
  body[data-template] .tag--small, body[data-template] .section--alt .tag--small { background: none; color: #444; border: 1px solid #ccc; padding: 1pt 6pt; font-size: 8.5pt; }
  body[data-template] .contact-grid { grid-template-columns: 1fr 1fr; gap: 4pt 16pt; }
  body[data-template] .contact-card { background: none; border: 0; padding: 2pt 0; min-height: 0; }
  body[data-template] .footer { padding: 8pt 0 0; }
  a { color: inherit; text-decoration: none; }

  /* --- per-template PDF styling --- */
  body[data-template="modern"] .hero { padding: 14pt; border-radius: 10pt; background: linear-gradient(135deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-rgb), .03)); }

  body[data-template="minimal"] .photo { border-radius: 50%; }
  body[data-template="minimal"] .section-title { color: var(--accent); font-size: 10pt; text-transform: uppercase; letter-spacing: .14em; border-bottom: 1px solid #ccc; }
  body[data-template="minimal"] .tag { background: none; border-color: #bbb; }

  body[data-template="bold"] .hero, body[data-template="sunset"] .hero, body[data-template="ocean"] .hero, body[data-template="playful"] .hero, body[data-template="executive"] .hero, body[data-template="midnight"] .hero, body[data-template="terminal"] .hero, body[data-template="forest"] .hero, body[data-template="blush"] .hero, body[data-template="sidebar"] .hero { padding: 14pt; border-radius: 10pt; position: static; min-height: 0; }
  body[data-template="bold"] .section-title { text-transform: uppercase; letter-spacing: .05em; }
  body[data-template="bold"] .card { border-left: 3pt solid var(--accent); padding-left: 8pt; }
  body[data-template="bold"] .tag { background: #0b1120; color: #fff; border-color: #0b1120; }
  body[data-template="bold"] .tag--small { background: none; color: #444; border-color: #ccc; }

  body[data-template="centered"] .hero-inner--photo { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  body[data-template="centered"] .hero-photo { order: -1; width: 26mm; }
  body[data-template="centered"] .photo { border-radius: 50%; }
  body[data-template="centered"] .intro { margin-inline: auto; }
  body[data-template="centered"] .section-title { justify-content: center; text-align: center; border-bottom: 0; gap: 10pt; }
  body[data-template="centered"] .section-title::before, body[data-template="centered"] .section-title::after { display: block; height: 3pt; width: 22pt; }
  body[data-template="centered"] .prose { margin-inline: auto; text-align: center; }
  body[data-template="centered"] .tags { justify-content: center; }

  body[data-template="sunset"] .card { border-top: 2pt solid var(--accent-2); padding-top: 6pt; }
  body[data-template="ocean"] .card { border-top: 2pt solid var(--accent-2); padding-top: 6pt; }
  body[data-template="playful"] .section-title { border-bottom: 2pt solid var(--ink); }
  body[data-template="playful"] .tag:not(.tag--small) { border: 1.5pt solid var(--ink); }


  /* new themes on paper */
  body[data-template="midnight"], body[data-template="terminal"] { --ink: #111; --ink-2: #333; --muted: #555; --line: #ccc; --bg: #fff; --surface: #fff; }
  body[data-template="midnight"] .card-date, body[data-template="terminal"] .card-date { color: #333; }
  body[data-template="terminal"] .hero { background-size: 32px 32px; }
  body[data-template="executive"] .card { border-left: 2pt solid var(--accent-2); padding-left: 8pt; }
  body[data-template="executive"] .section-title { font-family: var(--serif); }
  body[data-template="executive"] .card-date { color: #8a6516; }
  body[data-template="editorial"] .section .container { display: block; }
  body[data-template="editorial"] .hero { border-bottom: 3pt double #111; }
  body[data-template="editorial"] .photo { filter: grayscale(1); border-radius: 0; }
  body[data-template="editorial"] .section-title { border-top: 1.5pt solid #111; border-bottom: 0; padding-top: 4pt; color: var(--accent); text-transform: uppercase; letter-spacing: .15em; font-size: 9pt; }
  body[data-template="editorial"] .tag { background: none; border-color: #111; border-radius: 0; }
  body[data-template="sidebar"] main { display: block; }
  body[data-template="forest"] .section-title::before, body[data-template="blush"] .section-title::before { display: none; }

  /* --- "Plain PDF": neutral layout, no colours or backgrounds --- */
  html.print-plain body[data-template] .hero { background: none; color: #111; padding: 0 0 10pt; border-radius: 0; }
  html.print-plain body[data-template] .hero h1, html.print-plain body[data-template] .headline { color: #111; }
  html.print-plain body[data-template] .eyebrow { color: #555; }
  html.print-plain body[data-template] .hero-inner--photo { grid-template-columns: minmax(0, 1fr) 28mm; text-align: left; justify-items: stretch; }
  html.print-plain body[data-template] .hero-inner--photo:has(.photo--initials) { grid-template-columns: minmax(0, 1fr); }
  html.print-plain body[data-template] .hero-photo:has(.photo--initials) { display: none; }
  html.print-plain body[data-template] .hero-photo { order: 0; width: 28mm; }
  html.print-plain body[data-template] .photo { border-radius: 6pt; }
  html.print-plain body[data-template] .intro { margin-inline: 0; }
  html.print-plain body[data-template] .hero-fact { background: none; padding: 0; }
  html.print-plain body[data-template] .section-title { justify-content: flex-start; text-align: left; color: #111; font-size: 12.5pt; text-transform: none; letter-spacing: 0; border-bottom: 1px solid #bbb; font-family: var(--font); }
  html.print-plain body[data-template] .section-title::before, html.print-plain body[data-template] .section-title::after { display: none; }
  html.print-plain body[data-template] .prose { margin-inline: 0; text-align: left; }
  html.print-plain body[data-template] .tags { justify-content: flex-start; }
  html.print-plain body[data-template] .card { border: 0; padding: 0; }
  html.print-plain body[data-template] .card-date { color: #111; }
  html.print-plain body[data-template] .bullets li::before { background: #111; }
  html.print-plain body[data-template] .tag:not(.tag--small), html.print-plain body[data-template] .section--alt .tag:not(.tag--small) { background: none; color: #111; border: 1px solid #bbb; }
  html.print-plain body[data-template] { --ink: #111; --ink-2: #333; --muted: #555; --line: #ccc; --bg: #fff; --surface: #fff; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
  html.print-plain body[data-template] .hero h1::before { content: none; }
  html.print-plain body[data-template] .section .container { display: block; }
  html.print-plain body[data-template] main { display: block; }
  html.print-plain body[data-template] .photo { filter: none; }
  html.print-plain body[data-template] .tag::before { display: none; }
  html.print-plain body[data-template] .hero { position: static; min-height: 0; }
  html.print-plain body[data-template] .hero-fact { background: none; padding: 0; }
}
