:root {
  --s5-ink: #111916;
  --s5-forest: #10271f;
  --s5-forest-soft: #19382d;
  --s5-paper: #f4efe6;
  --s5-surface: #fffaf1;
  --s5-line: rgba(17, 25, 22, 0.16);
  --s5-gold: #b38a50;
  --s5-copper: #8d6240;
  --s5-muted: #5e6762;
  --s5-shell: 1240px;
}

.s5-page {
  min-width: 320px;
  color: var(--s5-ink);
  background: var(--s5-paper);
}

.s5-page .site-header {
  position: relative;
  top: auto;
  background: var(--s5-forest);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.s5-page .prototype-banner {
  display: none;
}

.s5-page .site-footer {
  margin-top: 0;
}

.s5-shell {
  width: min(calc(100% - 64px), var(--s5-shell));
  margin-inline: auto;
}

.s5-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f8f3ea;
  background:
    radial-gradient(circle at 82% 16%, rgba(179, 138, 80, 0.24), transparent 27rem),
    linear-gradient(138deg, #0b1c17 0%, #17372c 58%, #244635 100%);
}

.s5-hero::after {
  content: "";
  position: absolute;
  inset: auto -12vw -20rem 42vw;
  z-index: -1;
  height: 36rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.s5-hero__grid {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 64px;
  padding-block: 86px 74px;
}

.s5-eyebrow {
  margin: 0 0 20px;
  color: var(--s5-gold);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.s5-hero h1,
.s5-system-message h1 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--wichf-font-serif, Georgia, serif);
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
}

.s5-lead {
  max-width: 64ch;
  margin: 26px 0 0;
  color: color-mix(in srgb, currentColor 78%, transparent);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.7;
}

.s5-hero__mark {
  position: relative;
  width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.s5-hero__mark::before,
.s5-hero__mark::after,
.s5-hero__mark i {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(201, 181, 143, 0.38);
  border-radius: 50%;
}

.s5-hero__mark::after {
  inset: 36%;
}

.s5-hero__mark i {
  inset: 49% 8%;
  height: 1px;
  border: 0;
  border-top: 1px solid rgba(201, 181, 143, 0.45);
  border-radius: 0;
}

.s5-hero__mark span {
  font-family: var(--wichf-font-serif, Georgia, serif);
  font-size: 4rem;
  color: var(--s5-gold);
}

.s5-breadcrumb {
  width: min(calc(100% - 64px), var(--s5-shell));
  margin: 0 auto;
  padding-block: 20px;
  color: var(--s5-muted);
  font-size: 0.88rem;
}

.s5-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.s5-breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--s5-gold);
}

.s5-section {
  padding-block: 86px;
}

.s5-section--surface {
  background: var(--s5-surface);
  border-block: 1px solid var(--s5-line);
}

.s5-section--dark {
  color: #f8f3ea;
  background: var(--s5-forest);
}

.s5-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 42px;
}

.s5-section__head h2,
.s5-detail-header h1,
.s5-contact-form h2,
.s5-legal-intro h1 {
  margin: 0;
  font-family: var(--wichf-font-serif, Georgia, serif);
  font-size: clamp(2.2rem, 4.2vw, 4.4rem);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.s5-section__head p {
  max-width: 64ch;
  margin: 0;
  color: var(--s5-muted);
}

.s5-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.s5-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.s5-card {
  min-width: 0;
  padding: 30px;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid var(--s5-line);
  border-radius: 2px;
  box-shadow: 0 14px 48px rgba(16, 39, 31, 0.055);
}

.s5-card__meta {
  margin: 0 0 14px;
  color: var(--s5-copper);
  font-size: 0.74rem;
  font-weight: 740;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.s5-card h3 {
  margin: 0;
  font-family: var(--wichf-font-serif, Georgia, serif);
  font-size: 1.65rem;
  font-weight: 580;
  line-height: 1.15;
  text-wrap: balance;
}

.s5-card h3 a {
  text-decoration: none;
}

.s5-card h3 a:hover {
  text-decoration: underline;
}

.s5-card > p:not(.s5-card__meta) {
  color: var(--s5-muted);
}

.s5-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin-top: 24px;
}

.s5-text-link,
.s5-download {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 720;
  text-decoration: none;
}

.s5-text-link::after {
  content: "→";
  margin-left: 8px;
}

.s5-download {
  padding: 9px 16px;
  color: #fff;
  background: var(--s5-forest);
  border-radius: 999px;
}

.s5-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 18px;
  align-items: end;
  padding: 24px;
  margin-bottom: 30px;
  background: #eae2d5;
  border: 1px solid var(--s5-line);
}

.s5-filter label {
  display: grid;
  gap: 8px;
  color: var(--s5-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.s5-filter select,
.s5-filter input,
.s5-contact-form input,
.s5-contact-form select,
.s5-contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--s5-ink);
  background: #fffdf8;
  border: 1px solid rgba(17, 25, 22, 0.28);
  border-radius: 0;
  font: inherit;
}

.s5-filter__result {
  min-width: 7ch;
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.s5-access-note,
.s5-evidence-note {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 44px;
  padding: 34px;
  margin-top: 34px;
  color: #f8f3ea;
  background: var(--s5-forest-soft);
}

.s5-access-note h2,
.s5-evidence-note h2 {
  margin: 0;
  font-family: var(--wichf-font-serif, Georgia, serif);
  font-size: 1.8rem;
}

.s5-access-note p,
.s5-evidence-note p {
  margin: 0;
  color: rgba(248, 243, 234, 0.76);
}

.s5-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.s5-pagination span,
.s5-pagination a {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--s5-line);
  text-decoration: none;
}

.s5-pagination [aria-current="page"] {
  color: #fff;
  background: var(--s5-forest);
}

.s5-detail {
  width: min(calc(100% - 64px), 940px);
  margin-inline: auto;
  padding-block: 70px 100px;
}

.s5-detail-header {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--s5-line);
}

.s5-detail-header .s5-lead {
  color: var(--s5-muted);
}

.s5-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-block: 34px;
  background: var(--s5-line);
  border: 1px solid var(--s5-line);
}

.s5-detail-facts div {
  padding: 22px;
  background: var(--s5-surface);
}

.s5-detail-facts dt {
  color: var(--s5-copper);
  font-size: 0.72rem;
  font-weight: 740;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.s5-detail-facts dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.s5-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.s5-source-note {
  padding: 24px;
  margin-top: 34px;
  color: var(--s5-muted);
  background: #e9e0d2;
  border-left: 4px solid var(--s5-gold);
}

.s5-pathway-card {
  position: relative;
  padding-top: 58px;
}

.s5-pathway-card__number {
  position: absolute;
  top: 22px;
  right: 26px;
  color: var(--s5-gold);
  font-family: var(--wichf-font-serif, Georgia, serif);
  font-size: 1.6rem;
}

.s5-contact-method__value {
  font-size: 1.08rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.s5-contact-method__value a {
  text-decoration: none;
}

.s5-contact-method__evidence {
  margin: 14px 0 0;
  color: var(--s5-muted);
  font-size: 0.82rem;
}

.s5-contact-form {
  padding: 44px;
  background: var(--s5-surface);
  border: 1px solid var(--s5-line);
}

.s5-contact-form__intro {
  max-width: 64ch;
  color: var(--s5-muted);
}

.s5-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.s5-field {
  display: grid;
  gap: 8px;
}

.s5-field--wide {
  grid-column: 1 / -1;
}

.s5-field label {
  font-weight: 700;
}

.s5-contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.s5-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.s5-submit {
  min-height: 50px;
  padding: 11px 24px;
  color: #fff;
  background: var(--s5-forest);
  border: 0;
  cursor: pointer;
  font-weight: 760;
}

.s5-contact-status {
  min-height: 1.6em;
  margin: 14px 0 0;
}

.s5-legal-layout {
  width: min(calc(100% - 64px), 1120px);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 70px;
  margin-inline: auto;
  padding-block: 80px 110px;
}

.s5-legal-intro {
  position: sticky;
  top: 24px;
  align-self: start;
}

.s5-legal-intro h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.s5-legal-status {
  display: inline-flex;
  margin-top: 24px;
  padding: 8px 12px;
  color: #fff;
  background: #75482f;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.06em;
}

.s5-legal-section {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 24px;
  padding-block: 30px;
  border-top: 1px solid var(--s5-line);
}

.s5-legal-section__number {
  color: var(--s5-gold);
  font-family: var(--wichf-font-serif, Georgia, serif);
  font-size: 1.5rem;
}

.s5-legal-section h2 {
  margin: 0;
  font-family: var(--wichf-font-serif, Georgia, serif);
  font-size: 1.7rem;
  font-weight: 580;
}

.s5-legal-section p {
  margin: 10px 0 0;
  color: var(--s5-muted);
}

.s5-system-page {
  color: #f8f3ea;
  background: var(--s5-forest);
}

.s5-system-page .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.s5-system-message {
  min-height: 64vh;
  width: min(calc(100% - 64px), 920px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  padding-block: 80px;
}

.s5-system-message__code {
  margin: 0 0 18px;
  color: var(--s5-gold);
  font-family: var(--wichf-font-serif, Georgia, serif);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.8;
}

.s5-system-message__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.s5-system-message__actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  color: var(--s5-forest);
  background: var(--s5-paper);
  text-decoration: none;
  font-weight: 740;
}

[data-s5-card][hidden] {
  display: none !important;
}

.s5-no-js .s5-filter {
  display: none;
}

.s5-js .s5-filter {
  display: grid;
}

@media print {
  .site-header,
  .site-footer,
  .s5-filter,
  .s5-pagination {
    display: none !important;
  }

  .s5-page {
    background: #fff;
  }
}
