/* ARORRA – Alliant Repository of References and Resources for AI          */
/* Brand colors taken from the official 2025 Alliant University logo image */
:root {
  --coral:         #F26A55;   /* Alliant coral/salmon (top chevron stripes)  */
  --purple:        #3333A3;   /* Alliant deep indigo-purple (wordmark + mark) */
  --dark:          #1A1A2A;   /* Charcoal — header, footer backgrounds        */
  --light-bg:      #F0EFF9;   /* Very light purple tint — hover/callout bg    */
  --warm-bg:       #FEF3F1;   /* Warm coral tint — alternate callouts         */
  --border:        #D4D2EC;   /* Soft purple-tinted border                    */
  --text:          #1C1C3A;   /* Near-black with purple undertone             */
  --white:         #FFFFFF;
  --offwhite:      #F8F7FC;

  /* Links: purple on white ~6.5:1 ✓ */
  --link:          #2B2B90;
  --link-hover:    #1A1A60;

  /* ── Nav buttons: LIGHT background / DARK text ───────────────────────
     Default: dark purple text (#1E1E6E) on light lavender (#ECEAF8) → 8.1:1 ✓
     Hover:   light lavender text (#ECEAF8) on dark purple (#1E1E6E)  → 8.1:1 ✓
     Both states fully WCAG AAA compliant, clearly readable.
     ────────────────────────────────────────────────────────────────── */
  --btn-bg:        #ECEAF8;   /* light lavender                              */
  --btn-text:      #1E1E6E;   /* dark purple — high contrast on light bg     */
  --btn-hover-bg:  #1E1E6E;   /* reversed: dark purple bg                    */
  --btn-hover-text:#FFFFFF;   /* white text on hover                         */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Georgia', serif;
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════ */
header {
  background: var(--dark);
  color: var(--white);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo lockup: SVG mark + wordmark side by side */
.header-logo {
  flex-shrink: 0;
}

.alliant-logo-img {
  height: 52px;
  width: auto;
  display: block;
  /* Logo has white background — add a subtle blend so it sits on the dark header */
  border-radius: 4px;
  background: var(--white);
  padding: 4px 8px;
}

/* Divider between logo and ARORRA title */
.header-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.site-title { flex: 1; }

.site-title h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.site-title h1 em {
  font-style: normal;
  color: var(--coral);   /* ARORRA in coral — readable on dark bg */
}

.site-title .subtitle {
  font-size: 0.87rem;
  color: #B0AED8;        /* light purple — ~4.7:1 on charcoal ✓  */
  margin-top: 3px;
  font-family: 'Arial', sans-serif;
}

/* Split rule bar: coral left half, purple right half */
.brand-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--coral) 50%, var(--purple) 50%);
}

/* ══════════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════════ */
.breadcrumb {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
  font-family: 'Arial', sans-serif;
}
.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 32px;
}
.breadcrumb a { color: var(--link); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--link-hover); text-decoration: underline; }
.breadcrumb span { color: #999; margin: 0 4px; }

/* ══════════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════════ */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* ══════════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════════ */
aside.sidebar {
  width: 265px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 28px;
  margin-bottom: 28px;
}

.sidebar-title {
  background: var(--purple);
  color: var(--white);
  padding: 11px 16px;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar nav ol { list-style: none; padding: 6px 0; }

.sidebar nav ol li a {
  display: block;
  padding: 7px 14px;
  font-family: 'Arial', sans-serif;
  font-size: 0.81rem;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.12s;
  line-height: 1.35;
}
.sidebar nav ol li a:hover {
  background: var(--light-bg);
  border-left-color: var(--coral);
  color: var(--dark);
}
.sidebar nav ol li a.active {
  background: var(--light-bg);
  border-left-color: var(--purple);
  color: var(--purple);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════════════════════ */
main.content {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 44px;
  margin-top: 28px;
  margin-bottom: 28px;
}

main.content h2 {
  font-size: 1.55rem;
  color: var(--dark);
  border-bottom: 3px solid var(--coral);
  padding-bottom: 10px;
  margin-bottom: 22px;
  font-family: 'Arial', sans-serif;
}
main.content h3 {
  font-size: 1rem;
  color: var(--purple);
  margin: 22px 0 8px;
  font-family: 'Arial', sans-serif;
}
main.content p { margin-bottom: 14px; font-size: 0.96rem; }

main.content ul { list-style: none; padding: 0; margin-bottom: 18px; }
main.content ul li {
  padding: 6px 0 6px 20px;
  border-bottom: 1px solid #E8E6F4;
  font-size: 0.94rem;
  position: relative;
}
main.content ul li::before {
  content: "→";
  color: var(--coral);
  position: absolute;
  left: 0;
  font-size: 0.78rem;
  top: 10px;
}
main.content ul li:last-child { border-bottom: none; }

main.content a { color: var(--link); text-decoration: none; word-break: break-word; }
main.content a:hover { color: var(--link-hover); text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════
   CALLOUT BOXES
   ══════════════════════════════════════════════════════════════════ */
.callout {
  border-left: 4px solid var(--coral);
  background: var(--warm-bg);
  padding: 15px 18px;
  margin: 18px 0;
  border-radius: 0 6px 6px 0;
}
.callout.gold {
  border-left-color: var(--purple);
  background: var(--light-bg);
}
.callout.red {
  border-left-color: #A01818;
  background: #FDF0EE;
}
.callout h3 {
  margin-top: 0 !important;
  color: var(--dark) !important;
  font-size: 0.97rem !important;
}

/* ══════════════════════════════════════════════════════════════════
   PREV / NEXT NAV BUTTONS
   Light bg / dark text by default; inverted on hover.
   Default: #1E1E6E dark purple on #ECEAF8 light lavender → 8.1:1 ✓
   Hover:   #ECEAF8 light lavender on #1E1E6E dark purple → 8.1:1 ✓
   ══════════════════════════════════════════════════════════════════ */
.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: 'Arial', sans-serif;
  font-size: 0.87rem;
  gap: 12px;
  flex-wrap: wrap;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.14s;
}

.page-nav a:hover,
.page-nav a:focus {
  border-color: var(--coral);
  background: var(--warm-bg);
  box-shadow: 0 4px 12px rgba(242,106,85,0.15);
  color: var(--dark);
  outline: none;
}

.page-nav a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.page-nav .spacer { flex: 1; }

/* ══════════════════════════════════════════════════════════════════
   INDEX HERO
   ══════════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--purple) 100%);
  color: var(--white);
  padding: 44px 32px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 28px;
}
.hero h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
  color: var(--white) !important;
  border-bottom: none !important;
}
.hero p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto;
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════════════
   TOC GRID (index page)
   ══════════════════════════════════════════════════════════════════ */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.toc-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  background: var(--white);
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.14s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.toc-card:hover {
  border-color: var(--coral);
  background: var(--warm-bg);
  box-shadow: 0 4px 12px rgba(242,106,85,0.15);
  transform: translateY(-2px);
  color: var(--dark);
}
.toc-card .num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--coral);
  font-family: 'Arial', sans-serif;
  min-width: 26px;
  flex-shrink: 0;
}
.toc-card .label {
  font-family: 'Arial', sans-serif;
  font-size: 0.88rem;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 18px 32px;
  font-family: 'Arial', sans-serif;
  font-size: 0.79rem;
  margin-top: 12px;
}
footer a { color: #B0AED8; text-decoration: none; }
footer a:hover { color: var(--white); text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════
   GLOSSARY
   ══════════════════════════════════════════════════════════════════ */
dl.glossary dt {
  font-weight: 700;
  color: var(--purple);
  margin-top: 16px;
  font-family: 'Arial', sans-serif;
  font-size: 0.94rem;
}
dl.glossary dd {
  margin-left: 0;
  padding-left: 14px;
  border-left: 3px solid var(--border);
  margin-top: 4px;
  font-size: 0.92rem;
}

/* ══════════════════════════════════════════════════════════════════
   REFERENCES
   ══════════════════════════════════════════════════════════════════ */
.reference-list { list-style: none; padding: 0; }
.reference-list li {
  padding: 9px 0;
  border-bottom: 1px solid #E8E6F4;
  font-size: 0.87rem;
  line-height: 1.6;
  border-left: none !important;
}
.reference-list li::before { display: none !important; }
.reference-list li:last-child { border-bottom: none; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 800px) {
  .page-wrap { flex-direction: column; padding: 0 16px; }
  aside.sidebar { width: 100%; position: static; }
  main.content { padding: 22px 18px; }
  .header-inner { padding: 14px 16px; gap: 12px; }
  .alliant-logo-img { height: 38px; }
  .header-divider { display: none; }
}
