:root{
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #122033;
  --muted: #5b6b7d;
  --border: #e3e8ef;
  --shadow: 0 10px 26px rgba(14, 27, 45, .08);

  /* Light, professional NAU-ish accents */
  --navy: #003466;
  --navy-weak: rgba(0,52,102,.10);
  --gold: #F1B300;
  --gold-weak: rgba(241,179,0,.16);

  --radius: 16px;
}


@font-face{
  font-family: "Acumin";
  src: url("fonts/Acumin-Pro.woff2") format("woff2"),
       url("fonts/Acumin-Pro.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Ensure padding/borders don't cause inputs to spill outside their containers */
*, *::before, *::after{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  /* Professional, academic-leaning sans font */
  font-family: "Acumin", "Acumin Pro", "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #fbfcfe 0%, var(--bg) 45%, var(--bg) 100%);
}

a{ color: var(--navy); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* Gate */
.gate{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(18,32,51,.55);
  backdrop-filter: blur(8px);
  z-index: 1000;
}
.gate__card{
  width:min(420px, calc(100% - 28px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.gate__title{ font-size: 18px; font-weight: 750; }
.gate__subtitle{ margin-top: 6px; color: var(--muted); font-size: 13px; }

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(251,252,254,.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.brand__title{ font-weight: 800; letter-spacing: .2px; }
.brand__subtitle{ margin-top: 2px; font-size: 12px; color: var(--muted); }
.topbar__actions{ display:flex; gap: 8px; flex-wrap: wrap; justify-content:flex-end; }

/* Layout */
.layout{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  padding: 16px;
  align-items: start;
}
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ position: static; }
}
.sidebar{
  position: sticky;
  top: 78px;
}

/* Cards / Panels */
.card, .panel{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(14, 27, 45, .06);
}
.card{ padding: 16px; }
.panel{ padding: 14px; }
.sidebar .panel{
  /* Prevent any form controls from visually overflowing the Notes panel */
  overflow-x: hidden;
}
.card__title, .panel__title{
  font-weight: 800;
  margin-bottom: 10px;
}

.small{ font-size: 12px; }
.muted{ color: var(--muted); }
.err{ color: #b42318; }

.label{ display:block; font-size: 12px; color: var(--muted); margin: 10px 0 6px; }
.input, .select, .textarea{
  width:100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font: inherit;
  background: #fff;
}
.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(0,52,102,.35);
  box-shadow: 0 0 0 4px rgba(0,52,102,.10);
}
.textarea{
  min-height: 210px;
  resize: vertical;
  /* Avoid horizontal overflow on some browsers when resizing */
  overflow-wrap: anywhere;
}

.btn{
  border: 1px solid rgba(0,52,102,.22);
  background: var(--navy);
  color: #fff;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor:pointer;
  transition: transform .05s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ box-shadow: 0 10px 22px rgba(0,52,102,.18); }
.btn:active{ transform: translateY(1px); }
.btn--ghost{
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}
.btn--ghost:hover{
  border-color: rgba(0,52,102,.22);
  box-shadow: 0 10px 22px rgba(14,27,45,.08);
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items:center;
}
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
}
.hero__title{ font-size: 22px; font-weight: 900; letter-spacing: .2px; }
.hero__text{ margin-top: 8px; color: var(--muted); line-height: 1.45; }
.hero__cta{ margin-top: 12px; display:flex; gap: 10px; flex-wrap: wrap; }
.hero__right{ display:flex; justify-content:center; }
.lifecycleWrap{
  position: relative;
  width: 100%;
  max-width: 340px;
}
.hero__img{
  width: 100%;
  max-width: 340px;
  border-radius: 18px;
  border: none; /* remove square outline */
  /* Make the image feel integrated (not like an uploaded asset in a block) */
  box-shadow: none;
  background: transparent;
}
.hero__img--clickable{ cursor:pointer; }
.hero__img--clickable:hover{
  box-shadow: 0 16px 36px rgba(0,52,102,.14);
}

.lifecycleOverlay{
  position:absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Overlay captures clicks so the image segments always map to the correct step */
  pointer-events: auto;
}

/* Arrow-pop overlay (no "highlight" ring). */
.lifecycleArrow{
  /* Keep nearly invisible so it doesn't tint the PNG, but still clickable */
  opacity: 0.001;
  transition: opacity .18s ease, transform .18s ease, filter .18s ease;
  stroke: rgba(255,255,255,.65);
  stroke-width: 2;
  /* Match the actual PNG geometry (center of ring within the image). */
  transform-origin: 355.5px 351px;
  pointer-events: all;
}

.lifecycleArrow.is-active{
  opacity: .55;
  filter: url(#arrowGlow);
}

/* Step row */
.stepRow{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.step{
  flex: 1 1 160px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-left: 8px solid var(--stepColor, var(--navy));
  border-radius: 14px;
  padding: 12px;
  cursor:pointer;
  background: linear-gradient(90deg, rgba(0,52,102,.04), rgba(255,255,255,1) 48%);
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.step:hover{
  border-color: rgba(0,52,102,.25);
  box-shadow: 0 10px 22px rgba(14,27,45,.08);
}
.step:active{ transform: translateY(1px); }
.step__label{ font-weight: 800; }
.step__meta{ font-size: 12px; color: var(--muted); }
.step--active{
  border-color: rgba(0,52,102,.30);
  box-shadow: 0 16px 34px rgba(14,27,45,.14);
  transform: translateY(-2px);
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 40%);
}
.step__pill{
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06);
  color: var(--text);
  background: rgba(255,255,255,.92);
}

/* Per-step color cue on the pill for quick scanning */
.step{ --stepColor: var(--navy); }
.step .step__pill{ box-shadow: inset 0 0 0 2px var(--stepColor); }
.step--active .step__pill{ box-shadow: 0 10px 18px rgba(14,27,45,.10), inset 0 0 0 2px var(--stepColor); }

.sectionTitle{
  margin-top: 14px;
  font-weight: 850;
}

.checklist, .bullets{ margin: 8px 0 0; padding-left: 18px; }
.checklist li{ margin: 6px 0; }

.actions{ margin-top: 10px; display:flex; gap: 10px; flex-wrap: wrap; }

/* Resources */
.resourceGroups{ display:grid; gap: 12px; }

/* Visually separate the "Recommended for this step" section from "All resources" */
#suggestedResourcesBlock{
  border: 2px solid rgba(0,52,102,.22);
  /* NAU navy gradient highlight */
  /* Extend the highlight through the entire section for clear separation */
  background: linear-gradient(180deg, rgba(0,52,102,.22) 0%, rgba(0,52,102,.12) 100%);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 14px 30px rgba(14,27,45,.10);
}

/* Safeguard long text (links/labels) from pushing layouts wider */
.panel, .card, .resourceItem, .bullets li, .checklist li{
  overflow-wrap: anywhere;
  word-break: break-word;
}

#allResourcesWrap{
  border-top: 1px dashed rgba(0,52,102,.20);
  margin-top: 12px;
  padding-top: 12px;
}
.resourceGroup{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.resourceGroup__title{ font-weight: 850; margin-bottom: 6px; }
.resourceList{ display:grid; gap: 6px; margin-top: 6px; }
.resourceItem{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.resourceItem:hover{ border-color: rgba(0,52,102,.22); box-shadow: 0 10px 22px rgba(14,27,45,.07); }
.resourceItem__name{ font-weight: 650; flex: 1; min-width: 0; }

.toast{
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: rgba(18,32,51,.92);
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: var(--shadow);
  z-index: 2000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast--show{ opacity:1; transform: translateY(0); }

/* ---------- Responsive polish (desktop / tablet / mobile) ---------- */
@media (max-width: 720px){
  .topbar{ padding: 12px 12px; }
  .layout{ padding: 12px; gap: 12px; }
  .hero__title{ font-size: 20px; }
  .sidebar{ position: static; top: auto; }
  .panel, .card{ border-radius: 14px; }
  .stepRow{ gap: 8px; }
  .step{ flex: 1 1 100%; }
  .step__meta{ font-size: 12px; }
  .step__pill{ font-size: 18px; padding: 0 10px; line-height: 26px; min-width: 30px; text-align:center; }
  .textarea{ min-height: 170px; }
  .topbar__actions{ justify-content: flex-start; }
}

@media (max-width: 480px){
  body{ font-size: 15px; }
  .brand__title{ font-size: 16px; }
  .hero__cta .btn, .topbar__actions .btn{ width: 100%; }
  .resourceActions .btn{ width: 100%; }
  .layout{ padding: 10px; }
  .card{ padding: 12px; }
  .panel{ padding: 12px; }
  .textarea{ min-height: 150px; }
}

/* Prevent any inner content (inputs/textareas) from overflowing panels */
.panel{ overflow: hidden; }


.programBadge{
  display:inline-flex;
  margin-top:8px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(241,179,0,.14);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
}

.landingBody{
  min-height:100vh;
  margin:0;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  color: var(--text);
}
.landingBanner{
  background: var(--navy);
  color: var(--gold);
  text-align:center;
  padding: 28px 16px;
  box-shadow: 0 10px 24px rgba(0,52,102,.18);
}
.landingBanner h1{
  margin:0;
  font-size: clamp(34px, 6vw, 64px);
  line-height:1;
  font-weight: 900;
  letter-spacing: .5px;
}
.landingMain{
  min-height: calc(100vh - 120px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 32px 18px 56px;
}
.landingWrap{
  width:min(1100px, 100%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 18px;
}
.landingIntro{
  text-align:center;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}
.circleGrid{
  width:100%;
  display:grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 28px;
  justify-items:center;
  margin-top: 10px;
}
.circleLink{
  width: clamp(210px, 24vw, 285px);
  aspect-ratio:1/1;
  border-radius:50%;
  background: radial-gradient(circle at 30% 28%, #0d4d8b 0%, var(--navy) 68%, #02284a 100%);
  color: var(--gold);
  border: 8px solid rgba(241,179,0,.22);
  box-shadow: 0 18px 40px rgba(0,52,102,.20);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 24px;
  text-decoration:none;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.circleLink:hover{
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 50px rgba(0,52,102,.24);
  border-color: rgba(241,179,0,.38);
  text-decoration:none;
}
.circleLink__label{
  font-size: clamp(24px, 2.3vw, 34px);
  line-height:1.15;
  font-weight: 900;
}
.circleLink__sub{
  display:block;
  margin-top: 8px;
  font-size: 14px;
  color: #fff1bf;
  font-weight: 600;
}
@media (max-width: 860px){
  .circleGrid{ grid-template-columns: 1fr; }
}
