/* Shared styles for the three single column ATS resumes. */

:root {
  --accent: #4a6995;
  --text: #222;
  --muted: #6c757d;
  --border: #e0e4ea;
  --header-dark: #121722;
  --font-sans: "Segoe UI", Calibri, Arial, Helvetica, sans-serif;
}

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

body {
  margin: 0;
  background-color: #f8f9fa;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}

a { color: var(--accent); }
a:hover { color: #3a5580; }

p { margin: 0 0 0.65rem; orphans: 2; widows: 2; }
ul { margin: 0 0 0.8rem; padding-left: 1.15rem; }

.resume-wrapper {
  max-width: 8.5in;
  margin: 2rem auto;
  background: #fff;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.resume-header {
  background: linear-gradient(90deg, var(--header-dark) 70%, var(--accent) 100%);
  color: #fff;
  padding: 2rem 2rem 1.35rem;
}

.resume-header h1 {
  margin: 0 0 0.2rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.resume-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.resume-header .contact {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.resume-header .contact span {
  display: inline-block;
  margin-right: 1.1rem;
  margin-bottom: 0.2rem;
}

.resume-header a { color: #fff; text-decoration: underline; }

.resume-content { padding: 1.5rem 2rem 2rem; }

.section-title {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 0.45rem;
  letter-spacing: 0.03em;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 0.15rem;
  break-after: avoid;
  page-break-after: avoid;
}

.resume-content > .section-title:first-child { margin-top: 0; }

.skills-list {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  padding-left: 1.1rem;
}

.skills-list li { margin-bottom: 0.22rem; }
.resume-content li { margin-bottom: 0.28rem; }

.job-block { margin-bottom: 0.7rem; }
.job-block li, .job-block p {
  break-inside: avoid;
  page-break-inside: avoid;
}

.job-title, .job-meta, .job-scope {
  break-after: avoid;
  page-break-after: avoid;
}

.job-title { font-weight: 600; font-size: 1rem; margin: 0; }
.job-meta { color: var(--muted); font-size: 0.91rem; margin: 0.12rem 0 0.18rem; }
.job-scope { color: #495057; font-size: 0.89rem; font-style: italic; margin: 0 0 0.32rem; }

.print-actions {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.print-btn {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.print-btn:hover { background: #3a5580; }

.print-menu {
  margin-top: 0.5rem;
  min-width: 17rem;
  max-width: 20rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.print-menu[hidden] { display: none; }
.print-menu-title {
  margin: 0.25rem 0.5rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.print-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

.print-menu-item:hover { background: #f4f6fa; }
.print-menu-item strong { display: block; font-weight: 600; margin-bottom: 0.15rem; }
.print-menu-item span { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; }

@media (max-width: 900px) {
  .resume-wrapper { margin: 1rem; border-radius: 10px; }
  .resume-header { padding: 1.5rem 1.25rem 1.25rem; }
  .resume-header h1 { font-size: 1.7rem; }
  .resume-header h2 { font-size: 1.05rem; }
  .resume-content { padding: 1.25rem 1.25rem 1.5rem; }
  .print-actions {
    position: static;
    align-items: stretch;
    width: 100%;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }
  .print-btn { width: 100%; }
  .print-menu { min-width: 100%; max-width: none; }
}

@media print {
  @page { size: letter; margin: 0.45in 0.48in; }

  .print-actions, .print-menu { display: none !important; }

  body {
    background: #fff !important;
    margin: 0;
    font-family: var(--font-sans);
    font-size: 9.7pt;
    line-height: 1.1;
    color: #000;
  }

  .resume-wrapper {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  .resume-header {
    background: #fff !important;
    color: #000 !important;
    padding: 0 0 7pt !important;
    border-bottom: 1.5pt solid var(--header-dark);
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy;
  }

  .resume-header h1 { font-size: 19pt; color: var(--header-dark); }
  .resume-header h2 { font-size: 10.8pt; color: var(--accent); opacity: 1; }
  .resume-header .contact { font-size: 8.7pt; margin-top: 4pt; line-height: 1.35; }
  .resume-header .contact span { margin-right: 0.75rem; margin-bottom: 0; }
  .resume-header a { color: #1a4a7a !important; text-decoration: underline !important; }

  .resume-content { padding: 5pt 0 0 !important; }
  .section-title {
    font-size: 10.2pt;
    margin-top: 7pt;
    margin-bottom: 2.5pt;
    color: var(--header-dark);
    border-bottom-color: #ccc;
    break-after: avoid;
  }

  .job-title { font-size: 9.8pt; }
  .job-meta { font-size: 8.8pt; margin-top: 0.5pt; margin-bottom: 1pt; }
  .job-scope { font-size: 8.5pt; margin-bottom: 2pt; }
  .skills-list, .resume-content li { font-size: 9.2pt; }
  .skills-list { margin-bottom: 3pt; }
  .skills-list li, .resume-content li { margin-bottom: 1.8pt; }
  .job-block { margin-bottom: 4pt; }
  p { margin-bottom: 3pt; }
  ul { margin-bottom: 4pt; padding-left: 13pt; }

  a { color: #1a4a7a; text-decoration: underline; }
  a[href^="http"]:after, a[href^="mailto"]:after { content: none; }
}
