﻿/**
 * TPM Executive Resume — A4 multi-page layout
 * Sourced from TahaChouhan_TPM_Resume.html (scope document)
 */

    /* ===== RESET & BASE ===== */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0
    }

    html {
      font-size: 11pt;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact
    }

    /* ===== CSS VARIABLES ===== */
    :root {
      --ink: #0d1b2a;
      --ink-mid: #2c3e50;
      --ink-muted: #4a5568;
      --ink-light: #6b7a8d;
      --gold: #b8892a;
      --gold-light: #d4a845;
      --gold-pale: #faf4e8;
      --gold-subtle: #f5edd7;
      --rule: #d4c9a8;
      --rule-light: #ede7d6;
      --page: #ffffff;
      --surface: #faf8f4;
      --surface-alt: #f4f0e8;
      --navy: #0a1e35;
      --navy-mid: #122b4a;
      --accent-red: #8b1a1a;
      --font-display: 'EB Garamond', Georgia, serif;
      --font-body: 'DM Sans', system-ui, sans-serif;
      --font-mono: 'DM Mono', monospace;
    }

    body {
      font-family: var(--font-body);
      background: #e8e3d9;
      color: var(--ink);
      line-height: 1.5;
      padding: 28pt 0 40pt;
    }

    /* ===== PAGE CONTAINER ===== */
    .page {
      max-width: 210mm;
      margin: 0 auto 24pt;
      background: var(--page);
      box-shadow: 0 4pt 32pt rgba(10, 30, 53, .14), 0 1pt 4pt rgba(10, 30, 53, .08);
      position: relative;
      page-break-after: always;
    }

    .page:last-child {
      page-break-after: auto
    }

    /* ===== HEADER ===== */
    .header {
      background: var(--navy);
      color: #fff;
      padding: 32pt 42pt 24pt;
      position: relative;
      overflow: hidden;
    }

    .header::before {
      content: '';
      position: absolute;
      top: -60pt;
      right: -40pt;
      width: 240pt;
      height: 240pt;
      border-radius: 50%;
      background: rgba(184, 137, 42, .06);
      pointer-events: none;
    }

    .header::after {
      content: '';
      position: absolute;
      bottom: -80pt;
      left: 60pt;
      width: 320pt;
      height: 160pt;
      border-radius: 50%;
      background: rgba(184, 137, 42, .04);
      pointer-events: none;
    }

    .footer {
      background: var(--navy);
      color: #fff;
      padding: 0;
      outline: 0;
      position: relative;
      bottom: 0;
      overflow: hidden;
      border-top: 3.5pt solid;
      border-image: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 45%, var(--gold) 100%) 1;
    }

    .header-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 20pt
    }

    .header-left {
      flex: 1
    }

    .name {
      font-family: var(--font-display);
      font-size: 36pt;
      font-weight: 700;
      line-height: .95;
      letter-spacing: -.01em;
      color: #ffffff;
      position: relative;
    }

    .name-title {
      font-family: var(--font-body);
      font-size: 10.5pt;
      font-weight: 500;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--gold-light);
      margin-top: 7pt;
    }

    .header-tagline {
      font-size: 9.5pt;
      color: rgba(255, 255, 255, .65);
      margin-top: 7pt;
      font-weight: 300;
      line-height: 1.5;
      max-width: 360pt;
    }

    .availability-badge {
      flex-shrink: 0;
      border: 1pt solid rgba(184, 137, 42, .5);
      background: rgba(184, 137, 42, .12);
      color: var(--gold-light);
      font-size: 8pt;
      font-weight: 600;
      letter-spacing: .12em;
      text-transform: uppercase;
      padding: 8pt 14pt;
      border-radius: 2pt;
      text-align: center;
      line-height: 1.4;
      margin-top: 4pt;
    }

    .availability-badge .ab-icon {
      display: block;
      font-size: 11pt;
      margin-bottom: 3pt
    }

    .contact-strip {
      display: flex;
      flex-wrap: wrap;
      gap: 0;
      margin-top: 18pt;
      border-top: 1pt solid rgba(255, 255, 255, .1);
      padding-top: 14pt;
    }

    .ci {
      font-size: 9pt;
      color: rgba(255, 255, 255, .7);
      padding-right: 16pt;
      margin-right: 16pt;
      border-right: 1pt solid rgba(255, 255, 255, .1);
      line-height: 1.35;
      margin-bottom: 4pt;
    }

    .ci:last-child {
      border: none;
      margin-right: 0;
      padding-right: 0
    }

    .ci a {
      color: inherit;
      text-decoration: none
    }

    .ci a:hover {
      color: var(--gold-light)
    }

    .ci .cl {
      display: block;
      font-size: 7pt;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: rgba(255, 255, 255, .38);
      font-weight: 500;
      margin-bottom: 1pt
    }

    .ci .cv {
      font-weight: 500;
      color: rgba(255, 255, 255, .82)
    }

    /* ===== GOLD RULE ===== */
    .gold-rule {
      height: 3.5pt;
      background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 45%, var(--gold) 100%)
    }

    /* ===== PAGE BODY ===== */
    .body {
      padding: 28pt 42pt 32pt
    }

    /* ===== SECTION ===== */
    .section {
      margin-bottom: 22pt
    }

    .section:last-child {
      margin-bottom: 0
    }

    .section-label {
      display: flex;
      align-items: center;
      gap: 10pt;
      margin-bottom: 12pt;
    }

    .section-label .sl-text {
      font-family: var(--font-body);
      font-size: 7.5pt;
      font-weight: 700;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--gold);
    }

    .section-label::after {
      content: '';
      flex: 1;
      height: 1pt;
      background: var(--rule);
    }

    .section-label::before {
      content: '';
      width: 3pt;
      height: 13pt;
      background: var(--gold);
      border-radius: 1pt;
      flex-shrink: 0;
    }

    /* ===== EXECUTIVE SUMMARY ===== */
    .exec-text {
      font-size: 10.5pt;
      color: var(--ink-mid);
      line-height: 1.65;
      text-align: justify;
    }

    .exec-text strong {
      color: var(--ink);
      font-weight: 700
    }

    .hl {
      color: var(--navy);
      font-weight: 700
    }

    /* ===== IMPACT METRICS ===== */
    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8pt;
      margin-bottom: 8pt;
    }

    .metric-card {
      background: var(--surface);
      border: 1pt solid var(--rule-light);
      border-top: 2.5pt solid var(--gold);
      padding: 10pt 10pt 9pt;
      text-align: center;
    }

    .metric-card .mv {
      font-family: var(--font-display);
      font-size: 22pt;
      font-weight: 700;
      color: var(--navy);
      line-height: 1;
      display: block;
    }

    .metric-card .ml {
      font-size: 7.5pt;
      color: var(--ink-muted);
      text-transform: uppercase;
      letter-spacing: .04em;
      font-weight: 600;
      display: block;
      margin-top: 4pt;
      line-height: 1.3;
    }

    /* ===== COMPETENCIES ===== */
    .comp-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6pt 20pt
    }

    .comp-group {
      margin-bottom: 8pt
    }

    .comp-group:last-child {
      margin-bottom: 0
    }

    .cg-head {
      font-size: 8pt;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: var(--navy);
      margin-bottom: 5pt;
      padding-bottom: 3pt;
      border-bottom: 1pt solid var(--rule-light);
    }

    .tag-row {
      display: flex;
      flex-wrap: wrap;
      gap: 4pt
    }

    .tag {
      font-size: 8.5pt;
      font-weight: 500;
      color: var(--ink-mid);
      background: var(--surface-alt);
      padding: 2.5pt 8pt;
      border-radius: 2pt;
      border: 1pt solid var(--rule-light);
    }

    .tag.key {
      background: var(--navy);
      color: #fff;
      border-color: var(--navy);
      font-weight: 600;
    }

    .tag.gold {
      background: var(--gold-subtle);
      color: var(--gold);
      border-color: rgba(184, 137, 42, .3);
      font-weight: 600;
    }

    /* ===== EXPERIENCE ===== */
    .job {
      margin-bottom: 20pt;
      break-inside: avoid;
      page-break-inside: avoid
    }

    .job:last-child {
      margin-bottom: 0
    }

    .job-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12pt;
      margin-bottom: 8pt;
      padding-bottom: 8pt;
      border-bottom: 1pt solid var(--rule-light);
    }

    .job-left {}

    .job-role {
      font-family: var(--font-display);
      font-size: 13pt;
      font-weight: 700;
      color: var(--navy);
      line-height: 1.2;
    }

    .job-company {
      font-size: 10pt;
      font-weight: 600;
      color: var(--gold);
      margin-top: 2pt;
    }

    .job-right {
      text-align: right;
      flex-shrink: 0
    }

    .job-dates {
      font-family: var(--font-mono);
      font-size: 8.5pt;
      color: var(--ink-muted);
      font-weight: 500;
      white-space: nowrap;
    }

    .job-location {
      font-size: 8pt;
      color: var(--ink-light);
      margin-top: 2pt;
    }

    .job ul {
      padding: 0;
      margin: 0
    }

    .job li {
      list-style: none;
      font-size: 9.5pt;
      color: var(--ink-mid);
      padding-left: 14pt;
      position: relative;
      margin-bottom: 5pt;
      line-height: 1.55;
    }

    .job li::before {
      content: '';
      position: absolute;
      left: 2pt;
      top: 7pt;
      width: 5pt;
      height: 5pt;
      background: var(--gold);
      border-radius: 50%;
    }

    .job li strong,
    .job li b {
      color: var(--ink);
      font-weight: 700
    }

    .job li em {
      color: var(--gold);
      font-style: normal;
      font-weight: 600
    }

    /* ===== PROJECT TABLE ===== */
    .proj-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 9pt;
      margin-top: 4pt;
    }

    .proj-table thead tr {
      background: var(--navy)
    }

    .proj-table th {
      color: #fff;
      padding: 7pt 9pt;
      text-align: left;
      font-weight: 600;
      font-size: 7.5pt;
      text-transform: uppercase;
      letter-spacing: .06em;
      font-family: var(--font-body);
    }

    .proj-table td {
      padding: 7pt 9pt;
      border-bottom: 1pt solid var(--rule-light);
      vertical-align: top;
      color: var(--ink-mid);
      line-height: 1.4;
      font-size: 9pt;
    }

    .proj-table tr:nth-child(even) td {
      background: var(--surface)
    }

    .proj-table .proj-name {
      font-weight: 700;
      color: var(--ink);
      font-size: 9pt
    }

    .proj-table .proj-dom {
      font-size: 7.5pt;
      font-weight: 700;
      color: var(--gold);
      text-transform: uppercase;
      letter-spacing: .05em;
      white-space: nowrap;
    }

    .proj-table .proj-tech {
      font-family: var(--font-mono);
      font-size: 8pt;
      color: var(--ink-muted);
    }

    /* ===== TOOLS GRID ===== */
    .tools-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8pt 16pt
    }

    .tool-cat {}

    .tool-cat .th {
      font-size: 8pt;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--navy);
      margin-bottom: 3pt;
      padding-bottom: 2pt;
      border-bottom: 1pt solid var(--rule-light);
    }

    .tool-cat .tv {
      font-size: 9pt;
      color: var(--ink-mid);
      line-height: 1.5;
    }

    /* ===== EDUCATION ===== */
    .edu-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12pt
    }

    .edu-degree {
      font-family: var(--font-display);
      font-size: 12pt;
      font-weight: 700;
      color: var(--navy)
    }

    .edu-school {
      font-size: 9.5pt;
      color: var(--ink-muted);
      margin-top: 2pt
    }

    .edu-year {
      font-family: var(--font-mono);
      font-size: 8.5pt;
      color: var(--ink-muted);
      white-space: nowrap;
      margin-top: 2pt
    }

    .cert-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3pt 16pt;
      margin-top: 8pt
    }

    .cert-item {
      font-size: 9pt;
      color: var(--ink-mid);
      padding-left: 14pt;
      position: relative;
      line-height: 1.4;
    }

    .cert-item::before {
      content: 'â–¸';
      position: absolute;
      left: 0;
      color: var(--gold);
      font-size: 8.5pt
    }

    /* ===== LANGUAGES & AVAILABILITY ===== */
    .avail-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8pt 20pt
    }

    .avail-item {
      font-size: 9.5pt;
      color: var(--ink-mid);
      line-height: 1.5
    }

    .avail-item b {
      color: var(--ink);
      font-weight: 700
    }

    /* ===== MINI HEADER (continuation pages) ===== */
    .mini-header {
      background: var(--navy);
      padding: 14pt 42pt 12pt;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .mini-footer {
      background: var(--navy);
      padding: 14pt 42pt 12pt;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .mini-name {
      font-family: var(--font-display);
      font-size: 20pt;
      font-weight: 700;
      color: #fff;
    }

    .mini-title {
      font-size: 8.5pt;
      font-weight: 500;
      letter-spacing: .15em;
      text-transform: uppercase;
      color: var(--gold-light);
      margin-top: 2pt;
    }

    .mini-contacts {
      display: flex;
      gap: 16pt;
      align-items: center;
    }

    .mini-contacts .mc {
      font-size: 8.5pt;
      color: rgba(255, 255, 255, .65);
      text-align: right;
      line-height: 1.35;
    }

    .mini-contacts .mc .mcl {
      font-size: 7pt;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: rgba(255, 255, 255, .35);
      display: block
    }

    .mini-contacts .mc a {
      color: inherit;
      text-decoration: none
    }

    /* ===== CTA BOX ===== */
    .cta-box {
      background: var(--navy);
      color: #fff;
      padding: 14pt 20pt;
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12pt;
    }

    .cta-box .cta-left .cta-t {
      font-size: 10pt;
      font-weight: 700;
      color: var(--gold-light);
      margin-bottom: 3pt
    }

    .cta-box .cta-left .cta-s {
      font-size: 8.5pt;
      color: rgba(255, 255, 255, .65);
      line-height: 1.4
    }

    .cta-box .cta-right {
      display: flex;
      flex-direction: column;
      gap: 5pt;
      text-align: right;
      flex-shrink: 0
    }

    .cta-contact {
      font-size: 9pt;
      color: rgba(255, 255, 255, .8);
      font-weight: 500
    }

    .cta-contact a {
      color: var(--gold-light);
      text-decoration: none;
      font-weight: 700
    }

    /* ===== VALUE PROP ===== */
    .value-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6pt
    }

    .value-item {
      background: var(--surface);
      border-left: 2.5pt solid var(--gold);
      padding: 8pt 10pt;
      font-size: 9pt;
      color: var(--ink-mid);
      line-height: 1.4;
    }

    .value-item strong {
      color: var(--ink);
      font-weight: 700;
      display: block;
      margin-bottom: 2pt;
      font-size: 9pt
    }

    /* ===== PRINT ===== */
    @media print {
      body {
        background: #fff;
        padding: 0
      }

      .page {
        box-shadow: none;
        max-width: 100%;
        margin: 0;
      }

      .header,
      .mini-header,
      .mini-footer,
      .gold-rule,
      .metric-card,
      .tag.key,
      .proj-table thead tr,
      .proj-table tr:nth-child(even) td,
      .cta-box,
      .surface,
      .section-label::before {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important
      }

      @page {
        size: A4;
        margin: 0
      }

      .section {
        margin-bottom: 16pt
      }

      .job {
        margin-bottom: 14pt
      }
    }

    /* ===== RESPONSIVE ===== */
    @media(max-width:700px) {

      .body,
      .header,
      .footer,
      .mini-header,
      .mini-footer {
        padding-left: 18pt;
        padding-right: 18pt
      }

      .name {
        font-size: 26pt
      }

      .header-top {
        flex-direction: column
      }

      .availability-badge {
        align-self: flex-start
      }

      .metrics-grid {
        grid-template-columns: 1fr 1fr
      }

      .comp-cols,
      .tools-grid,
      .avail-grid,
      .cert-grid,
      .value-grid {
        grid-template-columns: 1fr
      }

      .contact-strip .ci {
        border: none;
        margin-right: 10pt;
        padding-right: 0
      }

      .proj-table {
        font-size: 8pt
      }

      .proj-table th,
      .proj-table td {
        padding: 5pt 6pt
      }

      .job-header {
        flex-direction: column;
        gap: 4pt
      }

      .job-right {
        text-align: left
      }

      .mini-contacts {
        display: none
      }
    }
  
/* ===== Site integration (resume hub / print) ===== */
body.cv-body {
  font-family: var(--font-body);
  background: #e8e3d9;
  color: var(--ink);
  line-height: 1.5;
  padding: 28pt 0 40pt;
  margin: 0;
}

body.cv-body.royal-site {
  background-color: var(--royal-void, #030711);
  background-image:
      radial-gradient(ellipse 90% 55% at 50% -15%, rgba(56, 110, 200, 0.16) 0%, transparent 58%),
      radial-gradient(ellipse 55% 45% at 100% 85%, rgba(201, 169, 98, 0.09) 0%, transparent 52%),
      linear-gradient(180deg, var(--royal-deep, #070d1a) 0%, var(--royal-void, #030711) 100%);
}

body.cv-body.cv-body--unified {
  padding-top: 0;
}

.cv-tpm-document .page {
  max-width: 210mm;
}

.unified-wrap .cv-tpm-document,
.unified-pack .cv-tpm-document {
  margin: 0 auto;
}

@media print {
  body.cv-body {
    background: #fff;
    padding: 0;
  }
  .no-print { display: none !important; }
}

/* Print toolbar (dedicated print route) */
.cv-toolbar {
  max-width: 210mm;
  margin: 0 auto 12px;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.cv-toolbar__link,
.cv-toolbar__btn {
  font-family: var(--font-body);
  font-size: 9pt;
  font-weight: 600;
  color: var(--royal-platinum, #e8ecf2);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.cv-toolbar__link:hover,
.cv-toolbar__btn:hover {
  border-color: rgba(201, 169, 98, 0.4);
  color: var(--royal-gold-light, #e8d5a3);
}

.cv-toolbar__btn--primary {
  background: linear-gradient(135deg, #c9a962, #8a7340);
  color: #0a0e14;
  border-color: rgba(201, 169, 98, 0.5);
  margin-left: auto;
}

.cv-toolbar__btn--primary:hover {
  filter: brightness(1.08);
  color: #0a0e14;
}

