/* ==========================================================================
   UT Starter Theme
   A University of Tennessee-inspired theme for lessons and interactive
   activities. Drop this file next to your HTML and link it, or paste the
   whole thing into a <style> tag for a self-contained activity.

   Design intent (from UT_STARTER_THEME_GUIDE.md):
   - Tennessee Orange is an ACCENT, never body text.
   - Smokey Gray for structural panels, Accessible Dark for reading text.
   - Bold, high-impact headings; squared-off, editorial feel.
   ========================================================================== */

:root {
  /* Primary */
  --ut-accent: #ff8200;         /* Tennessee Orange — rules, borders, markers */
  --ut-charcoal: #4b4b4b;       /* Smokey Gray — structural panels */
  --ut-text: #262626;           /* Accessible Dark — primary text */
  --ut-surface: #ffffff;

  /* Supporting */
  --ut-bg: #f7f4ef;             /* Warm page background */
  --ut-border: #d9d5ce;         /* Light border */
  --ut-charcoal-deep: #2f2f2f;
  --ut-soft-gray: #ece9e3;
  --ut-deep-surface: #3a3a3a;
  --ut-deep-text: #f2f2f2;

  /* Type & sizing */
  --ut-font: Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --ut-font-heading: "Arial Black", Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --ut-shadow: 0 18px 52px rgba(38, 38, 38, 0.16);
  --ut-width: 820px;
}

/* ---------- page ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1rem 3rem;
  background: var(--ut-bg);
  color: var(--ut-text);
  font-family: var(--ut-font);
  line-height: 1.6;
}

.ut-shell { max-width: var(--ut-width); margin: 0 auto; }

/* ---------- header panel ---------- */
/* Smokey Gray panel, orange left border, orange underline bar below. */

.ut-header {
  background: var(--ut-charcoal);
  border-left: 12px solid var(--ut-accent);
  color: #fff;
  padding: 1.4rem 1.6rem 1.5rem;
  position: relative;
  margin-bottom: 2rem;
}

.ut-header::after {
  content: "";
  position: absolute;
  left: 1.6rem;
  bottom: -6px;
  height: 6px;
  width: min(420px, 58%);
  background: var(--ut-accent);
}

.ut-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.ut-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--ut-accent);
  flex-shrink: 0;
}

.ut-header h1 {
  font-family: var(--ut-font-heading);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.15;
  margin: 0;
}

.ut-header p { margin: 0.6rem 0 0; color: var(--ut-deep-text); font-size: 0.95rem; }

/* ---------- cards ---------- */
/* White surface, orange top rule, squared corners, moderate shadow. */

.ut-card {
  background: var(--ut-surface);
  border: 1px solid var(--ut-border);
  border-top: 5px solid var(--ut-accent);
  box-shadow: 0 12px 32px rgba(38, 38, 38, 0.08);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.ut-card h2 {
  font-family: var(--ut-font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

/* A plain item row inside a card (a question, a sentence, a prompt). */
.ut-item {
  background: var(--ut-bg);
  border: 1px solid var(--ut-border);
  border-left: 5px solid var(--ut-border);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
}

.ut-item.is-correct { border-left-color: #2e7d32; background: #f1f8f1; }
.ut-item.is-wrong   { border-left-color: #b3261e; background: #fdf3f2; }

/* ---------- score pill & progress ---------- */

.ut-scorebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ut-score {
  background: var(--ut-charcoal);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.ut-progress-wrap {
  background: var(--ut-surface);
  border: 1px solid var(--ut-border);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.ut-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ut-muted, #4b4b4b);
  margin-bottom: 0.5rem;
}

.ut-progress-track { height: 10px; background: var(--ut-soft-gray); }
.ut-progress-fill { height: 100%; width: 0; background: var(--ut-accent); transition: width 0.35s ease; }

/* ---------- buttons ---------- */
/* Primary: Smokey Gray fill, white text, orange bottom bar. */

.ut-btn {
  font-family: var(--ut-font-heading);
  font-weight: 900;
  font-size: 0.92rem;
  background: var(--ut-charcoal);
  color: #fff;
  border: 0;
  border-bottom: 5px solid var(--ut-accent);
  padding: 0.7rem 1.3rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: background 0.15s;
}

.ut-btn:hover { background: var(--ut-charcoal-deep); }
.ut-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Secondary: white fill, gray border, orange left accent. */
.ut-btn-secondary {
  background: var(--ut-surface);
  color: var(--ut-text);
  border: 1px solid var(--ut-charcoal);
  border-left: 5px solid var(--ut-accent);
  border-bottom: 1px solid var(--ut-charcoal);
}

.ut-btn-secondary:hover { background: var(--ut-soft-gray); }

.ut-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

/* Focus states stay visible — never rely on color alone. */
:focus-visible { outline: 3px solid var(--ut-accent); outline-offset: 2px; }

/* ---------- divider ---------- */

.ut-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 2rem 0 1rem;
}

.ut-divider::before,
.ut-divider::after {
  content: "";
  height: 4px;
  background: var(--ut-accent);
  flex: 1;
}

/* ---------- feedback text ---------- */

.ut-feedback { font-weight: 700; margin-top: 0.5rem; min-height: 1.5em; }
.ut-feedback.good { color: #2e7d32; }
.ut-feedback.bad  { color: #b3261e; }
