/* ==========================================================================
   WoW Institute of Learning — wowteaching.org
   Shared stylesheet.

   PALETTE: Institute of Learning line = navy + red (per brand standards).
   To change the accent color site-wide, edit --accent below. One line.

   FONTS: system stacks only — this site makes ZERO third-party requests,
   which is what keeps the privacy statement on policies.html accurate.
   To use Montserrat instead, see the note at the bottom of this file.
   ========================================================================== */

:root {
  --navy:      #1B3A5C;   /* primary */
  --accent:    #B5342A;   /* WoW Red — Institute of Learning accent */
  --lightblue: #A8C8E0;
  --paleblue:  #EAF2F8;
  --gray:      #5A5A5A;
  --ink:       #1F2933;
  --rule:      #C7D4DF;
  --paper:     #FFFFFF;

  --display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --measure: 68ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;      /* 17px — above the 16px floor */
  line-height: 1.65;
  text-align: left;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff;
  padding: .75rem 1.25rem; z-index: 100; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- layout ---------- */
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section + section { border-top: 1px solid var(--rule); }

/* ---------- header ---------- */
.site-header { border-bottom: 2px solid var(--accent); padding: 1rem 0; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.brand span {
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.2;
}

nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; }
nav a {
  color: var(--navy); text-decoration: none;
  font-size: .9375rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
nav a:hover, nav a:focus-visible { border-bottom-color: var(--accent); }
nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
h4 { font-size: 1.0625rem; margin: 1.5rem 0 .35rem; }

p { max-width: var(--measure); margin: 0 0 1.1rem; }
.lead { font-size: 1.1875rem; }

.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 .75rem;
}
.rule-under { display: block; width: 4rem; height: 3px; background: var(--accent); margin: 1.25rem 0 1.75rem; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--accent); }
strong { font-weight: 700; color: var(--navy); }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; }
.hero h1 em { font-style: italic; }

/* ---------- panels ---------- */
.panels { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .panels { grid-template-columns: 1fr 1fr; } }
.panel {
  border: 1px solid var(--rule);
  border-left: 5px solid var(--navy);
  padding: 1.5rem;
}
.panel.alt { border-left-color: var(--accent); }
.panel h3 { margin-top: 0; }
.panel p { margin-bottom: .75rem; }
.panel a { font-weight: 600; }

/* ---------- callout ---------- */
.callout {
  background: var(--paleblue);
  border-left: 5px solid var(--navy);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  max-width: var(--measure);
}
.callout.accent { border-left-color: var(--accent); background: #FBF1EF; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- lists ---------- */
ul.plain { list-style: none; padding: 0; margin: 0 0 1.25rem; max-width: var(--measure); }
ul.plain li {
  padding: .55rem 0 .55rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
ul.plain li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
}
ul.plain li:last-child { border-bottom: 0; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.25rem; }
.tags li {
  border: 1px solid var(--lightblue);
  background: var(--paleblue);
  color: var(--navy);
  padding: .4rem .8rem;
  font-size: .9375rem;
  font-weight: 600;
}

/* ---------- credential rows ---------- */
.rows { border-top: 1px solid var(--rule); max-width: var(--measure); margin: 0 0 1.25rem; }
.rows > div {
  display: grid; gap: .15rem 1.5rem;
  padding: .8rem 0; border-bottom: 1px solid var(--rule);
}
@media (min-width: 40rem) { .rows > div { grid-template-columns: 1fr auto; align-items: baseline; } }
.r-main { font-weight: 600; color: var(--navy); }
.r-meta { color: var(--gray); font-size: .9375rem; }

/* ---------- table ---------- */
table { border-collapse: collapse; width: 100%; max-width: 46rem; margin: 0 0 1.25rem; font-size: .9375rem; }
caption { text-align: left; color: var(--gray); font-size: .9375rem; padding-bottom: .6rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--rule); }
thead th { background: var(--navy); color: #fff; font-family: var(--body); font-weight: 700; }
tbody th { font-weight: 600; color: var(--navy); }
tbody tr:nth-child(even) { background: #F6F9FC; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 2px solid var(--navy);
  margin-top: 2rem;
  padding: 2.5rem 0;
  font-size: .9375rem;
  color: var(--gray);
}
.site-footer .wrap { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer a { color: var(--navy); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0; margin: 0; }
.site-footer img { height: 36px; width: auto; margin-bottom: .75rem; display: block; }

/* ==========================================================================
   OPTIONAL — Montserrat headings instead of Georgia:
   1. Add to <head> on every page:
      <link rel="preconnect" href="https://fonts.googleapis.com">
      <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap" rel="stylesheet">
   2. Change --display above to:  "Montserrat", Georgia, serif;
   3. IMPORTANT: this adds a third-party request. Update the privacy statement
      on policies.html to disclose it, or that statement becomes inaccurate.
   ========================================================================== */
