/* ==========================================================================
   Wade Anderson Classic Traditional Resume - Advanced Energy Color Schema
   ========================================================================== */

:root {
  --ae-navy-900: #111126;
  --ae-navy-800: #172B40;
  --ae-blue-700: #0F3B75;
  --ae-blue-600: #2D6BA9;
  --ae-blue-200: #C0DDF7;
  --ae-orange-600: #CC4000;
  --ae-orange-500: #FE5000;
  --ae-canvas: #F4F6F9;
  --ae-paper: #FFFFFF;
  --ae-tint: #F8FAFC;
  --ae-ink-900: #111126;
  --ae-ink-700: #334155;
  --ae-ink-600: #424152;
  --ae-border: #CBD5E1;
  --ae-border-light: #E2E8F0;
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ae-canvas);
  color: var(--ae-ink-900);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.54;
  overflow-x: clip;
}

.top-brand-bar {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ae-navy-800) 0%, var(--ae-blue-600) 75%, var(--ae-orange-500) 75%, var(--ae-orange-500) 100%);
}

.resume-page {
  width: 100%;
  padding: 32px 16px 56px;
}

.resume-sheet {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  background: var(--ae-paper);
  border: 1px solid var(--ae-border-light);
  box-shadow: 0 12px 36px rgba(17, 17, 38, 0.07);
  padding: 46px 54px;
}

/* Header */
.resume-header {
  margin-bottom: 22px;
}

.header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.header-identity {
  min-width: 0;
  flex: 1 1 auto;
}

.candidate-name {
  margin: 0 0 4px;
  font-size: clamp(1.75rem, 3.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ae-navy-900);
}

.candidate-title {
  margin: 0 0 6px;
  font-size: clamp(0.95rem, 1.8vw, 1.06rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ae-blue-700);
}

.candidate-contact {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ae-ink-600);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.candidate-contact a {
  color: var(--ae-blue-600);
  text-decoration: none;
  font-weight: 600;
}

.candidate-contact a:hover {
  text-decoration: underline;
  color: var(--ae-orange-600);
}

.ae-pipe {
  color: var(--ae-orange-500);
  font-weight: 700;
  padding-inline: 4px;
}

.header-action {
  flex-shrink: 0;
}

.print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid var(--ae-blue-200);
  background: var(--ae-blue-600);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease;
}

.print-btn:hover {
  background: var(--ae-blue-700);
}

.print-btn:focus-visible {
  outline: 2px solid var(--ae-orange-500);
  outline-offset: 2px;
}

.print-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.header-rule {
  margin-top: 16px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--ae-blue-600) 0%, var(--ae-blue-600) 82%, var(--ae-orange-500) 82%, var(--ae-orange-500) 100%);
}

/* Sections */
.resume-section {
  margin-bottom: 22px;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.section-heading {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ae-blue-700);
  border-bottom: 1px solid var(--ae-border);
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 2.5px;
  background: var(--ae-orange-500);
}

.summary-text {
  margin: 0;
  color: var(--ae-ink-700);
  font-size: 0.96rem;
}

/* Core Competencies Table */
.competency-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ae-border-light);
}

.competency-table th,
.competency-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ae-border-light);
  font-size: 0.92rem;
  line-height: 1.48;
}

.competency-table th {
  width: 225px;
  background: var(--ae-tint);
  color: var(--ae-navy-900);
  font-weight: 700;
}

.competency-table td {
  color: var(--ae-ink-700);
}

/* Experience */
.org-block {
  margin-bottom: 22px;
}

.org-block:last-child {
  margin-bottom: 0;
}

.org-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.org-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ae-navy-900);
}

.org-dates {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ae-blue-600);
  white-space: nowrap;
}

.role-entry {
  margin-bottom: 18px;
}

.role-entry:last-child {
  margin-bottom: 0;
}

.role-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.role-title {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ae-blue-700);
}

.role-dates {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ae-ink-600);
  white-space: nowrap;
}

.roles-held {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ae-ink-600);
}

.role-summary {
  margin: 0 0 8px;
  font-size: 0.94rem;
  color: var(--ae-ink-700);
}

.resume-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.resume-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.93rem;
  color: var(--ae-ink-700);
  overflow-wrap: anywhere;
}

.resume-bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ae-orange-500);
}

/* Education */
.edu-list {
  display: grid;
  gap: 8px;
}

.edu-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--ae-ink-700);
}

.edu-detail strong {
  color: var(--ae-navy-900);
}

.edu-date {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ae-ink-600);
  white-space: nowrap;
}

/* ==========================================================================
   Responsive Breakpoints (Tablets, Phones, Foldables, Landscape)
   ========================================================================== */

@media (max-width: 767px) {
  .resume-page {
    padding: 14px 10px 32px;
  }

  .resume-sheet {
    padding: 26px 20px;
  }
}

@media (max-width: 639px) {
  .header-main {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .print-btn {
    min-height: 40px;
    align-self: flex-start;
  }

  .competency-table,
  .competency-table tbody,
  .competency-table tr,
  .competency-table th,
  .competency-table td {
    display: block;
    width: 100%;
  }

  .competency-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--ae-border-light);
  }

  .competency-table th,
  .competency-table td {
    padding: 0;
    border-bottom: none;
    background: transparent;
  }

  .competency-table th {
    margin-bottom: 3px;
    color: var(--ae-blue-700);
  }

  .org-row,
  .role-row,
  .edu-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

@media (max-width: 375px) {
  .resume-page {
    padding: 0 0 24px;
  }

  .resume-sheet {
    border-left: none;
    border-right: none;
    box-shadow: none;
    padding: 20px 14px;
  }

  .print-btn {
    width: 100%;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .resume-page {
    padding: 12px 16px 24px;
  }

  .resume-sheet {
    padding: 22px 28px;
  }
}

/* ==========================================================================
   Print Stylesheet (Clean 2-Page Executive PDF)
   ========================================================================== */

@media print {
  @page {
    margin: 0.48in 0.52in;
  }

  body {
    background: #FFFFFF !important;
    font-size: 9.6pt;
    line-height: 1.38;
  }

  .top-brand-bar,
  .header-action {
    display: none !important;
  }

  .resume-page {
    padding: 0 !important;
  }

  .resume-sheet {
    max-width: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .header-rule,
  .section-heading::after,
  .resume-bullets li::before,
  .competency-table th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .section-heading,
  .org-row,
  .role-row {
    break-after: avoid;
  }

  .role-entry,
  .edu-row {
    break-inside: avoid;
  }
}
