/* NetTarius Career Pathways mockup.
   Layout idea: a public recruitment site and a staff console sharing one header; forms in a single
   readable column, staff screens in dense tables and two-column detail pages. Single light theme by choice. */
:root {
  color-scheme: light;
  --navy: #142C49;
  --blue: #176A9B;
  --teal: #16847C;
  --ink: #17263a;
  --muted: #5b6878;
  --line: #d9e0e8;
  --line-soft: #e9eef3;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --tint: #eaf2f8;
  --good: #1c7a45;   --good-bg: #e3f3ea;
  --warn: #8a5a00;   --warn-bg: #fff3d6;
  --bad: #a3271f;    --bad-bg: #fbe6e3;
  --demo: #3b2a63;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(26px, 4vw, 34px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--blue); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { justify-content: space-between; }
.grow { flex: 1 1 220px; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.num { font-variant-numeric: tabular-nums; }
.kicker { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: var(--teal); }

/* Demo bar: marks everything as a mockup and holds the role switch and the simulated clock */
#demo-bar { display: none; }
#demo-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding-top: 7px; padding-bottom: 7px; }
#demo-bar strong { font-weight: 700; }
#demo-bar select, #demo-bar button { font: inherit; border-radius: 6px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12); color: #fff; padding: 4px 8px; min-height: 30px; cursor: pointer; }
#demo-bar select option { color: #111; }
#demo-bar .sp { flex: 1 1 auto; }

/* Header */
#site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
#site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { height: 44px; width: auto; }
.brand b { font-family: var(--font-display); font-size: 17px; display: block; line-height: 1.1; }
.brand span { font-size: 12px; color: var(--muted); }
nav.main { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; align-items: center; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14.5px; padding: 8px 10px; border-radius: 8px; }
nav.main a:hover { background: var(--tint); }
nav.main a[aria-current="page"] { color: var(--blue); background: var(--tint); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 15px var(--font-body); min-height: 44px; padding: 9px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--blue); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: #126f68; }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.danger { color: var(--bad); border-color: #e0b4af; }
.btn.small { min-height: 34px; padding: 5px 11px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* Cards, chips, notes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--line-soft); color: var(--ink); white-space: nowrap; }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--tint); color: var(--blue); }
.note { border-left: 4px solid var(--blue); background: var(--tint); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14.5px; }
.note.warn { border-color: #d49a00; background: var(--warn-bg); }
.note.bad { border-color: var(--bad); background: var(--bad-bg); }
.note.good { border-color: var(--good); background: var(--good-bg); }
.note.demo { border-color: var(--demo); background: #efeaf8; }

/* Forms */
label.field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14.5px; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 13.5px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  font: 16px var(--font-body); color: var(--ink); background: #fff; border: 1px solid #b9c3cf; border-radius: 8px; padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; cursor: pointer; }
.opt input { margin-top: 4px; }
.opt.sel { border-color: var(--teal); background: #eef8f6; }

/* Stepper */
.steps { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; overflow-x: auto; }
.steps li { flex: 1 0 auto; min-width: 86px; font-size: 12.5px; font-weight: 600; color: var(--muted); border-top: 4px solid var(--line); padding-top: 6px; }
.steps li.done { border-color: var(--teal); color: var(--teal); }
.steps li.now { border-color: var(--navy); color: var(--navy); }

/* Landing */
.hero { background: linear-gradient(120deg, var(--navy) 0%, #1b4268 60%, var(--blue) 100%); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 46px); }
.hero p.lead { font-size: 18px; color: #dbe7f1; max-width: 34em; }
.hero .stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 6px; }
.hero .stats b { display: block; font: 700 30px var(--font-display); }
.hero .stats span { font-size: 13.5px; color: #c7d7e5; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.rack { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 16px; }
.rack svg { display: block; width: 100%; height: auto; }
section.band { padding: 44px 0; }
section.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how { counter-reset: how; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.how li { counter-increment: how; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.how li::before { content: counter(how); display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 8px; }
details.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
details.faq summary { font-weight: 600; cursor: pointer; }
details.faq p { margin-top: 8px; color: var(--muted); max-width: 65ch; }
.sticky-apply { display: none; }

/* Scheduling */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.day { flex: 0 0 auto; min-width: 92px; text-align: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; }
.day b { display: block; font-size: 18px; }
.day.sel { background: var(--navy); border-color: var(--navy); color: #fff; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.time { min-height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font: 600 15px var(--font-body); cursor: pointer; color: var(--navy); }
.time.sel { background: var(--teal); border-color: var(--teal); color: #fff; }
.time[disabled] { background: var(--line-soft); color: #9aa5b1; text-decoration: line-through; cursor: not-allowed; }

/* Staff */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tile b { display: block; font: 700 28px var(--font-display); color: var(--navy); }
.tile span { font-size: 13.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f8fafc; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
.two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { font: 600 14px var(--font-body); padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); min-height: 38px; }
.tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.bar { height: 10px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal); }
.rate { display: flex; gap: 6px; }
.rate label { position: relative; width: 42px; height: 40px; border: 1px solid var(--line); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: #fff; cursor: pointer; }
.rate label.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rate input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rate label:focus-within { outline: 3px solid #f0a500; outline-offset: 2px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.timeline li { border-top: 5px solid var(--line); padding-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.timeline li.done { border-color: var(--teal); color: var(--teal); }
.timeline li.now { border-color: var(--navy); color: var(--navy); }
.qr { width: 132px; height: 132px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px; }
pre.file { background: #0f2238; color: #e6eef6; padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 12.5px; max-height: 260px; white-space: pre-wrap; word-break: break-word; }

/* Modal and toast */
.modal-back { position: fixed; inset: 0; background: rgba(15, 30, 50, .55); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 12px; padding: 20px; width: min(680px, 100%); display: flex; flex-direction: column; gap: 12px; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14.5px; max-width: min(92vw, 520px); z-index: 60; display: none; }
#toast.show { display: block; }
#site-foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
#site-foot .wrap { padding-top: 18px; padding-bottom: 28px; font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.page { padding: 28px 0; }

@media (max-width: 820px) {
  .hero .wrap, .two { grid-template-columns: 1fr; }
  .rack { display: none; }
  nav.main { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  nav.main a { white-space: nowrap; }
  .sticky-apply { display: block; position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; z-index: 15; }
  .sticky-apply .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .time, .day { transition: background .12s, border-color .12s; } }

.qr svg { width: 100%; height: 100%; display: block; }
nav.main .link { font-size: 14.5px; }
nav.main .link, nav.main .btn { white-space: nowrap; }
@media (max-width: 820px) { nav.main a { padding: 8px 7px; } nav.main .link { padding: 8px 7px !important; } }
