* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: #f4f4f1;
  color: #1a1a1a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
a { color: #0b4f9c; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #0b4f9c;
  outline-offset: 2px;
}
.site-head, .compare, .site-foot { max-width: 1200px; margin: 0 auto; padding: 16px 20px; }
.site-head h1 { margin: 8px 0 4px; font-size: 1.9rem; }
.offer { margin: 0 0 6px; font-size: 1.1rem; }
.note { margin: 0; color: #333; font-size: 0.95rem; }

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }

.editor { background: #fff; border: 1px solid #c9c9c4; border-radius: 6px; padding: 16px; }
.saved-note { margin: 0 0 10px; font-size: 0.9rem; color: #333; }
fieldset { border: 1px solid #c9c9c4; border-radius: 6px; margin: 0 0 14px; padding: 10px 12px 12px; }
legend { font-weight: 700; padding: 0 6px; }
label { display: block; margin: 8px 0 2px; font-size: 0.92rem; font-weight: 600; }
input[type="text"], textarea, select {
  width: 100%;
  font: inherit;
  padding: 7px 8px;
  border: 1px solid #6b6b66;
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
}
textarea { resize: vertical; }
.entry { border: 1px dashed #8a8a84; border-radius: 6px; padding: 8px 10px 10px; margin-bottom: 10px; }
.entry h3 { margin: 0 0 2px; font-size: 1rem; }
.btn {
  font: inherit;
  padding: 8px 14px;
  border: 1px solid #1a1a1a;
  background: #fff;
  color: #1a1a1a;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
}
.btn:hover { background: #ececE8; }
.btn.primary { background: #0b4f9c; border-color: #0b4f9c; color: #fff; font-weight: 700; }
.btn.primary:hover { background: #093f7d; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.privacy { font-size: 0.9rem; color: #333; margin: 8px 0 0; }

.preview-title { margin: 0 0 8px; font-size: 1.1rem; }
.sheet {
  background: #fff;
  border: 1px solid #c9c9c4;
  padding: 0.6in;
  min-height: 9in;
  color: #000;
  overflow-wrap: anywhere;
}
.compare { margin-top: 10px; border-top: 1px solid #c9c9c4; }
.compare h2 { font-size: 1.3rem; }
.compare p { max-width: 70ch; }
.site-foot { padding-bottom: 40px; }

/* Resume sheet templates: real text, single column, no tables or images */
.sheet h1, .sheet h2, .sheet h3, .sheet p, .sheet ul { margin: 0; }
.sheet .r-name { font-size: 1.7em; font-weight: 700; }
.sheet .r-contact { margin-top: 4px; }
.sheet .r-sec { margin-top: 14px; }
.sheet .r-sec-title { font-size: 1.05em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.sheet .r-entry { margin-bottom: 8px; break-inside: avoid; page-break-inside: avoid; }
.sheet .r-head { font-weight: 700; }
.sheet .r-sub { font-style: italic; }
.sheet ul { padding-left: 1.2em; margin-top: 3px; }
.sheet li { margin-bottom: 1px; }

.t-classic { font-family: Georgia, "Times New Roman", Times, serif; font-size: 11pt; line-height: 1.35; }
.t-clean { font-family: Arial, Helvetica, "Segoe UI", sans-serif; font-size: 10.5pt; line-height: 1.4; }
.t-clean .r-sec-title { border-bottom: 1px solid #000; padding-bottom: 2px; }
.t-compact { font-family: Arial, Helvetica, "Segoe UI", sans-serif; font-size: 9.5pt; line-height: 1.25; }
.t-compact .r-name { font-size: 1.5em; }
.t-compact .r-sec { margin-top: 8px; }
.t-compact .r-sec-title { margin-bottom: 3px; }
.t-compact .r-entry { margin-bottom: 5px; }

@page { size: letter; margin: 0.6in; }
@media print {
  html, body { background: #fff; }
  .site-head, .editor, .preview-title, .compare, .site-foot { display: none !important; }
  .layout { display: block; max-width: none; padding: 0; margin: 0; }
  .preview-wrap { display: block; }
  .sheet { border: 0; padding: 0; min-height: 0; }
}
