@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/InstrumentSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/InstrumentSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/InstrumentSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/InstrumentSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0d132d;
  --deep: #0b1b33;
  --ink: #293340;
  --muted: #293340;
  --blue: #141f4d;
  --red: #b50000;
  --white: #fff;
  --off-white: #f3f3f3;
  --pale: #f3f3f3;
  --line: #d9dee8;
  --blue-gradient: linear-gradient(321deg, #141f4d 7.41%, #12347f 80.62%);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --header-height: 76px;
  --compact-header-height: 52px;
  --wordmark-width: 19rem;
  --compact-wordmark-width: 13.5rem;
  scroll-padding-top: var(--header-height);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.6 var(--sans); letter-spacing: .2px; }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, select, input { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
p { margin: .55em 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.18; letter-spacing: .04em; }
h2 { font-size: clamp(2.35rem, 4.3vw, 3.7rem); }
h3 { font-size: 1.5rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--white); }
.wrap { width: min(100% - 4rem, 1160px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; inset: .5rem auto auto .75rem; z-index: 3; padding: .6rem .9rem; background: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  height: var(--header-height);
  pointer-events: none;
}
.header-inner {
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  background: var(--white);
  pointer-events: auto;
}
.wordmark { display: grid; align-items: center; min-height: 44px; width: min(var(--wordmark-width), 100%); }
.wordmark img { width: 100%; height: auto; filter: brightness(0); }
.site-header.is-compact .header-inner {
  height: var(--compact-header-height);
  box-shadow: 0 1px 0 var(--line), 0 3px 14px #0d132d12;
}
.site-header.is-compact .wordmark { width: min(var(--compact-wordmark-width), 100%); }

.hero { background: linear-gradient(0deg, #0d132d 24.28%, #0b1b33 100%); color: var(--white); text-align: center; }
.hero-copy { padding-block: clamp(2.6rem, 5vw, 4.85rem) clamp(1.65rem, 3.5vw, 3.2rem); }
.kicker { color: var(--red); font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .65rem; }
.hero .kicker { color: var(--line); margin-bottom: .55rem; }
h1 { font-size: clamp(2.6rem, 5.15vw, 5.125rem); line-height: 1.08; letter-spacing: 1.2px; text-wrap: balance; }
.hero-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem clamp(.85rem, 4vw, 3.35rem); margin-top: clamp(1.05rem, 2.15vw, 1.8rem); }
.hero-nav a { color: var(--white); font-size: clamp(.73rem, 1.15vw, .96rem); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; text-decoration: none; }
.hero-nav a:hover { text-decoration: underline; }
.hero-photo { position: relative; margin: 0; background: var(--deep); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 76%; }
.hero-photo figcaption { position: absolute; right: 0; bottom: 0; padding: .26rem .63rem; background: #0b1b33e8; font-size: .69rem; letter-spacing: .02em; }
.hero-photo a { color: var(--white); }
.intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 1.15rem 3.5rem; padding-block: clamp(1.9rem, 4vw, 3.55rem); border-bottom: 1px solid var(--line); }
.intro p { max-width: 57ch; margin: .55rem 0 .6rem; }
.hill-link { font-size: .9rem; font-weight: 700; }
.hill-link span { margin-left: .25rem; }
.hero-search { width: 100%; padding: 1rem; background: var(--pale); border: 1px solid var(--line); }
.hero-search label { display: block; margin-bottom: .4rem; color: var(--navy); font-weight: 700; }
.search-controls { display: flex; gap: .35rem; }
.hero-search input { flex: 1; min-width: 0; padding: .5rem .65rem; background: var(--white); color: var(--navy); border: 1px solid #8a8a8a; border-radius: 4px; }
.hero-search button { flex: none; }
.hero-search button span { margin-left: .16rem; }

.section { padding-block: clamp(3.2rem, 6vw, 5.3rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem 2.5rem; margin-bottom: 1.55rem; }
.section-head p { max-width: 42ch; color: var(--muted); font-size: .94rem; margin: 0; }
.deadline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: .9rem; }
.deadline-card { display: grid; grid-template-columns: 3.65rem minmax(0, 1fr); gap: .8rem; align-items: center; min-height: 90px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .8rem; }
.date-box { display: grid; place-content: center; align-self: stretch; text-align: center; border-radius: 4px; background: var(--pale); color: var(--navy); line-height: 1.05; padding: .25rem; }
.date-box strong { font: 400 1.95rem/1 var(--serif); }
.date-box span, .milestone { font-size: .67rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 790; }
.milestone { color: var(--red); }
.deadline-card a { display: block; color: var(--navy); font-size: .88rem; font-weight: 720; line-height: 1.3; text-decoration: none; }
.deadline-card a:hover { text-decoration: underline; }
.metadata { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
.button, .quiet { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 5px; font-weight: 750; text-decoration: none; }
.button { min-height: 44px; padding: .6rem 1rem; font-size: .9rem; }
.button.dark { background: var(--blue-gradient); color: var(--white); }
.button.dark:hover { background: var(--blue); }
.quiet { min-height: 35px; padding: .3rem .7rem; color: var(--navy); background: transparent; border-color: #9ba7b5; font-size: .81rem; }
.quiet:hover, .quiet[aria-pressed=true] { color: var(--white); background: var(--navy); border-color: var(--navy); }

.directory-shell, .toolkit { background: var(--pale); border-block: 1px solid var(--line); }
.directory-policy-link { display: inline-block; margin-top: .55rem; font-size: .85rem; font-weight: 700; }
.featured-programs { margin-bottom: clamp(2rem, 4.5vw, 3.75rem); }
.featured-programs .quiet { flex-shrink: 0; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.featured-grid .program { border-top: 3px solid var(--red); }
.featured-grid .program h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.featured-tip { border-top: 1px solid var(--line); padding-top: .55rem; }
.tac-note { font-size: .81rem; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; padding: 1.15rem; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 6px; }
.filters label { display: grid; align-content: start; gap: .3rem; min-width: 0; font-size: .81rem; font-weight: 730; }
.filters input, .filters select { width: 100%; min-width: 0; min-height: 42px; padding: .55rem .65rem; font-weight: 400; border: 1px solid #9ba7b5; border-radius: 4px; color: var(--ink); background: var(--white); font-size: .91rem; }
.filters select {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23293340' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: .75rem auto;
}
.search-label, .quick-filters { grid-column: 1/-1; }
.filters input { min-height: 46px; font-size: 1rem; }
.quick-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.directory-notes { margin-top: .95rem; font-size: .84rem; }
.directory-notes summary { width: fit-content; font-weight: 650; }
.coverage { max-width: 105ch; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: .7rem 0; }
.toolbar p { margin: 0; color: var(--muted); font-size: .83rem; }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; align-items: stretch; }
.program { display: flex; flex-direction: column; min-width: 0; min-height: 219px; gap: .52rem; padding: 1.05rem; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.program h3 { font-size: 1.43rem; }
.program-meta { margin: 0; font-size: .74rem; color: var(--muted); }
.program-deadline { margin: 0; color: var(--navy); font-size: .82rem; }
.program-desc { font-size: .86rem; margin: 0; line-height: 1.49; }
.tags { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.tag { background: #eef1f4; color: #334357; border-radius: 3px; padding: .1rem .4rem; font-size: .69rem; font-weight: 740; }
.tag.open { background: #e0eee5; color: #24543b; }
.tag.upcoming { background: #f5e9cc; color: #624618; }
.tag.closed { background: #f6e4e4; color: #7b2831; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-top: auto; padding-top: .3rem; font-size: .83rem; }
.card-footer a { font-weight: 740; }
.directory-footer { text-align: center; margin-top: 1.25rem; }
.empty { grid-column: 1/-1; margin: 0; padding: 1.1rem; background: var(--white); border: 1px solid var(--line); }

.guide { border-top: 1px solid var(--line); }
.guide:last-child { border-bottom: 1px solid var(--line); }
.guide > summary { list-style: none; display: flex; gap: .6rem 1.1rem; align-items: center; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; }
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary::after { content: '+'; position: absolute; right: .4rem; font-size: 1.5rem; color: var(--red); }
.guide[open] > summary::after { content: '−'; }
.guide > summary span:first-child { font: 400 1.85rem/1.12 var(--serif); }
.summary-sub { font-size: .85rem; color: var(--muted); }
.guide-body { padding: 0 0 1.3rem; }
.lede { font-size: 1.04rem; max-width: 80ch; }
.steps { display: grid; gap: .7rem; padding-left: 1.3rem; max-width: 88ch; }
.steps li { padding-left: .2rem; }
.steps li::marker { color: var(--red); font-weight: 750; }
.steps code { overflow-wrap: anywhere; }
.comparison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.comparison > div, .callout { padding: 1rem; border-radius: 4px; background: var(--pale); }
.comparison p, .callout p { font-size: .89rem; margin-bottom: 0; }
.callout { border-left: 3px solid var(--red); margin-top: 1rem; }
.inline-links { display: flex; flex-wrap: wrap; gap: .6rem .95rem; font-size: .85rem; font-weight: 700; margin-bottom: 0; }
.photo-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(180px,1fr); gap: 1.4rem; align-items: start; }
.photo-layout img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 5px; }
.toolkit-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kit-card { padding: 1.15rem; background: var(--white); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.checklist { margin: .75rem 0 1.1rem; padding-left: 1.25rem; }
.checklist li { margin: .5rem 0; }
.script { margin-top: .7rem; border-top: 1px solid var(--line); padding-top: .55rem; }
.script summary { font-weight: 700; font-size: .88rem; }
.script pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--off-white); padding: .85rem; font: .87rem/1.5 var(--sans); border: 1px solid var(--line); border-radius: 4px; }
.intern-dock { display: flex; align-items: center; justify-content: space-between; gap: 1.15rem; }
.intern-dock h2 { font-size: clamp(2rem, 4vw, 3.05rem); }
.intern-dock p { margin: .5rem 0 0; }
.intern-dock .button { flex-shrink: 0; }
.footer { background: var(--deep); color: var(--white); padding: 2.1rem 0; font-size: .86rem; }
.footer a { color: var(--white); }
.footer-top { display: flex; align-items: start; justify-content: space-between; gap: .8rem; margin-bottom: .85rem; }
.footer-top strong { font: 400 1.85rem/1.06 var(--serif); }
.footer p { color: #e1e7ef; }
.footer details { border-top: 1px solid #536071; padding-top: .65rem; }

@media (prefers-reduced-motion: no-preference) {
  :root { --scroll-easing: cubic-bezier(.25, .54, .4, 1); }
  html { scroll-behavior: smooth; }
  .header-inner { transition: height 380ms var(--scroll-easing), box-shadow 380ms var(--scroll-easing); }
  .wordmark { transition: width 380ms var(--scroll-easing); }

  @keyframes enter {
    from { opacity: .72; transform: translateY(.65rem); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes reveal-photo {
    from { opacity: .75; }
    to { opacity: 1; }
  }

  @keyframes reveal-section {
    from { opacity: .82; transform: translateY(.4rem); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero h1, .hero-nav {
    animation: enter 540ms cubic-bezier(.2, .75, .3, 1) backwards;
  }
  .is-revealed { animation: reveal-section 840ms var(--scroll-easing) backwards; }
  .hero-nav { animation-delay: 90ms; }
  .hero-photo img { animation: reveal-photo 740ms ease-out backwards; }
  .guide[open] > .guide-body, .script[open] > pre {
    animation: enter 260ms ease-out;
  }

  .button, .quiet {
    transition: background-color 180ms ease-out, border-color 180ms ease-out,
      color 180ms ease-out, box-shadow 180ms ease-out;
  }
  .button span[aria-hidden="true"], .quiet span[aria-hidden="true"] {
    transition: transform 180ms ease-out;
  }
  .hero-nav a {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 180ms ease-out;
  }
  .hero-nav a:is(:hover, :focus-visible) { text-decoration-color: currentColor; }

  @media (min-width: 601px) {
    .featured-grid .is-revealed:nth-child(even) { animation-delay: 45ms; }
  }

  @media (hover: hover) {
    .program, .deadline-card {
      transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
    }
    .program:hover, .deadline-card:hover {
      border-inline-color: #a8b3c4;
      border-bottom-color: #a8b3c4;
      box-shadow: 0 5px 18px #0d132d12;
    }
    .button:hover, .quiet:hover { box-shadow: 0 3px 10px #0d132d1a; }
    .button:hover span[aria-hidden="true"] { transform: translateX(3px); }
    .featured-programs .quiet:hover span[aria-hidden="true"] { transform: translateY(3px); }
  }
}

@media (forced-colors: active) {
  .filters select { appearance: auto; background-image: none; padding-right: .65rem; }
}

@media (max-width: 880px) {
  .wrap { width: min(100% - 2.5rem, 1160px); }
  .program-grid, .deadline-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .intro { gap: 1rem 1.25rem; }
}

@media (max-width: 600px) {
  :root {
    --header-height: 60px;
    --compact-header-height: 46px;
    --wordmark-width: 15rem;
    --compact-wordmark-width: 11rem;
  }
  .wrap { width: calc(100% - 2rem); }
  .hero-copy { padding-block: 2.15rem 2.4rem; }
  h1 { font-size: clamp(2.5rem, 11.5vw, 3.25rem); }
  .hero-nav {
    display: grid;
    max-width: 19rem;
    margin: 1.3rem auto 0;
  }
  .hero-nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: .5rem .75rem;
    color: var(--line);
    font-size: .875rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .hero-nav a:is(:hover, :focus-visible, :active) {
    color: var(--white);
    text-decoration: underline;
  }
  .hero-photo img { aspect-ratio: 2 / 1; object-position: center 40%; }
  .intro { grid-template-columns: minmax(0, 1fr); padding-block: 1rem 1.55rem; }
  .intro-copy {
    padding: 1.15rem;
    border-radius: 10px;
    background: var(--blue-gradient);
    color: var(--white);
  }
  .intro-copy .hill-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); }
  .intro-copy .hill-link:focus-visible { outline-color: var(--white); }
  .hero-search { padding: .75rem; }
  .hero-search input, .filters input, .filters select { min-height: 44px; font-size: 16px; }
  .section { padding-block: 2.15rem; }
  .section-head { align-items: start; flex-direction: column; gap: .55rem; margin-bottom: 1.1rem; }
  .section-head p { font-size: 1rem; }
  h2 { font-size: clamp(2.15rem, 8.4vw, 2.75rem); line-height: 1.11; }
  .deadline-grid, .featured-grid, .program-grid, .toolkit-layout, .photo-layout, .comparison { grid-template-columns: 1fr; }
  .deadline-card { min-height: 72px; }
  .deadline-card a { display: flex; align-items: center; min-height: 36px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: .75rem; }
  .search-label, .filters label:last-child { grid-column: 1/-1; }
  .quiet, .directory-notes summary { min-height: 44px; }
  .directory-notes summary { display: list-item; padding-block: .6rem; }
  .quick-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .quick-filters .quiet { padding-inline: .2rem; }
  .program { min-height: 0; }
  .program h3 { font-size: 1.6rem; }
  .program-desc { font-size: 1rem; }
  .card-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .guide > summary { display: grid; gap: .3rem; min-height: 44px; }
  .photo-layout img { max-width: 400px; }
  .script summary, .footer details summary { min-height: 44px; padding-block: .6rem; }
  .intern-dock { flex-direction: column; align-items: start; }
  .footer-top strong { font-size: 1.6rem; }
}

@media (max-width: 360px) {
  .search-controls { flex-direction: column; }
}
