.fund-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.fund-page h1,
.fund-page h2,
.fund-page h3 {
  overflow-wrap: anywhere;
}

.fund-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 28px;
}

.fund-heading h1 {
  margin: 4px 0 0;
  color: #fffaf0;
  font-size: 4rem;
  letter-spacing: 0;
}

.fund-heading p:not(.eyebrow) {
  max-width: 680px;
  color: #d7e0e8;
}

.fund-button,
.fund-page button:not(.jodit-toolbar-button__button),
.fund-page input[type="submit"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.fund-button--secondary,
.fund-page button.fund-button--secondary {
  background: #101c2b;
  color: #f6d675;
}

.fund-button--danger {
  background: #771e18;
}

.fund-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fund-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #c89b3c;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f0dc;
  color: #25170f;
}

.fund-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.fund-card__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.fund-card__body h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.fund-kind {
  color: #8c2d20;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fund-progress {
  height: 12px;
  overflow: hidden;
  border: 1px solid #9d7b39;
  background: #eee3c4;
}

.fund-progress > span {
  display: block;
  height: 100%;
  background: #2e7851;
}

.fund-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .85rem;
}

.fund-empty,
.fund-notice,
.fund-disclaimer {
  border-left: 4px solid var(--gold);
  background: #f7f0dc;
  color: #291a12;
  padding: 18px 20px;
}

.fund-disclaimer {
  border-left-color: #8b2d21;
  font-weight: 750;
}

.fund-detail-hero {
  min-height: min(520px, 62vh);
  display: flex;
  align-items: end;
  border-bottom: 3px solid var(--gold);
  background: #101c2b center / cover no-repeat;
  position: relative;
}

.fund-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 28, .66);
}

.fund-detail-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 38px;
  color: #fff;
}

.fund-detail-hero h1 {
  max-width: 900px;
  margin: 8px 0 14px;
  font-size: 4.8rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.fund-detail-hero p {
  max-width: 720px;
  font-size: 1.08rem;
}

.fund-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: start;
}

.fund-story {
  min-width: 0;
  color: #f8f1df;
}

.fund-story section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(209, 166, 67, .5);
}

.fund-story p {
  line-height: 1.75;
  white-space: pre-line;
}

.fund-summary-panel {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: #f7f0dc;
  color: #23160f;
  padding: 22px;
}

.fund-summary-panel strong {
  font-size: 1.65rem;
}

.fund-rewards {
  display: grid;
  gap: 12px;
}

.fund-reward {
  border: 1px solid #b99346;
  border-radius: 4px;
  padding: 15px;
  background: #fffaf0;
  color: #25170f;
}

.fund-reward h3 {
  margin: 0 0 6px;
}

.fund-report-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.fund-report-gallery figure {
  display: grid;
  gap: 7px;
  margin: 0;
}

.fund-report-gallery .media-lightbox-trigger,
.fund-report-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fund-report-gallery .media-lightbox-trigger {
  min-height: 0;
  padding: 0;
  border: 1px solid var(--gold);
  background: #101c2b;
}

.fund-document-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px 18px;
  align-items: baseline;
}

.fund-document-list a,
.fund-document-list span {
  overflow-wrap: anywhere;
}

.fund-form {
  display: grid;
  gap: 22px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: #f7f0dc;
  color: #21150f;
  padding: 24px;
}

.fund-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fund-field {
  min-width: 0;
}

.fund-field--wide {
  grid-column: 1 / -1;
}

.fund-field label,
.fund-field > span {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.fund-field input:not([type="checkbox"]),
.fund-field select,
.fund-field textarea,
.fund-form input:not([type="checkbox"]),
.fund-form select,
.fund-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fund-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.fund-choice input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.fund-errors {
  margin: 7px 0 0;
  color: #8d2119;
  font-weight: 750;
}

.fund-qr {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.fund-qr img {
  width: 100%;
  background: #fff;
  border: 8px solid #fff;
}

.fund-payment-data {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 14px;
}

.fund-payment-data dd {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.fund-payment-data dd > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fund-page button.fund-copy-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 8px;
  font-size: .75rem;
}

.fund-copy-status {
  min-height: 1.4em;
  color: #16482b;
  font-weight: 800;
}

.fund-report-schedule {
  display: grid;
  gap: 10px;
}

.fund-report-schedule__row {
  display: grid;
  grid-template-columns: minmax(150px, max-content) minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #cdb985;
  padding: 9px 0;
}

.fund-management {
  width: min(1240px, calc(100% - 32px));
}

.fund-management .fund-heading h1 {
  font-size: 3.4rem;
}

.fund-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fund-management-band {
  margin: 22px 0;
  border-top: 4px solid var(--red);
  background: #f7f0dc;
  color: #26170f;
  padding: 22px;
}

.fund-management-band > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.fund-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.fund-table {
  width: 100%;
  border-collapse: collapse;
}

.fund-table th,
.fund-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #cdb985;
  text-align: left;
  vertical-align: top;
}

.fund-table th {
  background: #182532;
  color: #f6d675;
  font-size: .78rem;
  text-transform: uppercase;
}

.fund-status {
  display: inline-block;
  border-radius: 3px;
  background: #eadba9;
  color: #2b1b10;
  padding: 4px 7px;
  font-size: .75rem;
  font-weight: 850;
}

.fund-status--live,
.fund-status--confirmed,
.fund-status--approved {
  background: #d2eadb;
  color: #16482b;
}

.fund-status--rejected,
.fund-status--mismatch,
.fund-status--hidden {
  background: #f2cfca;
  color: #7c1d17;
}

.fund-preview-banner {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #f3ca4d;
  color: #23160f;
  padding: 10px 16px;
  text-align: center;
  font-weight: 900;
}

.fund-form > section {
  min-width: 0;
}

.fund-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fund-editor-media {
  border-top: 3px solid #8b2d21;
  padding-top: 18px;
}

.fund-editor-media > header p {
  max-width: 780px;
  margin-bottom: 16px;
}

.fund-media-upload {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) max-content;
  gap: 12px;
  align-items: end;
}

.fund-media-upload label {
  display: grid;
  min-width: 0;
  gap: 6px;
  font-weight: 800;
}

.fund-media-upload input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.fund-media-status {
  min-height: 1.5em;
  color: #1e623c;
  font-weight: 800;
}

.fund-media-status.is-error {
  color: #8d2119;
}

.fund-media-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.fund-media-card {
  display: grid;
  min-width: 0;
  gap: 9px;
  border: 1px solid #b99346;
  border-radius: 4px;
  background: #fffaf0;
  padding: 10px;
}

.fund-media-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fund-media-card > strong {
  overflow-wrap: anywhere;
}

.fund-media-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.fund-media-actions button {
  min-width: 0;
  min-height: 38px;
  padding: 6px 8px;
  font-size: .78rem;
}

.fund-media-actions .fund-button--danger {
  grid-column: 1 / -1;
}

.fund-form .jodit-container,
.fund-form .jodit-workplace,
.fund-form .jodit-wysiwyg {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}

.fund-form .jodit-container {
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
}

.fund-editor-toolbar-help {
  margin-top: 8px;
}

.fund-page .fund-editor-toolbar-help button {
  width: auto;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #dca842;
  border-radius: 3px;
  background: #7d1715;
  color: #fff7df;
}

.fund-editor-toolbar-help label {
  margin: 0;
  color: inherit;
  font: 700 18px Georgia, serif;
}

.fund-field--rich > label:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fund-rich-text {
  display: flow-root;
  min-width: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.fund-rich-text p {
  white-space: normal;
}

.fund-rich-text table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.fund-content-media {
  box-sizing: border-box;
  max-width: 100%;
  margin: 10px 0 18px;
}

.fund-content-media img {
  display: block;
  width: 100%;
  height: auto;
}

.fund-content-media figcaption {
  margin-top: 5px;
  color: inherit;
  font-size: .82rem;
  opacity: .82;
}

.fund-media-left {
  float: left;
  width: min(42%, 420px);
  margin-right: 20px;
}

.fund-media-right {
  float: right;
  width: min(42%, 420px);
  margin-left: 20px;
}

.fund-media-center {
  width: min(72%, 720px);
  margin-right: auto;
  margin-left: auto;
  clear: both;
}

.fund-media-wide {
  width: 100%;
  clear: both;
}

.fund-occurrence-calendar {
  overflow: hidden;
  border: 1px solid #b99346;
  border-radius: 4px;
  background: #f5ead0;
}

.fund-calendar-toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px max-content;
  gap: 8px;
  align-items: center;
  background: #182532;
  color: #fff6df;
  padding: 9px;
}

.fund-calendar-toolbar > strong {
  text-align: center;
  text-transform: capitalize;
}

.fund-calendar-toolbar button {
  min-height: 40px;
  padding: 4px;
}

.fund-calendar-count {
  color: #f6d675;
  font-size: .8rem;
  font-weight: 900;
  white-space: nowrap;
}

.fund-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: 4px;
  padding: 10px;
}

.fund-calendar-weekday {
  color: #6f2018;
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.fund-calendar-day {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  gap: 2px;
  padding: 4px;
  border-color: #bba271;
  background: #fffaf0;
  color: #321c12;
}

.fund-calendar-day small {
  overflow-wrap: anywhere;
  font-size: .62rem;
  line-height: 1.05;
}

.fund-calendar-day.is-active {
  outline: 3px solid #8b2d21;
  outline-offset: -3px;
}

.fund-calendar-day.is-selected {
  background: #8b2d21;
  color: #fff;
}

.fund-calendar-day:disabled {
  border-color: transparent;
  background: #ded6c5;
  color: #857b6b;
  cursor: default;
  opacity: .58;
}

.fund-occurrence-options {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #cdb985;
  background: #fffaf0;
}

.fund-occurrence-options [hidden] {
  display: none !important;
}

.fund-occurrence-options label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.fund-calendar-empty {
  margin: 0;
}

@media (max-width: 920px) {
  .fund-grid,
  .fund-detail-layout,
  .fund-form-grid,
  .fund-report-gallery,
  .fund-qr {
    grid-template-columns: 1fr;
  }

  .fund-summary-panel {
    position: static;
  }

  .fund-heading,
  .fund-management-band > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fund-heading h1,
  .fund-management .fund-heading h1 {
    font-size: 3rem;
  }

  .fund-detail-hero h1 {
    font-size: 3.5rem;
  }

  .fund-media-upload {
    grid-template-columns: 1fr 1fr;
  }

  .fund-media-upload button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .fund-page,
  .fund-detail-hero__inner,
  .fund-management {
    width: min(100% - 20px, 1180px);
  }

  .fund-page {
    padding-top: 28px;
  }

  .fund-heading h1,
  .fund-management .fund-heading h1,
  .fund-detail-hero h1 {
    font-size: 2.35rem;
  }

  .fund-form,
  .fund-management-band {
    padding: 16px;
  }

  .fund-toolbar > * {
    width: 100%;
  }

  .fund-button,
  .fund-page button:not(.jodit-toolbar-button__button),
  .fund-page input[type="submit"] {
    width: 100%;
  }

  .fund-payment-data {
    grid-template-columns: 1fr;
  }

  .fund-payment-data dt {
    margin-top: 8px;
  }

  .fund-page button.fund-copy-button {
    width: auto;
  }

  .fund-page .fund-editor-toolbar-help button {
    width: auto;
  }

  .fund-report-schedule__row {
    grid-template-columns: 1fr;
  }

  .fund-media-upload,
  .fund-media-actions {
    grid-template-columns: 1fr;
  }

  .fund-media-actions .fund-button--danger {
    grid-column: 1;
  }

  .fund-calendar-toolbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .fund-calendar-count {
    grid-column: 1 / -1;
    text-align: center;
  }

  .fund-calendar-grid {
    grid-template-columns: repeat(7, minmax(32px, 1fr));
    gap: 2px;
    padding: 7px;
  }

  .fund-calendar-day {
    min-height: 46px;
    font-size: .8rem;
  }

  .fund-media-left,
  .fund-media-right,
  .fund-media-center,
  .fund-media-wide {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .fund-table-wrap {
    overflow-x: visible;
  }

  .fund-table,
  .fund-table tbody,
  .fund-table tr,
  .fund-table td {
    display: block;
    width: 100%;
  }

  .fund-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .fund-table tr {
    margin-bottom: 14px;
    border: 1px solid #b99346;
    border-radius: 4px;
    background: #fffaf0;
  }

  .fund-table td {
    display: block;
    min-width: 0;
    padding: 10px 12px;
    overflow-wrap: anywhere;
  }

  .fund-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #6f2018;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .fund-table td[data-label=""] {
    display: block;
  }

  .fund-table td[data-label=""]::before {
    content: none;
  }

  .fund-table td form,
  .fund-table td input,
  .fund-table td select,
  .fund-table td button {
    max-width: 100%;
  }
}
