/* APA Citation Practice — shared styles (matches profkimberlyn.com hub) */
:root {
  --navy: #1e3a5f;
  --blue: #2e6da4;
  --sky: #e3edf7;
  --gold: #e8b23d;
  --green: #2e7d32;
  --green-bg: #e8f5e9;
  --red: #c62828;
  --red-bg: #ffebee;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #66788c;
  --border: #d9dfe8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Accessibility helpers */
.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;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  text-decoration: none;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, .opt:focus-visible, .hotspot:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 24px 20px 80px; }

/* Top bar */
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
}
.topbar-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.topbar a { color: #cfe0f1; text-decoration: none; font-size: 0.9rem; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .site-name { font-weight: 600; font-size: 1rem; color: #fff; }

/* Headings */
h1 { color: var(--navy); font-size: 1.9rem; margin: 18px 0 6px; }
h2 { color: var(--navy); font-size: 1.35rem; margin: 28px 0 10px; }
h3 { color: var(--navy); font-size: 1.05rem; margin: 18px 0 6px; }
.lede { font-size: 1.05rem; color: #445; max-width: 46em; }
.eyebrow {
  display: inline-block; font-size: 0.72rem; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--blue); background: var(--sky); padding: 4px 12px; border-radius: 12px;
  font-weight: 700; margin-top: 20px;
}

/* Video placeholder */
.video-slot {
  background: var(--navy);
  border-radius: 12px;
  color: #cfe0f1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9;
  max-width: 640px;
  margin: 20px auto;
  text-align: center;
  padding: 20px;
  gap: 8px;
}
.video-slot .play {
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff;
}
.video-slot .vtitle { font-weight: 600; color: #fff; }
.video-slot .vnote { font-size: 0.85rem; opacity: 0.8; }
.video-slot iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* Card grid (landing) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
a.card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px 22px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 3px 12px rgba(30,58,95,0.08);
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
  display: flex; flex-direction: column; gap: 8px;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(30,58,95,0.15); border-color: var(--blue); }
.card .icon { font-size: 1.9rem; }
.card h2 { margin: 0; font-size: 1.15rem; }
.card p { font-size: 0.92rem; color: #556; flex: 1; }
.card .go { color: var(--blue); font-weight: 600; font-size: 0.9rem; }
.card .stepnum {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold);
}

/* Content panels */
.panel {
  background: var(--card);
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 3px 12px rgba(30,58,95,0.08);
  margin: 18px 0;
}
.example {
  background: #f7f9fc;
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 0 8px 8px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.98rem;
}
.example .label {
  font-family: 'Segoe UI', Arial, sans-serif; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--blue); font-weight: 700; display: block; margin-bottom: 4px;
}
.example.good { border-left-color: var(--green); background: var(--green-bg); }
.example.good .label { color: var(--green); }
.example.bad { border-left-color: var(--red); background: var(--red-bg); }
.example.bad .label { color: var(--red); }
.hanging { display: block; padding-left: 2.5em; text-indent: -2.5em; }

table.rules { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.92rem; }
table.rules th, table.rules td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
table.rules th { background: var(--navy); color: #fff; font-weight: 600; font-size: 0.85rem; }

/* Quiz options */
.options { margin: 14px 0; }
.opt {
  display: block; width: 100%; text-align: left;
  background: #f7f9fc; border: 2px solid var(--border); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 10px;
  font-family: Georgia, serif; font-size: 0.97rem; cursor: pointer;
  transition: border-color 0.15s, background 0.15s; line-height: 1.5;
}
.opt:hover:not(:disabled):not([aria-disabled="true"]) { border-color: var(--blue); background: #eef4fa; }
.opt.correct { border-color: var(--green); background: var(--green-bg); }
.opt.incorrect { border-color: var(--red); background: var(--red-bg); }
.opt:disabled, .opt[aria-disabled="true"] { cursor: default; opacity: 0.9; }
.feedback { display: none; border-radius: 8px; padding: 13px 16px; margin-top: 4px; font-size: 0.92rem; }
.feedback.show { display: block; }
.feedback.good { background: var(--green-bg); border: 1px solid #a5d6a7; }
.feedback.bad { background: #fff3e0; border: 1px solid #ffcc80; }

/* Hotspots (mock article) */
.mock-article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 34px 38px;
  font-family: Georgia, 'Times New Roman', serif;
  box-shadow: 0 3px 12px rgba(30,58,95,0.08);
  position: relative;
  font-size: 0.95rem;
}
.hotspot {
  font: inherit;
  color: inherit;
  text-align: inherit;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px dashed var(--gold);
  transition: background 0.15s;
  border-radius: 3px;
  padding: 0 2px;
}
.hotspot:hover { background: #fdf3dd; }
.hotspot.found { background: var(--green-bg); border-bottom-color: var(--green); }
.hs-reveal {
  display: none;
  background: var(--sky);
  border: 1px solid #b9d2e8;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 10px 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.9rem;
}
.hs-reveal.show { display: block; }
.hs-reveal strong { color: var(--navy); }

/* Buttons & nav */
.btn {
  display: inline-block;
  background: var(--navy); color: #fff;
  padding: 11px 26px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer;
}
.btn:hover { background: #29496f; }
.btn.secondary { background: #e4e9f0; color: var(--navy); }
.pager {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 30px; flex-wrap: wrap;
}
.score-chip {
  display: inline-block; background: var(--sky); color: var(--navy);
  font-weight: 600; border-radius: 20px; padding: 5px 16px; font-size: 0.9rem;
}
footer {
  text-align: center; color: var(--muted); font-size: 0.85rem;
  padding: 26px 0 34px;
}
.notice {
  background: #fdf6e7; border: 1px solid #f0dcae; border-radius: 8px;
  padding: 12px 16px; font-size: 0.9rem; margin: 14px 0;
}

/* Anatomy of a cited quotation (Module 4) */
.anatomy {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
  line-height: 2.3;
  margin: 14px 0 6px;
  color: var(--text);
}
.anatomy .part {
  padding: 2px 4px;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
}
.anatomy .n {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.56em;
  font-weight: 700;
  vertical-align: super;
  color: var(--navy);
  padding-left: 3px;
}
.part.p1 { background: var(--sky);      border-bottom-color: var(--blue); }
.part.p2 { background: #fdf3dd;         border-bottom-color: var(--gold); }
.part.p3 { background: var(--green-bg); border-bottom-color: var(--green); }
.part.p4 { background: #f7f9fc;         border-bottom-color: var(--navy); }
.part.p5 { background: var(--red-bg);   border-bottom-color: var(--red); }
.part.p6 { background: #e4e9f0;         border-bottom-color: var(--navy); }

.parts-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  columns: 2;
  column-gap: 36px;
}
.parts-list li {
  break-inside: avoid;
  margin: 0 0 16px;
  padding-left: 34px;
  position: relative;
  font-size: 0.94rem;
  line-height: 1.5;
}
.parts-list .marker {
  position: absolute;
  left: 0;
  top: 1px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  line-height: 25px;
}
.parts-list .cue { font-family: Georgia, 'Times New Roman', serif; color: var(--navy); }

@media (max-width: 700px) {
  .anatomy { font-size: 1.1rem; line-height: 2.1; }
  .parts-list { columns: 1; }
}
@media print {
  .anatomy .part { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .parts-list { columns: 1; }
}
