/* Instructional Support Hub — shared stylesheet
   Plain CSS, no build step, no framework. Brand palette + font stack below. */

:root {
  --ink: #1F2937;        /* Dark Gray — body text */
  --ink-soft: #6B7280;   /* Medium Gray — muted/secondary text */
  --paper: #FFFFFF;      /* White — page background */
  --surface: #FFFFFF;    /* White — card surfaces */
  --surface-alt: #F3F4F6; /* Light Gray — alternating section bands */
  --line: rgba(107, 114, 128, 0.28); /* Medium Gray, low opacity — borders */
  --accent: #005A8B;       /* Secondary Blue — interactive/links/buttons */
  --accent-strong: #003B5C; /* FTCC Blue — headings, hover, strongest emphasis */
  --accent-tint: #D9EAF2;  /* Light Blue — tinted panels/accents */
  --deep: #1F2A44;         /* Dark Navy — reserved for strong dark bands */
  --focus: #005A8B;
  --radius: 10px;
  --max: 72rem;
  --shadow: 0 1px 3px rgba(31, 41, 55, 0.08);
  --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  line-height: 1.6;
  font-size: 1.0625rem;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--accent-strong);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.85rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--ink); }
strong { color: var(--ink); }

a { color: var(--accent-strong); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

ul, ol { padding-left: 1.25em; color: var(--ink); }
li { margin-bottom: 0.4em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-strong);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout shell ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
  margin-right: auto;
  padding-left: 0.85rem;
  border-left: 4px solid var(--accent-strong);
}
.brand:hover { color: var(--accent); }

.brand-text { font-size: 1.1rem; letter-spacing: -0.01em; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle-bars::before { content: ""; position: absolute; top: -6px; }
.nav-toggle-bars::after { content: ""; position: absolute; top: 6px; }

.primary-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.primary-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--line);
    margin-top: 0.9rem;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(217, 234, 242, 0.55), var(--paper) 55%);
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.9rem;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 46rem;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
  max-width: 52rem;
}

/* ---------- Primary paths (homepage) — flat, not cards ---------- */

.primary-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.path-block {
  display: block;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 4px solid var(--accent);
  border-right: 1px solid var(--line);
  transition: background 0.15s ease;
}
.primary-paths .path-block:last-child { border-right: none; }
.path-block:hover,
.path-block:focus-visible { background: var(--surface-alt); color: inherit; }

.path-block .path-label {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 0.4rem;
}
.path-block .path-desc {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
}

@media (max-width: 780px) {
  .primary-paths { grid-template-columns: 1fr; }
  .path-block { border-right: none; border-bottom: 1px solid var(--line); }
  .path-block:last-child { border-bottom: 4px solid var(--accent); }
}

/* ---------- Start-here list — plain links, not cards ---------- */

.start-here-list {
  list-style: none;
  padding-left: 0;
  max-width: 42rem;
}
.start-here-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.start-here-list li:first-child { border-top: 1px solid var(--line); }
.start-here-list a {
  font-weight: 700;
  font-size: 1.05rem;
}
.start-here-list .item-desc {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

/* ---------- Need list (Improve My Course) — plain links, not cards ---------- */

.need-list {
  list-style: none;
  padding-left: 0;
  max-width: 46rem;
}
.need-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.need-list li:first-child { border-top: 1px solid var(--line); }
.need-list a {
  font-weight: 700;
  font-size: 1.08rem;
}
.need-list .item-desc {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

/* ---------- Buttons / action cards ---------- */

.action-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--ink);
}
.action-card .label {
  font-weight: 700;
  font-size: 1.02rem;
}
.action-card .desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { background: var(--accent-strong); }

.btn.btn-ghost {
  background: transparent;
  color: var(--accent-strong) !important;
  border-color: var(--line);
}
.btn.btn-ghost:hover { border-color: var(--accent); background: var(--accent-tint); }

/* ---------- Sections ---------- */

section.block {
  padding: 3.25rem 0;
}
section.block.alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* Quieter section variant - for content that supports the primary
   decisions rather than adding another one (e.g. frequently-used
   resources right below the homepage's three primary paths). */
.section-head.quiet h2 {
  font-size: 1.05rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.section-head.quiet p { font-size: 0.92rem; }

/* ---------- Card grid (topics, resources) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-tint);
  padding: 0.25em 0.6em;
  border-radius: 999px;
  width: fit-content;
}

.card h3 { margin-bottom: 0.1em; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }

.card p { margin-bottom: 0; font-size: 0.96rem; }

.card-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}
.card-links a { font-weight: 600; }

/* ---------- Practice-area strip ---------- */

.pillar-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--surface);
}
.pillar .kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.topic-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.topic-nav {
  position: sticky;
  top: 63px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 30;
}
.topic-nav .wrap {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.topic-nav a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.topic-nav a:hover { color: var(--accent-strong); }

.topic-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 7.5rem;
}
.topic-section:last-of-type { border-bottom: none; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.meta-row strong { color: var(--ink); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.timeline-step {
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
}
.timeline-step .step-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-strong);
}
.timeline-step .step-time {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.uxsc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
}
.uxsc-grid .uxsc-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.uxsc-grid .uxsc-item h4 {
  color: var(--accent-strong);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

table.plain {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
table.plain th, table.plain td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.plain th { color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll table.plain { margin: 0; }
.table-scroll th, .table-scroll td { border-color: var(--line); }

.planner-field {
  margin-bottom: 1.4rem;
}
.planner-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.planner-field .hint {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 0.15rem;
}
.planner-field textarea {
  width: 100%;
  min-height: 4.5rem;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
}
.planner-checklist { list-style: none; padding-left: 0; }
.planner-checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.planner-checklist input[type="checkbox"] { margin-top: 0.3rem; }

details.reveal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem 1.1rem;
  background: var(--surface);
  margin-bottom: 0.9rem;
}
details.reveal > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 0;
  list-style: none;
}
details.reveal > summary::-webkit-details-marker { display: none; }
details.reveal > summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--accent-strong);
  font-weight: 800;
}
details.reveal[open] > summary::before { content: "–"; }
details.reveal > *:last-child { padding-bottom: 1rem; }

.next-step-panel {
  background: var(--accent-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.next-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}
.next-step-grid a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}
.next-step-grid a:hover { border-color: var(--accent); }

.related-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
}
.pill:hover { border-color: var(--accent); color: var(--accent-strong); }

@media print {
  .site-header, .site-footer, .topic-nav, .hero-actions, .next-step-panel, .related-strip, .no-print { display: none !important; }
  body { font-size: 12pt; }
  .topic-section { border: none; padding: 0.5rem 0; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}
.footer-title { font-weight: 700; color: var(--ink); margin-bottom: 0.3rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; }
.site-footer nav a:hover { color: var(--accent-strong); }
.footer-note { font-size: 0.88rem; }

/* ---------- Simple content page (About, Help, Community) ---------- */

.simple-page .wrap { max-width: 46rem; }
.simple-page section.block { padding-top: 2.5rem; }

.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
