:root {
  --bg: #fffdf5;
  --surface: #ffffff;
  --ink: #2b2d42;
  --muted: #6b6f80;
  --line: #f1e7c6;
  --sun: #ffd43b;
  --sun-soft: #fff4c2;
  --coral: #ff6b6b;
  --coral-dark: #f04c4c;
  --coral-soft: #ffe3e3;
  --teal: #12b886;
  --teal-soft: #d3f9e8;
  --blue: #4dabf7;
  --blue-soft: #dbeefe;
  --pink: #f783ac;
  --radius: 18px;
  --display: "Playfair Display", "Frank Ruhl Libre", Georgia, serif;
  --sans: "Inter", "Heebo", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 253, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 1.35rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.logo-mark { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 3px var(--sun-soft); }
.logo span.hl { color: var(--coral); }

.logo { margin-inline-end: auto; }
.logo .brand { direction: ltr; unicode-bidi: isolate; }

/* Header menu */
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px; z-index: 20;
  background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 12px 28px rgba(43, 45, 66, 0.12);
}
.menu-panel a {
  display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.menu-panel a:hover { background: var(--sun-soft); }
.send-menu summary { display: inline-flex; align-items: center; gap: 4px; }
.send-icon { flex: none; }
.send-menu .menu-panel { min-width: 200px; }
/* Off-screen copy of the resume used to make the PDF */
.pdf-render { position: fixed; left: -10000px; top: 0; width: 7.8in; background: #fff; }
.pdf-render .resume { border: 0; box-shadow: none; border-radius: 0; }
@media (max-width: 480px) {
  .hide-xs { display: none !important; }
  .site-header .container { gap: 6px; }
  .logo { font-size: 1rem; gap: 6px; }
  .logo-mark { width: 30px; height: 30px; }
  .site-header .btn-sm { padding: 7px 10px; font-size: 0.8rem; }
}

/* About page */
.about { max-width: 720px; margin: 0 auto; padding: 72px 16px 88px; text-align: center; }
.about h1 { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; margin: 0 0 28px; }
.about .lede { font-family: var(--display); font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.35; margin: 0 0 24px; }
.about p { font-size: 1.15rem; margin: 0 0 20px; }
.about .closing { font-family: var(--display); font-style: italic; font-size: 1.4rem; color: var(--coral-dark); margin: 32px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 0.98rem var(--sans); cursor: pointer; text-decoration: none;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 4px 0 var(--coral-dark); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 8px; font-weight: 700; }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; box-shadow: none; }

/* Landing */
.hero {
  position: relative; overflow: hidden;
  background: var(--sun); padding: 88px 0 96px; text-align: center;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0;
}
.hero::before { width: 260px; height: 260px; background: var(--pink); opacity: 0.35; top: -80px; left: -60px; }
.hero::after { width: 320px; height: 320px; background: #fff; opacity: 0.4; bottom: -140px; right: -80px; }
.hero .container { position: relative; z-index: 1; }
.badge {
  display: inline-block; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em;
  background: #fff; color: var(--ink); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--display); font-weight: 700; line-height: 1.08;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem); margin: 0 auto 20px; max-width: 820px;
}
.hero h1 em { font-style: italic; color: var(--coral-dark); }
.hero p { font-size: 1.18rem; max-width: 620px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section { padding: 80px 0; }
.section h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.7rem);
  text-align: center; margin: 0 0 12px; line-height: 1.15;
}
.section .lead { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 48px; font-size: 1.08rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.card .num {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 16px;
}
.card:nth-child(1) .num { background: var(--coral-soft); }
.card:nth-child(2) .num { background: var(--teal-soft); }
.card:nth-child(3) .num { background: var(--blue-soft); }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }

.demo { background: var(--sun-soft); }
.demo-card {
  max-width: 640px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 32px;
  box-shadow: 0 12px 0 var(--sun), 0 20px 40px rgba(43, 45, 66, 0.08);
}
.demo-card .q { font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin: 0 0 18px; text-align: center; }
.demo-arrow { text-align: center; font-size: 1.6rem; margin: 18px 0 10px; }
.demo-out {
  background: var(--bg); border: 2px dashed var(--line); border-radius: 14px; padding: 16px 18px; font-style: italic;
}

.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 2px solid var(--line); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { color: var(--muted); margin: 10px 0 0; }


.site-footer { padding: 32px 0; text-align: center; color: var(--muted); font-size: 0.88rem; }

/* Shared option chips (quiz + landing demo) */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.options.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: start;
  background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px;
  font: 700 1rem var(--sans); color: var(--ink); cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}
.opt:hover { transform: translateY(-2px); border-color: var(--sun); }
.opt .e { font-size: 1.5rem; line-height: 1; }
.chips .opt { border-radius: 999px; padding: 9px 16px; font-size: 0.95rem; }
.opt.on { background: var(--coral-soft); border-color: var(--coral); }
.chips .opt.on::before { content: "✓"; color: var(--coral-dark); font-weight: 900; }

/* Quiz */
.quiz-wrap { max-width: 760px; margin: 0 auto; padding: 40px 0 64px; }
.progress { height: 10px; background: var(--sun-soft); border-radius: 999px; overflow: hidden; margin-bottom: 32px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--sun), var(--coral)); border-radius: 999px; transition: width 0.3s; }
.quiz-card { background: #fff; border: 2px solid var(--line); border-radius: 28px; padding: 36px 32px; text-align: center; }
.quiz-emoji {
  width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: var(--sun);
  display: grid; place-items: center; font-size: 2.2rem; box-shadow: 0 0 0 8px var(--sun-soft);
}
.quiz-count { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-dark); }
.quiz-card h2 { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 6px 0 6px; }
.quiz-hint { color: var(--muted); margin: 0 0 24px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.quiz-intro p { max-width: 520px; margin: 0 auto 24px; color: var(--muted); font-size: 1.08rem; }
.summary-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 24px; }
.summary-chips span { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; }
.summary-chips span:nth-child(4n+1) { background: var(--coral-soft); }
.summary-chips span:nth-child(4n+2) { background: var(--teal-soft); }
.summary-chips span:nth-child(4n+3) { background: var(--blue-soft); }
.summary-chips span:nth-child(4n+4) { background: var(--sun-soft); }

/* Builder */
.builder-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.builder-bar select {
  font: 700 0.86rem var(--sans); padding: 8px 12px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
}
.builder {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px;
  padding-top: 28px; padding-bottom: 48px; align-items: start;
}
/* Step tabs: one row under the header, scrolls sideways on small screens */
.tabbar-wrap { position: sticky; top: 64px; z-index: 8; background: var(--bg); padding-top: 12px; }
.tabbar { display: flex; align-items: flex-end; gap: 10px; border-bottom: 2px solid var(--line); }
.steps { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step-pill {
  flex: none; white-space: nowrap; font: 700 0.86rem var(--sans); padding: 10px 14px; cursor: pointer;
  border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: 10px 10px 0 0;
  background: transparent; color: var(--muted);
}
.step-pill:hover { color: var(--ink); background: var(--sun-soft); }
.step-pill.done { color: var(--ink); }
.step-pill.done::before { content: "✓ "; color: var(--teal); }
.step-pill.active { background: #fff; color: var(--ink); border-bottom-color: var(--coral); }
.wide-toggle {
  flex: none; margin-bottom: 6px; font: 700 0.8rem var(--sans); color: var(--ink); cursor: pointer;
  border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px;
}
.wide-toggle:hover { border-color: var(--ink); }
.builder.wide { grid-template-columns: minmax(0, 1fr); }
.builder.wide .preview-wrap { position: static; max-width: 820px; width: 100%; margin: 0 auto; }

/* Movable blocks inside each step */
.drag-hint { font-size: 0.85rem; color: var(--muted); margin: -12px 0 16px; }
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.block {
  grid-column: 1 / -1; position: relative; min-width: 0;
  background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: 14px 14px 2px;
  padding-inline-start: 46px;
}
.block.half { grid-column: auto; }
.block .field { margin-bottom: 12px; }
.block-tools { position: absolute; inset-inline-start: 6px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.block-tools button {
  width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.block-handle { cursor: grab; touch-action: none; }
.block-tools button:hover, .block-tools button:focus-visible { background: var(--sun-soft); color: var(--ink); outline: none; }
.block.dragging { border: 2px dashed var(--coral); background: #fff; box-shadow: 0 14px 30px rgba(43, 45, 66, 0.16); z-index: 2; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }
@media (max-width: 560px) {
  .blocks { grid-template-columns: minmax(0, 1fr); }
  .block.half { grid-column: 1 / -1; }
  .block-width { display: none; }
  .wide-toggle { display: none; }
}

.panel { background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 28px; }
.panel h2 { font-family: var(--display); font-size: 2rem; font-weight: 700; margin: 0 0 4px; line-height: 1.2; }
.panel .intro { color: var(--muted); margin: 0 0 24px; }
.step-count { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-dark); }
.quiz-note {
  background: var(--teal-soft); border-radius: 14px; padding: 12px 16px; margin: 0 0 20px;
  font-size: 0.92rem; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}

.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 800; font-size: 0.95rem; margin-bottom: 6px; }
.field .tip {
  font-size: 0.88rem; color: var(--muted); background: var(--sun-soft);
  border-radius: 10px; padding: 8px 12px; margin: 0 0 8px;
}
.field input, .field textarea {
  width: 100%; font: 400 0.98rem var(--sans); color: var(--ink);
  padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sun); background: #fff; box-shadow: 0 0 0 4px var(--sun-soft); }

.list-item { display: grid; gap: 8px; grid-template-columns: 1fr auto; align-items: start; margin-bottom: 12px; }
.list-item .sub { display: grid; gap: 8px; }
.remove {
  border: 2px solid var(--line); background: #fff; color: var(--muted); border-radius: 10px;
  width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem;
}
.remove:hover { color: var(--coral-dark); border-color: var(--coral); }

.photo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photo-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 3px solid var(--sun); }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

.preview-wrap { position: sticky; top: 132px; }
.preview-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.privacy-note { font-size: 0.84rem; color: var(--muted); margin-top: 12px; text-align: center; }

@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  .preview-wrap { position: static; }
}
@media (max-width: 560px) {
  .quiz-card, .panel { padding: 24px 18px; }
  .builder-bar .hide-sm { display: none; }
}

/* Resume sheet */
.resume {
  --r-accent: #f08c00; --r-band: #fff4c2; --r-head: #2b2d42;
  background: #fff; color: #2b2d42; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(43, 45, 66, 0.1);
  padding: 0 0 36px; font-family: var(--sans); font-size: 13px; line-height: 1.5; overflow: hidden;
}
.resume .r-header { background: var(--r-band); padding: 32px 44px 24px; text-align: center; margin-bottom: 8px; }
.resume .r-header.with-photo { display: flex; align-items: center; gap: 22px; text-align: start; }
.resume .r-photo { width: 104px; height: 104px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; flex-shrink: 0; }
.resume h1 { font-family: var(--display); font-size: 32px; margin: 0; color: var(--r-head); font-weight: 700; line-height: 1.1; }
.resume .r-heb { font-size: 15px; color: #666; margin: 2px 0 6px; }
.resume .r-meta { font-size: 12.5px; color: #555; margin: 4px 0 0; font-weight: 600; }
.resume .r-body { padding: 0 44px; }
.resume h2 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--r-accent);
  margin: 18px 0 6px; font-weight: 900; display: flex; align-items: center; gap: 8px;
}
.resume h2::after { content: ""; flex: 1; height: 2px; background: var(--r-band); }
.resume p { margin: 0 0 6px; font-size: 13.5px; }
.resume ul { margin: 0; padding-inline-start: 18px; font-size: 13.5px; }
.resume li { margin-bottom: 2px; }
.resume .r-q b { color: var(--r-head); }
.resume .r-words { font-weight: 800; color: var(--r-accent); margin-bottom: 8px; }
.resume .r-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: 13.5px; }
.resume .r-row b { color: var(--r-head); font-weight: 800; }
.resume .r-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.resume .r-contact {
  margin: 22px 44px 0; padding: 12px; border-radius: 10px; background: var(--r-band); text-align: center;
  font-size: 12.5px; font-weight: 600;
}
.resume .r-empty { text-align: center; color: #999; padding: 60px 20px; font-size: 14px; }

.resume.theme-coral { --r-accent: #e03131; --r-band: #ffe3e3; }
.resume.theme-mint { --r-accent: #0ca678; --r-band: #d3f9e8; }
.resume.theme-sky { --r-accent: #1c7ed6; --r-band: #dbeefe; }

@media (max-width: 560px) {
  .resume .r-header, .resume .r-body { padding-left: 20px; padding-right: 20px; }
  .resume .r-contact { margin-left: 20px; margin-right: 20px; }
  .resume .r-two { grid-template-columns: 1fr; }
  .resume .r-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 4px; }
  .resume .r-header.with-photo { flex-direction: column; text-align: center; }
}

/* Utility */
[hidden] { display: none !important; }
.muted-small { color: var(--muted); font-size: 0.9rem; }
.error { color: var(--coral-dark) !important; font-weight: 700; }
.sub-h { font-size: 1.15rem; font-weight: 900; margin: 32px 0 4px; }

/* Quiz extras */
.options.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.options.compact .opt { padding: 11px 14px; font-size: 0.95rem; justify-content: center; text-align: center; }
.quiz-text {
  display: block; width: 100%; max-width: 420px; margin: 16px auto 0; text-align: center;
  font: 500 1rem var(--sans); color: var(--ink); padding: 12px 16px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--bg);
}
.quiz-text:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px var(--sun-soft); }

/* Photo gallery */
.gallery-edit { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .remove { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; font-size: 0.9rem; border-radius: 50%; padding: 0; }
.thumb.add {
  border: 2px dashed var(--line); background: var(--bg); color: var(--muted); cursor: pointer;
  font: 700 0.85rem var(--sans);
}
.thumb.add:hover { border-color: var(--sun); color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 24px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 2px solid var(--line); }

/* The single OPTIONAL marker used on labels, step titles, quiz questions, and checkboxes */
.optional-tag {
  display: inline-block; margin-inline-start: 10px; vertical-align: middle; color: #e03131;
  font: 800 0.7rem var(--sans); letter-spacing: 0.08em; line-height: 1;
}
.optional-tag.end { margin-inline-start: auto; padding-inline-start: 12px; }
/* Larger only beside the convert and ba'al teshuva checkboxes */
.optional-tag.big { font-size: 1.05rem; }

.red-note { color: #e03131; font-weight: 800; }

/* Ask a reference */
.ref-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.ref-ask span { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-inline-end: 2px; }
.list-item + .list-item { padding-top: 12px; border-top: 2px dashed var(--line); }

/* Checkboxes */
.check-list { display: grid; gap: 8px; }
.field .check-row {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; cursor: pointer;
  border: 2px solid var(--line); border-radius: 12px; background: var(--bg); font-weight: 600;
}
.field .check-row input { width: 20px; height: 20px; accent-color: var(--coral); flex-shrink: 0; }
.field .check-row:has(input:checked) { border-color: var(--coral); background: var(--coral-soft); }

/* Word bank */
.options.chips.wordbank { justify-content: flex-start; gap: 8px; }
.wordbank .opt { padding: 7px 13px; font-size: 0.88rem; }
.word-add { display: flex; gap: 8px; margin-top: 10px; }
.field .word-add input { flex: 1; min-width: 0; padding: 8px 12px; }

/* Customize */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; font: 700 0.9rem var(--sans); color: var(--ink); cursor: pointer;
}
.swatch span { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.swatch.on { border-color: var(--ink); background: var(--sun-soft); }
.font-swatch b { font-size: 1.1rem; }
.font-swatch.font-friendly b { font-family: var(--display); }
.sec-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 8px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--bg);
}
.sec-row.off { opacity: 0.55; }
.field .sec-row input[data-title] { flex: 1; min-width: 0; padding: 8px 10px; background: #fff; }
.sec-fixed { flex: 1; font-weight: 700; padding: 8px 0; }
.sec-move { display: flex; flex-direction: column; gap: 2px; }
.sec-move button {
  border: 0; background: #fff; border-radius: 6px; width: 28px; height: 20px; cursor: pointer;
  font-size: 0.65rem; color: var(--ink);
}
.sec-move button:disabled { opacity: 0.3; cursor: default; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; white-space: nowrap; cursor: pointer; }
.field .toggle input { width: auto; }

/* Share */
.demo-note { background: var(--sun-soft); justify-content: flex-start; flex-wrap: nowrap; }
.share-box {
  text-align: center; background: var(--sun-soft); border-radius: 20px; padding: 24px 16px; margin-bottom: 16px;
}
.share-code-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.share-code {
  font-family: ui-monospace, Menlo, monospace; font-size: 2.4rem; font-weight: 800; letter-spacing: 0.18em;
  color: var(--ink); margin: 4px 0 12px;
}
.qr { width: 180px; height: 180px; image-rendering: pixelated; background: #fff; border-radius: 14px; padding: 6px; }
.share-link { font-size: 0.85rem; color: var(--muted); word-break: break-all; margin: 10px 0 14px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.update-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  border: 2px dashed var(--line); border-radius: 14px; padding: 12px 14px; font-size: 0.9rem; color: var(--muted);
}
.key {
  font-family: ui-monospace, Menlo, monospace; background: var(--bg); border: 2px solid var(--line);
  border-radius: 10px; padding: 6px 10px; font-size: 0.85rem; word-break: break-all;
}
.donate-note { margin-top: 28px; padding: 14px 16px; border-radius: 14px; background: var(--coral-soft); font-weight: 700; }
.donate-note a { color: var(--coral-dark); }

/* Reviews */
.reviews-list { display: grid; gap: 12px; margin-top: 12px; }
.review-card { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.rv-adj { justify-content: flex-start; margin: 0 0 10px; }
.rv-adj span { text-transform: capitalize; }
.rv-note { margin: 0 0 8px; font-style: italic; }
.rv-by, .rv-contact { margin: 0; font-size: 0.92rem; }
.rv-contact { color: var(--muted); }
.rv-group { font-weight: 800; margin: 16px 0 0; }
.rv-status {
  display: inline-block; font-size: 0.75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
  background: var(--sun-soft);
}
.rv-status.rv-approved { background: var(--teal-soft); }
.rv-status.rv-hidden { background: #eee; }
.rv-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

/* View & review pages */
.view-page { max-width: 860px; padding-top: 28px; padding-bottom: 48px; }
.view-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.reviews-section { margin-top: 40px; }
.reviews-section h2 { font-family: var(--display); font-size: 1.8rem; margin: 0 0 8px; }
.code-form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.code-form input {
  font: 800 1.2rem ui-monospace, Menlo, monospace; letter-spacing: 0.15em; text-transform: uppercase; text-align: center;
  padding: 12px 16px; border: 2px solid var(--line); border-radius: 999px; width: 220px; max-width: 100%; background: var(--bg);
}
.code-form input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px var(--sun-soft); }
.review-form { text-align: start; }
.review-form .quiz-emoji, .review-form h2, .review-form > .quiz-hint { text-align: center; }
.review-form .chips { justify-content: flex-start; }
.field select {
  width: 100%; font: 400 0.98rem var(--sans); color: var(--ink); padding: 11px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--bg);
}

/* Landing extras */
.code-band { background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 32px 20px; text-align: center; max-width: 640px; margin: 0 auto; }
.code-band h3 { font-family: var(--display); font-size: 1.6rem; margin: 0 0 6px; }
.code-band p { color: var(--muted); margin: 0 0 18px; }
.donate-band { background: var(--coral-soft); text-align: center; }
.donate-band p { max-width: 560px; margin: 0 auto 24px; }
.site-footer a { margin: 0 6px; }

/* Resume font styles and layout options.
   Each stack ends in a Hebrew-capable font, so Hebrew and Yiddish text picks it up automatically. */
.resume.align-left .r-header { text-align: start; }
.resume.font-classic { font-family: "EB Garamond", "Frank Ruhl Libre", Georgia, serif; font-size: 14.5px; }
.resume.font-classic h1 { font-family: "EB Garamond", "Frank Ruhl Libre", Georgia, serif; font-weight: 600; font-size: 36px; }
.resume.font-classic h2 { font-variant: small-caps; text-transform: none; letter-spacing: 0.06em; font-size: 17px; font-weight: 600; justify-content: center; }
.resume.font-classic h2::before { content: ""; flex: 1; height: 1px; background: var(--r-accent); opacity: 0.4; }
.resume.font-classic h2::after { height: 1px; background: var(--r-accent); opacity: 0.4; }
.resume.font-modern { font-family: "Montserrat", "Heebo", system-ui, sans-serif; }
.resume.font-modern h1 { font-family: "Montserrat", "Heebo", system-ui, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 26px; }
.resume.font-modern h2 { letter-spacing: 0.22em; font-size: 11.5px; font-weight: 800; border-inline-start: 4px solid var(--r-accent); padding-inline-start: 8px; }
.resume.font-modern h2::after { display: none; }
.resume.font-sleek { font-family: "Manrope", "Heebo", system-ui, sans-serif; font-size: 13.5px; }
.resume.font-sleek h1 { font-family: "Manrope", "Heebo", system-ui, sans-serif; font-weight: 800; font-size: 34px; letter-spacing: -0.03em; }
.resume.font-sleek h2 { text-transform: none; letter-spacing: -0.01em; font-size: 16px; font-weight: 800; color: var(--r-head); }
.resume.font-sleek h2::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--r-accent); flex: none; }
.resume.font-sleek h2::after { height: 1px; }

.font-swatch.font-classic b { font-family: "EB Garamond", Georgia, serif; font-weight: 600; font-size: 1.25rem; }
.font-swatch.font-modern b { font-family: "Montserrat", sans-serif; font-weight: 800; letter-spacing: 0.04em; }
.font-swatch.font-sleek b { font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -0.03em; }

.resume.theme-navy { --r-accent: #1f3a5f; --r-band: #e7edf5; --r-head: #14243a; }
.resume.theme-stone { --r-accent: #495057; --r-band: #f1f3f5; --r-head: #212529; }
/* Black and white only: no tinted band, black rules and headings. */
.resume.theme-mono { --r-accent: #111; --r-band: #fff; --r-head: #111; }
.resume.theme-mono .r-header { border-bottom: 2px solid #111; }
.resume.theme-mono .r-contact { border: 1px solid #111; }

/* Template cards (Customize) */
.templates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.template-card {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: start; cursor: pointer;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 10px; color: var(--ink); font: inherit;
}
.template-card.on { border-color: var(--ink); background: var(--sun-soft); }
.template-card strong { font-size: 0.95rem; }
.template-card small { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.tpl-preview { width: 100%; height: 54px; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 5px; margin-bottom: 4px; }
.tpl-preview b { font-size: 1.05rem; line-height: 1; }
.tpl-preview i { display: block; height: 5px; border-radius: 3px; background: currentColor; opacity: 0.25; }
.tpl-preview i + i { width: 60%; }
.tpl-traditional .tpl-preview { background: #fff; color: #111; align-items: center; border: 1px solid #111; }
.tpl-traditional .tpl-preview b { font-family: "EB Garamond", Georgia, serif; }
.tpl-modern .tpl-preview { background: #dbeefe; color: #1c7ed6; align-items: center; }
.tpl-modern .tpl-preview b { font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.tpl-neutral .tpl-preview { background: #f1f3f5; color: #343a40; }
.tpl-neutral .tpl-preview b { font-family: "Montserrat", sans-serif; font-weight: 800; }
@media (max-width: 480px) { .templates { grid-template-columns: 1fr; } }

/* Hover or tap note on a field label */
.has-info { position: relative; cursor: help; border-bottom: 1px dotted currentColor; outline: none; }
.info-icon { color: var(--coral-dark); }
.info-pop {
  display: none; position: absolute; z-index: 30; inset-inline-start: 0; top: calc(100% + 8px);
  width: min(340px, 80vw); background: var(--ink); color: #fff; font-weight: 500; font-size: 0.86rem; line-height: 1.5;
  padding: 12px 14px; border-radius: 12px; box-shadow: 0 10px 24px rgba(43, 45, 66, 0.2);
}
.has-info:hover .info-pop, .has-info:focus .info-pop, .has-info.open .info-pop { display: block; }

/* Language list in the header menu */
.menu-langs { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.menu-account { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.menu-account:empty { display: none; }
.menu-note { display: block; padding: 6px 14px 2px; font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }

/* Sign-in window */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(43, 45, 66, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 20px; padding: 28px 24px 22px; box-shadow: 0 20px 50px rgba(43, 45, 66, 0.25);
}
.modal h2 { margin: 0 0 6px; padding-inline-end: 28px; }
.modal-intro { margin: 0 0 16px; color: var(--muted); }
.modal-close {
  position: absolute; top: 10px; inset-inline-end: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted);
}
.modal-close:hover { background: var(--sun-soft); }
.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-form input {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; background: #fff;
}
.auth-form input:focus { outline: none; border-color: var(--sun); }
.auth-form .muted-small { margin: 0; }
.auth-form .btn { margin-top: 8px; }
.auth-error:empty { display: none; }
.auth-done { margin: 0 0 8px; font-weight: 600; }
.modal-switch { margin: 14px 0 0; text-align: center; font-size: 0.92rem; }
.modal-demo { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--sun-soft); font-size: 0.82rem; }

/* "Save your progress" invitation in the builder */
.account-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--sun-soft); border: 2px solid var(--sun);
}
.account-banner > span:first-child { flex: 1 1 220px; font-weight: 600; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Photo password box on a shared resume */
.photo-lock {
  margin: 0 0 18px; padding: 18px 20px; border-radius: 16px; background: var(--sun-soft); border: 2px dashed var(--sun); text-align: center;
}
.photo-lock h2 { margin: 0 0 4px; font-size: 1.15rem; }
.photo-lock .code-form { justify-content: center; margin-top: 10px; }
.photo-lock .error:empty { display: none; }
.photo-lock input { letter-spacing: normal; text-transform: none; }
.photo-lock input::placeholder { letter-spacing: normal; text-transform: none; }
.menu-panel a.on { font-weight: 800; background: var(--sun-soft); }

/* Disclaimer under every page */
.disclaimer { font-size: 0.8rem; color: var(--muted); max-width: 660px; margin: 10px auto 0; line-height: 1.5; }

/* Print: only the resume */
@page { size: letter; margin: 0.4in; }
@media print {
  body { background: #fff; }
  .site-header, .editor, .preview-label, .privacy-note, .site-footer { display: none !important; }
  .builder { display: block; padding: 0; }
  .container { max-width: none; padding: 0; }
  .preview-wrap { position: static; }
  .resume { border: 0; box-shadow: none; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .resume .r-header, .resume .r-contact { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .resume .r-two { grid-template-columns: 1fr 1fr; }
  .resume .r-row { grid-template-columns: 120px 1fr; }
  .resume .r-header.with-photo { flex-direction: row; text-align: start; }
  .resume h2 { break-after: avoid; }
  .view-actions, .reviews-section { display: none !important; }
  .view-page { padding: 0; max-width: none; }
}

/* "Have a resume code?" sits right under the hero so visitors can go straight to it */
.code-section { padding-top: 32px; padding-bottom: 8px; }

/* "Your finished resume, your way" on the home page */
.hero-outcome { font-weight: 700; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.card:nth-child(4) .num { background: var(--sun-soft); }


/* Recommendations explainer on the References step */
.rec-explainer { background: var(--sun-soft); border: 2px solid var(--sun); border-radius: 16px; padding: 18px 20px; margin: 0 0 22px; }
.rec-explainer h3 { margin: 0 0 6px; font-size: 1.1rem; }
.rec-explainer p { margin: 0 0 8px; }
.rec-list { margin: 0 0 12px; padding-inline-start: 20px; display: grid; gap: 6px; }
.rec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rec-chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; font-weight: 600; }
.rec-chip.on { border-color: var(--coral); }
.rec-chip.on::before { content: "✓ "; color: var(--coral-dark); font-weight: 900; }
.rec-chip.more { border-style: dashed; color: var(--muted); }
.rec-approve { background: #fff; border-radius: 12px; padding: 10px 12px; }

/* Contact page and footer link */
.footer-link { display: inline-block; margin-bottom: 6px; font-size: 0.9rem; }
.contact-card .rf { text-align: start; }
.contact-card textarea { width: 100%; }
.contact-card .chips { justify-content: flex-start; }

/* "Don't know who to ask?" on the References step */
.ref-ideas { margin: 0 0 18px; font-weight: 700; }
.ref-ideas .info-list { display: block; margin-top: 8px; }
.ref-ideas .info-list span { display: list-item; margin-inline-start: 18px; }

/* Icons for text, email, WhatsApp, PDF, and print */
.ico { width: 18px; height: 18px; flex: none; vertical-align: -4px; margin-inline-end: 8px; }
.ico-text { color: #1c7ed6; }
.ico-email { color: var(--coral-dark); }
.ico-pdf, .ico-print { color: var(--ink); }
.btn .ico { margin-inline-end: 6px; }
.card .num.num-trio { width: auto; padding: 0 12px; display: inline-flex; gap: 8px; align-items: center; }
.num-trio .ico { width: 26px; height: 26px; margin: 0; }

/* Navy accents, spread down the page: outlined code box near the top, a navy band in the middle, and the footer */
.code-band { border-color: var(--ink); box-shadow: 0 8px 0 var(--sun); }
.code-band h3 { color: var(--ink); }
.outcome-section { background: var(--ink); padding: 72px 0; }
.outcome-section h2 { color: var(--sun); }
.outcome-section .lead { color: #d5d7e3; }
.outcome-section .card { border-color: var(--ink); }
.site-footer { background: var(--ink); color: #d5d7e3; }
.site-footer a { color: var(--sun); }
.site-footer .disclaimer { color: #b9bccb; }

/* Donation page */
.donate-hero p { margin-bottom: 32px; }
.donate-card {
  max-width: 520px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 28px 24px;
  box-shadow: 0 16px 40px rgba(43, 45, 66, 0.14); text-align: center;
}
.donate-card h2 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 16px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.amount {
  font: 800 1.15rem var(--sans); padding: 14px 6px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--bg); color: var(--ink); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.amount:hover { border-color: var(--coral); }
.amount.on { background: var(--ink); border-color: var(--ink); color: var(--sun); }
.amount-custom { font-size: 0.95rem; }
.custom-amt {
  display: flex; align-items: center; gap: 6px; max-width: 220px; margin: 0 auto 16px;
  border: 2px solid var(--line); border-radius: 14px; padding: 4px 14px; background: #fff;
}
.custom-amt[hidden] { display: none; }
.custom-amt:focus-within { border-color: var(--sun); box-shadow: 0 0 0 4px var(--sun-soft); }
.custom-amt .cur { font-weight: 800; font-size: 1.2rem; }
.custom-amt input { border: 0; outline: none; font: 800 1.2rem var(--sans); width: 100%; padding: 8px 0; background: transparent; }
.donate-go { display: block; width: 100%; margin-bottom: 10px; }
.donate-card .muted-small { margin: 0; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(3, 1fr); } .amount-custom { grid-column: span 3; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Why use page */
.why-closing { padding: 0 16px; }

/* Footer: disclaimer, then links, then copyright */
.site-footer .disclaimer { margin: 0 auto 12px; }
.footer-links { margin: 0 0 8px; font-size: 0.95rem; font-weight: 700; }
.footer-copy { margin: 0; font-size: 0.8rem; color: #b9bccb; }
.footer-link { display: none; }

/* New-password checklist in the sign-up window */
.pw-rules { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; gap: 3px; font-size: 0.85rem; color: var(--muted); }
.pw-rules li::before { content: "○"; display: inline-block; width: 1.2em; font-weight: 900; }
.pw-rules li.ok { color: var(--teal); font-weight: 600; }
.pw-rules li.ok::before { content: "✓"; }

/* "Your finished resume, your way": two square cards on top, two below */
#get .grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
#get .card { aspect-ratio: 4 / 3; display: flex; flex-direction: column; }
@media (max-width: 560px) {
  #get .grid-4 { gap: 12px; }
  #get .card { aspect-ratio: auto; padding: 18px; }
}

/* "Three easy steps": three boxes on one line (stacked only on narrow phones) */
#how .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
#how .card { padding: 22px 18px; }
@media (max-width: 600px) { #how .grid-3 { grid-template-columns: 1fr; } }

/* Cards with an icon: icon beside the heading, text underneath (flips for Hebrew and Yiddish) */
.card:has(> .num), #get .card:has(> .num) {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; align-content: start;
}
.card > .num { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 12px; margin: 0; }
.card > .num.num-trio { width: auto; }
.card:has(> .num) > h3 { margin: 0; }
.card:has(> .num) > p { grid-column: 1 / -1; margin-top: 12px; }

/* בס״ד in the top right corner of every resume (right side in every language, as is customary) */
.resume { position: relative; }
.resume .r-bsd {
  position: absolute; top: 10px; right: 14px; z-index: 1;
  font-family: "Frank Ruhl Libre", serif; font-size: 12px; font-weight: 700; color: var(--r-head); opacity: 0.8;
}

/* Tiny בס״ד in the top right corner of the site header */
.site-header .container { position: relative; }
.site-bsd {
  position: absolute; top: 2px; right: 16px; font-family: "Frank Ruhl Libre", serif;
  font-size: 10px; font-weight: 700; line-height: 1; color: var(--muted);
}
@media print { .site-bsd { display: none; } }

/* In the builder preview, בס״ד / ב״ה is clickable, with a hover hint */
#preview .r-bsd { cursor: pointer; border-radius: 4px; padding: 1px 3px; }
#preview .r-bsd:hover { background: var(--sun-soft); }
#preview .r-bsd:hover::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 6px); right: 0; white-space: nowrap;
  background: var(--ink); color: #fff; font-family: var(--sans); font-weight: 600; font-size: 11px;
  padding: 6px 10px; border-radius: 8px; direction: ltr; box-shadow: 0 6px 16px rgba(43, 45, 66, 0.2);
}
html[dir=rtl] #preview .r-bsd:hover::after { direction: rtl; }

/* "I'm a Kohen" hand in the resume header, in the template's colors */
.resume .r-header.has-kohen { position: relative; padding-inline: 140px; }
.resume.align-left .r-header.has-kohen { padding-inline-start: 44px; }
.resume .r-kohen {
  position: absolute; inset-inline-end: 52px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 84px; text-align: center;
}
.resume .r-kohen svg { display: block; width: 62px; height: auto; }
.resume .kh-hand { fill: none; stroke: var(--r-accent); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.resume .kh-text { font-family: var(--sans); font-size: 9.5px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; color: var(--r-head); }
@media (max-width: 600px) {
  .resume .r-header.has-kohen { padding-inline: 20px 110px; }
  .resume .r-kohen { inset-inline-end: 40px; width: 64px; }
}

/* Add-ons step: sticker bubbles */
.sticker-bank { justify-content: flex-start; }
.sticker-bank .opt { text-align: start; line-height: 1.35; }
.sticker-bank .opt .e { margin-inline-end: 6px; }
.from-quiz {
  display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--teal-soft); color: var(--ink); font-size: 0.72rem; font-weight: 800; vertical-align: 1px; white-space: nowrap;
}

/* Stickers on the resume: slightly tilted, like they were stuck on */
.resume .r-stickers { display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; padding: 6px 44px 4px; margin-top: 18px; }
.resume .r-sticker {
  display: inline-flex; align-items: center; gap: 8px; max-width: 300px; padding: 10px 14px;
  background: #fff; border: 2px solid var(--r-accent); border-radius: 16px; font-size: 12.5px; font-weight: 600; line-height: 1.35;
  box-shadow: 3px 3px 0 var(--r-band); transform: rotate(-2deg);
}
.resume .r-sticker:nth-child(even) { transform: rotate(1.6deg); }
.resume .r-sticker-e { font-size: 20px; line-height: 1; flex: none; }
.resume.theme-mono .r-sticker { box-shadow: 3px 3px 0 #ddd; }

/* Live preview looks like a sheet of letter paper on a desk (screen only; printing and PDFs are unchanged) */
@media screen {
  #preview { background: #e7e5df; border-radius: 14px; padding: 22px; }
  #preview .resume {
    aspect-ratio: 8.5 / 11; border: 0; border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 12px 30px rgba(43, 45, 66, 0.18);
    /* The page shape is a minimum: a longer resume makes the sheet taller instead of being cut off. */
    overflow: clip;
  }
  @supports not (overflow: clip) { #preview .resume { aspect-ratio: auto; overflow: visible; } }
}
@media screen and (max-width: 560px) { #preview { padding: 12px; } }

/* A box that opens right under one checkbox (e.g. aliyah timeframe) */
.check-follow { margin: -2px 0 8px; padding-inline-start: 34px; }
.check-follow .field-label { display: block; font-weight: 800; font-size: 0.88rem; margin-bottom: 4px; }
.check-follow input { width: 100%; }

/* Round stickers: a circle with the emoji on top and the line inside */
.resume .r-sticker {
  flex-direction: column; justify-content: center; gap: 4px; width: 148px; height: 148px; max-width: none;
  padding: 18px; border-radius: 50%; text-align: center; font-size: 11px; line-height: 1.3;
}
.resume .r-sticker-e { font-size: 24px; }

/* Life timeline on the resume: a line with a dot for each moment */
.resume .r-timeline { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.resume .r-timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 90px; width: 2px; background: var(--r-accent); opacity: 0.35; }
.resume .r-timeline li { display: grid; grid-template-columns: 78px 1fr; column-gap: 26px; position: relative; padding: 3px 0; }
.resume .r-timeline li::before {
  content: ""; position: absolute; inset-inline-start: 86px; top: 7px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--r-accent);
}
.resume .r-tl-when { font-weight: 800; color: var(--r-accent); text-align: end; font-size: 12px; white-space: nowrap; }
.resume.theme-mono .r-timeline::before { background: #ccc; }
/* Fill-in button above the timeline list */
.list-fill { margin: 0 0 10px; }

/* Stickers in a side column beside the resume sections */
.resume .r-main.has-stickers { display: grid; grid-template-columns: minmax(0, 1fr) 150px; column-gap: 6px; }
.resume .r-main.has-stickers .r-body { padding-inline-end: 8px; }
.resume .r-main .r-stickers {
  flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: flex-start;
  gap: 16px; padding: 18px 16px 0 0; margin: 0;
}
html[dir=rtl] .resume .r-main .r-stickers, .resume[dir=rtl] .r-main .r-stickers { padding: 18px 0 0 16px; }
.resume .r-main .r-sticker { width: 128px; height: 128px; padding: 14px; font-size: 10.5px; }
.resume .r-main .r-sticker-e { font-size: 21px; }
@media screen and (max-width: 560px) {
  .resume .r-main.has-stickers { grid-template-columns: 1fr; }
  .resume .r-main .r-stickers { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 14px 16px 0; }
}

/* Horizontal timeline: years on top, dots on a line, the moment underneath (replaces the vertical layout above) */
.resume .r-timeline { display: flex; flex-wrap: wrap; row-gap: 14px; margin-top: 8px; }
.resume .r-timeline::before { display: none; }
.resume .r-timeline li {
  flex: 1 1 0; min-width: 84px; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 4px; position: relative;
}
.resume .r-timeline li::before {
  position: relative; inset: auto; order: 1; margin: 4px 0 6px; z-index: 1; flex: none;
}
.resume .r-timeline li::after {
  content: ""; position: absolute; top: 25px; inset-inline: 0; height: 2px; background: var(--r-accent); opacity: 0.35;
}
.resume .r-timeline li:first-child::after { inset-inline-start: 50%; }
.resume .r-timeline li:last-child::after { inset-inline-end: 50%; }
.resume .r-timeline li:only-child::after { display: none; }
.resume .r-tl-when { order: 0; text-align: center; line-height: 16px; height: 16px; }
.resume .r-tl-what { order: 2; font-size: 11.5px; line-height: 1.3; }
.resume.theme-mono .r-timeline li::after { background: #999; }

/* Timeline words run diagonally down from each dot (room is left below for them) */
.resume .r-timeline { padding-bottom: 74px; padding-inline-start: 56px; }
.resume .r-timeline .r-tl-when { font-size: 10.5px; letter-spacing: -0.01em; }
.resume .r-timeline li { min-width: 60px; }
.resume .r-tl-what {
  align-self: flex-end; width: 112px; margin-inline-end: calc(50% - 2px); text-align: end;
  transform: rotate(-32deg); transform-origin: 100% 0;
}
.resume[dir=rtl] .r-tl-what { transform: rotate(32deg); transform-origin: 0 0; }

/* Section headings: dark blue instead of orange on the yellow (Sunny) template, and a little smaller everywhere */
.resume.theme-sunny h2 { color: #1d3a6e; }
.resume h2 { font-size: 11px; margin: 16px 0 5px; }
.resume.font-classic h2 { font-size: 15px; }
.resume.font-modern h2 { font-size: 10.5px; }
.resume.font-sleek h2 { font-size: 14px; }

/* A timeline row that continues on the next row: the line runs to the edge and ends with » */
.resume .r-timeline { position: relative; padding-inline-end: 22px; }
.resume .r-timeline.continues li:last-child::after { inset-inline-end: -22px; }
.resume .r-tl-more {
  position: absolute; top: 15px; inset-inline-end: 0; font-size: 18px; font-weight: 900; line-height: 1; color: var(--r-accent);
}
/* Five equal columns, so a shorter last row lines up under the row above */
.resume .r-timeline li { flex: 0 0 20%; max-width: 20%; min-width: 64px; }

/* Print-friendly headers on every template: white, with a colored line under the name instead of a filled block */
.resume .r-header { background: #fff; border-bottom: 4px solid var(--r-band); }

/* Default (Sunny) template: dark blue main color with pops of cheery yellow */
.resume.theme-sunny { --r-accent: #1d3a6e; --r-head: #1d3a6e; --r-band: #ffc928; }
.resume.theme-sunny .r-timeline li::before { background: var(--r-band); border-color: var(--r-accent); }
.resume.theme-sunny .r-timeline li::after { background: var(--r-band); opacity: 1; }
.resume.theme-sunny .r-tl-more { color: var(--r-band); -webkit-text-stroke: 0.6px var(--r-accent); }
.resume.theme-mono .r-header { border-bottom: 2px solid #111; }
/* Stickers have words only, so the words can be a little larger */
.resume .r-sticker { font-size: 12px; }
.resume .r-main .r-sticker { font-size: 11.5px; }

/* Sections in outlined boxes (no fill, so they print cleanly); half-width boxes sit side by side */
.resume { --r-box: #dfe3ea; }
.resume.theme-sunny { --r-box: #cdd6e6; }
.resume.theme-mono { --r-box: #111; }
.resume .r-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; align-items: start; padding-top: 6px; }
.resume .r-sec {
  grid-column: 1 / -1; border: 1.5px solid var(--r-box); border-radius: 12px; padding: 2px 16px 12px; margin: 0 0 12px;
  break-inside: avoid; page-break-inside: avoid; min-width: 0;
}
.resume .r-sec.half { grid-column: auto; }
.resume .r-sec h2 { margin-top: 10px; }
.resume.theme-mono .r-sec { border-width: 1px; }
@media screen and (max-width: 560px) { .resume .r-sec.half { grid-column: 1 / -1; } }

/* Builder preview only: drag handle and width button on each box */
#preview .r-sec { position: relative; }
#preview .r-sec.dragging { opacity: 0.55; outline: 2px dashed var(--coral); outline-offset: 2px; }
.sec-tools { position: absolute; top: 6px; inset-inline-end: 8px; display: flex; gap: 4px; opacity: 0.35; transition: opacity 0.15s; z-index: 2; }
#preview .r-sec:hover .sec-tools, .sec-tools:focus-within { opacity: 1; }
.sec-tools button {
  border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 24px; height: 24px; padding: 0;
  font-size: 13px; line-height: 1; cursor: pointer; color: var(--ink);
}
.sec-tools .sec-grip { cursor: grab; touch-action: none; }
@media (hover: none) { .sec-tools { opacity: 0.8; } }
/* On narrow screens every box is full width, so the half/full button would do nothing there */
@media screen and (max-width: 560px) { .sec-tools [data-act="secwidth"] { display: none; } }
/* In a half-width box, each label sits above its value so nothing gets squeezed */
.resume .r-sec.half .r-row { display: block; }
.resume .r-sec.half .r-row > b { display: block; margin-bottom: 1px; }
.resume .r-sec.half .r-timeline li { flex-basis: 33.33%; max-width: 33.33%; }

/* Only the name and the section headings are bold; everything else on the resume is regular weight */
.resume b, .resume strong, .resume .r-meta, .resume .r-words, .resume .r-row b, .resume .r-q b,
.resume .r-tl-when, .resume .r-sticker, .resume .r-contact b, .resume .kh-text, .resume .r-tl-more { font-weight: 400; }
.resume .r-bsd { font-weight: 400; }

/* A more compact header: smaller name and less space around it */
.resume .r-header { padding: 18px 44px 12px; }
.resume h1 { font-size: 25px; }
.resume.font-classic h1 { font-size: 28px; }
.resume.font-modern h1 { font-size: 22px; }
.resume.font-sleek h1 { font-size: 26px; }
.resume .r-heb { font-size: 13px; margin: 1px 0 3px; }
.resume .r-meta { font-size: 11.5px; margin-top: 2px; }
.resume .r-header .r-photo { width: 84px; height: 84px; }

/* Bullet points on the resume: yellow on the dark blue template, the accent color elsewhere */
.resume .r-bullets { margin: 2px 0 6px; padding-inline-start: 18px; }
.resume .r-bullets li { margin-bottom: 3px; }
.resume .r-bullets li::marker { color: var(--r-accent); font-size: 1.1em; }
.resume.theme-sunny .r-bullets li::marker, .resume.theme-sunny ul li::marker { color: #e5ad00; }

/* Sticker circles sized to their words, with less empty space */
.resume .r-sticker, .resume .r-main .r-sticker { padding: 9px; line-height: 1.22; font-size: 11px; }
.resume .r-sticker-s, .resume .r-main .r-sticker-s { width: 96px; height: 96px; }
.resume .r-sticker-m, .resume .r-main .r-sticker-m { width: 110px; height: 110px; }
.resume .r-sticker-l, .resume .r-main .r-sticker-l { width: 122px; height: 122px; }

/* Hovering the live preview: a note that the look can be changed on the Customize tab */
.preview-wrap { top: 132px; } /* sticky beside the editor; it also anchors the note below */
.builder.wide .preview-wrap { position: relative; top: auto; }
.preview-hint {
  position: absolute; top: 38px; left: 50%; transform: translate(-50%, -6px); z-index: 5; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font: 700 0.85rem var(--sans);
  cursor: pointer; box-shadow: 0 8px 20px rgba(43, 45, 66, 0.25); opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s;
}
.preview-wrap:hover .preview-hint, .preview-hint:focus-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.preview-hint:hover { background: #3b3e5c; }
@media (hover: none) { .preview-hint { position: static; transform: none; opacity: 1; pointer-events: auto; display: block; margin: 0 auto 10px; font-size: 0.8rem; box-shadow: none; } }
/* Sit the note on the "Live preview" label line so it never covers the resume */
.preview-hint {
  top: -7px; left: auto; inset-inline-end: 0; transform: translateY(-4px); max-width: calc(100% - 130px);
  padding: 6px 12px; font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preview-wrap:hover .preview-hint, .preview-hint:focus-visible { transform: none; }
@media (hover: none) { .preview-hint { white-space: normal; max-width: none; } }
@media (max-width: 900px) { .preview-wrap { position: relative; top: auto; } }
/* Never print the editor-only note or box buttons */
@media print { .preview-hint, .sec-tools { display: none !important; } #preview .r-sec { outline: none !important; } }

/* Editing right on the preview: a dotted outline shows what can be typed into */
#preview .r-sec, #preview .r-header, #preview .r-stickers, #preview .r-contact { cursor: pointer; }
#preview .r-editable { cursor: text; border-radius: 4px; outline: none; outline-offset: 2px; }
#preview .r-editable:hover { outline: 1.5px dashed #9fb3d6; }
#preview .r-editable:focus { outline: 2px solid var(--sun); background: #fffdf0; }
@media print { #preview .r-editable { outline: none !important; background: none !important; } }

/* Heading color comes from --r-h2 (falls back to the accent), so a picked heading color reaches every template */
.resume h2 { color: var(--r-h2, var(--r-accent)); }
.resume.theme-sunny { --r-h2: #1d3a6e; }
.resume.theme-sunny h2 { color: var(--r-h2); }
.resume.font-sleek h2 { color: var(--r-h2, var(--r-head)); }

/* Builder preview only: header buttons (left/center, colors) and the color pop-up */
#preview .r-header { position: relative; }
.hdr-tools { inset-inline-end: auto; inset-inline-start: 8px; top: 8px; }
#preview .r-header:hover .hdr-tools { opacity: 1; }
.color-pop {
  position: absolute; top: 38px; inset-inline-start: 8px; z-index: 6; width: 190px; text-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 26px rgba(43, 45, 66, 0.18);
  display: flex; flex-direction: column; gap: 6px; font: 600 0.82rem var(--sans); color: var(--ink);
}
.color-pop[hidden] { display: none; }
.color-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.color-row input[type=color] { width: 30px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.color-pop .btn-link { align-self: flex-start; font-size: 0.78rem; }
@media print { .color-pop, .hdr-tools { display: none !important; } }

/* Sample resumes page */
.samples-page { padding: 40px 16px 56px; max-width: 820px; }
.samples-page h1 { font-family: var(--display); color: var(--navy, #1d3a6e); font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; margin: 0 0 8px; }
.samples-page .lead { text-align: center; margin: 0 auto 22px; }
.sample-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.sample-tab { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: 700 0.9rem var(--sans); cursor: pointer; color: var(--ink); }
.sample-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sample-caption { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 0 0 16px; }
.sample-sheet { background: #e7e5df; border-radius: 14px; padding: 22px; }
.sample-sheet .resume { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 12px 30px rgba(43, 45, 66, 0.18); border: 0; border-radius: 2px; }
.samples-cta { text-align: center; margin-top: 26px; }
@media (max-width: 560px) { .sample-sheet { padding: 10px; } }
/* "Camps" label inside the Education box */
.resume .r-sub { margin: 8px 0 3px; }

/* Neutral (stone) template: charcoal with a deep teal accent, and everything square or rectangular */
.resume.theme-stone { --r-accent: #1f6f78; --r-band: #1f6f78; --r-head: #212529; --r-h2: #212529; --r-box: #cfd4d9; }
.resume.theme-stone .r-header { border-bottom-width: 3px; }
.resume.theme-stone .r-sec { border-radius: 0; border-width: 1px; border-top: 3px solid var(--r-accent); }
.resume.theme-stone h2::after { display: none; }
.resume.theme-stone .r-timeline li::before { border-radius: 0; width: 9px; height: 9px; background: #fff; border-color: var(--r-accent); }
.resume.theme-stone .r-timeline li::after { opacity: 0.45; }
.resume.theme-stone ul, .resume.theme-stone .r-bullets { list-style: square; }
.resume.theme-stone .r-bullets li::marker, .resume.theme-stone ul li::marker { color: var(--r-accent); }
/* Add-ons as plain rectangles: no circle, no tilt, no shadow */
.resume.theme-stone .r-sticker, .resume.theme-stone .r-main .r-sticker {
  width: 100%; height: auto; border-radius: 0; transform: none; box-shadow: none; padding: 8px 10px;
  border: 1px solid var(--r-box); border-inline-start: 4px solid var(--r-accent); text-align: start; align-items: flex-start; font-size: 11px; line-height: 1.35;
}
.resume.theme-stone .r-main .r-stickers { align-items: stretch; gap: 10px; }
.resume.theme-stone .r-main.has-stickers { grid-template-columns: minmax(0, 1fr) 160px; }
.tpl-neutral .tpl-preview { background: #fff; color: #212529; border-top: 4px solid #1f6f78; border-radius: 0; }
.resume.theme-stone .r-contact { border-radius: 0; }
.resume.theme-stone .r-photo { border-radius: 0; border: 1px solid var(--r-box); }

/* Short stories from recommendations: a speech bubble in the side column (plain quotes on Traditional, square on Neutral) */
.resume .r-story {
  position: relative; width: 132px; margin: 0 0 8px; padding: 10px 12px; text-align: start;
  background: #fff; border: 1.5px solid var(--r-accent); border-radius: 14px; font-size: 10.5px; line-height: 1.35;
}
.resume .r-story::after {
  content: ""; position: absolute; bottom: -8px; inset-inline-start: 18px; width: 12px; height: 12px;
  background: #fff; border: solid var(--r-accent); border-width: 0 1.5px 1.5px 0; transform: skewX(-25deg) rotate(45deg);
}
.resume .r-story blockquote { margin: 0; font-style: italic; color: var(--ink, #2b2d42); }
.resume .r-story figcaption { margin-top: 5px; font-size: 9.5px; color: var(--r-head); }
.resume.theme-sunny .r-story { background: #fff8dc; border-color: var(--r-accent); }
.resume.theme-sunny .r-story::after { background: #fff8dc; }
.resume.theme-stone .r-story { width: 100%; border-radius: 0; border-width: 1px; }
.resume.theme-stone .r-story::after { border-width: 0 1px 1px 0; transform: rotate(45deg); }
.resume.theme-mono .r-story { border: 0; background: none; padding: 4px 0; text-align: center; font-size: 11.5px; }
.resume.theme-mono .r-story::after { display: none; }
.resume.theme-mono .r-story figcaption { font-style: normal; color: #444; }
@media screen and (max-width: 560px) { .resume .r-story { width: 100%; max-width: 260px; } }

/* Recommendation form: examples of a short story, and the word count */
.story-examples { margin: 4px 0 10px; padding-inline-start: 18px; font-size: 13.5px; font-style: italic; color: var(--muted); }
.story-examples li { margin-bottom: 2px; }
.word-count { text-align: end; margin-top: 4px; }
.word-count.error { color: #c0392b; }
.rv-story { margin: 0 0 10px; padding: 8px 12px; border-inline-start: 3px solid var(--sun, #ffc928); background: #fffbea; border-radius: 0 10px 10px 0; font-style: italic; }
.rec-story-ex { display: inline-block; margin-top: 6px; padding: 6px 12px; background: #fff; border: 1.5px solid var(--navy, #1d3a6e); border-radius: 14px 14px 14px 3px; font-style: italic; font-size: 13.5px; }

/* Add-ons and stories in a centered row under the sections (they used to sit in a side column) */
.resume .r-stickers { align-items: center; gap: 14px 16px; padding: 4px 44px 6px; margin-top: 8px; }
.resume .r-story { width: 180px; margin-bottom: 10px; }
.resume.theme-stone .r-sticker { width: 200px; }
.resume.theme-stone .r-story { width: 200px; }
.resume.theme-stone .r-stickers { align-items: stretch; }
@media screen and (max-width: 560px) { .resume .r-stickers { padding: 4px 16px 6px; } }
/* A half-width box with no partner beside it fills the row */
.resume .r-sec.half.lone { grid-column: 1 / -1; }
.resume .r-sec.half.lone .r-row { display: grid; }
.resume .r-sec.half.lone .r-row > b { display: inline; margin-bottom: 0; }
.resume .r-sec.half.lone .r-timeline li { flex-basis: 20%; max-width: 20%; }
/* On a left-aligned English resume, the Hebrew name lines up under the English name */
.resume[dir=ltr].align-left .r-heb { text-align: left; }

/* Stickers and stories sprinkled through the page: beside a half-width box, or between rows on alternating sides */
.resume .r-spot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; padding: 4px 8px; margin: 0 0 14px; }
.resume .r-spot-row { grid-column: 1 / -1; }
.resume .r-spot-start { justify-content: flex-start; padding-inline-start: 28px; }
.resume .r-spot-end { justify-content: flex-end; padding-inline-end: 28px; }
.resume .r-spot .r-story { margin-bottom: 8px; }
.resume.theme-stone .r-spot { align-items: center; }
.resume.theme-stone .r-spot-side { flex-direction: column; align-items: stretch; padding: 0; }
.resume.theme-stone .r-spot-side .r-sticker, .resume.theme-stone .r-spot-side .r-story { width: 100%; }
@media screen and (max-width: 560px) {
  .resume .r-spot { grid-column: 1 / -1; }
  .resume .r-spot-start, .resume .r-spot-end { justify-content: center; padding-inline: 8px; }
}

/* Row labels (Father, Mother, Siblings…) are small uppercase captions in the accent color, so they can't be mistaken for names */
.resume .r-row { align-items: baseline; margin-bottom: 8px; }
.resume .r-row > b {
  font-family: var(--sans, inherit); font-size: 9.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--r-accent); line-height: 1.3;
}
.resume .r-sec.half .r-row > b { margin-bottom: 2px; }
.resume .r-row ul { margin: 0; }
.resume.theme-mono .r-row > b { color: #666; font-family: inherit; font-size: 10px; }

/* QR code to the online resume, at the end of the "For more information" bar */
.resume .r-contact.has-qr { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: start; }
.resume .r-contact-text { flex: 1; text-align: center; }
.resume .r-qr { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.resume .r-qr svg { display: block; width: 58px; height: 58px; background: #fff; padding: 4px; border-radius: 4px; }
.resume .r-qr span { font-size: 8.5px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--r-head); max-width: 92px; text-align: center; line-height: 1.25; }
.resume.theme-stone .r-qr svg, .resume.theme-mono .r-qr svg { border-radius: 0; }

/* ---------- Design pass ---------- */
/* Plum replaces the old red coral: a muted plum with a soft lilac band */
.resume.theme-coral { --r-accent: #7b4a7e; --r-head: #4b2c4e; --r-h2: #4b2c4e; --r-band: #f3ebf4; --r-box: #e3d6e5; }
/* Boxes side by side are the same height, so the row has a clean bottom edge */
.resume .r-body { align-items: stretch; }
.resume .r-spot-side { align-self: center; }
/* A name or place on one line, its details smaller and quieter underneath */
.resume .r-item { display: block; }
.resume .r-item-sub { display: block; font-size: 0.86em; color: #6b6f80; margin-top: 1px; }
.resume.theme-mono .r-item-sub { color: #555; }
.resume li + li { margin-top: 3px; }
/* Stickers between rows tuck against the box edges, like they were stuck on, instead of leaving a gap */
.resume .r-spot-row { position: relative; z-index: 2; margin: -22px 0 -10px; padding-block: 0; }
.resume.theme-mono .r-spot-row, .resume.theme-stone .r-spot-row { margin: -6px 0 4px; }
/* Less empty space under the slanted timeline labels */
.resume .r-timeline { padding-bottom: 58px; }
.resume .r-sec:has(.r-timeline) { padding-bottom: 6px; }
/* The Neutral contact bar is solid teal, so its text is white */
.resume.theme-stone .r-contact, .resume.theme-stone .r-contact b, .resume.theme-stone .r-qr span { color: #fff; }

/* A recommender's story beside their name under References, with the bubble's tail pointing at them */
.resume .r-ref { display: flex; align-items: flex-start; gap: 12px; }
.resume .r-ref > p { flex: none; margin: 0; }
.resume .r-story.r-story-ref { flex: 1; min-width: 0; width: auto; max-width: 220px; margin: 0; }
.resume .r-story.r-story-ref::after { bottom: auto; top: 12px; inset-inline-start: -7px; transform: rotate(135deg); }
.resume[dir=rtl] .r-story.r-story-ref::after { transform: rotate(-45deg); }
.resume.theme-mono .r-story.r-story-ref { text-align: start; padding: 0; }
@media screen and (max-width: 560px) { .resume .r-ref { flex-direction: column; } .resume .r-story.r-story-ref::after { display: none; } }
.resume.theme-stone.band-light .r-contact, .resume.theme-stone.band-light .r-contact b, .resume.theme-stone.band-light .r-qr span { color: var(--r-head); }
/* With a light, sunny highlight on Neutral, the add-ons pick up a soft wash of it too */
.resume.theme-stone.band-light .r-sticker { background: color-mix(in srgb, var(--r-band) 22%, #fff); border-inline-start-color: var(--r-band); }

/* A field's "More info" note: a solid navy badge with a white "i", so it's easy to spot */
.info-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-inline-start: 6px; padding: 3px 11px 3px 3px; vertical-align: 1px;
  background: var(--navy, #1d3a6e); color: #fff; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(29, 58, 110, 0.25); white-space: nowrap;
}
.info-i {
  display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%;
  background: #fff; color: var(--navy, #1d3a6e); font: italic 800 13px/1 Georgia, serif;
}
.has-info:hover .info-badge, .has-info:focus .info-badge, .has-info.open .info-badge { background: #2b4f8f; }
.has-info:has(.info-badge) { border-bottom: 0; }
/* References step: a plain note that listing references is enough on its own */
.ref-simple { background: #ebfbee; border: 2px solid #8ce99a; border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; font-size: 0.95rem; }
.rec-explainer h3 .optional-tag { margin-inline-start: 8px; vertical-align: 2px; }
.opt .e .opt-icon { display: block; width: 1.2em; height: 1.2em; }

/* Modern template (Sky + Sleek): a blue-to-aqua header, softly tinted boxes, and the 3 words as pills */
.resume.theme-sky { --r-head: #0b3d6e; --r-h2: #0b3d6e; --r-accent: #1c7ed6; --r-pop: #22b8cf; --r-band: #a5d8ff; --r-box: #d0ebff; }
.resume.theme-sky.font-sleek .r-header {
  position: relative; overflow: hidden; border-bottom: 0; color: #fff; padding-bottom: 20px;
  background: linear-gradient(120deg, var(--r-accent) 0%, var(--r-pop) 100%);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.resume.theme-sky.font-sleek .r-header::before, .resume.theme-sky.font-sleek .r-header::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.12); pointer-events: none;
}
.resume.theme-sky.font-sleek .r-header::before { width: 220px; height: 220px; inset-inline-end: -70px; top: -110px; }
.resume.theme-sky.font-sleek .r-header::after { width: 120px; height: 120px; inset-inline-end: 120px; bottom: -80px; background: rgba(255, 255, 255, 0.09); }
.resume.theme-sky.font-sleek .r-header > :not(.r-kohen):not(.r-bsd) { position: relative; z-index: 1; }
.resume.theme-sky.font-sleek .r-kohen { z-index: 1; }
.resume.theme-sky.font-sleek .r-header h1, .resume.theme-sky.font-sleek .r-header .r-heb { color: #fff; }
.resume.theme-sky.font-sleek .r-header .r-meta { color: rgba(255, 255, 255, 0.92); }
.resume.theme-sky.font-sleek .r-header .r-photo { border-color: rgba(255, 255, 255, 0.85); box-shadow: 0 4px 14px rgba(11, 61, 110, 0.25); }
.resume.theme-sky.font-sleek .kh-hand { stroke: #fff; }
.resume.theme-sky.font-sleek .kh-text { color: #fff; }
.resume.theme-sky.font-sleek .r-bsd { color: #fff; opacity: 0.95; }
.resume.theme-sky.font-sleek .r-sec {
  background: #f3f9ff; border: 0; border-top: 4px solid var(--r-accent); border-radius: 14px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.resume.theme-sky.font-sleek .r-body > .r-sec:nth-of-type(even) { border-top-color: var(--r-pop); }
.resume.theme-sky.font-sleek h2::before { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--r-accent), var(--r-pop)); }
.resume.theme-sky.font-sleek h2::after { background: var(--r-box); }
.resume.theme-sky.font-sleek .r-words { display: flex; flex-wrap: wrap; gap: 6px; }
.resume.theme-sky.font-sleek .r-words .r-dot { display: none; }
.resume.theme-sky.font-sleek .r-w {
  padding: 2px 11px; border-radius: 999px; background: #e3f6fb; border: 1.5px solid var(--r-pop); color: var(--r-head); font-size: 0.92em;
}
.resume.theme-sky.font-sleek .r-row > b { color: var(--r-accent); }
.resume.theme-sky.font-sleek .r-bullets li::marker, .resume.theme-sky.font-sleek ul li::marker { color: var(--r-pop); }
.resume.theme-sky.font-sleek .r-story { background: #fff; border-color: var(--r-pop); box-shadow: 3px 3px 0 var(--r-box); }
.resume.theme-sky.font-sleek .r-story::after { border-color: var(--r-pop); }
.resume.theme-sky.font-sleek .r-sticker { border-color: var(--r-pop); box-shadow: 3px 3px 0 var(--r-band); }
.resume.theme-sky.font-sleek .r-contact {
  background: linear-gradient(120deg, var(--r-accent), var(--r-pop)); color: #fff;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.resume.theme-sky.font-sleek .r-contact b, .resume.theme-sky.font-sleek .r-qr span { color: #fff; }
/* The header's Colors button is labeled and always visible, so it's easy to find */
#preview .hdr-tools { opacity: 1; }
.sec-tools .hdr-colors {
  width: auto; padding: 0 9px; border-radius: 999px; font: 700 12px/22px var(--sans); white-space: nowrap;
  background: var(--sun, #ffd43b); border-color: #e5ad00; color: var(--ink);
}
/* Customize step: your own colors right under the color themes */
.own-colors { margin-top: 12px; padding: 10px 12px; border: 1.5px dashed var(--line); border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.own-colors > b { font-size: 0.88rem; }
.own-colors-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.88rem; font-weight: 600; }
.own-colors .btn-link { font-size: 0.8rem; }
/* Donate page: a larger line under the title */
.donate-hero .container > p { font-size: 1.5rem; line-height: 1.4; font-weight: 600; max-width: 680px; }
@media (max-width: 560px) { .donate-hero .container > p { font-size: 1.25rem; } }
/* Send menu: a section for telling a friend about the site */
.menu-friend { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.menu-friend-title { display: block; padding: 4px 12px 2px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero .actions { align-items: center; }
/* Home page: a small notice that the site is in beta */
.beta-note {
  max-width: 600px; margin: 0 auto 26px !important; padding: 12px 20px 12px 14px; font-size: 0.9rem !important; line-height: 1.5;
  background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(29, 58, 110, 0.12); border-radius: 16px; color: var(--ink);
  box-shadow: 0 10px 28px -14px rgba(29, 58, 110, 0.35);
}
/* "We're in beta." becomes a small navy tag with a soft pulsing dot */
.beta-note b {
  display: inline-flex; align-items: center; gap: 7px; margin-inline-end: 8px; padding: 3px 11px 3px 9px;
  background: var(--navy, #1d3a6e); color: #fff; border-radius: 999px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; vertical-align: 1px;
}
.beta-note b::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun);
  box-shadow: 0 0 0 0 rgba(255, 212, 59, 0.7); animation: beta-pulse 2.4s ease-out infinite;
}
@keyframes beta-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 212, 59, 0.7); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 212, 59, 0); } }
@media (prefers-reduced-motion: reduce) { .beta-note b::before { animation: none; } }

/* ---------- Phones: everything fits the screen and is easy to tap ---------- */
@media (max-width: 560px) {
  /* "Your finished resume" cards: one per row so the text isn't squeezed off the screen */
  #get .grid-4 { grid-template-columns: minmax(0, 1fr); }
  /* Text buttons (Back, Skip, Not now…) and links get room for a finger */
  .btn-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; }
  .site-header .btn-sm { min-height: 40px; }
  .faq summary { padding: 10px 0; }
  .footer-links a { display: inline-block; padding: 10px 6px; }
  .field .toggle input, .panel input[type="checkbox"] { width: 20px; height: 20px; }
  .panel input[type="color"] { width: 44px; height: 36px; }
  /* Customize step: move-up/down buttons side by side and bigger */
  .sec-move { flex-direction: row; gap: 6px; }
  .sec-move button { width: 38px; height: 34px; font-size: 0.8rem; border: 1px solid var(--line); }
  /* Preview: room above the name for the header's ⇤ and Colors buttons */
  #preview .resume .r-header { padding-top: 54px; }
}
/* Touch screens: the preview's box and header buttons are big enough to tap */
@media (hover: none), (max-width: 560px) {
  .sec-tools { gap: 6px; }
  .sec-tools button { width: 34px; height: 34px; font-size: 16px; }
  .sec-tools .hdr-colors { height: 34px; line-height: 32px; padding: 0 12px; font-size: 13px; }
  #preview .r-bsd { padding: 6px 8px; }
}

/* Home page: Sign in stands out, in the header and under the hero buttons */
.site-header .hdr-signin {
  padding: 10px 20px; font-size: 0.95rem; background: var(--coral); color: #fff;
  box-shadow: 0 3px 0 var(--coral-dark);
}
.site-header .hdr-signin:hover { background: var(--coral-dark); }
.hero-signin {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin: 22px auto 0 !important; font-size: 1rem !important; font-weight: 700;
}
.hero-signin[hidden] { display: none; }
.hero-signin .btn { min-height: 40px; padding: 8px 22px; }
@media (max-width: 480px) { .site-header .hdr-signin { padding: 8px 14px; font-size: 0.85rem; } }

/* ---------- Admin panel (admin.html) ---------- */
.admin-tag { padding: 4px 10px; border-radius: 999px; background: var(--navy, #1d3a6e); color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-who { font-size: 0.85rem; color: var(--muted); }
.admin-who a { color: var(--ink); font-weight: 700; }
.admin { padding-top: 28px; padding-bottom: 80px; }
.admin-msg { max-width: 520px; margin: 48px auto; text-align: center; }
.admin-msg h1 { font-family: var(--display); font-size: 2.2rem; margin: 0 0 12px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 2px solid var(--line); margin-bottom: 24px; }
.admin-tabs a { padding: 12px 16px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.admin-tabs a.on { color: var(--ink); border-bottom-color: var(--coral); }
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.admin-tile { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.admin-tile-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.admin-tile b { font-size: 2rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.admin-tile-sub { font-size: 0.8rem; color: var(--muted); }
.admin-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-chart { margin: 0; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.admin-chart figcaption { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 0.9rem; }
.admin-chart figcaption span { color: var(--muted); }
.admin-bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 120px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; padding-top: 1px; }
.admin-bars-max { position: absolute; top: -2px; left: 0; transform: translateY(-100%); font-size: 0.7rem; color: var(--muted); }
.admin-bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.admin-bar i { display: block; width: 100%; background: var(--navy, #1d3a6e); border-radius: 4px 4px 0 0; }
.admin-bar:hover i { background: var(--coral-dark); }
.admin-bar:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none;
}
.admin-bars-axis { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.admin-table-view summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.admin-scroll { overflow-x: auto; background: #fff; border: 2px solid var(--line); border-radius: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td { font-variant-numeric: tabular-nums; }
.admin-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.admin-search input, .admin-search select { flex: 1; min-width: 200px; max-width: 420px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
.admin-search label { font-weight: 700; }
.admin-pill { display: inline-block; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; background: var(--sun-soft); font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.admin-danger { color: var(--coral-dark) !important; white-space: nowrap; }
.admin-review { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.admin-review header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.admin-review-date { margin-inline-start: auto; }
.admin-review p { margin: 8px 0 0; }
.admin-review-words { font-weight: 700; color: var(--navy, #1d3a6e); }
.admin-review-note { color: var(--muted); font-style: italic; }
.admin-more { text-align: center; margin-top: 16px; }
@media (max-width: 560px) { .admin-who { flex-basis: 100%; order: 3; } }

/* Instagram logo, in the header and the footer */
.ig-link {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 24%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); text-decoration: none; vertical-align: middle;
}
.ig-link:hover { filter: brightness(1.08); }
.ig-link svg { width: 78%; height: 78%; fill: none; stroke: #fff; stroke-width: 2; }
.ig-link svg .ig-dot { fill: #fff; stroke: none; }
.footer-links .ig-link { display: inline-flex; padding: 0; margin-inline-start: 4px; }
@media (max-width: 480px) { .site-header .ig-link { width: 32px; height: 32px; } }
.menu-admin { font-weight: 800; }

/* Admin panel: visitor and insight lists */
.admin-h { font-family: var(--display); font-size: 1.5rem; margin: 30px 0 8px; }
.admin-note { margin: 0 0 14px; max-width: 760px; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-card { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.admin-card h3 { margin: 0 0 12px; font-size: 0.95rem; }
.admin-tally { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-tally li { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(30px, 1fr) auto; align-items: center; gap: 10px; font-size: 0.85rem; }
.admin-tally-label { overflow-wrap: anywhere; }
.admin-tally-track { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.admin-tally-track i { display: block; height: 100%; background: var(--navy, #1d3a6e); border-radius: 5px; }
.admin-tally-n { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-tally-n small { font-weight: 500; color: var(--muted); margin-inline-start: 3px; }

/* Phones: the site name stacks on two lines so the header's buttons all stay on one row */
@media (max-width: 480px) {
  .logo { white-space: normal; line-height: 1.05; }
  .logo .brand .hl { display: block; }
}
@media (max-width: 350px) { .logo .logo-mark { display: none; } }

/* Photos step: which file types can be uploaded */
.photo-types { margin: 10px 0 0; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }

/* Timeline on phones: one moment per line (date, dot, words) instead of the slanted row, which can't fit.
   Printing and the PDF keep the slanted row: this is screen only, and the off-screen PDF copy is left out. */
@media screen and (max-width: 560px) {
  .resume:not(.pdf-render *) .r-timeline { display: block; margin-top: 4px; padding: 0; }
  .resume:not(.pdf-render *) .r-timeline li {
    display: grid; grid-template-columns: 70px 12px minmax(0, 1fr); column-gap: 10px; align-items: start;
    min-width: 0; max-width: none !important; padding: 0 0 12px; text-align: start;
  }
  .resume:not(.pdf-render *) .r-timeline .r-tl-when {
    grid-column: 1; grid-row: 1; height: auto; line-height: 1.5; font-size: 11.5px; text-align: end; white-space: normal;
  }
  .resume:not(.pdf-render *) .r-timeline li::before { grid-column: 2; grid-row: 1; justify-self: center; margin: 3px 0 0; }
  .resume:not(.pdf-render *) .r-timeline .r-tl-what {
    grid-column: 3; grid-row: 1; align-self: auto; width: auto; margin: 0; text-align: start; transform: none;
    font-size: 13px; line-height: 1.4;
  }
  /* The line runs down through the dots, starting at the first and stopping at the last */
  .resume:not(.pdf-render *) .r-timeline li::after {
    display: block; top: 0; bottom: 0; height: auto; width: 2px; inset-inline-start: 85px; inset-inline-end: auto;
  }
  .resume:not(.pdf-render *) .r-timeline + .r-timeline { margin-top: 0; }
  .resume:not(.pdf-render *) .r-timeline:first-of-type li:first-child::after { top: 8px; }
  .resume:not(.pdf-render *) .r-timeline:not(.continues) li:last-child { padding-bottom: 2px; }
  .resume:not(.pdf-render *) .r-timeline:not(.continues) li:last-child::after { bottom: auto; height: 10px; }
  .resume:not(.pdf-render *) .r-timeline:first-of-type:not(.continues) li:only-child::after { display: none; }
  .resume:not(.pdf-render *) .r-tl-more { display: none; }
}

/* Facebook link, next to the Instagram one */
.fb-link {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: #1877f2; text-decoration: none; vertical-align: middle;
}
.fb-link:hover { filter: brightness(1.08); }
.fb-link svg { width: 88%; height: 88%; fill: #fff; }
.footer-links .fb-link { padding: 0; margin-inline-start: 6px; }
@media (max-width: 480px) { .site-header .fb-link { width: 32px; height: 32px; } }
/* Narrow phones: tighten the header so the menu button stays on the same line */
@media (max-width: 374px) {
  .site-header .container { gap: 4px; }
  .site-header .ig-link, .site-header .fb-link { width: 30px; height: 30px; }
  .site-header .hdr-signin { padding: 8px 10px; }
}
