@page {
  size: letter;
  margin: 0.2in;
}

:root {
  --navy: #18344f;
  --navy-2: #274866;
  --blue: #3b607c;
  --gold: #a88942;
  --gold-light: #ddd0a3;
  --ink: #1f2328;
  --muted: #66727d;
  --line: #d9dee3;
  --white: #ffffff;
  --soft-blue: #f1f5f8;
  --soft-gold: #f7f4ea;
  --soft-gray: #f6f7f9;
  --deploy: #d9534f;
  --school: #f0c54a;
  --position: #58a55c;
  --train: #4f86d9;
  --joint: #8a63c7;
  --board: #8b8f97;
}

* {
  box-sizing: border-box;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  background: #dfe4e9;
  font-family: "Aptos", "Calibri", Arial, sans-serif;
  font-size: 8.3pt;
  line-height: 1.22;
}

/* NAVIGATION */
.site-nav {
  background: var(--navy);
  padding: 8px 16px;
  border-bottom: 2px solid var(--gold);
}

.site-nav-inner {
  max-width: 8.1in;
  margin: 0 auto;
  display: flex;
  align-items: center;
  width: 100%;
}
.nav-tab {
  color: #c0d1e0;
  text-decoration: none;
  font-weight: 700;
  font-size: 7.5pt;
  padding: 4px 8px;
  border-radius: 3px;
}
.nav-tab.active, .nav-tab:hover {
  background: var(--navy-2);
  color: var(--white);
}

/* PAGE SHELL */
.print-page {
  width: 100%;
  max-width: 8.1in;
  margin: 0 auto;
  background: var(--white);
  box-shadow: none;
  overflow: hidden;
  display: block;
}

.page-divider {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  break-before: page;
  page-break-before: always;
}

/* HERO HEADER */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 1.05in;
  padding: 0.18in 0.24in 0.14in;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(24, 52, 79, 0.98), rgba(39, 72, 102, 0.96)),
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 18px,
      rgba(255, 255, 255, 0.035) 19px,
      transparent 20px
    );
}

.hero::after {
  content: "";
  position: absolute;
  right: -0.7in;
  bottom: -1in;
  width: 2.2in;
  height: 2.2in;
  border: 1px solid rgba(221, 208, 163, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 0.14in rgba(221, 208, 163, 0.03),
    0 0 0 0.28in rgba(221, 208, 163, 0.02);
  opacity: 0.28;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.42fr;
  gap: 0.18in;
  align-items: start;
}

.eyebrow {
  margin-bottom: 0.03in;
  color: #d7e2eb;
  font-size: 7.2pt;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 21pt;
  line-height: 1;
}

.hero h2 {
  margin: 4px 0 0;
  color: #dce8f1;
  font-size: 9.2pt;
  font-weight: 400;
}

.hero-summary {
  max-width: 100%;
  margin-top: 0.08in;
  color: #dbe5ed;
  font-size: 7.9pt;
  line-height: 1.22;
}

.hero-photo {
  justify-self: end;
  width: 1.25in;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.hero-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* METADATA BAR */
.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0.05in 0.24in;
  background: var(--navy-2);
  color: #e8f0f5;
  font-size: 6.8pt;
}

.metadata span {
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.metadata span:first-child {
  padding-left: 0;
}

.metadata span:last-child {
  border-right: 0;
}

.metadata b {
  color: #f1f5f8;
}

/* PAGE 1 CONTENT LAYOUT */
.content {
  display: grid;
  grid-template-columns: 48% 52%;
}

.column {
  padding: 0.12in 0.14in 0.03in;
}

.column.left {
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.section {
  margin-bottom: 0.05in;
  break-inside: avoid;
  page-break-inside: avoid;
}

.full-width-section {
  padding: 0 0.14in 0.02in;
  margin-top: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 8.9pt;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.section-heading::before {
  content: "";
  width: 4px;
  height: 13px;
  background: var(--navy-2);
  border-radius: 2px;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

p {
  margin: 0 0 4px;
  font-size: 7.7pt;
  line-height: 1.2;
}

.summary {
  font-size: 7.8pt;
  line-height: 1.22;
}

.capability-highlight {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.capability-highlight .section-heading::before {
  background: var(--gold);
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 5px;
}

.capability-card {
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-2);
  border-radius: 3px;
  background: var(--white);
  break-inside: avoid;
  page-break-inside: avoid;
}

.capability-highlight .capability-card {
  border-left: 2px solid var(--gold);
  background: var(--white);
}

.capability-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 7pt;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.capability-card span {
  color: #3d4c58;
  font-size: 6.8pt;
  line-height: 1.16;
}

.fact-list,
.skill-list,
.goal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li,
.skill-list li,
.goal-list li {
  position: relative;
  margin: 0 0 3px;
  padding-left: 10px;
  font-size: 7.3pt;
  line-height: 1.18;
}

.fact-list li::before,
.skill-list li::before,
.goal-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--navy-2);
  font-size: 6pt;
}

.subheading {
  margin: 6px 0 3px;
  color: var(--blue);
  font-size: 7.2pt;
  font-weight: 800;
  text-transform: uppercase;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.tag {
  padding: 2px 5px;
  border: 1px solid #cdd6de;
  border-radius: 3px;
  background: var(--soft-blue);
  color: var(--navy-2);
  font-size: 6.5pt;
  font-weight: 700;
}

.impact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.impact-list li {
  position: relative;
  margin: 0 0 4px;
  padding-left: 10px;
  font-size: 7.3pt;
  line-height: 1.18;
}

.impact-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--navy-2);
  font-size: 5pt;
  top: 1px;
}

.references {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 5.9pt;
}

.references th {
  padding: 3px 3px;
  background: var(--navy);
  color: var(--white);
  text-align: left;
  font-size: 5.7pt;
  text-transform: uppercase;
  white-space: nowrap;
}

.references td {
  padding: 2px 3px;
  border: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.08;
  font-size: 5.9pt;
}

.references tr:nth-child(even) {
  background: #f7f9fa;
}

.references th:nth-child(1),
.references td:nth-child(1) {
  width: 24%;
  white-space: nowrap;
}

.references th:nth-child(2),
.references td:nth-child(2) {
  width: 20%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.references th:nth-child(3),
.references td:nth-child(3) {
  width: 40%;
  white-space: nowrap;
}

.references th:nth-child(4),
.references td:nth-child(4) {
  width: 16%;
  white-space: nowrap;
}

/* PAGE 2 / TIMELINE STYLES */
.page2-body {
  padding: 0.06in 0.2in 0.04in;
}

.board-shell {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  display: block;
  break-inside: avoid;
}

.board-top {
  padding: 8px 10px;
  background: #f6f9fb;
  border-bottom: 1px solid var(--line);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.snapshot-card {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-2);
  border-radius: 4px;
  background: var(--white);
  min-height: 52px;
}

.snapshot-card .label {
  color: var(--muted);
  font-size: 6.3pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.snapshot-card .value {
  margin-top: 3px;
  color: var(--navy);
  font-size: 8pt;
  font-weight: 800;
  line-height: 1.12;
}

.timeline-block {
  padding: 8px 10px 6px;
  background: white;
}

.timeline-title {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 8.8pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.timeline-graphic {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.timeline-year-header {
  display: grid;
  grid-template-columns: 115px repeat(96, minmax(0, 1fr));
  background: var(--navy);
  color: white;
}

.timeline-left-head {
  padding: 7px 8px;
  font-size: 7pt;
  font-weight: 800;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-year-span {
  grid-column: span 12;
  padding: 7px 0;
  text-align: center;
  font-size: 7pt;
  font-weight: 800;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline-subyear-header {
  display: grid;
  grid-template-columns: 115px repeat(96, minmax(0, 1fr));
  background: #eef3f7;
  border-bottom: 1px solid var(--line);
}

.timeline-left-subhead {
  padding: 4px 8px;
  font-size: 6pt;
  font-weight: 700;
  color: var(--navy);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.month-span {
  padding: 4px 0;
  text-align: center;
  font-size: 5.2pt;
  line-height: 1.05;
  color: #536270;
  border-right: 1px solid #dce4eb;
}

.month-span.year-end {
  border-right: 1px solid #cfd9e2;
}

.timeline-row {
  display: grid;
  grid-template-columns: 115px 1fr;
  min-height: 42px;
  border-bottom: 1px solid #e6ebf0;
  break-inside: avoid;
}

.timeline-label {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 7pt;
  font-weight: 800;
  color: var(--navy);
  background: #fbfcfd;
  border-right: 1px solid var(--line);
}

.detailed-lane {
  position: relative;
  min-height: 42px;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / 96 - 1px),
    #e4eaf0 calc(100% / 96 - 1px),
    #e4eaf0 calc(100% / 96)
  );
}

.timeline-bar {
  position: absolute;
  top: 8px;
  height: 26px;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 5.8pt;
  font-weight: 800;
  line-height: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.timeline-bar.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  justify-content: center;
  align-items: center;
  padding: 2px 1px;
  font-size: 5pt;
  letter-spacing: 0.2px;
}

.timeline-bar.deploy { background: var(--deploy); color: white; }
.timeline-bar.school { background: var(--school); color: #3d3200; }
.timeline-bar.position { background: var(--position); color: white; }
.timeline-bar.train { background: var(--train); color: white; }
.timeline-bar.joint { background: var(--joint); color: white; }
.timeline-bar.board { background: var(--board); color: white; }

.timeline-bar.location {
  background: white;
  color: #3f4d58;
  border: 1px solid #ccd5dc;
  height: 20px;
  top: 11px;
  border-radius: 4px;
}

.timeline-bar.projected {
  border: 2px dashed rgba(0, 0, 0, 0.35);
  opacity: 0.96;
}

.lab-position { border-left: 4px solid var(--position); }
.lab-school { border-left: 4px solid var(--school); }
.lab-train { border-left: 4px solid var(--train); }
.lab-residence { border-left: 4px solid #cccccc; }
.lab-joint { border-left: 4px solid var(--joint); }

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: #fafcfd;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 6.5pt;
  color: #465562;
  font-weight: 700;
}

.legend-swatch {
  width: 14px;
  height: 10px;
  border-radius: 2px;
}

.board-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  background: #fafcfd;
  break-inside: avoid;
}

.mini-panel {
  min-height: 120px;
  border-right: 1px solid var(--line);
}

.mini-panel:last-child {
  border-right: 0;
}

.mini-panel-title {
  padding: 7px 9px;
  background: var(--navy);
  color: white;
  font-size: 7.2pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.mini-panel-body {
  padding: 8px 9px;
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0.05in 0.24in;
  border-top: 2px solid var(--navy-2);
  background: var(--navy);
  color: #d8e3eb;
  font-size: 6pt;
  margin-top: 0;
}

.footer strong {
  color: #e6edf3;
}

/* MEDIA QUERIES & PRINT MEDIA */
@media screen and (max-width: 800px) {
  .print-page {
    width: 100%;
    margin: 0;
  }
  .content,
  .capability-grid,
  .snapshot-grid,
  .board-bottom,
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .column.left {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    width: auto !important;
    height: auto !important;
  }
  body {
    background: #fff !important;
  }
  .print-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
    overflow: visible !important;
    display: block !important;
  }
  .page-divider {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    break-before: page !important;
    page-break-before: always !important;
  }
  .footer {
    margin-top: 0 !important;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}

/* CATEGORY BADGE TAGS */
.badge-tag {
  font-size: 5.5pt;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: auto;
  white-space: nowrap;
}

/* Green - Military */
.badge-military {
  background: #eaf4eb;
  color: #2e6631;
  border: 1px solid #a8d5ab;
}

/* Purple - Corporate */
.badge-corporate {
  background: #f3effa;
  color: #59359a;
  border: 1px solid #cbb8ec;
}

/* Orange - Personal */
.badge-personal {
  background: #fdf3e7;
  color: #ba5d08;
  border: 1px solid #f6cc9a;
}

/* Image Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  margin: 8px 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.carousel-slide {
  width: 100%;
  max-height: 2.5in;
  object-fit: cover;
  display: block;
}

/* Slider Arrow Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(24, 52, 79, 0.75);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 12pt;
  font-weight: bold;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 3px;
  user-select: none;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: var(--navy);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* Slide Number Counter Tag */
.carousel-counter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  font-size: 6pt;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Project Card Wrapper */
.project-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px; /* Increased separation between projects */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle Hover Effect to accentuate Separation */
.project-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Project Heading Styling */
.project-card .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13pt;
  font-weight: 700;
  color: var(--navy, #18344f);
  border-bottom: 2px solid var(--line, #e2e8f0);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* Description Spacing */
.project-card p {
  margin-top: 0;
  margin-bottom: 12px;
  color: #334155;
  line-height: 1.5;
}

.site-nav-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.site-nav-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.site-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 240px;
}

.unit-badge {
  display: inline-block;
  font-size: 9pt;
  font-weight: 700;
  color: #ffffff;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  text-align: right;
}

.logout-btn {
  margin-left: 8px;
  padding: 6px 10px;
  font-size: 8pt;
  font-weight: 700;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.logout-btn:hover {
  background: rgba(255,255,255,0.12);
}

.logout-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.welcome-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.welcome-modal-content {
  position: relative;
  z-index: 10000;
  max-width: 520px;
  margin: 12vh auto 0;
  background: #ffffff;
  color: #1f2328;
  border-radius: 10px;
  border: 1px solid #d9dee3;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  padding: 22px 22px 18px;
}

.welcome-title {
  margin: 0 0 10px 0;
  color: var(--navy);
  font-size: 14pt;
  font-weight: 800;
}

.welcome-message-text {
  margin: 0;
  font-size: 9pt;
  line-height: 1.45;
  color: #334155;
}

.welcome-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.welcome-close:hover {
  color: #0f172a;
}

