/* Resume — Jeah L. Macapagal, CTT
   Variant A · Executive Two-Column. A4 (210 × 297 mm). */

:root {
  --cetacean: #020D2F;
  --catalina: #032C7D;
  --absolute-zero: #0841C9;
  --button-blue: #1D97F1;
  --vodka: #C4C7F2;

  --ink: #020D2F;
  --ink-soft: #2B3047;
  --ink-muted: #5A6280;
  --ink-faint: #7A8099;
  --rule: #E5E7F0;

  --side-text: #E6E8FA;
  --side-text-mute: rgba(196, 199, 242, 0.55);
  --side-text-rule: rgba(196, 199, 242, 0.18);
  --side-chip-border: rgba(29, 151, 241, 0.55);
  --side-chip-text: #9EC8FF;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #f0eee9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
}

body {
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

/* A4 page: 210 × 297 mm. Use mm so print is true-to-size; screen rendering
   matches at standard 96dpi. */
.page {
  width: 210mm;
  height: 297mm;
  background: #ffffff;
  display: grid;
  grid-template-columns: 71.5mm 1fr;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  background: var(--cetacean);
  color: var(--vodka);
  padding: 14.3mm 7.4mm 10.6mm;
}

.side-inner {
  display: flex;
  flex-direction: column;
  gap: 6.9mm;
}

.side-h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--button-blue);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--side-text-rule);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 10.5px;
  color: var(--side-text);
}

.contact-label {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--side-text-mute);
  margin-bottom: 2px;
}

.contact-value {
  display: block;
  color: #ffffff;
  word-break: break-word;
  font-size: 11px;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: var(--side-text);
  line-height: 1.35;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 10px;
  padding: 4px 9px;
  border: 1px solid var(--side-chip-border);
  color: var(--side-chip-text);
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-name {
  font-size: 11px;
  color: #ffffff;
  font-weight: 600;
}

.cert-year {
  font-size: 10px;
  color: rgba(196, 199, 242, 0.65);
}

/* ── Main ─────────────────────────────────────────────────── */
.main {
  padding: 14.3mm 11.6mm 9.5mm;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.header { padding-bottom: 4px; }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--absolute-zero);
  font-weight: 600;
  margin-bottom: 10px;
}

.name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 14px 0;
  color: var(--ink);
  white-space: nowrap;
}

.name-accent {
  color: var(--catalina);
  font-style: italic;
  font-weight: 400;
}

.ctt-badge {
  display: inline-block;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--absolute-zero);
  background: #EDF1FF;
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: middle;
  position: relative;
  top: -4px;
}

.rule {
  height: 2px;
  background: var(--ink);
  width: 64px;
  margin-top: 2px;
}

.section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--absolute-zero);
  margin: 0 0 12px 0;
}

.summary {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.role { margin-bottom: 14px; }

.role-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.role-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.role-co {
  font-size: 11px;
  color: var(--catalina);
  font-weight: 500;
}

.role-date {
  font-size: 10px;
  color: var(--ink-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.bullets {
  margin: 4px 0 0 0;
  padding-left: 16px;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer {
  margin-top: auto;
  font-size: 9.5px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

/* ── Save-as-PDF floating action button ───────────────────── */
.save-pdf {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: var(--absolute-zero);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    0 4px 12px rgba(8, 65, 201, 0.35),
    0 8px 28px rgba(2, 13, 47, 0.18);
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  z-index: 10;
}

.save-pdf:hover {
  background: var(--catalina);
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(8, 65, 201, 0.4),
    0 12px 36px rgba(2, 13, 47, 0.22);
}

.save-pdf:active {
  transform: translateY(0);
}

.save-pdf:focus-visible {
  outline: 2px solid var(--button-blue);
  outline-offset: 3px;
}

.save-pdf svg { display: block; }

/* ── Print ────────────────────────────────────────────────── */
@page {
  size: A4;
  margin: 0;
}

@media print {
  html, body { background: #ffffff; }
  body { padding: 0; display: block; }
  .save-pdf { display: none; }
  .page {
    box-shadow: none;
    width: 210mm;
    height: 297mm;
    page-break-after: avoid;
  }
  /* Force background colors (navy sidebar) to print. */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
