/* ==========================================================================
   HEMP Mentee Portal
   Palette and type sampled from hempkc.org
   ========================================================================== */

:root {
  --navy:        #201842;
  --navy-deep:   #171034;
  --orange:      #E86C0F;
  --orange-lt:   #E38331;
  --orange-dk:   #C25A0B;
  --ink:         #0A0A0A;
  --ink-soft:    #3A3A3C;
  --ink-mute:    #6B6B70;
  --rule:        #D1D2D4;
  --sky:         #99C0CC;
  --paper:       #FFFFFF;
  --shell:       #F4F4F6;
  --green:       #2E7D32;
  --amber:       #B26A00;

  --radius: 4px;
  --shadow: 0 1px 3px rgba(16, 12, 34, .08), 0 8px 24px rgba(16, 12, 34, .06);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--shell);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-dk); }

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* ----------------------------------------------------------------- header */

.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--orange);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { height: 42px; width: auto; display: block; }
.brand .brand-text {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .04em;
  line-height: 1.3;
  font-weight: 500;
  max-width: 230px;
}

.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a, .site-nav button.linklike {
  color: #fff;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav button.linklike:hover { border-bottom-color: var(--orange); }
.site-nav .who { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .75; font-size: .8rem; }

/* ------------------------------------------------------------------ hero */

.page-head {
  background: var(--navy-deep);
  color: #fff;
  padding: 34px 0 30px;
}
.page-head h1 { color: #fff; margin-bottom: 6px; }
.page-head p { margin: 0; opacity: .8; font-size: .95rem; max-width: 62ch; }

/* ------------------------------------------------------------------ cards */

main { padding: 32px 0 72px; }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 22px;
}

.card > h2:first-child { margin-top: 0; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--orange);
}
.card-head p { margin: 4px 0 0; color: var(--ink-mute); font-size: .9rem; }

/* --------------------------------------------------------------- checklist */

.steps { display: grid; gap: 14px; }

.step {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.step:hover { border-left-color: var(--orange); transform: translateX(2px); }
.step.done { border-left-color: var(--green); }
.step .num {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: .95rem;
}
.step.done .num { background: var(--green); }
.step .step-body { flex: 1 1 auto; }
.step .step-body strong { display: block; font-size: 1.02rem; }
.step .step-body span { color: var(--ink-mute); font-size: .87rem; }

.pill {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill.not_started { background: #EEEEF1; color: var(--ink-mute); }
.pill.draft       { background: #FDF0E0; color: var(--amber); }
.pill.submitted   { background: #E6F2E7; color: var(--green); }

.progress-rail { height: 8px; background: #EEEEF1; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress-rail > i { display: block; height: 100%; background: var(--orange); border-radius: 999px; transition: width .3s ease; }

/* ------------------------------------------------------------------ forms */

.field { margin-bottom: 18px; }
.field > label, .field-label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 5px;
  color: var(--ink);
}
.field .hint {
  display: block;
  font-weight: 400;
  font-style: italic;
  font-size: .82rem;
  color: var(--ink-mute);
  margin-bottom: 6px;
}

input[type=text], input[type=email], input[type=tel], input[type=date], textarea, select {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 108, 15, .15);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 22px; }

.section-rule {
  margin: 28px 0 20px;
  border: 0;
  border-top: 1px solid var(--rule);
}

/* ------------------------------------------------------------- SWOT grid */

.swot-band {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .76rem;
  padding: 8px 14px;
  border: 1px solid var(--navy);
}
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  border-top: 0;
  margin-bottom: 2px;
}
.swot-cell { padding: 14px; border-right: 1px solid var(--rule); }
.swot-cell:last-child { border-right: 0; }
.swot-cell h4 {
  margin: 0 0 8px;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange-dk);
}
.swot-cell textarea { min-height: 150px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--orange);
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--orange-dk); border-color: var(--orange-dk); }
.btn.ghost { background: transparent; color: var(--orange-dk); }
.btn.ghost:hover { background: var(--orange); color: #fff; }
.btn.navy { background: var(--navy); border-color: var(--navy); }
.btn.navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn.small { padding: 8px 14px; font-size: .72rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.actions .spacer { flex: 1 1 auto; }
.save-note { font-size: .82rem; color: var(--ink-mute); }

/* ----------------------------------------------------------------- tables */

table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th {
  text-align: left;
  background: var(--navy);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 12px;
  white-space: nowrap;
}
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.data tbody tr:hover { background: #FAFAFB; }
.table-scroll { overflow-x: auto; }

/* ------------------------------------------------------------- signature */

.sig-pad {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  touch-action: none;
  width: 100%;
  height: 170px;
  display: block;
}
.sig-line {
  display: flex; gap: 24px; align-items: flex-end;
  margin-top: 8px; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute);
}

.commit-quote {
  font-size: 1.25rem;
  font-style: italic;
  text-align: center;
  color: var(--navy);
  margin: 0 0 6px;
}

.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.event-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.event-cols ul { margin: 6px 0 0; padding-left: 20px; }
.event-cols li { margin-bottom: 4px; font-size: .9rem; }
.bonus-tag {
  display: inline-block; background: var(--sky); color: var(--navy);
  font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  padding: 2px 7px; border-radius: 3px; text-transform: uppercase;
}

/* ------------------------------------------------------------------ misc */

.notice {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 18px;
  border-left: 4px solid var(--orange);
  background: #FDF3E9;
  color: #7A3C05;
}
.notice.ok   { border-left-color: var(--green); background: #EDF6EE; color: #1F5822; }
.notice.bad  { border-left-color: #C62828; background: #FDECEC; color: #8E1C1C; }
.hidden { display: none !important; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat {
  background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--orange);
  border-radius: var(--radius); padding: 16px 18px;
}
.stat .n { font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: var(--navy); }
.stat .l { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.72);
  padding: 26px 0;
  font-size: .82rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 760px) {
  .grid-2, .grid-3, .swot-grid, .event-cols { grid-template-columns: 1fr; }
  .swot-cell { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .brand .brand-text { display: none; }
  .card { padding: 20px; }
}

/* ------------------------------------------------------------------ print */

@media print {
  body { background: #fff; font-size: 11.5pt; }
  .site-header, .site-footer, .page-head, .actions, .no-print, .site-nav { display: none !important; }
  main { padding: 0; }
  .card { border: 0; box-shadow: none; padding: 0; margin: 0; }
  .print-head { display: block !important; }
  input, textarea { border: 0 !important; padding: 0 !important; box-shadow: none !important; }
  textarea { height: auto !important; overflow: visible !important; }
  .swot-grid, .swot-cell { border-color: #000 !important; }
  .swot-band { background: #eee !important; color: #000 !important; -webkit-print-color-adjust: exact; }
}
.print-head { display: none; }
