/* ═══════════════════════════════════════════════
   Word Document (.docx) Two-Column Replica Layout
   ═══════════════════════════════════════════════ */

:root {
  --docx-bronze: #7F6146;
  --docx-sidebar-bg: #F2EFEA;
  --docx-sidebar-text: #747474;
}
html.dark {
  --docx-bronze: #7F6146;
  --docx-sidebar-bg: #16161b;
  --docx-sidebar-text: #d1d5db;
}

.docx-paper-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.docx-paper-wrapper::-webkit-scrollbar {
  height: 5px;
}
.docx-paper-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.docx-paper-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--gray-300);
  border-radius: 9999px;
}
html.dark .docx-paper-wrapper {
  scrollbar-color: #2e2e38 transparent;
}
html.dark .docx-paper-wrapper::-webkit-scrollbar-thumb {
  background-color: #2e2e38;
}

.docx-resume-container {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: auto;
  width: 100%;
  min-width: 680px; /* Guarantees pristine 2-column document layout across all screen sizes */
  max-width: 100%;
  margin: 0;
}
@media (min-width: 840px) {
  .docx-resume-container {
    grid-template-columns: 205px 1fr;
  }
}

html.dark .docx-resume-container {
  border-color: #2a2a32;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
  background: #0f0f13;
}

/* Left Sidebar Column */
.docx-sidebar {
  background: var(--docx-sidebar-bg);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-right: 1px solid #dfd9cf;
}
html.dark .docx-sidebar {
  border-right-color: #2a2a32;
}

.docx-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.15rem;
}
.docx-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 0%;
  border: none;
  box-shadow: none;
}

.docx-side-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.docx-side-title {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 10pt;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--docx-bronze);
  font-weight: 700;
}
.docx-side-title.small-title {
  font-size: 8.5pt;
}

.docx-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 8pt;
  color: var(--docx-sidebar-text);
}
.docx-contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
}
.docx-contact-item svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--docx-bronze);
}

.docx-edu-block,
.docx-project-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docx-edu-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 8.5pt;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}
.docx-edu-degree {
  font-weight: 700;
  color: #747474;
}
html.dark .docx-edu-degree {
  color: #e0e0e6;
}
.docx-edu-school {
  color: var(--docx-sidebar-text);
  font-size: 8pt;
}

.docx-proj-item {
  font-size: 8pt;
  line-height: 1.35;
  color: var(--docx-sidebar-text);
  overflow-wrap: break-word;
  word-break: break-word;
}
.docx-proj-title {
  font-weight: 700;
  color: #747474;
}
html.dark .docx-proj-title {
  color: #e0e0e6;
}

/* Right Main Column */
.docx-main {
  background: var(--bg);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
html.dark .docx-main {
  background: #0f0f13;
}

.docx-header {
  border-bottom: 2.5px solid var(--docx-sidebar-bg);
  padding-bottom: 0.65rem;
  margin-bottom: 0.2rem;
  margin-left: -1.35rem;
  margin-right: -1.35rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}
html.dark .docx-header {
  border-bottom-color: #2a2a32;
}

.docx-name {
  font-family: 'Baskerville Old Face', 'Baskerville', 'Georgia', 'Times New Roman', serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--docx-bronze);
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.docx-subtitle {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 8.5pt;
  font-weight: 700;
  color: #747474;
  margin-top: 0.2rem;
}
html.dark .docx-subtitle {
  color: #d1d5db;
}

.docx-portfolio-link {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 7.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--docx-bronze);
  margin-top: 0.15rem;
  display: block;
}

.docx-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.docx-sec-title {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 10pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--docx-bronze);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.1rem;
}
.docx-sec-title.underlined {
  text-decoration: underline;
  text-underline-offset: 2.5px;
  text-decoration-thickness: 1.2px;
  text-decoration-color: var(--docx-bronze);
}

.docx-body-text {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 8.5pt;
  line-height: 1.4;
  color: #747474;
}
html.dark .docx-body-text {
  color: #c0c0c8;
}

.docx-skill-line {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 8.5pt;
  line-height: 1.4;
  color: #747474;
  margin-bottom: 0.2rem;
}
html.dark .docx-skill-line {
  color: #c0c0c8;
}
.docx-skill-line strong {
  color: #747474;
  font-weight: 700;
}
html.dark .docx-skill-line strong {
  color: #e0e0e6;
}

.docx-work-item {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 8.5pt;
  color: #747474;
}
.docx-work-role {
  color: #747474;
  font-weight: 700;
  display: block;
}
html.dark .docx-work-role {
  color: #e0e0e6;
}
.docx-work-meta {
  font-style: italic;
  color: #747474;
  display: block;
  font-size: 7.5pt;
  margin-top: 0.05rem;
}
html.dark .docx-work-meta {
  color: #9ca3af;
}

.docx-org-item {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 8.5pt;
  line-height: 1.35;
  color: #747474;
}
.docx-org-item strong {
  font-weight: 700;
  color: #747474;
}
html.dark .docx-org-item strong {
  color: #e0e0e6;
}
.docx-org-item span {
  font-style: italic;
  color: #747474;
  font-size: 7.5pt;
}
html.dark .docx-org-item span {
  color: #9ca3af;
}
.docx-org-item p {
  margin-top: 0.1rem;
  color: #747474;
}
html.dark .docx-org-item p {
  color: #c0c0c8;
}

.docx-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin-top: 0.12rem;
}
.docx-bullet-list li {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 8.5pt;
  color: #747474;
  line-height: 1.35;
  position: relative;
  padding-left: 0.8rem;
}
html.dark .docx-bullet-list li {
  color: #c0c0c8;
}
.docx-bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--docx-bronze);
  font-weight: 700;
}

.docx-refs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 8.5pt;
  color: #747474;
}
html.dark .docx-refs-grid {
  color: #c0c0c8;
}
.docx-ref-card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.docx-ref-card strong {
  color: #747474;
  font-weight: 700;
  display: block;
}
html.dark .docx-ref-card strong {
  color: #e0e0e6;
}
.docx-ref-card span {
  display: block;
  color: #747474;
}
html.dark .docx-ref-card span {
  color: #c0c0c8;
}

/* ═══════════════════════════════════════════════
   Resume Subpage & Document Styling
   ═══════════════════════════════════════════════ */

.resume-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.resume-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}

html.dark .resume-actions-group {
  background: #141418;
  border-color: #27272e;
}

.resume-btn-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 150ms ease;
  line-height: 1.2;
}

.resume-btn-compact:hover {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--gray-200);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

html.dark .resume-btn-compact {
  color: #a0a0ab;
}

html.dark .resume-btn-compact:hover {
  color: #ffffff;
  background: #1e1e24;
  border-color: #383842;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.resume-btn-compact--primary {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--gray-200);
}

.resume-btn-compact--ojt {
  color: var(--ink);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   Print Stylesheet (for clean PDF Export)
   ═══════════════════════════════════════════════ */

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 10pt !important;
  }

  /* Hide interactive site chrome */
  .sidebar,
  .topbar,
  .mobile-menu,
  .halftone-bg,
  .subpage-header,
  .resume-header-flex,
  #askOverlay,
  .btn-cuelume-wrap {
    display: none !important;
  }

  /* Reset layout containers */
  .main,
  .container-centered {
    max-width: 100% !important;
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Fix the reveal animation bug so content is not invisible/blank */
  .reveal,
  .reveal.d1,
  .reveal.d2,
  .reveal.d3 {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  /* Paper Card Styling */
  .docx-resume-container {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    display: grid !important;
    grid-template-columns: 68mm 142mm !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .docx-sidebar {
    background: #F2EFEA !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    box-sizing: border-box !important;
    border-right: none !important;
    padding: 8.5mm 8mm 12mm 9.5mm !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5.5mm !important;
  }

  .docx-avatar-wrap {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
  }

  .docx-avatar {
    width: 45.7mm !important;
    height: 45.7mm !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: none !important;
    box-shadow: none !important;
  }

  .docx-side-section {
    gap: 0.45rem !important;
  }

  .docx-side-title {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
    color: #7F6146 !important;
    font-size: 13pt !important;
    font-weight: 700 !important;
  }

  .docx-side-section:last-child .docx-side-title,
  .docx-side-title.small-title {
    font-size: 11pt !important;
    letter-spacing: 0 !important;
  }

  .docx-contact-list {
    color: #747474 !important;
    font-size: 8.5pt !important;
    gap: 0.45rem !important;
  }

  .docx-contact-item {
    align-items: center !important;
    line-height: 1.3 !important;
  }

  .docx-contact-item svg {
    width: 12px !important;
    height: 12px !important;
    color: #7F6146 !important;
  }

  .docx-edu-block,
  .docx-project-block {
    gap: 0.6rem !important;
  }

  .docx-edu-degree,
  .docx-proj-title {
    color: #747474 !important;
    font-size: 11pt !important;
  }

  .docx-edu-school {
    color: #747474 !important;
    font-size: 11pt !important;
  }

  .docx-proj-item {
    font-size: 11pt !important;
    color: #747474 !important;
    line-height: 1.35 !important;
  }

  .docx-main {
    background: #ffffff !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    box-sizing: border-box !important;
    padding: 12mm 11mm 10mm 10mm !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3mm !important;
  }

  .docx-header {
    border-bottom: 3.5px solid #F2EFEA !important;
    padding-bottom: 16mm !important;
    margin-bottom: 2mm !important;
    margin-left: -10mm !important;
    margin-right: -11mm !important;
    padding-left: 10mm !important;
    padding-right: 11mm !important;
  }

  .docx-name {
    font-family: 'Baskerville Old Face', 'Baskerville', 'Georgia', 'Times New Roman', serif !important;
    color: #7F6146 !important;
    font-size: 24pt !important;
    letter-spacing: 0 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .docx-subtitle {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
    color: #747474 !important;
    font-size: 10pt !important;
    font-weight: 700 !important;
    margin-top: 1.2mm !important;
  }

  .docx-portfolio-link {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
    font-weight: 700 !important;
    color: #7F6146 !important;
    font-size: 8.5pt !important;
    margin-top: 1.2mm !important;
    display: block !important;
  }

  .docx-section {
    margin-bottom: 0 !important;
  }

  .docx-sec-title {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
    color: #7F6146 !important;
    font-size: 14pt !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0.15rem !important;
  }

  .docx-sec-title.underlined {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1.5px !important;
    text-decoration-color: #7F6146 !important;
  }

  .docx-body-text,
  .docx-skill-line {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
    color: #747474 !important;
    font-size: 9pt !important;
    line-height: 1.4 !important;
  }

  .docx-skill-line strong,
  .docx-ref-card strong,
  .docx-main strong {
    color: #747474 !important;
    font-weight: 700 !important;
  }

  .docx-bullet-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.1rem !important;
    padding-left: 1.15rem !important;
    margin-top: 0.1rem !important;
    font-size: 10pt !important;
    line-height: 1.35 !important;
  }

  .docx-bullet-list li {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
    font-size: 10pt !important;
    color: #747474 !important;
  }

  .docx-bullet-list li::before {
    color: #7F6146 !important;
  }

  .docx-main p,
  .docx-main ul li {
    color: #747474 !important;
  }

  .docx-refs-grid {
    gap: 0.85rem !important;
    margin-top: 0.15rem !important;
    font-size: 11pt !important;
    line-height: 1.35 !important;
  }
  .docx-ref-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.08rem !important;
  }
  .docx-ref-card strong {
    display: block !important;
    color: #747474 !important;
    font-weight: 700 !important;
  }
  .docx-ref-card span {
    display: block !important;
    color: #747474 !important;
  }

  .docx-work-item {
    font-size: 10pt !important;
    color: #747474 !important;
  }
  .docx-work-role {
    font-size: 10pt !important;
    font-weight: 700 !important;
    color: #747474 !important;
  }
  .docx-work-meta {
    font-size: 10pt !important;
    font-style: italic !important;
    color: #747474 !important;
  }

  .docx-org-item {
    font-size: 10pt !important;
    line-height: 1.38 !important;
    color: #747474 !important;
  }
  .docx-org-item p {
    font-size: 10pt !important;
    color: #747474 !important;
  }
}


