@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto-slab.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #26332e;
  --muted: #4c5a54;
  --green: #196047;
  --green-deep: #124a36;
  --tint: #f5f7f6;
  --line: #d3ddd7;
  --serif: "Roboto Slab", Georgia, serif;
  --sans: "Open Sans", system-ui, sans-serif;
}

[hidden] { display: none !important; }
body { background: white; color: var(--ink); font: 1rem/1.6 var(--sans); }
h1, h2, p, dl { margin: 0; }
h1, h2 { color: var(--ink); font-family: var(--serif); }
strong { color: inherit; }
a { color: var(--green); overflow-wrap: anywhere; }
a:hover { color: var(--green-deep) !important; border-bottom-color: var(--green-deep); }
body form { margin: 0; }
body button {
  height: auto;
  color: inherit !important;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
  padding: 0;
  border-radius: .25rem;
}

:focus-visible { outline: 2px solid #228257; outline-offset: 3px; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 20; top: .6rem; left: .6rem; padding: .6rem 1rem; background: white; }

#main { min-width: 0; }
#main > .inner { padding-inline: clamp(1.4rem, 4vw, 4.25rem); max-width: 77rem; }
#header { align-items: center; justify-content: space-between; gap: .75rem; border-bottom: 4px solid var(--green); padding: 2.45rem 0 .95rem; }
#header .logo { font: 400 clamp(1.025rem, 2.3vw, 1.275rem)/1.3 var(--serif); color: var(--ink); }
#header .logo strong { font-weight: 700; }
#header #menu-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  min-height: 2.5rem;
  padding: .4rem .58rem;
  border: 1px solid var(--line);
  color: var(--green) !important;
  font-size: .9rem;
  font-weight: 700;
}
#header #menu-toggle:hover { background: var(--tint); }
.menu-icon {
  display: inline-block;
  width: .9rem;
  height: .64rem;
  border-block: 1.5px solid currentColor;
  position: relative;
}
.menu-icon::after { content: ""; position: absolute; inset: calc(50% - .5px) 0 auto; border-top: 1px solid currentColor; }

#sidebar {
  width: clamp(14.5rem, 19.5vw, 18rem);
  position: relative;
  left: auto;
  top: auto;
  height: auto;
  z-index: auto;
  box-shadow: none;
  background: #f5f6f5;
  border-inline-end: 1px solid var(--line);
}
#sidebar > .inner {
  position: sticky;
  top: 0;
  width: 100%;
  height: auto;
  max-height: 100vh;
  overflow: auto;
  padding: 2.45rem clamp(1.25rem, 2.55vw, 2.15rem);
}
#sidebar > .inner::after { content: none; }
#menu > header.major { margin: 0; }
#menu > header.major h2 { border-color: var(--green); margin: 0 0 .65rem; padding: 0 .55rem .36rem 0; font-size: 1.2rem; }
#menu > ul + header.major { margin-top: 1.65rem; }
#menu ul { font-family: var(--sans); letter-spacing: normal; text-transform: none; }
#menu > ul > li { margin: 0; padding: 0; border-top: 1px solid var(--line); }
#menu > ul > li:first-child { border-top: 0; }
#menu ul a { padding: .61rem 0; color: var(--ink); font-size: .9rem; line-height: 1.42; }
#menu ul a[aria-current="page"] { color: var(--green); font-weight: 700; }

.hero, .page-hero { padding: 2.6rem 0 1.6rem; }
.hero h1, .page-hero h1 { font-size: clamp(1.95rem, 3.7vw, 2.9rem); line-height: 1.16; overflow-wrap: anywhere; }
.page-hero h1 { max-width: 39ch; text-wrap: balance; }
.hero p, .page-hero p { margin-top: .65rem; color: var(--muted); max-width: 65ch; }
.site-breadcrumb { color: var(--muted); font-size: .875rem; padding-top: 1rem; }
.site-breadcrumb + .page-hero { padding-top: 1.15rem; }
.site-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .55rem; margin: 0; padding: 0; list-style: none; }
.site-breadcrumb li { display: flex; gap: .55rem; align-items: baseline; padding: 0; }
.site-breadcrumb li + li::before {
  content: "";
  width: .32rem;
  height: .32rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-.1rem) rotate(45deg);
}

.workbench { display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr); align-items: start; gap: 1.2rem; }
.tool-card { min-width: 0; padding: 1rem 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: .2rem; max-width: 48rem; }
.tool-card h2, .summary-card h2 { font-size: 1.2rem; line-height: 1.35; }
.tool-card h2 { margin-bottom: .6rem; }
.summary-card { padding: 1rem 1.1rem; border: 1px solid var(--line); border-top: 3px solid var(--green); background: var(--tint); }
.summary-card p { margin: .55rem 0 .85rem; color: var(--muted); }
.text-link { font-weight: 700; }
.search-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.search-types label { min-width: 0; margin: 0; cursor: pointer; }
.search-types input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.search-types label span {
  display: grid;
  min-height: 2.55rem;
  place-items: center;
  color: var(--muted);
  font-size: clamp(.85rem, 1.45vw, .95rem);
  font-weight: 650;
  border-bottom: 2px solid transparent;
}
.search-types label:hover span { background: var(--tint); }
.search-types input:checked + span { border-color: var(--green); color: var(--green-deep); }
.search-types input:focus-visible + span { outline: 2px solid #228257; outline-offset: 2px; }
.field label { display: block; color: var(--ink); font-size: .925rem; font-weight: 650; margin-bottom: .3rem; }
.search-input { position: relative; }
.field input[type="search"] {
  width: 100%;
  min-height: 2.8rem;
  height: auto;
  padding: .5rem .65rem .5rem 2.1rem;
  border: 1px solid #b9c9c0;
  border-radius: .25rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
.field input[type="search"]:focus { border-color: var(--green); box-shadow: none; outline: 2px solid #76a890; outline-offset: 1px; }
.field input::placeholder { color: var(--muted) !important; opacity: 1; }
.search-icon { position: absolute; top: .92rem; left: .75rem; width: .7rem; height: .7rem; border: 1.5px solid var(--green); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: .36rem; height: 1.5px; background: var(--green); top: .55rem; left: .45rem; transform: rotate(45deg); }
body .primary-button, body .secondary-button { margin-top: .9rem; padding: .5rem .85rem; min-height: 2.65rem; font-weight: 650; }
body .primary-button { background: var(--green); color: white !important; border: 1px solid var(--green); }
body .primary-button:hover, body .primary-button:active { background: var(--green-deep); }
body .secondary-button { color: var(--green-deep) !important; border: 1px solid #b9c9c0; }
body .secondary-button:hover { background: var(--tint); }
.search-status { margin-bottom: .75rem; color: var(--muted); }

.directory-section { padding-block: 1.55rem; border-top: 1px solid var(--line); }
.workbench + .directory-section, .tool-card + .directory-section { margin-top: 2.15rem; }
.directory-section h2 { font-size: clamp(1.3rem, 2.9vw, 1.65rem); line-height: 1.3; margin-bottom: .75rem; }
.directory-list { list-style: none; padding: 0; margin: 0; }
.directory-list li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.directory-list li a { font-weight: 650; }
.directory-list li span { display: block; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); column-gap: 1.2rem; }
.directory-grid li { min-width: 0; }
main > .directory-list:last-child { padding-bottom: 1.65rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-card { display: grid; align-content: start; gap: .2rem; padding-block: .65rem; border-top: 2px solid var(--line); border-bottom: 0; }
.related-card:hover { border-top-color: var(--green); }
.related-card strong { text-decoration: underline; text-underline-offset: .2em; }
.related-card span { color: var(--muted); font-size: .91rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin-bottom: 1.4rem; padding: .95rem 1rem; border: 1px solid var(--line); background: var(--tint); }
.facts dt { font-size: .9rem; font-weight: 700; }
.facts dd { margin: .15rem 0 0; overflow-wrap: anywhere; }

.site-footer { padding-block: 1.35rem; border-top: 1px solid var(--line); }
.footer-brand { color: var(--ink); border-bottom: 0; font: 700 .96rem var(--serif); }
.site-footer p { font-size: .85rem; color: var(--muted); margin-top: .22rem; }

@media (max-width: 62rem) {
  #wrapper { display: block; }
  #sidebar { width: 100%; border: 0; border-bottom: 1px solid var(--line); }
  #sidebar > .inner { position: static; max-height: none; overflow: visible; padding: 1rem 1rem 1.15rem; }
  #menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; align-items: start; }
  #menu > ul + header.major { grid-row: 1; grid-column: 2; margin-top: 0; }
  #menu > ul { grid-row: 2; }
  #menu > ul:nth-of-type(2) { grid-column: 2; }
  #header { padding-top: 1.2rem; }
  .hero, .page-hero { padding-top: 1.8rem; }
}

@media (max-width: 45rem) {
  #main > .inner { padding-inline: 1rem; }
  .workbench { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 24rem) {
  #header .logo { font-size: .98rem; }
  .tool-card { padding-inline: .7rem; }
  .related-grid { gap: .55rem; }
}
