:root{
  /* Palette */
  --p-gold: #DEB25B;
  --p-yellow:#EDE779;
  --p-lime:  #CAD670;
  --p-teal:  #4AA67F;
  --p-deep:  #308C7F;

  /* Neutrals */
  --ink: #073b37;         /* deep readable green */
  --muted:#2b5e58;
  --card: rgba(255,255,255,.86);
  --line: rgba(7,59,55,.14);

  /* Effects */
  --shadow: 0 18px 50px rgba(7,59,55,.14);
  --radius: 20px;
  --ring: rgba(48,140,127,.28);

  /* Layout */
  --wrap: 1120px;
  --pad: clamp(18px, 3.2vw, 28px);
  --gap: clamp(12px, 2.4vw, 18px);

  /* Background */
  --bg:
    radial-gradient(1100px 520px at 85% 10%, rgba(237,231,121,.55), transparent 60%),
    radial-gradient(900px 460px at 10% 20%, rgba(202,214,112,.45), transparent 55%),
    radial-gradient(900px 460px at 80% 70%, rgba(74,166,127,.22), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,1), rgba(237,231,121,.18));
}

/* Base */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: "Calibri Light","Calibri","Segoe UI",Arial,sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}
b, strong{ font-weight: 600; }
a{ color: inherit; }
:focus-visible{ outline: 3px solid var(--ring); outline-offset: 3px; }

/* Container */
.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--pad);
}

/* Header */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: var(--gap);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.logo{
  width:46px; height:46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--p-deep), var(--p-teal), var(--p-lime));
  box-shadow: 0 16px 34px rgba(48,140,127,.25);
}
.brand .name{ font-weight: 700; letter-spacing: .2px; }
.brand .tag{ color: var(--muted); font-size: .98rem; line-height: 1.3; }

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.pill{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  text-decoration:none;
  font-weight: 600;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.pill:hover{
  transform: translateY(-1px);
  border-color: rgba(48,140,127,.35);
  background: rgba(255,255,255,.84);
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.6vw, 22px);
}
.hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--gap);
  align-items: stretch;
}

/* Typography */
h1{
  margin:0 0 10px;
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  line-height: 1.18;
  font-weight: 800; /* Calibri Light is thin; headings need presence */
}
h2, h3{ font-weight: 700; }
.sub{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.10rem);
  line-height: 1.85;
}

/* Chips */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:0;
  margin: 0 0 16px;
}
.chip{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(48,140,127,.25);
  background: rgba(202,214,112,.22);
  font-weight: 700;
  font-size: .92rem;
}

/* CTA blocks */
.splitCtas{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: 6px;
}
.ctaCard{
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
  padding: 16px;
  transition: transform .18s ease, border-color .18s ease;
}
.ctaCard:hover{
  transform: translateY(-2px);
  border-color: rgba(48,140,127,.35);
}
.ctaCard h2{ margin:0 0 6px; font-size: 1.12rem; }
.ctaCard p{ margin:0 0 12px; color: var(--muted); line-height: 1.8; }

/* Buttons */
.btnRow, .ctaRow{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration:none;
  border: 0;
  cursor:pointer;
  user-select:none;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
  min-height: 44px; /* mobile tap target */
}
.btnPrimary{
  background: linear-gradient(135deg, var(--p-deep), var(--p-teal));
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(48,140,127,.25);
}
.btnPrimary:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.btnGhost{
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
}
.btnGhost:hover{ transform: translateY(-1px); border-color: rgba(48,140,127,.30); }

/* Steps */
.steps{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.step{
  display:flex; gap:12px; align-items:flex-start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.56);
}
.num{
  width:32px; height:32px;
  border-radius: 12px;
  background: rgba(48,140,127,.15);
  color: var(--p-deep);
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
  flex: 0 0 auto;
}
.step b{ display:block; margin-bottom: 2px; }
.step span{ color: var(--muted); line-height: 1.75; }

/* Grids */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: var(--gap);
}
.miniCard{
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 16px;
  background: rgba(255,255,255,.70);
}
.miniCard h3{ margin:0 0 6px; font-size: 1.05rem; }
.miniCard p{ margin:0; color: var(--muted); line-height: 1.85; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.list{
  margin:0;
  padding: 0 18px 0 0;
  color: var(--muted);
  line-height: 1.95;
}

/* Rubric */
.rubric{
  margin-top: var(--gap);
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.rub{
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(237,231,121,.18);
  padding: 16px;
}
.rub b{ display:block; margin-bottom: 4px; }
.rub span{ color: var(--muted); line-height: 1.75; }

/* Details */
details{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.70);
  margin-top: 12px;
}
summary{ cursor:pointer; font-weight: 800; }
details p{ margin: 10px 0 0; color: var(--muted); line-height: 1.85; }

/* Footer */
footer{
  margin-top: calc(var(--gap) + 6px);
  text-align:center;
  color: var(--muted);
  font-size:.95rem;
  line-height: 1.8;
}

/* Dark mode page (Candidates) */
body.dark{
  --ink: #eef8f3;
  --muted: rgba(238,248,243,.80);
  --card: rgba(8, 45, 42, .55);
  --line: rgba(237,231,121,.22);
  --shadow: 0 22px 60px rgba(0,0,0,.35);
  background:
    radial-gradient(1000px 520px at 85% 10%, rgba(237,231,121,.18), transparent 60%),
    radial-gradient(900px 460px at 10% 20%, rgba(74,166,127,.22), transparent 55%),
    radial-gradient(900px 460px at 75% 75%, rgba(222,178,91,.12), transparent 55%),
    linear-gradient(180deg, #052a28, #031716);
}
body.dark .pill{ background: rgba(255,255,255,.06); }
body.dark .btnGhost{ background: rgba(255,255,255,.06); }
body.dark .chip{ background: rgba(74,166,127,.18); border-color: rgba(237,231,121,.22); }
body.dark .step{ background: rgba(255,255,255,.06); }
body.dark details{ background: rgba(255,255,255,.06); }

/* Forms */
form{ display:grid; gap: 12px; margin-top: 12px; }
label{ font-weight: 800; }
input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
  background: rgba(255,255,255,.92);
}
body.dark input, body.dark select, body.dark textarea{
  background: rgba(255,255,255,.10);
  color: var(--ink);
}
textarea{ min-height: 92px; resize: vertical; }
.row{ display:grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.hint{ color: var(--muted); font-size: .98rem; line-height: 1.7; }
.notice{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(202,214,112,.22);
  padding: 12px 14px;
}

/* Mobile improvements */
@media (max-width: 900px){
  header{ flex-direction: column; align-items:flex-start; }
  .nav{ justify-content:flex-start; }
  .hero{ grid-template-columns: 1fr; }
  .splitCtas{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .rubric{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .btnRow .btn, .ctaRow .btn{ width: 100%; }
  .pill{ width: auto; }
  .row{ grid-template-columns: 1fr; }
}
