/* Balancing Employee Advocacy and Organizational Responsibility
   Palette and type follow Baylor University's published brand standards:
   Baylor Green #154734, University Gold #FFB81C (unaltered), and the
   university's "Universal Fonts" Georgia and Helvetica. No university marks
   are used; those are reserved for official university communications.
   Gold is used for fills, rules, and text on green only: gold text on white
   fails WCAG contrast, so a darkened gold (--gold-ink) is used there. */

:root {
  color-scheme: light;
  --green: #154734;          /* Baylor Green (official) */
  --green-deep: #0e3324;     /* utility bar, hover */
  --green-tint: #eef3f0;
  --gold: #ffb81c;           /* University Gold (official) */
  --gold-ink: #7a5600;       /* gold-family text on white */
  --gold-tint: #fff7e3;
  --ink: #1f2522;
  --ink-soft: #4b5550;
  --rule: #d9ded9;
  --bg: #ffffff;
  --surface-2: #f5f6f4;

  /* role aliases used by page markup (diagram, option cards) */
  --accent: var(--green);
  --accent-2: var(--gold-ink);
  --surface: #ffffff;

  --todo-bg: #fff6dc;
  --todo-border: #c99400;
  --todo-ink: #5b4300;

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 70ch;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
}

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--gold); color: var(--green); font-weight: 700; padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: .5rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 48rem) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* ---------- Utility bar + header ---------- */
.utility-bar {
  background: var(--green-deep); color: #e6ece8;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
.utility-bar .wrap { padding-top: .45rem; padding-bottom: .45rem; }

.site-header { background: var(--green); border-bottom: 5px solid var(--gold); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; padding-top: 1.25rem; padding-bottom: 0;
}
.site-title {
  font-family: var(--serif); color: #fff; text-decoration: none;
  font-size: 1.3rem; line-height: 1.25; max-width: 28ch; padding-bottom: 1.1rem;
}
.site-title:hover { color: #fff; }
.site-kicker {
  display: block; font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: .7rem .8rem .85rem; color: #fff; text-decoration: none;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 4px solid transparent; margin-bottom: -5px;
}
.site-nav a:hover { background: var(--green-deep); color: #fff; }
.site-nav a[aria-current="page"] { border-bottom-color: #fff; }
@media (max-width: 47.99rem) {
  .site-nav { width: 100%; border-top: 1px solid rgba(255,255,255,.18); }
  .site-nav a { padding: .6rem .55rem; font-size: .74rem; }
}

/* ---------- Page hero band ---------- */
.hero { background: var(--green-tint); border-bottom: 1px solid var(--rule); }
.hero .wrap { padding-top: 2.5rem; padding-bottom: 2.25rem; }
.hero-home { background: var(--green); color: #fff; border-bottom: 0; }
.hero-home .wrap { padding-top: 3.5rem; padding-bottom: 3.25rem; }
.eyebrow {
  margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-ink);
}
.hero-home .eyebrow { color: var(--gold); }
.hero h1 {
  font-family: var(--serif); font-weight: 400; color: var(--green);
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 .75rem; max-width: 24ch;
}
.hero-home h1 { color: #fff; }
.hero h1::after {
  content: ""; display: block; width: 4rem; height: 4px; background: var(--gold); margin-top: 1rem;
}
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; margin: 0; }
.hero-home .lede { color: #e6ece8; }

/* ---------- Content ---------- */
.content { padding-top: 2.5rem; padding-bottom: 4rem; }
.prose { max-width: var(--measure); }
h1, h2, h3 { font-family: var(--serif); color: var(--green); }
h2 {
  font-weight: 400; font-size: 1.85rem; line-height: 1.2; margin: 3rem 0 1rem;
}
h2::before { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--gold); margin-bottom: .75rem; }
.content > h2:first-child, .content > .prose:first-child > h2:first-child { margin-top: 0; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 1.5rem 0 .5rem; }
p { margin: 0 0 1rem; }
strong { color: var(--ink); }

.card-grid {
  display: grid; gap: 1.25rem; margin: 1.5rem 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}
.card {
  background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--green);
  border-radius: var(--radius); padding: 1.25rem 1.35rem;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
a.card:hover { border-top-color: var(--gold); box-shadow: 0 6px 18px rgba(21,71,52,.12); }
a.card h3::after { content: " \2192"; color: var(--gold-ink); }
.card .step {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-ink); margin-bottom: .35rem;
}
.card .step::before { content: "Part "; }

.option { border-top-color: var(--green); }
.option.employees { border-top-color: var(--gold); }
.option.third { border-top-color: #6f8a7c; }
.pro-con { display: grid; gap: .75rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.pro-con h4 {
  margin: .75rem 0 .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.pro-con ul { margin: 0; padding-left: 1.1rem; }

.callout {
  background: var(--gold-tint); border-left: 5px solid var(--gold);
  padding: 1.1rem 1.35rem; margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: .95rem; }
caption {
  caption-side: top; text-align: left; padding: .8rem 1rem; font-family: var(--serif);
  font-size: 1.05rem; color: var(--green); border-bottom: 1px solid var(--rule);
}
th, td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-top: 1px solid var(--rule); }
thead th {
  background: var(--green); color: #fff; border-top: 0;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
tbody tr:nth-child(even) { background: var(--surface-2); }
tbody th { font-weight: 700; width: 22%; color: var(--green); }

figure { margin: 2rem 0; }
figure svg { width: 100%; height: auto; max-width: 42rem; display: block; }
figcaption { font-size: .92rem; font-style: italic; color: var(--ink-soft); margin-top: .5rem; max-width: var(--measure); }

/* ---------- Placeholders: must all be gone before submission ---------- */
.todo {
  background: var(--todo-bg); border: 2px dashed var(--todo-border); color: var(--todo-ink);
  padding: .75rem 1rem; margin: 1rem 0; font-size: .95rem;
}
.todo::before {
  content: "TO WRITE"; display: block; font-weight: 800; font-size: .7rem;
  letter-spacing: .12em; margin-bottom: .25rem;
}
.todo ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.todo p:last-child { margin-bottom: 0; }
td .todo { margin: 0; padding: .45rem .6rem; font-size: .85rem; }

/* ---------- References (APA 7 hanging indent) ---------- */
.references { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.references li { padding-left: 2.5rem; text-indent: -2.5rem; margin-bottom: 1.1rem; overflow-wrap: anywhere; }

/* ---------- Pager ---------- */
.pager {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
}
.pager a {
  display: inline-block; padding: .7rem 1.2rem; background: var(--gold); color: var(--green);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.pager a:hover { background: var(--green); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: #e6ece8; border-top: 5px solid var(--gold); font-size: .92rem; }
.footer-grid {
  display: grid; gap: 1.5rem 3rem; padding-top: 2.25rem; padding-bottom: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.footer-title { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin-bottom: .5rem; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer a[aria-current] { color: var(--gold); }
.footer-note { padding-bottom: 1.5rem; font-size: .82rem; color: #c9d5ce; }
.footer-note p { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1rem; margin: 0; }

@media print {
  .utility-bar, .site-nav, .pager, .skip-link, .site-footer nav { display: none; }
  .site-header, .hero-home, .site-footer { background: #fff; color: #000; }
  .site-title, .hero-home h1, .hero-home .lede { color: #000; }
}
