:root {
  --gold:      #d4a017;
  --ocean:     #0b3954;
  --parchment: #f7f1e3;
  --coral:     #e05b3a;
  --ink:       #2c2c2c;
  --soft-bg:   #fdfaf4;
}

body { background: var(--parchment); font-family: Georgia, serif; color: var(--ink); }

.navbar { border-bottom: 4px solid var(--gold) !important; }

/* ── hero banners ── */
.hero-banner {
  background: linear-gradient(135deg, rgba(11,57,84,.93), rgba(212,160,23,.87));
  color: #fff;
  padding: 2rem 2.2rem;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(11,57,84,.18);
  margin-bottom: 1.8rem;
  text-align: center;
}
.hero-banner h1 { font-size: 1.9rem; margin: 0 0 .5rem; }
.hero-banner p  { font-size: 1rem; margin: 0; opacity: .93; }

/* ── cards ── */
.treasure-card {
  background: #fff;
  border-left: 6px solid var(--gold);
  padding: 1rem 1.3rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.07);
  margin-bottom: 1rem;
}
.treasure-card h3 { color: var(--ocean); margin-top: .2rem; }

/* ── quest stages ── */
.quest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.6rem;
}
.quest-box {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.07);
  border-top: 5px solid var(--ocean);
  text-align: center;
}
.quest-box .icon { font-size: 2rem; }
.quest-box h4 { color: var(--ocean); font-size: .9rem; margin: .4rem 0 .2rem; }
.quest-box p  { font-size: .8rem; color: #666; margin: 0; font-family: sans-serif; }

/* ── clue box ── */
.clue-box {
  background: linear-gradient(120deg, #fffbee, #fff8d6);
  border: 2px dashed var(--gold);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-style: italic;
}

/* ── step counter ── */
.step-counter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: var(--ocean); color: #fff;
  border-radius: 50%; font-weight: bold; font-family: sans-serif;
  font-size: .85rem; margin-right: .5rem; flex-shrink: 0;
}

/* ── instructor note ── */
.instructor-note {
  background: #eef5ff;
  border-left: 5px solid #4a90d9;
  border-radius: 10px;
  padding: .8rem 1rem;
  margin: 1rem 0 1.4rem;
  font-family: sans-serif;
  font-size: .88rem;
}

/* ── images ── */
.gif-float  { float: right; margin: 0 0 1rem 1.5rem; border-radius: 12px;
              box-shadow: 0 8px 22px rgba(0,0,0,.15); max-width: 200px; }
.gif-center { display: block; margin: 1rem auto; border-radius: 12px;
              box-shadow: 0 8px 22px rgba(0,0,0,.12); max-width: 280px; }
.img-banner { width: 100%; border-radius: 16px;
              box-shadow: 0 10px 28px rgba(0,0,0,.12);
              margin-bottom: 1rem; object-fit: cover; max-height: 260px; }

/* ── code ── */
div.sourceCode { border-left: 4px solid var(--gold); background: #fafaf7 !important; }

/* ── tables ── */
.table tbody tr:nth-child(odd) { background: #faf7ef; }
thead { background: var(--ocean); color: #fff; }

/* ── callout ── */
.callout-tip { border-left-color: var(--gold) !important; }
