/* ============================================================
   Shared components — nav, footer, cards, figures
   Reused across every page, not just Home
   ============================================================ */

/* ---------- Interior page header (About/People/etc — a shorter cousin
   of Home's hero, same navy + lattice treatment, ties every page together) */
.page-hero{
  position: relative;
  background: var(--wl-blue);
  overflow: hidden;
  padding-block: 64px;
}
@media (max-width: 680px){ .page-hero{ padding-block: 44px; } }
.page-hero .lattice-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .14;
}
/* No max-width here — same reason as .hero-inner in home.css: this element
   also carries .container, so capping its own width would make container's
   margin:0 auto re-center it independently in the full viewport instead of
   the container's normal left-aligned position. Capped on h1/p instead. */
.page-hero-inner{ position: relative; z-index: 1; }
.page-hero .kicker{ color: var(--on-dark-heading); }
.page-hero h1{
  font-size: clamp(28px, 4.4vw, 42px);
  color: #fff;
  max-width: clamp(720px, 62vw, 860px);
}
.page-hero p{
  font-size: 16px;
  color: var(--on-dark-body);
  max-width: clamp(600px, 50vw, 720px);
  margin-top: 14px;
  line-height: 1.6;
}

/* ---------- Course list (Curriculum) ---------- */
.course-list{ display: flex; flex-direction: column; }
.course-item{
  display: grid;
  grid-template-columns: 120px 1fr 90px;
  gap: 20px;
  align-items: start;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.course-item:last-child{ border-bottom: 1px solid var(--line); }
.course-code{ font-family: var(--font-mono); font-size: 11px; color: var(--accent); padding-top: 3px; }
.course-body h2{ font-size: 16px; margin-bottom: 6px; }
.course-body h2 a{ transition: color .15s ease; }
.course-body h2 a:hover{ color: var(--accent); }
.course-body p{ font-size: 13.5px; color: var(--muted); }
.course-term{ font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: right; padding-top: 3px; }
@media (max-width: 620px){
  .course-item{ grid-template-columns: 1fr; gap: 8px; }
  .course-term{ text-align: left; }
}

/* ---------- At-a-glance facts (course detail pages) ---------- */
.facts{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px 32px;
  margin: 0;
}
.facts dt{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.facts dd{ margin: 0; font-size: 14.5px; color: var(--ink); line-height: 1.5; }

/* ---------- Numbered steps (Get Involved) ---------- */
.steps{ display: flex; flex-direction: column; }
.step{ display: flex; gap: 18px; padding-block: 22px; border-top: 1px solid var(--line); }
.step:last-child{ border-bottom: 1px solid var(--line); }
.step .num{ font-family: var(--font-mono); font-size: 12px; color: var(--accent); width: 26px; flex-shrink: 0; padding-top: 3px; }
.step h3{ font-size: 15.5px; margin-bottom: 6px; }
.step p{ font-size: 13.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--wl-blue);
  border-radius: 10px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-band h3{ color: #fff; font-size: 18px; margin-bottom: 4px; }
.cta-band p{ color: var(--on-dark-faint); font-size: 13px; margin: 0; }

/* ---------- Contact info grid ---------- */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 560px){ .contact-grid{ grid-template-columns: 1fr; gap: 24px; } }
.contact-grid h2{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-grid p{ font-size: 14.5px; color: var(--ink); line-height: 1.6; }

/* ---------- Contact form (Netlify Forms) ---------- */
.contact-form{ display: grid; gap: 18px; max-width: clamp(560px, 50vw, 720px); }
.contact-form .field{ display: grid; gap: 6px; }
.contact-form label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-form .optional{ color: var(--faint); text-transform: none; letter-spacing: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea{
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
}
.contact-form textarea{ resize: vertical; min-height: 140px; }
.contact-form .btn{ justify-self: start; }
@media (max-width: 480px){ .contact-form .btn{ justify-self: stretch; } }

/* ---------- Native two-column bio card (People) ---------- */
.bio-cols{ display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
@media (max-width: 620px){ .bio-cols{ grid-template-columns: 1fr; } }
.portrait-frame{ position: relative; }
.portrait-card .corner{ position: absolute; width: 16px; height: 16px; border: 2px solid var(--accent); z-index: 2; }
.portrait-card .c1{ top: -1px; left: -1px; border-right: none; border-bottom: none; }
.portrait-card .c2{ top: -1px; right: -1px; border-left: none; border-bottom: none; }
.portrait-card .c3{ bottom: -1px; left: -1px; border-right: none; border-top: none; }
.portrait-card .c4{ bottom: -1px; right: -1px; border-left: none; border-top: none; }
.portrait-card img{ width: 100%; display: block; }
.portrait-tag{ font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-top: 10px; }
.bio h2{ font-size: 22px; margin-bottom: 6px; }
.bio .role{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.bio p{ font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* ---------- Vertical accent + list (Programs & Research — Focus Areas) ---------- */
.focus-wrap{ display: grid; grid-template-columns: 56px 1fr; gap: 24px; }
@media (max-width: 560px){ .focus-wrap{ grid-template-columns: 1fr; } .focus-wrap .tracecol{ display: none; } }
.tracecol img{ height: 100%; width: 100%; object-fit: contain; }
.focus-list{ display: flex; flex-direction: column; gap: 22px; }
.focus-item h3{ font-size: 16px; margin-bottom: 6px; }
.focus-item p{ font-size: 13.5px; color: var(--muted); }

/* ---------- Books row (Programs & Research — scholarship) ---------- */
.books{ display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
/* Programs: tighter top than a regular section so the books sit closer to
   the divider above, leaving room below them for the article list. */
.section.scholarship{ padding-top: 48px; }
@media (max-width: 480px){ .section.scholarship{ padding-top: 32px; } }
.book{ width: 130px; }
.book img{ width: 100%; border-radius: 3px; display: block; box-shadow: 0 10px 24px -12px rgba(20,26,46,.4); }
.book .bt{ font-size: 12.5px; font-weight: 700; margin-top: 10px; color: var(--ink); }
.book .ba{ font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Nav ---------- */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wl-blue);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: box-shadow .25s ease;
}
.site-nav.is-scrolled{
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.45);
}
.site-nav .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  letter-spacing: -.01em;
}
.brand img{ width: 20px; height: 20px; object-fit: contain; }

.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--on-dark-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-links a[aria-current="true"]{
  color: #fff;
  border-color: var(--amber);
}

.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: -10px;
  color: #fff;
}
.nav-toggle svg{ width: 22px; height: 22px; }

@media (max-width: 1040px){
  .nav-links{
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: var(--wl-blue-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 14px 20px;
    display: none;
    box-shadow: 0 12px 24px -12px rgba(0,0,0,.5);
  }
  .nav-links.is-open{ display: flex; }
  /* Spacing (not hairline borders) separates items here on purpose — a 1px
     line this close to 13px text reads as crossing through it at some
     rendering scales. A border-left instead marks the current page. */
  .nav-links a{
    display: block;
    width: 100%;
    padding: 13px 14px;
    border-bottom: none;
    border-left: 3px solid transparent;
    border-radius: 4px;
    font-size: 13px;
  }
  .nav-links a:hover{ background: rgba(255,255,255,.06); }
  .nav-links a[aria-current="page"],
  .nav-links a[aria-current="true"]{ border-left-color: var(--amber); background: rgba(255,255,255,.05); }
  .nav-toggle{ display: inline-flex; }
}
@media (max-width: 360px){
  .brand{ font-size: 14px; }
  .brand img{ width: 18px; height: 18px; }
}

/* ---------- Cards: event / talk (dark, W&L blue) ---------- */
.event-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px){ .event-grid{ grid-template-columns: 1fr; } }

.event-card{
  background: var(--wl-blue);
  border-radius: 10px;
  padding: 22px 20px;
}
.event-card .doc-id{ font-family: var(--font-mono); font-size: 10.5px; color: var(--on-dark-heading); margin-bottom: 10px; }
.event-card h3{ font-size: 16px; color: #fff; margin-bottom: 8px; }
.event-meta{ font-family: var(--font-mono); font-size: 11px; color: var(--on-dark-faint); margin-bottom: 12px; }
.event-card p{ font-size: 13px; color: var(--on-dark-body); margin-bottom: 18px; }

/* ---------- Cards: index / research / project (light) ---------- */
.idx-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px){ .idx-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .idx-grid{ grid-template-columns: 1fr; } }

.idx-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.idx-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(20,26,46,.35);
  border-color: var(--accent);
}
.idx-card .doc-id{ font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); margin-bottom: 10px; }
.idx-card h3{ font-size: 15.5px; margin-bottom: 8px; }
.idx-card p{ font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.idx-card .by{ font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

.tag{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.tag-progress{ background: var(--amber); color: #fff; }
.tag-published{ background: var(--accent); color: #fff; }
.tag-courts{ background: var(--wl-blue); color: #fff; }
.tag-ethics{ background: var(--amber); color: #fff; }
.tag-education{ background: var(--accent); color: #fff; }
.tag-access{ background: var(--wl-grey); color: #fff; }
.tag-industry{ background: var(--muted); color: #fff; }

/* ---------- Figures: corner-bracket photo frames ---------- */
.figure-frame{ position: relative; }
.figure .corner{ position: absolute; width: 16px; height: 16px; border: 2px solid var(--accent); z-index: 2; }
.figure .c1{ top: -1px; left: -1px; border-right: none; border-bottom: none; }
.figure .c2{ top: -1px; right: -1px; border-left: none; border-bottom: none; }
.figure .c3{ bottom: -1px; left: -1px; border-right: none; border-top: none; }
.figure .c4{ bottom: -1px; right: -1px; border-left: none; border-top: none; }
.figure img{ width: 100%; display: block; border-radius: 2px; }
.figure figcaption{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: .01em;
}
.figure figcaption b{ color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--wl-blue-deep);
  color: var(--on-dark-muted);
  padding: 64px 0 28px;
}
@media (max-width: 480px){ .site-footer{ padding: 44px 0 24px; } }
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 700px){ .footer-grid{ grid-template-columns: 1fr; gap: 32px; padding-bottom: 28px; } }
.footer-grid h4{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-heading);
  margin-bottom: 16px;
}
.footer-brand{ font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 17px; margin-bottom: 10px; }
.footer-grid p{ font-size: 13.5px; margin-bottom: 6px; color: var(--on-dark-muted); }
.footer-links{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a{ font-size: 13.5px; color: var(--on-dark-muted); transition: color .15s ease; }
.footer-links a:hover{ color: #fff; }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 22px; font-family: var(--font-mono); font-size: 11px; color: #8fa0c4;
}
