.field{
  margin-top:10px;
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Libre+Baskerville:wght@400;700&display=swap');

:root{
  --green:#006F53;
  --gold:#9A722C;
  --gray:#4E4D49;
  --yellow:#EFBE05;
  --ink:#1b1b1b;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 300px at 50% -120px, rgba(0,111,83,.16), transparent 60%),
    linear-gradient(to bottom, #ffffff, #f6f7f6);
  color:var(--ink);
}

.container{
  max-width:980px;
  margin:32px auto;
  padding:0 20px 40px;
}

/* Skip link */
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:#fff;
  color:var(--ink);
  border:2px solid var(--yellow);
  padding:10px 12px;
  border-radius:10px;
  z-index:999;
}
.skip-link:focus{
  left:10px;
}

/* Screen-reader only */
.sr-only{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.header{
  position:relative;
  margin-bottom:18px;
  padding-top:14px;
}

.top-accent{
  height:6px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  opacity: .9;
  margin: 0 auto 18px;
  max-width: 560px;
}

.brandbar{
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 0 0 14px;
}

.brand-logo {
  max-width: 380px;
  width: min(380px, 78vw);
  height: auto;
  display: block;
  /* Removed the drop-shadow that was creating the 'outline' look */
  /* Added blend mode to pull out the white background of the image */
  mix-blend-mode: multiply; 
  filter: contrast(110%); /* Sharpens the green/gold after blending */
}


h1{
  font-size:clamp(30px, 3.2vw, 46px);
  font-weight:800;
  margin:0;
  letter-spacing:-0.02em;
}

.subhead{
  color:#555;
  margin:10px 0 8px;
  line-height:1.5;
  max-width: 72ch;
}

.header-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.pill{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(0,111,83,.10);
  color:var(--green);
  font-weight:700;
  font-size:13px;
  border:1px solid rgba(0,111,83,.12);
}

.pill.subtle{
  background: rgba(0,0,0,.04);
  color:#555;
  border-color: rgba(0,0,0,.08);
}

.grid{
  display:grid;
  gap:20px;
  grid-template-columns:1fr;
}

@media(min-width:900px){
  .grid{ grid-template-columns:1fr 1fr; }
}

.card{
  background:white;
  padding:18px 20px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 44px rgba(0,0,0,.09);
}

.accent-bar{
  height:6px;
  width:60px;
  background:var(--gold);
  border-radius:4px;
  margin-bottom:14px;
}

.card h2{
  color:var(--green);
  margin-top:0;
  font-weight:800;
  letter-spacing:-0.01em;
  margin-bottom:6px;
}

.field{
  margin-top:10px;
}

label{
  display:block;
  font-weight:700;
  font-size:13px;
  color:var(--gray);
}

.req{ color:#a10000; font-weight:800; }

.hint{
  font-size:12px;
  color:#666;
  margin-top:6px;
  line-height: 1.4;
}

input, select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.18);
  margin-top:6px;
  font-size:15px;
  background:#fff;
}

input::placeholder{ color:#9a9a9a; }

.help{
  background:rgba(239,190,5,.18);
  padding:12px;
  border-radius:12px;
  font-size:13px;
  margin-bottom:10px;
  line-height:1.45;
  border: 1px solid rgba(154,114,44,.12);
}

.help a{
  font-weight:800;
  color:var(--green);
  text-decoration:none;
}
.help a:hover{ text-decoration:underline; }

.error{
  margin-top:8px;
  color:#a10000;
  font-weight:700;
  font-size:13px;
  min-height: 18px;
}

input[aria-invalid="true"],
select[aria-invalid="true"]{
  border-color:#a10000;
  box-shadow:0 0 0 4px rgba(161,0,0,.12);
}

/* Strong keyboard focus */
:focus-visible{
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 10px;
}

input:focus, select:focus{
  border-color:var(--green);
  box-shadow:0 0 0 4px rgba(0,111,83,.14);
  outline:none;
}

.actions{
  margin-top:16px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

button{
  border:none;
  padding:14px 22px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--green), #0a7d60);
  color:white;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(0,111,83,.24);
  transition: transform .18s ease, box-shadow .18s ease;
}

button:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 44px rgba(0,111,83,.30);
}

button:disabled{
  cursor:not-allowed;
  opacity:0.88;
  transform:none;
}

button.secondary{
  background:transparent;
  color:var(--green);
  border:1px solid rgba(0,111,83,.9);
  box-shadow:none;
}

.status{
  font-size:13px;
  font-weight:700;
  color:var(--gray);
}

.hidden{ display:none; }

.results{ margin-top:20px; }

.results-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.coa{
  font-size:13px;
  color:#555;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
}

.numbers{
  display:grid;
  gap:12px;
  grid-template-columns:1fr;
  margin-top:12px;
}

@media(min-width:600px){
  .numbers{ grid-template-columns:1fr 1fr; }
}

.kpi{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:linear-gradient(to bottom, #fafafa, #fff);
}

.kpi .label{
  font-size:12px;
  color:#666;
  font-weight:700;
}

.kpi .value{
  font-size:18px;
  font-weight:800;
  margin-top: 2px;
}

.kpi.total .value{ color:var(--green); }
.kpi.net .value{
  color:var(--gold);
  font-family:"Libre Baskerville", Georgia, serif;
}

.chartWrap{ margin-top:18px; }

.fineprint{
  margin-top:18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  color:#555;
  font-size: 13px;
  line-height: 1.55;
}

.fineprint a{
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}
.fineprint a:hover{ text-decoration: underline; }

.footer{
  margin-top:14px;
  font-size:12px;
  color:#666;
  line-height:1.45;
}
.footer a{ color:var(--green); font-weight:800; }

/* Remove number spinners (GPA field) */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .card{ transition:none; }
  button{ transition:none; }
  .card:hover{ transform:none; }
}
