@font-face {
  font-family: 'Noto Serif Display';
  src: url('./assets/noto-serif-display-italic.woff') format('woff');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fafbf6;
  --white: #fff;
  --ink: #162a20;
  --muted: #4c6153;
  --green: #24553d;
  --forest: #183e2d;
  --leaf: #d2edaa;
  --sage: #eaf1e4;
  --line: #d4dfd1;
  --display: 'Noto Serif Display', Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4 { margin: 0; }
button, select { font: inherit; }
button { cursor: pointer; }
section[id] { scroll-margin-top: 1.5rem; }
:focus-visible { outline: 3px solid #4a8044; outline-offset: 4px; }
::selection { background: var(--leaf); color: var(--ink); }

.container { width: min(100% - 6rem, 77rem); margin-inline: auto; }
.skip-link { position: absolute; inset: .75rem auto auto .75rem; z-index: 5; padding: .8rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.9rem; }
.brand { display: inline-block; justify-self: start; width: 10.4rem; }
.brand img { width: 100%; height: auto; mix-blend-mode: multiply; }
.site-header nav { display: flex; gap: clamp(1.25rem, 3.4vw, 3rem); align-items: center; }
.site-header nav a { text-decoration: none; font-size: .95rem; font-weight: 600; padding-block: .65rem; }
.site-header nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: .3rem; }
.header-contact { justify-self: end; }

.button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; min-height: 3rem; border: 1px solid transparent; border-radius: 999px; padding: .72rem 1.24rem; font-size: .94rem; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; transition: background-color .16s, border-color .16s, color .16s; }
.button-outline { border-color: #a8baaa; color: var(--green); background: transparent; }
.button-outline:hover { background: var(--sage); border-color: var(--green); }
.button-primary { color: var(--white); background: var(--forest); }
.button-primary:hover { background: #2b5b40; }
.button-lime { color: var(--ink); background: var(--leaf); }
.button-lime:hover { background: #bfe398; }
.text-link { display: inline-flex; align-items: center; width: fit-content; min-height: 2.75rem; font-size: .94rem; font-weight: 700; color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .27rem; }
.text-link:hover { color: var(--ink); }

.hero { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.8rem, 5.3vw, 5.05rem); }
.hero-content { padding-block: .25rem; }
.eyebrow { font-size: .875rem; letter-spacing: .095em; font-weight: 700; text-transform: uppercase; color: var(--green); line-height: 1.3; }
.with-rule { display: flex; align-items: center; gap: .65rem; }
.with-rule::before { content: ''; display: block; width: 1.5rem; height: 2px; flex: 0 0 auto; background: #76a458; }
h1, h2 { font-weight: 600; letter-spacing: -.06em; }
h1 { font-size: clamp(3.25rem, 5.75vw, 5.55rem); line-height: .99; margin-block: 1.45rem 1.4rem; }
h1 em, h2 em { color: var(--green); font-family: var(--display); font-weight: 400; letter-spacing: -.062em; }
h1 em { display: block; margin-top: .19em; }
.hero-copy { max-width: 28rem; color: var(--muted); font-size: clamp(1.045rem, 1.45vw, 1.24rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.55rem; row-gap: .5rem; margin-top: 1.9rem; }
.hero-actions .button { min-height: 3.35rem; padding-inline: 1.5rem; }
.hero-image { background: #e8e8df; border-radius: 1.65rem; overflow: hidden; }
.hero-image img { width: 100%; height: auto; aspect-ratio: 1.38; object-fit: cover; object-position: 50% 51%; }

.explorer-section { padding-block: 3.55rem 4.65rem; background: var(--sage); border-block: 1px solid #e0e9db; }
.section-intro { display: grid; grid-template-columns: 1fr 20rem; align-items: end; gap: 1rem 3rem; margin-bottom: 1.9rem; }
.section-intro h2 { margin-top: .7rem; }
h2 { font-size: clamp(2.35rem, 4.15vw, 4rem); line-height: 1.08; }
.section-intro > p { color: var(--muted); line-height: 1.55; font-size: 1.02rem; padding-bottom: .12rem; }
.explorer { display: grid; grid-template-columns: .84fr 1.16fr; gap: .95rem; align-items: stretch; }
.finder-controls { min-width: 0; align-self: stretch; border-radius: 1.35rem; background: var(--forest); color: var(--white); padding: clamp(1.25rem, 3vw, 2.2rem); }
.finder-controls :focus-visible { outline-color: var(--leaf); }
.finder-controls fieldset { padding: 0; margin: 0; border: 0; }
.finder-controls legend, .context > label { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.objective-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.objective-options label { position: relative; display: inline-flex; cursor: pointer; }
.objective-options input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.objective-options span { display: flex; align-items: center; min-height: 2.75rem; padding: .54rem .78rem; border: 1px solid #759583; color: #f3f8ee; border-radius: 999px; font-size: .9rem; line-height: 1.2; }
.objective-options span::before { content: ''; display: block; width: .72rem; height: .72rem; margin-right: .48rem; border: 1px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.objective-options label:hover span { background: #2d543f; }
.objective-options input:checked + span { color: var(--ink); background: var(--leaf); border-color: var(--leaf); font-weight: 700; }
.objective-options input:checked + span::before { background: var(--green); box-shadow: inset 0 0 0 2px var(--leaf); }
.objective-options input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 3px; }
.context { margin-top: 1.55rem; }
.context > label { display: block; }
.context > label span { font-weight: 400; color: #d2e3d5; }
.select-wrap { position: relative; display: grid; align-items: center; }
.select-wrap::after { content: ''; width: .53rem; height: .53rem; border: solid #d4e6d6; border-width: 0 2px 2px 0; transform: translateY(-24%) rotate(45deg); position: absolute; right: 1.05rem; pointer-events: none; }
.context select { width: 100%; min-height: 2.85rem; appearance: none; background: #284d3a; border: 1px solid #789586; color: var(--white); border-radius: .6rem; padding: .6rem 2.25rem .6rem .8rem; cursor: pointer; }
.context option { color: var(--ink); background: var(--white); }
.finder-results { border-radius: 1.35rem; min-width: 0; padding: clamp(1.25rem, 3vw, 2.2rem); background: var(--white); border: 1px solid #dce5d9; }
.result-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; }
.result-caption h3 { font-size: 1.38rem; letter-spacing: -.035em; }
.result-count { color: var(--green); font-size: .875rem; font-weight: 600; }
.result-summary { color: var(--muted); margin-top: .38rem; line-height: 1.45; font-size: .94rem; }
.recommendations { margin-top: .75rem; }
.result-row { display: grid; grid-template-columns: 4.4rem 1fr auto; align-items: center; gap: .9rem; border-top: 1px solid var(--line); padding-block: .7rem; }
.result-row:last-child { padding-bottom: 0; }
.result-image { aspect-ratio: 1.15; width: 100%; height: auto; object-fit: cover; border-radius: .55rem; background: var(--sage); }
.result-row h4 { font-size: 1.03rem; line-height: 1.27; letter-spacing: -.02em; }
.result-row p { margin-top: .25rem; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.result-row .button { min-height: 2.65rem; padding-inline: .8rem; white-space: nowrap; font-size: .875rem; }

.catalog-section { padding-block: 4.7rem 4.5rem; }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.2rem; margin-bottom: 1.15rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button { min-height: 2.75rem; border: 1px solid #b9c9ba; border-radius: 999px; padding: .45rem .9rem; background: transparent; color: var(--green); font-weight: 600; font-size: .9rem; }
.filters button:hover { background: var(--sage); }
.filters button[aria-pressed="true"] { border-color: var(--forest); color: var(--white); background: var(--forest); }
#catalog-count { color: var(--muted); font-size: .9rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.course-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 1.15rem; background: var(--white); }
.course-card img { width: 100%; height: auto; aspect-ratio: 1.82; object-fit: cover; background: var(--sage); }
.card-content { flex: 1; display: flex; flex-direction: column; padding: 1.15rem; align-items: flex-start; }
.course-area { color: var(--green); font-size: .875rem; line-height: 1.3; font-weight: 700; }
.card-content h3 { font-size: 1.22rem; line-height: 1.2; letter-spacing: -.027em; margin-block: .45rem .55rem; }
.card-description { color: var(--muted); line-height: 1.48; }
.card-content .button { margin-top: auto; min-height: 2.75rem; padding-inline: .9rem; font-size: .885rem; }
.card-description { margin-bottom: 1rem; }

.contact-section { padding-bottom: 3.5rem; }
.contact-panel { color: var(--white); position: relative; overflow: hidden; isolation: isolate; display: grid; align-items: center; grid-template-columns: 1fr .65fr; gap: 1.3rem 4rem; border-radius: 1.6rem; padding: clamp(1.5rem, 5vw, 4.1rem); background: var(--forest); }
.contact-panel::before { content: ''; position: absolute; z-index: -1; inset: 0 0 0 44%; background: linear-gradient(90deg, var(--forest) 0%, #183e2de8 48%, #183e2d9e), url('./assets/textura.webp') center / cover; }
.contact-panel .eyebrow, .contact-panel h2 em { color: var(--leaf); }
.contact-panel :focus-visible { outline-color: var(--leaf); }
.contact-panel h2 { margin-block: .75rem 1rem; }
.contact-content > p:not(.eyebrow) { max-width: 32rem; font-size: 1.04rem; line-height: 1.6; color: #e2ede2; }
.contact-content .button { margin-top: 1.35rem; }
.contact-details { display: grid; gap: .5rem; align-content: start; padding: 1.35rem 1.45rem; background: #153726ed; border-radius: .9rem; border: 1px solid #789881; font-style: normal; }
.contact-details strong { font-size: 1.1rem; }
.contact-details span { color: #dce9de; line-height: 1.45; margin-bottom: .35rem; }
.contact-details a { width: fit-content; min-height: 2rem; color: var(--white); text-underline-offset: .16rem; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem 1rem; padding-block: 1.25rem; }
.footer-inner .brand { width: 8.3rem; }
.footer-inner p { color: var(--muted); font-size: .92rem; }
.footer-inner > .text-link { justify-self: end; }

dialog { max-width: min(35rem, 100% - 2rem); width: 100%; max-height: calc(100% - 2rem); color: var(--ink); padding: 0; border: 1px solid var(--line); border-radius: 1.35rem; background: var(--paper); box-shadow: 0 1.2rem 4rem #14312235; }
dialog::backdrop { background: #0f261bc0; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-shell { position: relative; }
.dialog-close-form { position: absolute; top: .75rem; right: .75rem; margin: 0; }
.dialog-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.7rem; line-height: 1; }
.dialog-close:hover { background: var(--sage); }
.detail-image { width: 100%; aspect-ratio: 2.25; object-fit: cover; background: var(--sage); }
.detail-content { padding: clamp(1.2rem, 4vw, 2rem); }
.detail-content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: .45rem; letter-spacing: -.045em; }
.detail-content > p:not(.course-area) { line-height: 1.55; margin-top: .75rem; color: var(--muted); }
.detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .65rem; padding-block: .8rem; margin-block: 1rem; border-block: 1px solid var(--line); }
.detail-meta div { display: grid; gap: .25rem; }
.detail-meta dt { font-size: .875rem; font-weight: 700; color: var(--green); }
.detail-meta dd { margin: 0; line-height: 1.35; }
.detail-content h3 { margin-top: .8rem; font-size: 1.1rem; }
.detail-content ul { margin-block: .45rem 1.15rem; padding-left: 1.25rem; line-height: 1.5; }
.detail-content li + li { margin-top: .25rem; }

@media (max-width: 68rem) {
  .container { width: calc(100% - 4rem); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-intro { grid-template-columns: 1fr 16rem; }
}

@media (max-width: 53rem) {
  .container { width: calc(100% - 3rem); }
  .hero { gap: 1.4rem; }
  h1 { font-size: clamp(2.9rem, 6.1vw, 4.6rem); }
  .hero-image img { aspect-ratio: 1.06; }
  .explorer { grid-template-columns: .88fr 1.12fr; }
  .finder-results, .finder-controls { padding: 1.2rem; }
  .result-row { grid-template-columns: 3.3rem 1fr; gap: .45rem .7rem; }
  .result-row .button { grid-column: 2; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-panel { gap: 1.5rem; }
}

@media (max-width: 40rem) {
  .container { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 0; padding-top: .65rem; }
  .header-inner .brand { width: 8.6rem; }
  .header-contact { grid-column: 2; grid-row: 1; min-height: 2.65rem; }
  .site-header nav { grid-column: 1 / -1; min-height: 2.75rem; gap: 1.35rem; }
  .site-header nav a { font-size: .9rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2.35rem; gap: 1.65rem; }
  h1 { margin-block: .9rem 1rem; font-size: clamp(2.85rem, 10vw, 4.5rem); }
  .hero-actions { margin-top: 1.15rem; gap: .35rem 1.1rem; }
  .hero-actions .button { min-height: 2.85rem; padding-inline: 1rem; }
  .hero-image { border-radius: 1rem; }
  .hero-image img { aspect-ratio: 1.48; }
  .section-intro { grid-template-columns: 1fr; gap: .7rem; margin-bottom: 1.15rem; }
  .section-intro h2 { margin-top: .5rem; }
  .explorer-section, .catalog-section { padding-block: 2.5rem; }
  .explorer { grid-template-columns: 1fr; gap: .65rem; }
  .result-row { grid-template-columns: 3.5rem 1fr auto; }
  .result-row .button { grid-column: auto; }
  .catalog-grid { gap: .75rem; }
  .contact-section { padding-bottom: 2rem; }
  .contact-panel { grid-template-columns: 1fr; border-radius: 1.15rem; }
  .contact-panel::before { inset: 0; opacity: .55; }
  .contact-details { padding: 1rem; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner p { grid-row: 2; }
  .footer-inner > .text-link { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 29rem) {
  .result-row { grid-template-columns: 3.45rem 1fr; gap: .4rem .65rem; }
  .result-row .button { grid-column: 2; }
  .catalog-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

:root {
  --paper: #f5f7f1;
  --forest: #12382b;
  --green: #235941;
  --sage: #e7efe4;
  --leaf: #d7ecbf;
  --line: #ccdace;
}
.site-header { background: var(--paper); }
.hero { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4.5rem); }
.hero-image { border-radius: .55rem 2.5rem .55rem .55rem; }
.hero-image img { aspect-ratio: 1.22; }
.hero h1 { font-size: clamp(3rem, 5.3vw, 5.15rem); }
.area-strip { background: var(--forest); color: var(--white); }
.area-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.area-links a { display: grid; align-content: start; gap: .45rem; padding: 1.35rem clamp(.8rem, 2.5vw, 2rem); text-decoration: none; border-inline-start: 1px solid #557565; }
.area-links a:last-child { border-inline-end: 1px solid #557565; }
.area-links a:hover { background: #23523f; }
.area-links a:focus-visible { outline-color: var(--leaf); outline-offset: -4px; }
.area-links strong { font-size: 1.1rem; }
.area-links span { color: #dceadd; font-size: .94rem; line-height: 1.4; }
.explorer-section { background: #edf3e9; }
.finder-controls, .finder-results, .course-card { border-radius: .8rem; }
.card-meta { color: var(--green); font-size: .875rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.4; }
.process-section { padding-bottom: 3rem; }
.process-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2rem, 5vw, 5rem); padding: clamp(1.4rem, 4vw, 3rem); background: var(--sage); border: 1px solid var(--line); border-radius: .9rem; }
.process-panel h2 { font-size: clamp(2rem, 3.8vw, 3.5rem); margin-bottom: .85rem; }
.process-panel p { color: var(--muted); line-height: 1.55; }
.process-panel ol { margin: 0; padding-inline-start: 1.3rem; }
.process-panel li { padding: .75rem 0 .75rem .25rem; border-bottom: 1px solid var(--line); }
.process-panel li:first-child { padding-top: 0; }
.process-panel li:last-child { padding-bottom: 0; border-bottom: 0; }
.process-panel li::marker { font-weight: 700; color: var(--green); }
.process-panel li p { margin-top: .25rem; }
@media (max-width: 53rem) {
  .site-header nav { gap: 1rem; }
}
@media (max-width: 40rem) {
  .hero, .process-panel { grid-template-columns: 1fr; }
  .hero { gap: 1.6rem; }
  .hero h1 { font-size: clamp(2.6rem, 9.5vw, 4rem); }
  .area-links { grid-template-columns: 1fr; }
  .area-links a { border-inline: 0; border-bottom: 1px solid #557565; padding: .95rem .2rem; }
  .area-links a:last-child { border: 0; }
  .site-header nav { flex-wrap: wrap; column-gap: 1rem; row-gap: 0; }
}
