/* ============================================================================
 * MelóPont — bértárgyalás-segéd (bertargyalas.html + js/salary-coach.js) · SALARY-COACH-01
 * Előtag: mp-sc-. Tokenek: melopont-style.css :root. A navbar minden span/div/strong elemet
 * globálisan sötétre színez, ezért a színes háttéren lévő szövegek színét itt kifejezetten megadjuk.
 * Kártya-lekerekítés: css/card-radius.css (.mp-sc-card).
 * ========================================================================== */

.mp-sc-page { max-width: 760px; margin: 0 auto; padding: var(--mp-page-top) 16px 48px; box-sizing: border-box; }

/* ── Fejléc ── */
.mp-sc-private {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 14px;
  border-radius: 12px; background: var(--mp-green-light); font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.5;
}
.mp-sc-private, .mp-sc-private span { color: var(--mp-green-dark); }
.mp-sc-private svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--mp-green-dark); }

/* ── Kapcsolt álláshirdetés ── */
.mp-sc-job {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 14px 16px;
  border: 1px solid var(--mp-card-border); border-radius: 12px; background: var(--mp-white);
}
.mp-sc-job > svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--mp-blue); margin-top: 2px; }
.mp-sc-job > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-sc-job-k { font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; color: var(--mp-text-muted); }
.mp-sc-job a { font-size: calc(16px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-blue); text-decoration: none; overflow-wrap: anywhere; padding: 4px 0; }
.mp-sc-job a:hover { text-decoration: underline; }
.mp-sc-job-pay { font-size: calc(15px * var(--mp-fs, 1)); color: var(--mp-text-primary); }

/* ── Kártya ── */
.mp-sc-card {
  background: var(--mp-white); border: 1px solid var(--mp-card-border); border-radius: var(--mp-card-radius);
  box-shadow: var(--mp-card-shadow); padding: 20px; margin-bottom: 16px;
}
.mp-sc-title { display: flex; align-items: center; gap: 10px; font-size: calc(20px * var(--mp-fs, 1)); font-weight: 800; line-height: 1.3; margin: 0 0 12px; color: var(--mp-text-primary); }
/* SALARY-COACH-02: az ikon a saját dobozában, teljes magasságban (László 10.06: az ikon alja levágottnak látszott) */
.mp-sc-title svg { width: 24px; height: 24px; flex-shrink: 0; overflow: visible; color: var(--mp-blue); }
.mp-sc-title + .mp-sc-sub { margin-top: -6px; }
.mp-sc-sub { font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.5; margin: 0 0 14px; color: var(--mp-text-muted); }
.mp-sc-h3 { font-size: calc(17px * var(--mp-fs, 1)); font-weight: 700; margin: 18px 0 8px; color: var(--mp-text-primary); }
.mp-sc-muted { font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.5; color: var(--mp-text-muted); margin: 0; }

/* ── Űrlap ── */
.mp-sc-form { display: flex; flex-direction: column; gap: 20px; }
.mp-sc-form > .mp-sc-title { margin-bottom: -4px; }
.mp-sc-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.mp-sc-label { display: block; font-size: calc(16px * var(--mp-fs, 1)); font-weight: 700; margin-bottom: 8px; padding: 0; color: var(--mp-text-primary); }
.mp-sc-sublabel { display: block; font-size: calc(15px * var(--mp-fs, 1)); font-weight: 600; margin-bottom: 6px; color: var(--mp-text-primary); }
.mp-sc-req { color: var(--mp-red); }
.mp-sc-opt { font-weight: 500; color: var(--mp-text-muted); }
.mp-sc-hint { font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.5; margin: 0 0 10px; color: var(--mp-text-muted); }
.mp-sc-field > .mp-sc-hint:last-child, .mp-sc-amount + .mp-sc-hint { margin: 8px 0 0; }
.mp-sc-hint a, .mp-sc-from a { color: var(--mp-blue); font-weight: 600; }
.mp-sc-from { font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.5; margin: 10px 0 0; color: var(--mp-text-primary); }

.mp-sc-form input[type="text"], .mp-sc-form input[type="number"] {
  width: 100%; box-sizing: border-box; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--mp-input-border); border-radius: 12px; background: var(--mp-white);
  font: inherit; font-size: calc(17px * var(--mp-fs, 1)); color: var(--mp-text-primary);
}
.mp-sc-form input:hover { border-color: var(--mp-input-border-hover); }
.mp-sc-form input:focus { outline: none; border-color: var(--mp-blue); box-shadow: 0 0 0 3px var(--mp-blue-light); }
.mp-sc-form input[aria-invalid="true"] { border-color: var(--mp-red); }
.mp-sc-amount { position: relative; display: flex; align-items: center; }
.mp-sc-amount input { padding-right: calc(76px * var(--mp-fs, 1)) !important; }   /* a „Ft/hó” utótag a betűmérettel nő — a helye is */
.mp-sc-amount--short { max-width: calc(200px * var(--mp-fs, 1)); }
.mp-sc-amount--short input { padding-right: calc(48px * var(--mp-fs, 1)) !important; }
.mp-sc-suf { position: absolute; right: 14px; font-size: calc(15px * var(--mp-fs, 1)); font-weight: 600; color: var(--mp-text-muted); pointer-events: none; }
.mp-sc-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.mp-sc-pair--text { gap: 20px 12px; }
/* INPUT-STACK-01 (10.12, László: „mobilon ne legyen egymás mellett két beviteli mező — a beírt összegnek csak az utolsó
   3 jegyét láttuk”): telefonon (≤ 600 px) MINDEN mezőpár egymás alá kerül, teljes szélességben. */
@media (max-width: 600px) { .mp-sc-pair, .mp-sc-pair--text { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.mp-sc-err { margin: 8px 0 0; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; line-height: 1.45; color: var(--mp-red); }

.mp-sc-units { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }   /* STACK-01 (10.12, László: „ahol egymás mellett vannak a kártyák, legyenek egymás alatt”) */
.mp-sc-chip { position: relative; display: block; cursor: pointer; }
.mp-sc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mp-sc-chip > span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 10px;
  border: 1.5px solid var(--mp-card-border); border-radius: 12px; background: var(--mp-white);
  font-size: calc(15px * var(--mp-fs, 1)); font-weight: 600; line-height: 1.25; color: var(--mp-text-primary);
}
.mp-sc-chip:hover > span { border-color: var(--mp-blue); }
.mp-sc-chip input:focus-visible + span { outline: 3px solid var(--mp-blue-light); outline-offset: 2px; }
.mp-sc-chip input:checked + span { background: var(--mp-blue); border-color: var(--mp-blue); color: var(--mp-white); }

.mp-sc-extras { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
@media (min-width: 600px) { .mp-sc-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; } }
.mp-sc-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.mp-sc-check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--mp-blue); }
.mp-sc-check span { font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.4; color: var(--mp-text-primary); }

.mp-sc-ro { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; }
.mp-sc-ro strong { font-size: calc(18px * var(--mp-fs, 1)); color: var(--mp-text-primary); }
.mp-sc-ro-src { font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); }
.mp-sc-edit { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: calc(15px * var(--mp-fs, 1)); font-weight: 600; color: var(--mp-blue); text-decoration: none; }
.mp-sc-edit span { color: var(--mp-blue); }
.mp-sc-edit svg { width: 16px; height: 16px; }
.mp-sc-edit:hover span { text-decoration: underline; }

.mp-sc-alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--mp-red-light); font-size: calc(15px * var(--mp-fs, 1)); font-weight: 600; color: var(--mp-red-dark); }

.mp-sc-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 52px; padding: 12px 22px; border: 0; border-radius: var(--mp-radius-pill); cursor: pointer;
  background: var(--mp-blue); font: inherit; font-size: calc(17px * var(--mp-fs, 1)); font-weight: 700;
}
.mp-sc-submit, .mp-sc-submit span, .mp-sc-submit svg { color: var(--mp-white); }
.mp-sc-submit svg { width: 20px; height: 20px; }
.mp-sc-submit:hover { background: var(--mp-blue-hover); }
.mp-sc-submit:disabled { background: var(--mp-disabled-bg); cursor: not-allowed; }
.mp-sc-submit:disabled, .mp-sc-submit:disabled span, .mp-sc-submit:disabled svg { color: var(--mp-disabled-text); }

/* ── Eredmény: összegzés ── */
.mp-sc-result { scroll-margin-top: 72px; }
.mp-sc-verdict {
  margin: 4px 0 14px; padding: 14px 16px; border-radius: 12px;
  font-size: calc(17px * var(--mp-fs, 1)); font-weight: 700; line-height: 1.45;
}
.mp-sc-verdict.is-below { background: var(--mp-red-light); --mp-edge: var(--mp-red); color: var(--mp-red-dark); }
.mp-sc-verdict.is-in { background: var(--mp-orange-light); --mp-edge: var(--mp-orange); color: var(--mp-orange-dark); }
.mp-sc-verdict.is-top { background: var(--mp-green-light); --mp-edge: var(--mp-green); color: var(--mp-green-dark); }

.mp-sc-warns { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mp-sc-warn { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.5; }
.mp-sc-warn svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.mp-sc-warn.is-danger { background: var(--mp-red-light); }
.mp-sc-warn.is-danger, .mp-sc-warn.is-danger span, .mp-sc-warn.is-danger svg { color: var(--mp-red-dark); }
.mp-sc-warn.is-warn { background: var(--mp-orange-light); }
.mp-sc-warn.is-warn, .mp-sc-warn.is-warn span, .mp-sc-warn.is-warn svg { color: var(--mp-orange-dark); }
.mp-sc-warn.is-info { background: var(--mp-blue-light); }
.mp-sc-warn.is-info span { color: var(--mp-text-primary); }
.mp-sc-warn.is-info svg { color: var(--mp-blue); }

.mp-sc-figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; }
.mp-sc-fig { margin: 0; padding: 12px 14px; border: 1px solid var(--mp-card-border); border-radius: 12px; background: var(--mp-bg); min-width: 0; }
.mp-sc-fig dt { font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; color: var(--mp-text-muted); margin: 0 0 4px; }
.mp-sc-fig dd { margin: 0; font-size: calc(18px * var(--mp-fs, 1)); font-weight: 800; line-height: 1.25; color: var(--mp-text-primary); overflow-wrap: anywhere; }
.mp-sc-fig dd.mp-sc-fig-note { margin-top: 4px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 500; color: var(--mp-text-muted); }
.mp-sc-fig[data-sc-fig="counter"] { border-color: var(--mp-blue); background: var(--mp-blue-light); }
.mp-sc-fig[data-sc-fig="counter"] dd:not(.mp-sc-fig-note) { color: var(--mp-blue-hover); }
.mp-sc-fig[data-sc-fig="floor"] dd:not(.mp-sc-fig-note) { color: var(--mp-red-dark); }

/* ── Érvek, tippek, kérdések ── */
.mp-sc-args, .mp-sc-qs { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mp-sc-args { list-style: none; }
.mp-sc-args li { padding: 12px 14px; border-radius: 12px; background: var(--mp-bg); }
.mp-sc-args strong, .mp-sc-qs strong { display: block; font-size: calc(16px * var(--mp-fs, 1)); line-height: 1.4; margin-bottom: 2px; color: var(--mp-text-primary); }
.mp-sc-args span, .mp-sc-qs li > span { display: block; font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.5; color: var(--mp-text-primary); }
.mp-sc-qs { padding-left: 24px; }
.mp-sc-qs li { padding-left: 4px; font-size: calc(16px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-text-primary); }
.mp-sc-qs li::marker { color: var(--mp-blue); }
.mp-sc-qs li > span { font-weight: 400; color: var(--mp-text-muted); }
.mp-sc-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mp-sc-tips li { display: flex; align-items: flex-start; gap: 10px; font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.5; }
.mp-sc-tips li span { color: var(--mp-text-primary); }
.mp-sc-tips svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--mp-green); }

/* ── Levelek ── */
.mp-sc-letter { display: flex; flex-direction: column; gap: 10px; }
.mp-sc-letter pre {
  margin: 0; padding: 14px 16px; border: 1px solid var(--mp-card-border); border-radius: 12px; background: var(--mp-bg);
  font: inherit; font-size: calc(16px * var(--mp-fs, 1)); line-height: 1.6; color: var(--mp-text-primary);
  white-space: pre-wrap; overflow-wrap: break-word;
}
.mp-sc-nw { white-space: nowrap; }
.mp-sc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-sc-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border: 1.5px solid var(--mp-card-border); border-radius: var(--mp-radius-pill);
  background: var(--mp-white); cursor: pointer; font: inherit; font-size: calc(16px * var(--mp-fs, 1)); font-weight: 700; text-decoration: none;
}
.mp-sc-act, .mp-sc-act span, .mp-sc-act svg { color: var(--mp-text-primary); }
.mp-sc-act svg { width: 18px; height: 18px; }
.mp-sc-act:hover { background: var(--mp-bg); }
.mp-sc-act.is-primary { background: var(--mp-blue); border-color: var(--mp-blue); }
.mp-sc-act.is-primary, .mp-sc-act.is-primary span, .mp-sc-act.is-primary svg { color: var(--mp-white); }
.mp-sc-act.is-primary:hover { background: var(--mp-blue-hover); }
.mp-sc-saved {
  display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 12px 14px;
  border-radius: 12px; background: var(--mp-green-light); font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.5;
}
.mp-sc-saved > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--mp-green-dark); }
.mp-sc-saved span, .mp-sc-saved strong { color: var(--mp-green-dark); }
.mp-sc-linkbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none;
  cursor: pointer; font: inherit; font-size: calc(15px * var(--mp-fs, 1)); font-weight: 700; text-decoration: underline;
}
.mp-sc-linkbtn, .mp-sc-saved .mp-sc-linkbtn span, .mp-sc-linkbtn svg { color: var(--mp-red-dark); }
.mp-sc-linkbtn svg { width: 16px; height: 16px; }

/* ── Rövid útmutató ── */
.mp-sc-how { padding: 0; }
.mp-sc-how > summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 20px; cursor: pointer; list-style: none; }
.mp-sc-how > summary::-webkit-details-marker { display: none; }
.mp-sc-how > summary > svg:first-child { width: 22px; height: 22px; flex-shrink: 0; color: var(--mp-blue); }
.mp-sc-how-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mp-sc-how-t strong { font-size: calc(16px * var(--mp-fs, 1)); color: var(--mp-text-primary); }
.mp-sc-how-t span { font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); }
.mp-sc-how[open] .mp-sc-chev { transform: rotate(180deg); }
.mp-sc-steps { margin: 0; padding: 0 20px 18px 44px; display: flex; flex-direction: column; gap: 10px; }
.mp-sc-steps li { font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.5; color: var(--mp-text-primary); }
.mp-sc-steps li::marker { color: var(--mp-blue); font-weight: 700; }
.mp-sc-steps strong { display: block; font-size: calc(16px * var(--mp-fs, 1)); color: var(--mp-text-primary); }
.mp-sc-steps span { color: var(--mp-text-muted); }

.mp-sc-copy {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border: 1.5px solid var(--mp-blue); border-radius: var(--mp-radius-pill);
  background: var(--mp-white); cursor: pointer; font: inherit; font-size: calc(16px * var(--mp-fs, 1)); font-weight: 700;
}
.mp-sc-copy, .mp-sc-copy span, .mp-sc-copy svg { color: var(--mp-blue); }
.mp-sc-copy svg { width: 18px; height: 18px; }
.mp-sc-copy:hover { background: var(--mp-blue-light); }
.mp-sc-copy.is-done { border-color: var(--mp-green); }
.mp-sc-copy.is-done, .mp-sc-copy.is-done span, .mp-sc-copy.is-done svg { color: var(--mp-green-dark); }
.mp-sc-copy--wide { margin-top: 14px; }

.mp-sc-reply { border: 1px solid var(--mp-card-border); border-radius: 12px; margin-bottom: 10px; background: var(--mp-white); }
.mp-sc-reply:last-child { margin-bottom: 0; }
.mp-sc-reply > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 14px;
  cursor: pointer; list-style: none;
}
.mp-sc-reply > summary::-webkit-details-marker { display: none; }
.mp-sc-reply-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-sc-reply-t strong { font-size: calc(16px * var(--mp-fs, 1)); color: var(--mp-text-primary); }
.mp-sc-reply-t span { font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.45; color: var(--mp-text-muted); }
.mp-sc-chev { width: 20px; height: 20px; flex-shrink: 0; color: var(--mp-text-muted); transition: transform .15s ease; }
.mp-sc-reply[open] .mp-sc-chev { transform: rotate(180deg); }
.mp-sc-reply .mp-sc-letter { padding: 0 14px 14px; }

@media (max-width: 480px) {
  .mp-sc-page { padding-top: 12px; }
  .mp-sc-card { padding: 16px; }
  .mp-sc-copy--wide { width: 100%; }
  .mp-sc-acts > * { flex: 1 1 calc(50% - 4px); }
}
