/* Job offer check: the salary page's shared visual style and stacked tables. */
:root {
  --bg: #F2F5F3; --surface: #FFFFFF; --surface-2: #E9EFEC; --ink: #14231D; --ink-2: #3E4C46; --muted: #5E6D66;
  --line: #D6DED9; --accent: #0E7C6B; --accent-strong: #0A5F52; --accent-soft: #DCEFEA; --warn: #B84A2B; --warn-soft: #F6E3DB;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark; --bg: #0F1714; --surface: #172119; --surface-2: #1F2B25; --ink: #E8EEEA; --ink-2: #C2CCC6; --muted: #93A199;
    --line: #2A372F; --accent: #3FB59A; --accent-strong: #63CDB4; --accent-soft: #183A32; --warn: #E4805E; --warn-soft: #3A241B;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* el formulario y la respuesta arrancan ocultos sin JS: una clase con display no debe ganarles */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--accent-strong); }
.wrap { width: min(980px, 100%); margin-inline: auto; padding-inline: 16px; }
.nav { border-block-end: 1px solid var(--line); background: var(--surface); }
.nav-inner { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.logo { font-weight: 800; text-decoration: none; color: var(--ink); }
.hero { padding-block: 20px 8px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
h1 { font-size: clamp(26px, 6vw, 38px); line-height: 1.15; margin: 6px 0 8px; }
.lede { color: var(--ink-2); max-width: 70ch; margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-block: 16px; }
.se-form { display: grid; gap: 14px; }
.se-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.se-form legend, .se-form label.field { font-weight: 650; font-size: 15px; margin-block-end: 4px; }
.se-form .field-row { display: grid; gap: 4px; }
.se-form input[type="text"], .se-form select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); min-height: 44px; width: 100%; max-width: 420px; }
.se-form .choice { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.se-form .help { color: var(--muted); font-size: 14px; }
.se-error { color: var(--warn); font-weight: 600; min-height: 1.5em; margin: 0; }
.se-section { margin-block: 18px; }
.table-scroll { overflow-x: auto; }
.se-table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--surface); }
.se-table caption { text-align: start; color: var(--muted); padding-block: 6px; }
.se-table th, .se-table td { border-block-end: 1px solid var(--line); padding: 8px 6px; text-align: start; vertical-align: top; }
.se-table td.num { text-align: end; white-space: nowrap; }
.se-table tfoot th, .se-table tfoot td { font-weight: 700; }
.tag { display: inline-block; font-size: 12px; font-weight: 650; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }
.se-notes { padding-inline-start: 20px; color: var(--ink-2); }
.se-notes li { margin-block: 6px; }
.se-levels { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.se-levels a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }
.se-faq dt { font-weight: 700; margin-block-start: 10px; }
.se-faq dd { margin: 4px 0 0; }
footer { color: var(--muted); font-size: 14px; padding-block: 24px; }

/* Keep each translated cost and its source readable at phone widths. Column labels
   come from the same dictionary as the table headings; all table semantics remain. */
[lang="en"][translate="no"] { unicode-bidi: isolate; }
@media (max-width: 560px) {
  .se-table:not(.jo-table), .se-table:not(.jo-table) caption, .se-table:not(.jo-table) tbody, .se-table:not(.jo-table) tfoot, .se-table:not(.jo-table) tr { display: block; width: 100%; }
  .se-table:not(.jo-table) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .se-table:not(.jo-table) tr { padding-block: 6px; border-block-end: 1px solid var(--line); }
  .se-table:not(.jo-table) th, .se-table:not(.jo-table) td { display: block; border: 0; overflow-wrap: anywhere; }
  .se-table:not(.jo-table) th[scope="row"] { font-weight: 700; }
  .se-table:not(.jo-table) td[data-label] { display: grid; grid-template-columns: minmax(78px, .8fr) minmax(0, 1.6fr); gap: 8px; }
  .se-table:not(.jo-table) td[data-label]::before { content: attr(data-label); text-align: start; color: var(--muted); font-weight: 500; }
  .se-table:not(.jo-table) td.num { white-space: normal; }
  .se-table:not(.jo-table) td:empty { display: none; }
  .table-scroll { overflow: visible; }
}

.se-form button { justify-self: start; font: inherit; font-weight: 700; color: var(--surface); background: var(--accent-strong); border: 0; border-radius: 10px; padding: 12px 18px; min-height: 44px; cursor: pointer; }
.se-form fieldset.home-fields { display: grid; gap: 12px; }
.se-form input[aria-invalid="true"] { border-color: var(--warn); }
.field-error:empty { display: none; }
/* Tablas de dos columnas (paquete y gratuity): quedan como tabla también en el teléfono. */
.jo-table th[scope="row"] { font-weight: 600; }
.jo-table thead th:last-child, .jo-table td.num { text-align: end; }
.se-form fieldset.jo-fields { display: grid; gap: 14px; }
.se-form button:disabled { opacity: .75; cursor: progress; }
.jo-link, .jo-links a { display: inline-flex; align-items: center; min-height: 44px; }
.jo-links { padding-inline-start: 20px; margin-block: 0; }
#jo-package { scroll-margin-block-start: 12px; }
#jo-results h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap, .card, .field-row, .se-form fieldset { min-width: 0; }
p, li, a { overflow-wrap: anywhere; }
