@font-face {
  font-family: ResumeVera;
  src: local("Arial");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f8f6f0;
  color: #19232c;
  font-family: Arial, sans-serif;
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid #d7d9d2;
  border-radius: 9px;
  background: #fff;
  padding: 9px 15px;
  color: inherit;
}
button:hover {
  border-color: #255649;
  background: #edf3ed;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
}
header {
  max-width: 1440px;
  margin: auto;
  padding: 20px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #e3e3dc;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
  gap: 10px;
  white-space: nowrap;
}
.brand-mark {
  background: #ee7948;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 28px;
}
.brand-light {
  font-weight: normal;
  color: #6a746d;
}
nav {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
nav a {
  text-decoration: none;
  margin-right: 12px;
}
main {
  max-width: 1360px;
  margin: auto;
  padding: 38px 36px 60px;
  min-height: 75vh;
}
h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 48px;
  margin: 14px 0 20px;
  max-width: 750px;
}
h2 {
  font-size: 27px;
}
h3 {
  font-size: 19px;
}
.kicker {
  color: #386658;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr;
  align-items: center;
  gap: 70px;
  padding: 30px 0 50px;
}
.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 4.2vw, 61px);
  font-weight: normal;
}
.hero h1 em {
  color: #286553;
}
.hero p {
  font-size: 17px;
  max-width: 560px;
  color: #626b65;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.primary {
  background: #245c4b;
  color: #fff;
  border-color: #245c4b;
}
.primary:hover {
  background: #173e33;
  color: #fff;
}
.orange {
  background: #ec7948;
  color: #fff;
  border-color: #ec7948;
}
.quiet {
  background: transparent;
}
.danger {
  color: #9b3029;
}
.muted {
  color: #657068;
  font-size: 14px;
}
.small {
  font-size: 12px;
}
.pill {
  display: inline-block;
  border-radius: 100px;
  padding: 4px 10px;
  background: #e6eee4;
  color: #335544;
  font-size: 12px;
}
.pill.warn {
  background: #fff0da;
  color: #765215;
}
.panel {
  background: #fffefb;
  border: 1px solid #dddfd5;
  border-radius: 16px;
  padding: 23px;
  margin: 16px 0;
}
.hero-sheet {
  transform: rotate(2deg);
  max-height: 610px;
  overflow: hidden;
  box-shadow: 0 18px 70px #283b2120;
  padding: 35px !important;
}
.hero-sheet .sample-tag {
  margin-bottom: 20px;
  color: #777;
  font-size: 11px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.features .panel {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid #daddd2;
  border-radius: 14px;
  padding: 22px;
}
.card h3 {
  margin: 10px 0;
}
.card .row {
  margin-top: 18px;
}
.card button {
  font-size: 13px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar h1 {
  font-size: 32px;
  margin: 5px 0;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #deded6;
  padding: 0 0 14px;
  margin: 16px 0 24px;
}
.tabs button[aria-current="page"] {
  background: #245c4b;
  color: #fff;
  border-color: #245c4b;
}
.editor {
  display: grid;
  grid-template-columns: 180px minmax(300px, 1fr) minmax(340px, 0.95fr);
  gap: 24px;
  align-items: start;
}
.sections {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sections button {
  text-align: left;
  font-size: 13px;
  background: transparent;
}
.sections button.active {
  background: #e4eee5;
  border-color: #b3c9b7;
}
.fields {
  min-width: 0;
}
.fields .panel {
  margin-top: 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #cdd2c7;
  border-radius: 7px;
  background: #fff;
  padding: 9px 11px;
  margin-top: 5px;
  color: #19232c;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"] {
  accent-color: #245c4b;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.entry {
  border-top: 1px solid #e0e4da;
  padding-top: 18px;
  margin-top: 20px;
}
.entry .row {
  margin: 10px 0;
}
.entry button {
  font-size: 12px;
  padding: 6px 9px;
}
.preview-wrap {
  position: sticky;
  top: 15px;
  min-width: 0;
}
.paper {
  background: #fff;
  color: #19232c;
  border: 1px solid #ddd;
  padding: 30px;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 10px 30px #20311e0d;
}
.paper h2 {
  font-size: 24px;
  margin: 0 0 8px;
}
.paper h3 {
  font-size: 13px;
  letter-spacing: 0;
  margin: 20px 0 8px;
}
.paper h4 {
  margin: 9px 0 2px;
  font-size: 12px;
}
.paper p {
  margin: 3px 0;
}
.paper ul {
  margin: 6px 0 12px;
  padding-left: 18px;
}
.paper.modern h2,
.paper.modern h3 {
  color: #214c43;
}
.paper.compact {
  font-size: 11px;
  line-height: 1.4;
}
.paper.compact h3 {
  margin-top: 14px;
}
.paper a {
  color: #245c4b;
  word-break: break-all;
}
.alert {
  border-radius: 10px;
  background: #fff0d9;
  border: 1px solid #e3c893;
  padding: 13px 16px;
  font-size: 14px;
  margin: 15px 0;
}
.info {
  background: #eaf1e7;
  border-color: #cbdcc4;
}
.scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.score-number {
  font-size: 40px;
  font-family: Georgia, serif;
  color: #265547;
}
.score-number span {
  font-size: 15px;
}
.criteria {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}
.criteria td {
  border-bottom: 1px solid #e4e7df;
  padding: 7px 0;
}
.criteria td:last-child {
  text-align: right;
}
.finding {
  border-bottom: 1px solid #e0e4d9;
  padding: 18px 0;
}
.finding p {
  margin: 6px 0;
}
.finding blockquote {
  margin: 10px 0;
  padding: 10px;
  border-left: 3px solid #c1cdb9;
  background: #f7f9f4;
  font-size: 13px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.version-note {
  background: #e8efe4;
  border-radius: 12px;
  padding: 20px;
}
.feedback {
  white-space: pre-wrap;
}
.loading {
  padding: 80px 20px;
  text-align: center;
}
dialog {
  border: 1px solid #cbd1c2;
  border-radius: 15px;
  padding: 26px;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow: auto;
  color: #19232c;
  background: #fffefb;
}
dialog::backdrop {
  background: #192d2470;
}
dialog h2 {
  margin-top: 0;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #173f32;
  color: #fff;
  border-radius: 10px;
  max-width: 90vw;
  display: none;
  z-index: 10;
}
#notice.error {
  background: #7c302a;
}
footer {
  max-width: 1360px;
  margin: auto;
  border-top: 1px solid #ddd;
  padding: 25px 36px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  color: #657068;
  font-size: 12px;
}
footer button {
  font-size: 12px;
  background: transparent;
}
details {
  margin: 15px 0;
}
summary {
  cursor: pointer;
  font-weight: bold;
}
.code {
  font-family: monospace;
  white-space: pre-wrap;
}
.show-mobile {
  display: none;
}
@media (max-width: 1050px) {
  .editor {
    grid-template-columns: 150px 1fr;
  }
  .preview-wrap {
    grid-column: 2;
  }
  .hero {
    gap: 30px;
  }
  .hero-sheet {
    padding: 24px !important;
  }
  .scores {
    grid-template-columns: 1fr;
  }
  .scores .panel {
    margin: 0;
  }
}
@media (max-width: 700px) {
  header {
    padding: 14px 16px;
  }
  .brand {
    font-size: 17px;
  }
  nav {
    gap: 5px;
  }
  nav a {
    display: none;
  }
  nav button {
    font-size: 12px;
    padding: 7px 8px;
  }
  main {
    padding: 25px 16px 40px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 0;
    gap: 25px;
  }
  .hero h1 {
    font-size: 41px;
  }
  .hero-sheet {
    transform: none;
    max-height: 410px;
  }
  .features,
  .split {
    grid-template-columns: 1fr;
  }
  .editor {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sections {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .sections button {
    flex-shrink: 0;
  }
  .preview-wrap {
    grid-column: 1;
    position: static;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .toolbar h1 {
    font-size: 25px;
  }
  .tabs {
    gap: 5px;
  }
  .tabs button {
    font-size: 12px;
    padding: 8px;
  }
  .show-mobile {
    display: block;
  }
  h1 {
    font-size: 34px;
  }
  .paper {
    padding: 23px;
  }
  .panel {
    padding: 18px;
  }
  footer {
    padding: 20px 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.template-swatch{height:136px;background:#fff;border:1px solid #ddd;padding:16px;text-align:left;font-size:10px;color:#19232c}.template-swatch span{display:block;font-size:15px;font-weight:bold}.template-swatch b{display:block;margin:8px 0 4px}.template-swatch i{display:block;background:#e5e5e5;height:3px;margin:5px 0;width:85%}.template-swatch.modern span,.template-swatch.modern b,.paper.modern h3{color:#214c43}.template-swatch.graduate span,.template-swatch.graduate b,.paper.graduate h2,.paper.graduate h3{color:#213f68}.template-swatch.technical span,.template-swatch.technical b,.paper.technical h2,.paper.technical h3{color:#263b4b}.template-swatch.hybrid span,.template-swatch.hybrid b,.paper.hybrid h2,.paper.hybrid h3{color:#493445}.paper.technical p{margin-bottom:6px}.paper.graduate h3{margin-top:20px}.candidate-photo{float:right;width:68px;height:85px;object-fit:contain;margin:0 0 15px 14px}.paper:after{content:"";display:block;clear:both}.paper section:first-of-type{clear:both}@media(max-width:600px){.template-grid{grid-template-columns:1fr}}
dialog:has(.template-grid){width:min(1080px,calc(100vw - 32px));max-width:1080px}

/* Shared Resume Lab identity, including narrow mobile navigation. */
.brand { min-width: 0; flex-shrink: 1; }
.resume-lab-logo { display: block; width: 205px; max-width: 100%; height: auto; }
header > nav { flex-shrink: 0; }
@media (max-width: 700px) { .resume-lab-logo { width: 150px; } header { gap: 8px; } }
@media (max-width: 359px) { header { flex-wrap: wrap; } header > nav { margin-left: auto; } }

