/* Career Studio — scoped to .doc-app only. Do not style header/footer/site-shell. */

.doc-app {
  --doc-teal: #0b6862;
  --doc-teal-deep: #064542;
  --doc-ink: #142b2a;
  --doc-muted: #4f6763;
  --doc-line: #dbe7e3;
  --doc-canvas: #f4f7f5;
  --doc-white: #fff;
  --doc-yellow: #e3a928;
  --doc-shadow: 0 10px 28px rgba(14, 54, 50, .08);
}

/* Only the builder/content area — never body/html/footer */
.doc-app .page-wrap,
.doc-app .doc-builder {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
  color: var(--doc-ink);
  font: 400 15px/1.55 "DM Sans", system-ui, sans-serif;
}
.doc-app .page-wrap.narrow,
.doc-app .doc-builder { width: min(960px, calc(100% - 40px)); }

.doc-app .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--doc-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Hero only inside module index */
.doc-app .hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, #064542 0%, #0b6862 56%, #0d7a3e 100%);
  color: #fff;
}
.doc-app .hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  padding: 56px 0 60px;
}
.doc-app .hero .eyebrow { color: #f6d774; }
.doc-app .hero h1 {
  max-width: 710px;
  margin: 12px 0 12px;
  font: 800 clamp(32px, 4.5vw, 52px)/1.08 Manrope, "Libre Franklin", sans-serif;
  letter-spacing: -.04em;
}
.doc-app .hero p { max-width: 620px; margin: 0; color: #e0efea; font-size: 16px; }
.doc-app .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.doc-app .hero-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; color: #e1f2e9; font-size: 12px; }
.doc-app .hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* Buttons only inside module content — not .site-footer .btn */
.doc-app .page-wrap .btn,
.doc-app .doc-builder .btn,
.doc-app .hero .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform .15s, background .15s;
}
.doc-app .page-wrap .btn:hover,
.doc-app .doc-builder .btn:hover,
.doc-app .hero .btn:hover { transform: translateY(-1px); }
.doc-app .btn-primary { background: var(--doc-teal); color: #fff; }
.doc-app .btn-primary:hover { background: var(--doc-teal-deep); }
.doc-app .btn-yellow { background: var(--doc-yellow); color: #23332e; }
.doc-app .btn-white { background: #fff; color: var(--doc-teal-deep); }
.doc-app .btn-outline {
  background: transparent;
  border: 1px solid #b8ccc4;
  color: var(--doc-ink);
}
.doc-app .btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.doc-app .btn-lg { min-height: 48px; padding: 12px 20px; font-size: 14px; }

.doc-app .section-head { margin-bottom: 20px; }
.doc-app .section-head h2 {
  margin: 6px 0 0;
  font: 800 24px/1.2 Manrope, "Libre Franklin", sans-serif;
  letter-spacing: -.03em;
}
.doc-app .section-head p { max-width: 540px; margin: 6px 0 0; color: var(--doc-muted); font-size: 13px; }

.doc-app .doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.doc-app .service-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--doc-line);
  border-radius: 14px;
  background: var(--doc-white);
  box-shadow: 0 4px 14px rgba(24, 59, 50, .06);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.doc-app .service-card:hover {
  transform: translateY(-2px);
  border-color: #9bc9b9;
  box-shadow: var(--doc-shadow);
}
.doc-app .service-card.available { border-top: 3px solid var(--doc-teal); }
.doc-app .service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #e6f4ed;
  color: var(--doc-teal);
  font-size: 18px;
}
.doc-app .service-card h3 {
  margin: 14px 0 6px;
  font: 750 16px/1.25 Manrope, sans-serif;
}
.doc-app .service-card p { margin: 0; color: var(--doc-muted); font-size: 13px; }
.doc-app .service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--doc-teal);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.doc-app .service-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.doc-app .badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.doc-app .badge.free { background: #e7f6ee; color: #0b6b4a; }
.doc-app .badge.price { background: #eef4ff; color: #1e3a8a; }

.doc-app .notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #e6dfbd;
  border-radius: 10px;
  background: #fffbeb;
  color: #765e17;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.doc-app .notice.error { border-color: #f0c6c1; background: #fff6f5; color: #8c3b33; }
.doc-app .notice.ok { background: #e8f7ef; border-color: #9fd6b5; color: #0b5c3a; }

.doc-app .info-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.doc-app .info-item {
  padding: 14px;
  border: 1px solid var(--doc-line);
  border-radius: 12px;
  background: #fff;
}
.doc-app .info-item strong { display: block; margin-bottom: 4px; font-size: 13px; }
.doc-app .info-item span { color: var(--doc-muted); font-size: 12px; }

/* Create builder */
.doc-create .builder-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.doc-create .builder-hero-text { flex: 1 1 260px; }
.doc-create .builder-hero h1 {
  margin: 8px 0 8px;
  font: 800 clamp(24px, 3.5vw, 34px)/1.15 Manrope, "Libre Franklin", sans-serif;
  letter-spacing: -.03em;
}
.doc-create .builder-hero p { margin: 0; color: var(--doc-muted); max-width: 520px; font-size: 14px; }
.doc-create .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--doc-teal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.doc-create .usage-card {
  min-width: 200px;
  padding: 12px 14px;
  border: 1px solid var(--doc-line);
  border-radius: 12px;
  background: #fff;
}
.doc-create .usage-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--doc-teal-deep);
  font-size: 13px;
}
.doc-create .usage-dots { display: flex; gap: 5px; margin: 6px 0; }
.doc-create .usage-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5e4df;
  display: block;
}
.doc-create .usage-dots i.used { background: var(--doc-teal); }
.doc-create .usage-text { font-size: 12px; color: var(--doc-muted); }

.doc-create .builder-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.doc-create .builder-layout.has-preview {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
}
.doc-create .form-card {
  padding: 18px 18px 20px;
  border: 1px solid var(--doc-line);
  border-radius: 14px;
  background: #fff;
}
.doc-create .form-section {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--doc-line);
}
.doc-create .form-section:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.doc-create .step-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.doc-create .step-badge {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--doc-teal);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.doc-create .step-head h2 { margin: 0 0 3px; font: 750 15px/1.25 Manrope, sans-serif; }
.doc-create .step-head p { margin: 0; color: var(--doc-muted); font-size: 12px; }
.doc-create .step-head em { font-style: normal; color: var(--doc-muted); font-weight: 500; }

.doc-create .field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.doc-create .field { display: block; }
.doc-create .field.full { grid-column: 1 / -1; margin-top: 10px; }
.doc-create .field-label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--doc-ink);
}
.doc-create .field-label em { font-style: normal; font-weight: 500; color: var(--doc-muted); }
.doc-create .input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8e2de;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}
.doc-create .input-wrap i { color: #7a9088; font-size: 14px; }
.doc-create .input-wrap input {
  border: 0;
  outline: none;
  min-height: 40px;
  width: 100%;
  background: transparent;
  font: inherit;
  color: var(--doc-ink);
}
.doc-create textarea {
  width: 100%;
  border: 1px solid #d8e2de;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
  color: var(--doc-ink);
  resize: vertical;
  min-height: 88px;
}
.doc-create textarea:focus,
.doc-create .input-wrap:focus-within {
  border-color: #7dbfa6;
  box-shadow: 0 0 0 3px rgba(11, 104, 98, .12);
}

.doc-create .template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.doc-create .template-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--doc-line);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}
.doc-create .template-card input { position: absolute; opacity: 0; pointer-events: none; }
.doc-create .template-card:has(input:checked) {
  border-color: var(--doc-teal);
  box-shadow: 0 0 0 2px rgba(11, 104, 98, .2);
}
.doc-create .template-preview {
  display: block;
  height: 56px;
  border-radius: 6px;
  background: #f7faf8;
  border: 1px solid #e3ece8;
  padding: 8px;
}
.doc-create .template-preview .tpl-bar {
  display: block;
  height: 7px;
  width: 42%;
  background: var(--doc-teal);
  border-radius: 3px;
  margin-bottom: 6px;
}
.doc-create .template-preview .tpl-line {
  display: block;
  height: 4px;
  background: #d5e2dc;
  border-radius: 2px;
  margin-bottom: 5px;
}
.doc-create .template-preview .tpl-line.short { width: 60%; }
.doc-create .template-card strong { font-size: 12px; }
.doc-create .template-card small { color: var(--doc-muted); font-size: 11px; }
.doc-create .template-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--doc-teal);
  color: #fff;
  display: none;
  place-items: center;
  font-size: 11px;
}
.doc-create .template-card:has(input:checked) .template-check { display: grid; }

.doc-create .upload-priority {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px dashed #7dbfa6;
  border-radius: 12px;
  background: #f3faf6;
}
.doc-create .file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.doc-create .file-label input { display: none; }
.doc-create .upload-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #cfe6dc;
  display: grid;
  place-items: center;
  color: var(--doc-teal);
  font-size: 16px;
}
.doc-create .upload-copy strong { display: block; font-size: 13px; }
.doc-create .upload-copy small { color: var(--doc-muted); font-size: 11px; }
.doc-create .upload-name { display: block; margin-top: 8px; font-size: 12px; color: var(--doc-muted); }
.doc-create .upload-name.has-file { color: var(--doc-teal-deep); font-weight: 600; }
.doc-create .or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
  color: var(--doc-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.doc-create .or-divider::before,
.doc-create .or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--doc-line);
}

/* Compact job autocomplete */
.doc-create .job-ac {
  margin: 0 0 14px;
  position: relative;
}
.doc-create .job-ac-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}
.doc-create .job-ac-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.doc-create .job-ac-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #d8e2de;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  min-height: 40px;
}
.doc-create .job-ac-input-wrap:focus-within {
  border-color: #7dbfa6;
  box-shadow: 0 0 0 3px rgba(11, 104, 98, .12);
}
.doc-create .job-ac-input-wrap i { color: #7a9088; margin-right: 8px; }
.doc-create .job-ac-input-wrap input {
  border: 0;
  outline: none;
  width: 100%;
  min-height: 38px;
  font: inherit;
  background: transparent;
}
.doc-create .job-ac-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--doc-line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(14, 54, 50, .12);
  display: none;
}
.doc-create .job-ac-dropdown.is-open { display: block; }
.doc-create .job-ac-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eef3f1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.doc-create .job-ac-item:last-child { border-bottom: 0; }
.doc-create .job-ac-item:hover,
.doc-create .job-ac-item.is-active { background: #f3faf6; }
.doc-create .job-ac-item strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--doc-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-create .job-ac-item span {
  font-size: 11px;
  color: var(--doc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-create .job-ac-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--doc-muted);
}
.doc-create .job-selected {
  display: none;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e8f7ef;
  border: 1px solid #b7e0c8;
  color: #0b5c3a;
  font-size: 12px;
  align-items: center;
  gap: 8px;
}
.doc-create .job-selected.is-visible { display: flex; }
.doc-create .job-selected strong { font-weight: 700; }
.doc-create .job-selected .job-selected-meta {
  color: #3d7a5f;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-create .job-selected button {
  border: 0;
  background: transparent;
  color: var(--doc-teal);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  flex-shrink: 0;
}
.doc-create .job-paste-toggle {
  margin-top: 8px;
  border: 0;
  background: none;
  color: var(--doc-teal);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.doc-create .job-paste-panel { margin-top: 8px; display: none; }
.doc-create .job-paste-panel.is-open { display: block; }

.doc-create .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.doc-create .form-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: #8c3b33;
  min-height: 1.2em;
}
.doc-create .form-status.ok { color: #0b5c3a; }
.doc-create .char-count {
  display: block;
  text-align: right;
  font-size: 11px;
  color: var(--doc-muted);
  margin-top: 3px;
}

.doc-create .preview-panel {
  display: none;
  border: 1px solid var(--doc-line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  position: sticky;
  top: 88px;
}
.doc-create .builder-layout.has-preview .preview-panel { display: block; }
.doc-create .preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.doc-create .preview-head h2 { margin: 2px 0 0; font: 750 15px Manrope, sans-serif; }
.doc-create .preview-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--doc-muted);
  font-size: 13px;
  background: #f7faf8;
  border-radius: 10px;
}
.doc-create .preview-paper {
  max-height: 70vh;
  overflow: auto;
  background: #eef2f0;
  padding: 12px;
  border-radius: 10px;
}
.doc-create .preview-paper .document-paper {
  background: #fff;
  padding: 18px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  font-size: 12px;
  line-height: 1.45;
}

.doc-app .stats-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0 28px;
}
.doc-app .stats-table th,
.doc-app .stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--doc-line);
  text-align: left;
  font-size: 13px;
}
.doc-app .stats-table th { background: #eef6f2; font-weight: 700; }

@media (max-width: 1023px) {
  .doc-create .builder-layout.has-preview { grid-template-columns: 1fr; }
  .doc-create .preview-panel { position: static; }
}
@media (max-width: 720px) {
  .doc-app .doc-grid { grid-template-columns: 1fr; }
  .doc-app .info-strip { grid-template-columns: 1fr; }
  .doc-create .field-grid { grid-template-columns: 1fr; }
  .doc-create .template-grid { grid-template-columns: 1fr 1fr; }
  .doc-app .page-wrap,
  .doc-app .doc-builder { width: calc(100% - 28px); padding: 20px 0 40px; }
}

.doc-create .edit-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--doc-muted);
  font-weight: 500;
}
.doc-create #editable-doc {
  outline: none;
  min-height: 120px;
}
.doc-create #editable-doc:focus {
  box-shadow: inset 0 0 0 2px rgba(11, 104, 98, 0.25);
  border-radius: 6px;
}
.doc-create .preview-paper {
  cursor: text;
}