/* CareerAlternative, one stylesheet for every page. Mobile first, logical properties, both directions. */
:root {
  --teal: #12343B;
  --terracotta: #B5562B;
  --tint: #EEF3F2;
  --bg: #FFFFFF;
  --ink: #1B2A2F;
  --slate: #4F6B72;
  --line: #D6E0DE;
  --max: 680px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', 'Geeza Pro', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: start;
}

/* Hide text until the content file has filled the page, so no half-filled flash. */
html:not(.ready) [data-i18n],
html:not(.ready) [data-i18n-list] { visibility: hidden; }

[hidden] { display: none !important; }

h1, h2, h3 { color: var(--teal); line-height: 1.25; margin: 0 0 0.75rem; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
a { color: var(--teal); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 1rem; }

/* Header: name on one side, language switch on the other. */
.site-header {
  border-block-end: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.lang-switch {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  font: inherit;
  font-size: 0.95rem;
  min-height: 40px;
  padding: 0 0.9rem;
  cursor: pointer;
}

main { padding-block: 1.5rem 2.5rem; }
section { margin-block-end: 2.5rem; }

/* Hero */
.hero h1 { font-size: 2rem; margin-block-end: 0.75rem; }
.hero .sub { font-size: 1.15rem; color: var(--slate); }
.dates, .closed-line { color: var(--slate); font-size: 0.95rem; margin-block-start: 0.75rem; }

/* Buttons */
.btn {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  background: var(--terracotta);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: #9c4722; }
.btn-quiet {
  display: inline-block;
  min-height: 48px;
  padding: 0.75rem 0;
  background: none;
  border: 0;
  color: var(--teal);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
section > .btn { margin-block-start: 1.25rem; }
@media (min-width: 600px) {
  .btn { display: inline-block; width: auto; min-width: 260px; }
}

/* Now / you get rows */
.row-pair {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.25rem 0.75rem;
  background: var(--tint);
  border-radius: 12px;
  padding: 1rem;
  margin-block-end: 0.75rem;
}
.row-pair .num {
  grid-row: 1 / span 2;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--terracotta);
  line-height: 1.2;
}
.row-pair .label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
}
.row-pair .now { color: var(--slate); }
.row-pair .get { color: var(--ink); font-weight: 600; }
.row-pair p { margin: 0; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  padding-block: 0.75rem;
  border-block-end: 1px solid var(--line);
}
.step:last-child { border-block-end: 0; }
.step .num {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-weight: 700;
  display: grid; place-items: center;
}
.step p { margin: 0; padding-block-start: 0.25rem; }

/* Cards and the dark panel */
.card {
  background: var(--tint);
  border-radius: 12px;
  padding: 1.25rem;
}
.panel-dark {
  background: var(--teal);
  color: #fff;
  border-radius: 12px;
  padding: 1.25rem;
}
.panel-dark h2 { color: #fff; }
.panel-dark ul { margin: 0; padding-inline-start: 1.25rem; }
.panel-dark li { margin-block-end: 0.5rem; }
.panel-dark li::marker { color: #E8A27A; }

/* Questions */
.faq details {
  border-block-end: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  min-height: 48px;
  padding-block: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--terracotta); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 1rem; color: var(--ink); }

/* Privacy sections */
.section-list h2 { margin-block-start: 1.5rem; font-size: 1.15rem; }

/* Footer */
.site-footer {
  border-block-start: 1px solid var(--line);
  padding-block: 1.5rem 2rem;
  color: var(--slate);
  font-size: 0.95rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-block-end: 0.75rem;
}
.site-footer a { min-height: 48px; display: inline-flex; align-items: center; }
.site-footer p { margin: 0; }

/* Forms (shared by later slices) */
.field { margin-block-end: 1.25rem; }
.field label { display: block; font-weight: 600; margin-block-end: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--slate);
  border-radius: 8px;
}
.field textarea { min-height: 7rem; }
.hint { color: var(--slate); font-size: 0.9rem; margin-block-start: 0.25rem; }
.error { color: var(--terracotta); font-size: 0.95rem; margin-block-start: 0.25rem; }
.choice, .tick {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-block-end: 0.5rem;
  cursor: pointer;
}
.choice input, .tick input { width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; flex: none; }
.choice:has(input:checked) { border-color: var(--terracotta); background: var(--tint); }
.upload { border: 2px dashed var(--line); border-radius: 8px; padding: 1rem; text-align: center; }
.progress { color: var(--slate); font-size: 0.9rem; margin-block-end: 0.5rem; }
.saved { color: var(--slate); font-size: 0.85rem; }
.reading { background: var(--tint); border-radius: 12px; padding: 1.25rem; }
.code {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  text-align: center;
  direction: ltr;
  padding: 1rem;
  border: 2px solid var(--terracotta);
  border-radius: 12px;
}
.table-task { overflow-x: auto; }
.table-task table { border-collapse: collapse; min-width: 100%; }
.table-task th, .table-task td { padding: 0.5rem 0.65rem; border-block-end: 1px solid var(--line); text-align: start; white-space: nowrap; }
.table-task th { background: var(--tint); color: var(--teal); }

/* Staff (used from slice 4) */
.queue td, .queue th { padding: 0.5rem; }
.rubric { font-size: 0.95rem; }
.score-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.score-pick button { min-height: 56px; font: inherit; font-size: 1.3rem; font-weight: 700; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.score-pick button[aria-pressed="true"] { border-color: var(--terracotta); background: var(--tint); }
.flag { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--terracotta); color: #fff; font-size: 0.85rem; }

@media print {
  .site-header, .site-footer, .btn { display: none; }
  body { font-size: 11pt; }
}

/* Registration */
fieldset.field { border: 0; padding: 0; margin-inline: 0; }
legend { font-weight: 600; margin-block-end: 0.35rem; padding: 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.step-panel .btn { margin-block-start: 0.5rem; }
.step-panel .btn-quiet { display: block; margin-block-start: 0.5rem; }
[aria-invalid="true"] { border-color: var(--terracotta); }
