:root {
  --navy: #14283f;
  --gold: #b59a60;
  --ink: #263445;
  --muted: #667485;
  --line: #e0e5eb;
  --light: #f5f7f9;
  --white: #ffffff;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 16px/1.7 Arial, Helvetica, sans-serif;
}

a {
  color: #28577f;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* ========================================
   HEADER AND NAVIGATION
   ======================================== */

.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  max-width: var(--max-width);
  margin: auto;
  padding: 18px 24px 0;
}

/* North Marker brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 18px;
  color: var(--white);
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  display: block;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  color: var(--gold);
}

.brand-name {
  display: block;
  color: var(--white);
  font: 30px/1.15 Georgia, "Times New Roman", serif;
}

.brand-name > span {
  color: #d8c18a;
}

.brand-descriptor {
  display: block;
  margin-top: 5px;
  color: #cbd4de;
  font: 11px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

nav a {
  color: #e0e6ed;
  text-decoration: none;
  padding: 10px 0 13px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active,
nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--gold);
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero,
.page-hero {
  background: var(--navy);
  color: var(--white);
}

.hero {
  text-align: center;
  padding: 76px 24px 82px;
}

.page-hero {
  padding: 52px 24px 58px;
}

.hero h1,
.page-hero h1 {
  color: var(--white);
  font: 500 clamp(38px, 6vw, 60px)/1.15 Georgia, "Times New Roman", serif;
  margin: 12px 0 20px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 48px);
  margin-bottom: 12px;
}

.hero .lead,
.page-hero .lead {
  max-width: 780px;
   margin: 0 auto 20px;
  font-size: 18px;
}
.page-hero > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.content { max-width: var(--max-width); margin: 0 auto; padding: 44px 24px; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h2 { font: 32px/1.25 Georgia, serif; margin: 0 0 20px; }
h3 { font-size: 20px; margin: 0 0 14px; }
p { margin: 0 0 18px; }
.eyebrow, .item-meta { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.hero .eyebrow, .page-hero .eyebrow { color: #d8c18a; }
.intro, .section-intro { max-width: 850px; color: var(--muted); }
.cards, .card-grid, .quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; margin-top: 28px; }
.card, .quick-link, .entry { border: 1px solid var(--line); border-radius: 8px; padding: 26px; background: var(--white); overflow-wrap: anywhere; }
.card p { color: var(--muted); }
.card a { display: inline-block; margin: 6px 16px 0 0; }
.quick-link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.quick-link:hover { border-color: var(--gold); background: var(--light); }
.quick-link-title { font-size: 20px; font-weight: bold; color: var(--navy); }
.quick-link-description { color: var(--muted); }
.quick-link-arrow { color: #80662e; font-size: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; margin-top: 28px; }
.button-link { display: inline-block; padding: 12px 20px; border-radius: 4px; background: #d8c18a; color: var(--navy); text-decoration: none; font-weight: bold; }
.button-link:hover { background: #e4d1a6; }
.hero .text-link { color: var(--white); }
.contribution-panel { padding: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--light); }
.contribution-panel .hero-actions { justify-content: flex-start; }
.notice { background: var(--light); border-left: 4px solid var(--gold); padding: 24px; margin: 24px 0; }
.notice > :last-child, .card > :last-child { margin-bottom: 0; }
.entry { margin-top: 24px; }
.calendar-container iframe { width: 100%; height: 650px; border: 0; }
footer { background: var(--navy); color: #e0e6ed; margin-top: 36px; }
footer a { color: #e0e6ed; }
footer a:hover { color: #ffffff; }
footer .content { padding-top: 32px; padding-bottom: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 600px) {
 .header-inner { padding: 16px 20px 0; }
 .brand-name { font-size: 26px; }
 .brand-descriptor { font-size: 9px; letter-spacing: 1px; }
 nav { gap: 0 18px; }
 nav a { font-size: 13px; }
 .hero { padding: 48px 20px; }
 .page-hero { padding: 36px 20px; }
 .content { padding: 32px 20px; }
 .contribution-panel { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ========================================
   HOMEPAGE — QUIET, CENTRED INTRODUCTION
   ======================================== */

.home-page .hero {
  background: var(--light);
  color: var(--ink);
  padding: 42px 24px 38px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.home-page .hero > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.home-page .hero .eyebrow {
  color: #80662e;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 1.3px;
}

.home-page .hero h1 {
  color: var(--navy);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  margin: 0 auto 14px;
  font-weight: 500;
}

.home-page .hero .lead {
  color: var(--muted);
  max-width: 650px;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 0;
}

.home-page .content {
  padding-top: 34px;
  padding-bottom: 34px;
}

.home-page h2 {
  font-size: 28px;
}

.home-page .card-grid {
  gap: 18px;
  margin-top: 22px;
}

.home-page .card {
  padding: 22px;
}

.home-page .card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.home-page .card p {
  font-size: 14px;
  line-height: 1.6;
}

.home-page .contribution-panel {
  padding: 28px;
}

@media (max-width: 600px) {
  .home-page .hero {
    padding: 32px 20px;
  }

  .home-page .content {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .home-page h2 {
    font-size: 25px;
  }

  .home-page .card {
    padding: 20px;
  }
}


/* ========================================
   INTERN NETWORK — HOMEPAGE FEATURE
   ======================================== */

.intern-network-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--light);
}

.intern-network-copy {
  max-width: 900px;
  margin: 0 auto;
}

.intern-network-panel .eyebrow {
  color: #80662e;
  margin-bottom: 10px;
}

.intern-network-panel h2 {
  margin-bottom: 14px;
}

.intern-network-panel > .intern-network-copy > p:not(.eyebrow):not(.intern-network-note) {
  max-width: 800px;
  color: var(--muted);
}

.intern-network-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.intern-network-benefits > div {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.intern-network-benefits h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.intern-network-benefits p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}

.intern-network-panel .button-link {
  margin-top: 2px;
}

.intern-network-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .intern-network-panel {
    padding: 24px;
  }

  .intern-network-benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* ========================================
   SEARCHABLE LEGAL RESEARCH LIBRARY
   ======================================== */

.library-promo {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--light);
}
.library-promo > div { max-width: 720px; }
.library-promo .eyebrow { color: #80662e; margin-bottom: 8px; }
.library-promo h2 { font-size: 25px; margin-bottom: 8px; }
.library-promo p:last-child { margin-bottom: 0; color: var(--muted); }
.home-library-action { margin-top: 20px; }
.library-search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 22px;
  margin: 24px 0 16px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.library-search-field, .library-filter-field { min-width: 0; }
.library-search-panel label {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}
.library-search-panel input,
.library-search-panel select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cbd3dc;
  border-radius: 4px;
  font: inherit;
}
.library-search-panel input:focus,
.library-search-panel select:focus {
  outline: 3px solid #d8c18a;
  outline-offset: 1px;
}
.library-clear {
  min-height: 44px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.library-clear:hover { background: #243f5c; }
.library-result-count { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.library-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.library-entry {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  background: var(--white);
  overflow-wrap: anywhere;
}
.library-entry-meta {
  color: #80662e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.library-entry h3 { margin-bottom: 10px; font-size: 19px; }
.library-entry h3 a { color: var(--navy); text-decoration: none; }
.library-entry h3 a:hover { text-decoration: underline; }
.library-entry > p:not(.library-entry-meta) { color: var(--muted); font-size: 14px; line-height: 1.65; }
.library-entry-link { display: inline-block; margin-top: 2px; font-weight: 700; }
.library-empty { grid-column: 1 / -1; padding: 28px; background: var(--light); border: 1px solid var(--line); }
.library-empty p { margin-bottom: 0; color: var(--muted); }
.library-note { margin-top: 32px; }
.library-reviewed { color: var(--muted); font-size: 13px; margin-bottom: 0; }
@media (max-width: 850px) {
  .library-search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-results { grid-template-columns: 1fr; }
  .library-promo { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .library-search-panel { grid-template-columns: 1fr; padding: 18px; }
  .library-entry { padding: 20px; }
}

/* Reusable homepage spotlight */
.spotlight-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--light);
}
.spotlight-copy { max-width: 900px; margin: 0 auto; }
.spotlight-panel .eyebrow { color: #80662e; margin-bottom: 10px; }
.spotlight-panel h2 { margin-bottom: 14px; }
.spotlight-copy > p:not(.eyebrow) { max-width: 800px; color: var(--muted); }
@media (max-width: 700px) { .spotlight-panel { padding: 24px; } }
