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

:root {
  --blue: #0078cf;
  --deep: var(--blue-deep, #005b9e);
  --ink: #123449;
  --muted: #566b78;
  --paper: #f7f8f5;
  --line: #dce4e7;
  --ice: #edf5fa;
  --surface: var(--whml-surface, #fff);
  --neutral: var(--whml-surface-soft, #f2f4f5);
  --field-border: #788e9a;
  --button: #005b9e;
  --button-hover: #123449;
  --focus: var(--whml-focus, #a95100);
  font: 400 100%/1.55 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
html[data-whml-theme="dark"] {
  --field-border: #7896a9;
  --button: #13639e;
  --button-hover: #1b76b3;
}
* { box-sizing: border-box; }
html { overflow: hidden; }
body {
  margin: 0; block-size: 100vh; block-size: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
}
body > :is(whml-visitor-header, .site-footer) { flex: none; }
body > main {
  flex: 1; min-width: 0; min-height: 0; overflow: auto;
  overscroll-behavior: contain; scroll-padding-block: .75rem;
}
[data-whml-accessibility], [data-whml-assistant] { display: contents; }
body > main:focus-visible { outline-offset: -3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.55rem; }
p { color: var(--muted); }
a { color: var(--deep); text-underline-offset: .22em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.shell { width: min(100% - 3rem, 75rem); margin-inline: auto; min-width: 0; }
.skip { position: absolute; inset-inline-start: 1rem; top: 0; z-index: 31; background: var(--surface); padding: .6rem 1rem; }
.skip:not(:focus) { transform: translateY(-150%); }

whml-visitor-header { --whml-header-max-width: 75rem; --whml-header-gutter: 1.5rem; }
whml-visitor-header .brand { gap: .8rem; }
whml-visitor-header .brand img { flex: none; inline-size: clamp(44px, 7vw, 64px); block-size: auto; filter: grayscale(1) brightness(0) invert(1); }
whml-visitor-header .brand-name { font-size: clamp(1.2rem, 2.5vw, 2rem); line-height: 1.12; }
.grants-header-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1rem; }
:is(.grants-header-link, .grants-header-nav a) {
  color: inherit; display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-weight: 700;
}
.grants-header-link:hover, .grants-header-nav a:hover, .grants-header-nav a[aria-current] { text-decoration: underline; }
.grants-header-language.masthead { background: transparent; }
.footer-main {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap;
}
.site-identity { display: flex; align-items: center; gap: 25px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; min-width: 0; }
.site-footer .brand img { width: 66px; height: 66px; flex-shrink: 0; filter: grayscale(1) brightness(0) invert(1); }
.brand img { object-fit: contain; }
.brand-type, .site-footer .brand-type { display: inline-grid; grid-template-columns: min-content; min-width: 0; }
.brand .brand-name {
  display: block; width: max-content; white-space: nowrap; color: #fff;
  font-size: var(--brand-name-size, 34px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
}
.brand .brand-tagline {
  min-width: 0; width: 100%; max-width: 100%; margin-top: 5px;
  color: #d2e1e9; font-size: var(--brand-description-size, 14px); line-height: 1.3;
  white-space: normal; overflow-wrap: break-word;
}
.module-name { font-weight: 700; color: #d2e1e9; }
html[data-whml-contrast="high"] .brand .brand-name { color: #fff !important; }
:is(whml-visitor-header, .site-footer, .hero) :focus-visible { outline-color: #ffd486; }

.hero { position: relative; isolation: isolate; background: #061e2d; color: #fff; overflow: hidden; }
.hero-image, .page-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-image { z-index: -2; object-fit: cover; object-position: 64% center; }
[dir="rtl"] .page-hero-shade { transform: scaleX(-1); }
.hero-inner { padding-block: clamp(1rem, 2.8vw, 2.25rem); }
.hero-copy {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: .55rem 1.25rem; overflow-wrap: anywhere;
}
.hero-copy h1 { font-size: clamp(1.95rem, 4.2vw, 3.6rem); }
.hero-copy p { grid-column: 1; max-width: 44rem; font-size: clamp(1rem, 2vw, 1.18rem); color: #e0ecf4; }
.hero-action {
  grid-column: 2; grid-row: 1 / span 2; justify-self: start;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .5rem .9rem; background: #fff; color: #082d43; text-decoration: none; font-weight: 700;
}
.hero-action:hover { background: #dbefff; }
.archive { padding-block: 1.2rem 1.5rem; }
.sample-notice { border-inline-start: 4px solid var(--blue); padding: .65rem .9rem; margin-block-end: 1.35rem; background: var(--ice); color: var(--ink); }
.filters { display: flex; gap: 1.5rem; border-block-end: 1px solid var(--line); margin-block: .65rem 1.2rem; }
.filters a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .75rem;
  border-block-end: 3px solid transparent; color: var(--muted); text-decoration: none;
}
.filters a:hover { color: var(--deep); }
.filters a[aria-current] { border-color: var(--blue); color: var(--deep); font-weight: 700; }
.search { max-width: 45rem; }
.search label { display: block; font-weight: 600; margin-block-end: .3rem; }
.search-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.search input[type="search"] { flex: 1 1 15rem; min-width: 0; min-height: 44px; border: 1px solid var(--field-border); padding: .55rem .7rem; background: var(--surface); color: var(--ink); }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search button { padding: .53rem 1.2rem; min-height: 44px; background: var(--button); color: white; border: 1px solid var(--button); font-weight: 600; cursor: pointer; }
.search button:hover { background: var(--button-hover); }
.search a, .back { display: inline-flex; align-items: center; min-height: 44px; }
.empty, .call-list { margin-block: 1.45rem 0; }
.empty {
  background: var(--ice); border: 1px solid var(--line); border-inline-start: 3px solid #8ebbd7;
  padding: 1.15rem 1.35rem;
}
.call-list { display: grid; gap: .8rem; padding: 0; list-style: none; }
.call-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 29%); grid-template-rows: auto 1fr;
  gap: .45rem 1.4rem; padding: 1.05rem 1.25rem; background: var(--surface); border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.call-list.open .call-card { border-inline-start: 3px solid var(--blue); }
.call-copy h3 { margin-block-start: .44rem; }
.call-summary { grid-column: 1; }
.call-eligibility { color: var(--ink); margin-block-end: .38rem; }
.call-eligibility strong { margin-inline-end: .3em; color: var(--deep); }
.status { display: inline-block; background: var(--ice); color: var(--deep); font-weight: 700; font-size: .9rem; padding: .18rem .6rem; }
.status.closed { background: var(--neutral); color: var(--ink); }
.call-date {
  grid-column: 2; grid-row: 1 / span 2; align-self: stretch; align-content: center;
  background: var(--neutral); padding: .6rem .9rem;
}
.call-list.open .call-date { background: var(--ice); }
.call-date time, .facts time { font-size: 1.22rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.call-list.open .call-date time, .detail:has(.status.open) .facts time { color: var(--deep); }
.call-date span, .zone { display: block; color: var(--muted); font-size: .95rem; }
time { unicode-bidi: isolate; }

.detail, .missing { padding-block: 1rem 1.75rem; overflow-wrap: anywhere; }
.detail .back { margin-block-end: .75rem; }
.detail-head { padding-block: .5rem 1.35rem; border-block-end: 1px solid var(--line); }
.detail h1 { margin-block-start: .55rem; font-size: clamp(2.1rem, 5vw, 3.5rem); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 29%); gap: 2rem; align-items: start; margin-block-start: 1.6rem; }
.facts {
  grid-column: 2; grid-row: 1; margin: 0; padding: 1rem 1.2rem; border: 1px solid var(--line);
  border-block-start: 3px solid #8ebbd7; background: var(--ice);
}
.facts dt { font-weight: 700; }
.facts dt:not(:first-child) { margin-block-start: .75rem; padding-block-start: .75rem; border-block-start: 1px solid var(--line); }
.facts dd { margin: .22rem 0 0; }
.body-copy { grid-column: 1; grid-row: 1; font-size: 1.08rem; }
.body-copy h2 { margin-block: 1.55rem .55rem; }
.body-copy h2:first-child { margin-block-start: 0; }
.body-copy ul, .body-copy ol { padding-inline-start: 1.45rem; margin-block: .4rem 0; }
.body-copy li + li { margin-block-start: .35rem; }
.body-copy a { display: inline-flex; align-items: center; min-height: 44px; }
.missing h1 { margin-block: 1.25rem; }
.site-footer { padding-top: 0; }
.site-footer > .grants-footer-shell {
  width: min(100% - 9.5rem, 75rem); display: flex; align-items: center;
  justify-content: space-between; gap: .4rem 1.25rem; padding-block: .55rem;
}
.footer-main { flex: none; gap: .5rem 1rem; }
.footer-main .brand { gap: .5rem; }
.footer-main .brand img { width: 36px; height: 36px; }
.footer-main .brand-name { font-size: 1.15rem; }
.footer-main .brand-tagline { font-size: .68rem; }
.grants-footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .85rem; }
.site-footer a { color: inherit; }
.site-footer a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 44rem) {
  .shell { width: calc(100% - 2rem); }
  whml-visitor-header { --whml-header-gutter: 1rem; }
  .site-footer { --brand-name-size: 29px; --brand-description-size: 12px; }
  .site-footer .brand img { width: 48px; height: 48px; }
  .hero-image { object-position: 59% center; }
  .page-hero-shade { background: linear-gradient(90deg, #031827eb, #031827b3 65%, #03182791), linear-gradient(0deg,#031827ed,transparent 60%); }
  .detail-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .facts, .body-copy { grid-area: auto; }
  .call-card { grid-template-columns: 1fr; grid-template-rows: auto; gap: .75rem; }
  .call-date { grid-area: auto; }
}
@media (max-width: 640px) {
  body:not([data-grants-assistant-unavailable]) .whml-back-to-top { bottom: max(20px, env(safe-area-inset-bottom)); }
  .site-identity { justify-content: space-between; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero-action { grid-area: auto; }
  .archive { padding-block: .85rem 1.15rem; }
  .filters { margin-block: .35rem .6rem; }
  .empty, .call-list { margin-block-start: .85rem; }
}
@media (max-width: 880px) {
  .footer-main { display: none; }
  .site-footer > .grants-footer-shell { width: calc(100% - 8.5rem); }
  .site-footer > .grants-footer-shell:not(:has(.grants-footer-meta)) { display: none; }
}
@media (max-height: 500px) {
  .site-footer > .grants-footer-shell { padding-block: .25rem; }
  .grants-footer-meta > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
