:root {
  --content-bg: #f5f5f5;
  --paper: #ffffff;
  --text: #666666;
  --heading: #3b4251;
  --menu: #848b8e;
  --accent: #549f97;
  --accent-hover: #55a098;
  --border: #e6e6e6;
  --soft-border: #e5e4e3;
  --footer: #282a2b;
  --max-width: 1170px;
  --shadow: 0 14px 32px rgba(33, 41, 52, 0.08);
  --soft-shadow: 0 8px 22px rgba(33, 41, 52, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--content-bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--content-bg);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s linear, background-color 0.2s linear, border-color 0.2s linear;
}

a:hover {
  color: var(--accent-hover);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--heading);
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

h1 {
  margin-bottom: 20px;
  font-size: 34px;
}

h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

p {
  margin-top: 0;
  margin-bottom: 20px;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid #f5f5f5;
}

.top-strip {
  border-top: 3px solid var(--accent);
  background: #242b34;
  color: #ffffff;
}

.top-strip-inner {
  display: flex;
  max-width: var(--max-width);
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 0 30px;
  font-size: 12px;
  font-weight: 600;
}

.facebook-pill {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
}

.facebook-pill:hover {
  background: #ffffff;
  color: var(--accent);
}

.header-row {
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-row {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--heading);
  text-decoration: none;
}

.brand img {
  width: 250px;
  height: 250px;
  object-fit: contain;
}

.brand span {
  min-width: 0;
  /* max-width: 540px; */
  color: var(--heading);
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.nav-row {
  min-height: 58px;
  border-top: 1px solid var(--border);
}

.site-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  min-height: 58px;
}

.site-nav a {
  display: inline-flex;
  position: relative;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-top: 3px solid transparent;
  color: var(--menu);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1;
}

.site-nav a:first-child {
  padding-left: 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-top-color: var(--accent-hover);
  color: var(--accent-hover);
}

.nav-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-top: 3px solid var(--accent-hover);
  background: var(--paper);
  color: var(--menu);
  font: inherit;
  text-align: left;
}

main {
  min-height: 68vh;
}

.front-banner {
  position: relative;
  height: clamp(300px, 27vw, 440px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(35, 47, 58, 0.14), rgba(84, 159, 151, 0.12)),
    #e9f1f3;
}

.front-banner::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(59, 66, 81, 0.06);
  pointer-events: none;
}

.front-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 58%, rgba(245, 245, 245, 0.7) 100%),
    linear-gradient(90deg, rgba(36, 43, 52, 0.14) 0%, rgba(36, 43, 52, 0) 36%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

.front-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(1.04) contrast(1.03);
}

.hero {
  display: block;
  background: var(--content-bg);
  border-bottom: 1px solid var(--soft-border);
}

.hero-copy {
  width: min(100%, var(--max-width));
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 5px solid var(--accent);
  background: var(--paper);
  padding: 50px 30px 38px;
  box-shadow: var(--soft-shadow);
}

.hero h1 {
  max-width: 860px;
}

.hero p {
  width: 100%;
  max-width: 920px;
  color: var(--text);
  font-size: 15px;
  overflow-wrap: break-word;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--paper);
  color: var(--accent);
  padding: 0 18px;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 38px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  border-color: var(--accent-hover);
  background: #f5fbfa;
  color: var(--accent-hover);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.button.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--paper);
}

.button:disabled,
.button.is-loading {
  cursor: wait;
  opacity: 0.78;
}

.button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 0.75s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.feature-grid,
.section,
.page-band,
.content-panel,
.content-columns,
.steps,
.committee-list,
.faq-list,
.gallery-grid,
.contact-layout {
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  padding-top: 44px;
  padding-bottom: 50px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.feature {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  color: var(--heading);
  text-align: center;
  box-shadow: 0 1px 0 rgba(33, 41, 52, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature img {
  width: 100%;
  max-width: none;
  height: 205px;
  margin: 0;
  object-fit: cover;
}

.feature span {
  display: block;
  min-height: 68px;
  color: var(--heading);
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
  padding: 19px 14px 18px;
}

.feature:hover {
  border-color: rgba(84, 159, 151, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature:hover span {
  color: var(--accent-hover);
}

.section {
  padding-top: 44px;
  padding-bottom: 60px;
}

.section-heading {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-heading h2 {
  margin-bottom: 0;
}

.eyebrow {
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 400;
}

.post-grid {
  display: grid;
  gap: 24px;
}

.post-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(33, 41, 52, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  border-color: rgba(84, 159, 151, 0.45);
  box-shadow: var(--soft-shadow);
  transform: translateY(-2px);
}

.post-card img {
  width: 320px;
  height: 202px;
  object-fit: cover;
}

.post-card h3 {
  margin-bottom: 4px;
  font-size: 22px;
}

.post-card p {
  color: var(--text);
}

.post-card .eyebrow {
  margin-bottom: 4px;
}

.post-card a {
  font-weight: 600;
}

.page-band {
  padding-top: 48px;
  padding-bottom: 40px;
  background: var(--paper);
  border-top: 5px solid var(--accent);
  border-bottom: 1px solid var(--soft-border);
  box-shadow: var(--soft-shadow);
  padding-left: 30px;
}

.page-band p {
  max-width: 820px;
}

.content-panel {
  margin-top: 42px;
  margin-bottom: 60px;
  border-top: 5px solid var(--accent);
  background: var(--paper);
  padding-top: 42px;
  padding-bottom: 42px;
  box-shadow: var(--soft-shadow);
  padding-left: 30px;
}

.content-panel h2:not(:first-child) {
  margin-top: 26px;
}

.content-panel ul {
  margin-top: 0;
  margin-bottom: 20px;
  padding-left: 22px;
}

.content-columns,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 45px;
  padding-top: 42px;
  padding-bottom: 60px;
}

.single-column-contact {
  grid-template-columns: 1fr;
}

.single-column-contact .contact-form {
  border-top: 5px solid var(--accent);
  box-shadow: var(--soft-shadow);
}

.steps,
.committee-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding-top: 42px;
  padding-bottom: 60px;
}

.compact-list {
  padding: 0;
}

.faq-list {
  display: grid;
  gap: 18px;
  padding-top: 42px;
  padding-bottom: 60px;
}

.steps article,
.committee-list article,
.faq-list article,
.contact-form,
.info-list,
.donation-panel {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  padding: 26px;
  box-shadow: 0 1px 0 rgba(33, 41, 52, 0.02);
}

.steps article,
.committee-list article,
.faq-list article {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.steps article:hover,
.committee-list article:hover,
.faq-list article:hover {
  border-color: rgba(84, 159, 151, 0.45);
  box-shadow: var(--soft-shadow);
  transform: translateY(-2px);
}

.document-panel {
  display: grid;
  max-width: calc(var(--max-width) - 0px);
  gap: 20px;
  margin: 0 auto 60px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: 4px;
  background: var(--paper);
  padding: 26px;
  box-shadow: var(--soft-shadow);
}

.pdf-frame {
  width: 100%;
  height: 680px;
  border: 1px solid var(--border);
  background: #f8f8f8;
}

.document-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.document-panel h2,
.document-panel p {
  margin-bottom: 6px;
}

.donation-document {
  grid-template-columns: 1fr;
}

.donation-document .pdf-frame {
  height: 680px;
}

.donation-document .button-group {
  justify-content: flex-start;
}

.steps article span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.info-list strong {
  display: block;
  margin-bottom: 10px;
  color: var(--heading);
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.3;
}

.info-list span {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.gallery-grid {
  padding-top: 42px;
  padding-bottom: 60px;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.media-gallery img {
  width: 100%;
  height: 190px;
  border: 1px solid var(--border);
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 0 rgba(33, 41, 52, 0.02);
}

.donation-panel {
  display: flex;
  max-width: calc(var(--max-width) - 0px);
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 42px auto 60px;
  box-shadow: var(--soft-shadow);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-intro h2,
.contact-intro p {
  margin-bottom: 8px;
}

.contact-form label {
  display: grid;
  gap: 5px;
  color: var(--heading);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d2d2d2;
  border-radius: 0;
  background: #ffffff;
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(84, 159, 151, 0.12);
}

.contact-form textarea {
  min-height: 150px;
}

.application-wrap {
  max-width: var(--max-width);
  margin: 42px auto 60px;
}

.application-form {
  display: grid;
  gap: 24px;
}

.application-thank-you {
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: 4px;
  background: var(--paper);
  padding: 30px;
  box-shadow: var(--soft-shadow);
}

.application-thank-you h2,
.application-thank-you p {
  max-width: 760px;
}

.application-thank-you h2 {
  margin-bottom: 10px;
}

.application-thank-you p:last-child {
  margin-bottom: 0;
}

.form-section-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: 4px;
  background: var(--paper);
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

.form-section-map button {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fbfbfb;
  color: var(--heading);
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.form-section-map button:hover,
.form-section-map button.is-active {
  border-color: var(--accent);
  background: #f6fbf9;
  color: var(--accent);
}

.form-section-map span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-weight: 700;
  line-height: 1;
}

.application-form.wizard-enhanced .form-section {
  display: none;
}

.application-form.wizard-enhanced .form-section.is-active {
  display: block;
}

.form-section {
  margin: 0;
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: 4px;
  background: var(--paper);
  padding: 28px;
  box-shadow: var(--soft-shadow);
}

.form-section legend {
  float: left;
  width: 100%;
  margin-bottom: 20px;
  color: var(--heading);
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.form-section legend + * {
  clear: both;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}

.form-grid > label,
.solo-field,
.radio-field,
.checkbox-field {
  gap: 6px;
  min-width: 0;
  color: var(--heading);
  font-weight: 600;
  line-height: 1.5;
}

.form-grid > label,
.solo-field {
  display: block;
}

.form-grid > label > input,
.form-grid > label > textarea,
.form-grid > label > select,
.solo-field > input,
.solo-field > textarea,
.solo-field > select {
  display: block;
  margin-top: 6px;
}

.radio-field,
.checkbox-field {
  display: grid;
}

.form-grid > label span,
.solo-field span,
.checkbox-field span,
.radio-field strong {
  color: #9d1111;
}

.application-form input,
.application-form textarea,
.application-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d2d2d2;
  border-radius: 0;
  background: #ffffff;
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.application-form input[type="date"],
.application-form input[type="month"] {
  min-height: 44px;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2v3M14 2v3M3.5 8h13M5 4h10c.83 0 1.5.67 1.5 1.5v10c0 .83-.67 1.5-1.5 1.5H5c-.83 0-1.5-.67-1.5-1.5v-10C3.5 4.67 4.17 4 5 4Z' stroke='%23549f97' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 13px) 50%;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  color-scheme: light;
}

.application-form input[type="date"]::-webkit-calendar-picker-indicator,
.application-form input[type="month"]::-webkit-calendar-picker-indicator {
  width: 28px;
  height: 28px;
  margin-right: -36px;
  opacity: 0;
  cursor: pointer;
}

.application-form input[type="radio"],
.application-form input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0 8px 0 0;
}

.application-form input[type="file"] {
  min-height: 46px;
  padding: 8px;
}

.application-form input:focus,
.application-form textarea:focus,
.application-form select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(84, 159, 151, 0.12);
}

.field-full {
  grid-column: 1 / -1;
}

.repeat-block {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.repeat-block:first-of-type {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.repeat-block h3,
.sub-repeat h4 {
  margin-bottom: 12px;
}

.repeat-heading,
.sub-repeat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.repeat-heading h3,
.sub-repeat-heading h4 {
  margin-bottom: 0;
}

.addable-add,
.addable-remove {
  display: none;
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 13px;
  font-size: 12px;
  line-height: 34px;
}

.application-form.addable-enhanced .addable-add,
.application-form.addable-enhanced .addable-remove {
  display: inline-flex;
}

.application-form.addable-enhanced .addable-prompt {
  display: flex;
}

.addable-prompt {
  position: relative;
  width: 100%;
  min-height: 78px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin-top: 18px;
  border-style: dashed;
  background: #fbfbfb;
  padding: 14px 16px 14px 62px;
  text-align: left;
  line-height: 1.4;
}

.addable-prompt::before {
  content: "+";
  position: absolute;
  top: 50%;
  left: 16px;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

.addable-prompt:hover {
  background: #f6fbf9;
}

.addable-prompt span,
.addable-prompt small {
  display: block;
}

.addable-prompt span {
  color: var(--heading);
  font-size: 14px;
  line-height: 1.3;
}

.addable-prompt small {
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.addable-remove {
  border-color: #c9d8d6;
  color: var(--text);
}

.addable-remove:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.application-form.addable-enhanced [data-addable-item].is-hidden {
  display: none;
}

.sub-repeat {
  margin-top: 18px;
  border-top: 1px solid var(--soft-border);
  padding-top: 18px;
}

.sub-repeat h4 {
  color: var(--heading);
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.3;
}

.form-note,
.declaration-copy {
  border: 1px solid var(--border);
  background: #f8fbfa;
  padding: 14px 16px;
}

.form-note {
  margin-bottom: 20px;
}

.declaration-copy {
  margin-bottom: 18px;
}

.declaration-copy p:last-child {
  margin-bottom: 0;
}

.radio-field {
  align-content: start;
  border: 1px solid var(--border);
  background: #fbfbfb;
  padding: 12px 14px;
}

.radio-field label,
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text);
  font-weight: 400;
}

.inline-radio,
.checkbox-field {
  margin-top: 18px;
}

.compact-radio {
  gap: 8px;
}

.upload-grid label {
  border: 1px solid var(--border);
  background: #fbfbfb;
  padding: 12px;
}

.upload-field {
  display: grid;
  gap: 10px;
  min-height: 142px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fbfbfb;
  padding: 14px;
  color: var(--heading);
  font-weight: 600;
  line-height: 1.45;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-grid > label.upload-field {
  display: grid;
}

.upload-field:hover,
.upload-field:focus-within,
.upload-field.is-dragover {
  border-color: var(--accent);
  background: #f6fbf9;
  box-shadow: 0 0 0 3px rgba(84, 159, 151, 0.1);
}

.upload-field-label {
  display: block;
}

.upload-control {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 82px;
  border: 1px dashed #b9ccca;
  border-radius: 4px;
  background: #ffffff;
  padding: 14px;
  color: var(--text);
  text-align: center;
  cursor: pointer;
}

.form-grid > label .upload-control {
  color: var(--text);
}

.upload-control::before {
  content: "Choose file";
  display: inline-flex;
  justify-self: center;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 34px;
}

.upload-control::after {
  content: "PDF, PNG, JPG, or JPEG up to 2MB";
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.upload-control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.upload-file-name {
  display: block;
  min-height: 21px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-grid > label .upload-file-name {
  color: var(--text);
}

.upload-file-name.has-file {
  color: var(--accent);
  font-weight: 700;
}

.form-grid > label .upload-file-name.has-file {
  color: var(--accent);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

code {
  border: 1px solid var(--border);
  background: #f8f8f8;
  padding: 1px 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
}

.alert {
  margin: 0;
  border: 1px solid var(--border);
  padding: 10px 14px;
}

.alert.success {
  background: #f6fbf9;
  color: var(--accent);
}

.alert.error {
  background: #fff6f6;
  color: #9d1111;
}

.article {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 5px solid var(--accent);
  background: var(--paper);
  padding: 42px 30px 60px;
  box-shadow: var(--soft-shadow);
}

.article img {
  width: 100%;
  max-height: 460px;
  margin-bottom: 24px;
  object-fit: cover;
}

.site-footer {
  background: var(--footer);
  color: #ffffff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 18px max(30px, calc((100vw - var(--max-width)) / 2 + 30px));
  font-size: 12px;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: var(--accent-hover);
}

.cookie-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #17212b;
  color: #ffffff;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(36, 46, 54, 0.2);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.cookie-notice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.cookie-notice p + p {
  margin-top: 8px;
}

.cookie-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-notice-actions .button {
  min-width: 104px;
}

.cookie-notice-actions .button:not(.primary) {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #ffffff;
}

@media (max-width: 900px) {
  .logo-row {
    min-height: auto;
  }

  .brand img {
    width: 86px;
    height: 86px;
  }

  .brand span {
    font-size: 20px;
  }

  .front-banner {
    height: 260px;
  }

  .front-banner::before {
    inset: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-row {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-nav {
    display: none;
    min-height: 0;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 42px;
    padding: 0;
    border-top: 0;
    border-bottom: 1px solid var(--border);
  }

  .feature-grid,
  .steps,
  .committee-list,
  .media-gallery,
  .content-columns,
  .contact-layout,
  .form-grid,
  .form-section-map {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .donation-panel,
  .document-panel,
  .document-panel-footer,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-panel-footer {
    display: flex;
  }

  .form-actions {
    justify-content: flex-start;
  }

  .repeat-heading,
  .sub-repeat-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .donation-document .pdf-frame {
    height: 520px;
  }

  .button-group {
    justify-content: flex-start;
  }

  .cookie-notice {
    grid-template-columns: 1fr;
  }

  .cookie-notice-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-row,
  .hero-copy,
  .feature-grid,
    .section,
    .page-band,
    .content-panel,
    .content-columns,
    .steps,
    .committee-list,
    .faq-list,
    .gallery-grid,
  .contact-layout,
  .application-wrap,
  .article {
    padding-right: 18px;
    padding-left: 18px;
  }

  .logo-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand span {
    font-size: 18px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .front-banner {
    height: 210px;
  }

  .front-banner::before {
    inset: 8px;
  }

  .donation-panel {
    max-width: calc(100% - 36px);
  }

  .document-panel {
    max-width: calc(100% - 36px);
  }

  .pdf-frame {
    height: 460px;
  }

  .form-section {
    padding: 22px 18px;
  }

  .form-section legend {
    font-size: 21px;
  }

  .cookie-notice {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 16px;
  }

  .cookie-notice-actions .button {
    flex: 1 1 130px;
    justify-content: center;
  }
}
