/* ---------------------------------------------------------------- */
/* Tokens                                                            */
/* ---------------------------------------------------------------- */

:root {
  --parchment: #f8f3e7;
  --parchment-deep: #efe6d0;
  --paper: #fffdf8;
  --navy: #1c2b45;
  --navy-soft: #33456b;
  --wine: #7b2635;
  --gold: #b08b4f;
  --gold-light: #d8c08e;
  --ink: #2b2420;
  --ink-soft: #6b6255;
  --line: #d9cfb4;
  --danger: #a33b3b;
  --danger-bg: #f7e9e9;
  --success-bg: #e8f0e4;
  --success-ink: #3d5c33;
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-card: 0 1px 2px rgba(43, 36, 32, 0.06), 0 10px 28px rgba(43, 36, 32, 0.07);
  --font-display: "Frank Ruhl Libre", Georgia, serif;
  --font-body: "Assistant", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------------------------------------------------------------- */
/* Reset & base                                                       */
/* ---------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ece5d4;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold-light);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------- */
/* Icons (CSS mask images — no inline SVG markup anywhere)           */
/* ---------------------------------------------------------------- */

.icon {
  display: inline-block;
  flex: 0 0 auto;
  background-color: var(--gold);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-menorah {
  --icon-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'><line x1='4' y1='22' x2='20' y2='22'/><line x1='12' y1='22' x2='12' y2='18'/><line x1='12' y1='18' x2='4' y2='5'/><line x1='12' y1='18' x2='7.5' y2='5'/><line x1='12' y1='18' x2='10' y2='5'/><line x1='12' y1='18' x2='12' y2='5'/><line x1='12' y1='18' x2='14' y2='5'/><line x1='12' y1='18' x2='16.5' y2='5'/><line x1='12' y1='18' x2='20' y2='5'/></g></svg>");
}

.icon-personal {
  --icon-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'><circle cx='12' cy='8' r='3.6'/><path d='M5,20 L8,13 L16,13 L19,20'/></g></svg>");
}

.icon-family {
  --icon-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'><path d='M4,11 L12,4 L20,11'/><rect x='6' y='11' width='12' height='9'/><rect x='10.5' y='15' width='3' height='5'/></g></svg>");
}

.icon-education {
  --icon-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'><polygon points='12,5 21,10 12,15 3,10'/><path d='M6.5,11.3 L6.5,16.5 L17.5,16.5 L17.5,11.3'/><line x1='21' y1='10' x2='21' y2='16.5'/></g></svg>");
}

.icon-employment {
  --icon-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'><rect x='3' y='8' width='18' height='12'/><path d='M8,8 L8,5 L16,5 L16,8'/><line x1='3' y1='13' x2='21' y2='13'/></g></svg>");
}

.icon-qualities {
  --icon-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M12,20 C7,16 3,12.5 3,8.5 C3,5.5 5.5,4 8,4 C10,4 11.3,5.2 12,6.5 C12.7,5.2 14,4 16,4 C18.5,4 21,5.5 21,8.5 C21,12.5 17,16 12,20 Z'/></svg>");
}

.icon-lookingfor {
  --icon-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='none' stroke='%23000' stroke-width='1.6'/><polygon points='12,6.5 14.2,12 12,17.5 9.8,12' fill='%23000'/></svg>");
}

.icon-references {
  --icon-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'><rect x='3' y='5' width='18' height='14'/><circle cx='8.5' cy='10.3' r='2.1'/><path d='M5.5,16 L7,12.4 L10,12.4 L11.5,16'/><line x1='14' y1='9.5' x2='18.5' y2='9.5'/><line x1='14' y1='13' x2='18.5' y2='13'/><line x1='14' y1='16' x2='16.5' y2='16'/></g></svg>");
}

.icon-photo {
  --icon-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'><rect x='3' y='7' width='18' height='13'/><path d='M8,7 L9.5,4.5 L14.5,4.5 L16,7'/><circle cx='12' cy='13.5' r='4'/></g></svg>");
}

.icon[class*="icon-"] {
  -webkit-mask-image: var(--icon-svg);
  mask-image: var(--icon-svg);
}

/* ---------------------------------------------------------------- */
/* Toolbar                                                           */
/* ---------------------------------------------------------------- */

.toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 28px;
  background: var(--navy);
  color: var(--parchment);
  border-bottom: 3px solid var(--gold);
}

.toolbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar__brand .icon {
  width: 26px;
  height: 26px;
  background-color: var(--gold-light);
}

.toolbar__title {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.02em;
}

.toolbar__subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 2px;
}

.toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- */
/* Buttons                                                           */
/* ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(248, 243, 231, 0.35);
}

.btn-ghost:hover {
  background: rgba(248, 243, 231, 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--parchment);
}

.btn-danger-text {
  background: transparent;
  color: var(--danger);
  border-color: transparent;
  padding: 10px 12px;
}

.btn-danger-text:hover {
  background: var(--danger-bg);
}

.btn-icon {
  padding: 8px 12px;
  font-size: 13px;
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}

.btn-icon:hover {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ---------------------------------------------------------------- */
/* Layout                                                            */
/* ---------------------------------------------------------------- */

.layout {
  display: flex;
  align-items: flex-start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  gap: 28px;
}

.side-nav {
  position: sticky;
  top: 92px;
  flex: 0 0 230px;
  background: var(--parchment-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.side-nav__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
  padding: 0 8px;
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  border-inline-start: 3px solid transparent;
}

.side-nav a:hover {
  background: rgba(176, 139, 79, 0.14);
}

.side-nav a.active {
  background: var(--paper);
  border-inline-start-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.builder {
  flex: 1;
  min-width: 0;
}

.intro-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--ink-soft);
}

.intro-note strong {
  color: var(--ink);
}

/* ---------------------------------------------------------------- */
/* Validation banner & toast                                         */
/* ---------------------------------------------------------------- */

.validation-banner {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
}

.validation-banner strong {
  display: block;
  margin-bottom: 4px;
}

.validation-banner ul {
  margin: 6px 0 0;
  padding-inline-start: 18px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--navy);
  color: var(--parchment);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow-card);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.toast--danger {
  background: var(--danger);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------------------------------------------------------------- */
/* Section cards & fields                                            */
/* ---------------------------------------------------------------- */

.section-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 30px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 90px;
}

.section-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-card__head .icon {
  width: 18px;
  height: 18px;
}

.section-card__title {
  font-size: 21px;
  color: var(--navy);
}

.section-card__hint {
  font-size: 13px;
  color: var(--ink-soft);
  margin: -10px 0 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.req-mark {
  color: var(--wine);
  margin-inline-start: 3px;
}

.pill-optional {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--parchment-deep);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
}

.field-help {
  font-size: 12px;
  color: var(--ink-soft);
}

.checkbox-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-top: 14px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 14px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--gold);
  cursor: pointer;
}

.dob-columns {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-top: 6px;
}

.hebrew-date-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hebrew-date-group select {
  flex: 1 1 120px;
  min-width: 100px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 139, 79, 0.18);
}

input::placeholder,
textarea::placeholder {
  color: #a89f8f;
}

/* ---------------------------------------------------------------- */
/* References                                                        */
/* ---------------------------------------------------------------- */

.reference-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.reference-row:last-of-type {
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------- */
/* Photo uploader                                                    */
/* ---------------------------------------------------------------- */

.photo-uploader {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.photo-frame {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 2px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--parchment-deep);
  flex: 0 0 auto;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  font-size: 11px;
  text-align: center;
  color: var(--ink-soft);
  padding: 0 10px;
}

.photo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-actions .field-help {
  max-width: 320px;
}

/* ---------------------------------------------------------------- */
/* Responsive builder                                                */
/* ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .side-nav {
    position: static;
    width: 100%;
    flex: none;
  }

  .side-nav ul {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
  }

  .side-nav a {
    border-inline-start: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .side-nav a.active {
    border-bottom-color: var(--gold);
  }
}

@media (max-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .dob-columns {
    grid-template-columns: 1fr;
  }

  .reference-row {
    grid-template-columns: 1fr;
  }

  .toolbar {
    padding: 14px 16px;
  }
}

/* ---------------------------------------------------------------- */
/* Resume view (screen)                                              */
/* ---------------------------------------------------------------- */

.resume-view {
  min-height: 100vh;
  background: #ece5d4;
  padding-bottom: 60px;
}

.resume-toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

.resume-scroll {
  padding: 44px 16px;
  display: flex;
  justify-content: center;
}

/* ---------------------------------------------------------------- */
/* Resume page                                                       */
/* ---------------------------------------------------------------- */

.rd-frame {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: var(--parchment);
  border: 1px solid var(--gold-light);
  box-shadow: 0 1px 1px rgba(43, 36, 32, 0.08), 0 24px 60px rgba(43, 36, 32, 0.18);
}

.rd-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--navy-soft);
  opacity: 0.35;
  pointer-events: none;
}

.rd-content {
  position: relative;
  padding: 78px 70px 60px;
}

.rd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rd-header__text {
  text-align: start;
}

.rd-name {
  font-size: 42px;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.rd-secondary-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--wine);
  margin-top: 6px;
}

.rd-dob {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.rd-meta {
  margin-top: 10px;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-weight: 600;
}

.rd-photo-wrap {
  flex: 0 0 auto;
}

.rd-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--paper);
  outline: 2px solid var(--gold);
}

.rd-contact {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.rd-divider {
  height: 1px;
  background: var(--gold-light);
  margin: 30px 0 22px;
}

.rd-section {
  break-inside: avoid;
}

.rd-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.rd-intro {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink);
}

.rd-note-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}

.tag-list--compact {
  margin-top: 4px;
  gap: 6px;
}

.tag-list--compact .tag {
  padding: 3px 10px;
  font-size: 11.5px;
}

.rd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.fact-card {
  break-inside: avoid;
}

.fact-card__title {
  font-size: 15px;
  color: var(--wine);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.fact-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fact-list--wide {
  gap: 12px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fact dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fact dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
}

.pi-block {
  margin-bottom: 16px;
}

.pi-block h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-soft);
  margin-bottom: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  background: rgba(176, 139, 79, 0.14);
  border: 1px solid var(--gold-light);
  border-radius: 20px;
}

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

.ld-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-soft);
  margin-bottom: 6px;
}

.ld-col p {
  font-size: 14px;
  line-height: 1.55;
}

.rd-section--lookingfor {
  background: rgba(123, 38, 53, 0.05);
  border-inline-start: 3px solid var(--wine);
  padding: 18px 22px;
  margin: 30px 0;
}

.rd-section--lookingfor .rd-divider {
  display: none;
}

.ref-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ref-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.ref-item__name {
  font-weight: 700;
  color: var(--ink);
}

.ref-item__rel {
  color: var(--ink-soft);
  font-style: italic;
}

.ref-item__phone {
  color: var(--ink-soft);
}

.rd-footer {
  text-align: center;
}

.rd-footer__text {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .rd-content {
    padding: 60px 26px 40px;
  }

  .rd-header {
    flex-direction: column-reverse;
    text-align: center;
    align-items: center;
  }

  .rd-header__text {
    text-align: center;
  }

  .rd-name {
    font-size: 32px;
  }

  .ld-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- */
/* Print                                                             */
/* ---------------------------------------------------------------- */

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

  body {
    background: #fff;
  }

  #app-root,
  .resume-toolbar,
  #toast {
    display: none !important;
  }

  .resume-view {
    min-height: 0;
    background: #fff;
    padding: 0;
  }

  .resume-scroll {
    padding: 0;
  }

  .rd-frame {
    max-width: none;
    box-shadow: none;
    border: 1px solid var(--gold-light);
  }

  .rd-section,
  .fact-card,
  .rd-header {
    break-inside: avoid;
  }
}

/* ---------------------------------------------------------------- */
/* RTL overrides                                                     */
/* ---------------------------------------------------------------- */
/* Flexbox and grid already mirror automatically under dir="rtl".    */
/* These are only the properties tied to a physical (not logical)    */
/* side, e.g. border-left / text-align: left.                       */

[dir="rtl"] .req-mark {
  margin-left: 0;
  margin-right: 3px;
}

[dir="rtl"] .intro-note {
  border-left: none;
  border-right: 4px solid var(--gold);
}

[dir="rtl"] .validation-banner ul {
  padding-left: 0;
  padding-right: 18px;
}

[dir="rtl"] .side-nav a {
  border-left: none;
  border-right: 3px solid transparent;
}

[dir="rtl"] .side-nav a.active {
  border-left-color: transparent;
  border-right-color: var(--gold);
}

[dir="rtl"] .rd-header__text {
  text-align: right;
}

[dir="rtl"] .rd-section--lookingfor {
  border-left: none;
  border-right: 3px solid var(--wine);
}

@media (max-width: 900px) {
  [dir="rtl"] .side-nav a {
    border-right: none;
    border-bottom: 3px solid transparent;
  }
}

@media (max-width: 640px) {
  [dir="rtl"] .rd-header__text {
    text-align: center;
  }
}
