.funding-page,
.creator-home-page {
  min-height: 100vh;
  background: #f4f5f7;
  color: #2f343a;
}

.funding-page a {
  color: inherit;
}

.funding-shell {
  width: min(1316px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 64px;
}

.funding-home {
  display: grid;
  gap: 30px;
}

.home-vision {
  min-height: 300px;
  display: grid;
  align-content: center;
  gap: 16px;
  border: 1px solid #dfe4e2;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    url("/assets/mock/myu-hero.svg") right center / min(52vw, 620px) auto no-repeat,
    #fff;
  box-shadow: 0 10px 28px rgba(44, 52, 60, 0.05);
  padding: clamp(26px, 5vw, 58px);
}

.home-vision h1 {
  max-width: 860px;
  margin: 0;
  color: #20252a;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.18;
  letter-spacing: 0;
}

.home-vision p:not(.funding-kicker) {
  max-width: 680px;
  margin: 0;
  color: #4f5961;
  font-size: 16px;
  line-height: 1.85;
}

.home-vision__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.home-vision__secondary {
  min-height: 44px;
  border: 1px solid #cdd5d7;
  border-radius: 4px;
  background: #fff;
  color: #27313a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-weight: 800;
  text-decoration: none;
}

.funding-kicker {
  margin: 0 0 8px;
  color: #677078;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.funding-publish-strip,
.funding-discovery,
.funding-tags,
.funding-genre-section,
.funding-ranking,
.funding-project-heading,
.funding-project-hero,
.funding-action-strip,
.funding-project-tabs,
.funding-body,
.reward-sidebar__inner,
.funding-outcome,
.funding-status,
.support-modal__panel {
  border: 1px solid #dfe4e2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(44, 52, 60, 0.05);
}

.funding-publish-strip {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: #27313b;
  color: #fff;
}

.funding-publish-strip span {
  display: block;
  margin-bottom: 4px;
  color: #cdd5d7;
  font-size: 13px;
}

.funding-publish-strip strong {
  display: block;
  font-size: 18px;
  line-height: 1.45;
}

.funding-publish-strip__button,
.funding-search button,
.project-support-panel__button,
.reward-card button,
.funding-card__button,
.support-modal__close,
.mobile-support-button {
  min-height: 44px;
  border: 1px solid #d9492f;
  border-radius: 4px;
  background: #d9492f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.funding-discovery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: end;
  padding: 26px;
}

.funding-list-page {
  display: grid;
  gap: 30px;
}

.funding-discovery--public {
  align-items: center;
}

.funding-discovery__copy h1,
.funding-project-heading h1,
.funding-outcome h1 {
  max-width: 840px;
  margin: 0;
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: 0;
}

.funding-discovery__copy p:not(.funding-kicker),
.funding-project-heading p:not(.funding-kicker),
.funding-outcome p {
  max-width: 680px;
  margin: 16px 0 0;
  color: #4f5961;
  font-size: 14px;
  line-height: 1.8;
}

.funding-search {
  display: grid;
  gap: 10px;
}

.funding-search label {
  color: #454d54;
  font-size: 13px;
  font-weight: 700;
}

.funding-search__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.funding-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cdd5d7;
  border-radius: 4px;
  padding: 0 16px;
  background: #f8faf9;
  color: #171b1f;
  font: inherit;
}

.funding-category-strip {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 4px;
}

.funding-chip,
.funding-tags button,
.funding-genre-grid button,
.funding-action-strip button,
.funding-action-strip a {
  min-height: 40px;
  border: 1px solid #cdd5d7;
  border-radius: 4px;
  background: #fff;
  color: #27313a;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.funding-chip.is-active {
  border-color: #d9492f;
  background: #fff2ee;
  color: #a43422;
  font-weight: 700;
}

.creator-home-actions {
  display: grid;
  gap: 10px;
}

.creator-home-actions a {
  min-height: 48px;
  border: 1px solid #cdd5d7;
  border-radius: 4px;
  background: #f8faf9;
  color: #2f343a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
}

.creator-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.creator-home-card {
  border: 1px solid #dfe4e2;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  color: #171b1f;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(44, 52, 60, 0.05);
}

.creator-home-card--large {
  grid-row: span 2;
  grid-template-columns: 1fr;
}

.creator-home-card__media {
  min-height: 170px;
  display: block;
  background: #edf1f0;
}

.creator-home-card--large .creator-home-card__media {
  min-height: 360px;
}

.creator-home-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.creator-home-card__media--logo {
  display: grid;
  place-items: center;
}

.creator-home-card__media--logo img {
  width: min(120px, 58%);
  height: auto;
  object-fit: contain;
}

.creator-home-card__body {
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: center;
}

.creator-home-card__body strong {
  font-size: 22px;
  line-height: 1.35;
}

.creator-home-card--large .creator-home-card__body strong {
  font-size: 30px;
}

.creator-home-card__body span:last-child {
  color: #58626a;
  line-height: 1.7;
}

.funding-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.funding-section-heading h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.funding-section-heading a,
.funding-section-heading span {
  color: #59636b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.funding-featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: stretch;
  gap: 16px;
}

.funding-featured-layout > [data-featured-main] {
  min-width: 0;
  display: flex;
}

.funding-featured-layout > [data-featured-main] > .funding-card {
  flex: 1;
}

.funding-featured-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.funding-card,
.funding-ranking-item,
.funding-empty {
  border: 1px solid #dfe4e2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(44, 52, 60, 0.05);
}

.funding-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.funding-card__image-link {
  flex: 0 0 auto;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #edf1f0;
}

.funding-card__image-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.funding-card:hover .funding-card__image-link img {
  transform: scale(1.02);
}

.funding-card__body {
  min-height: 0;
  flex: 1;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.funding-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #647079;
  font-size: 12px;
  line-height: 1.4;
}

.funding-card__category {
  color: #d9492f;
  font-weight: 700;
}

.funding-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}

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

.funding-card p {
  margin: 0;
  color: #58626a;
  font-size: 14px;
  line-height: 1.65;
}

.funding-meter {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e6ecea;
}

.funding-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #d9492f;
}

.funding-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
  color: #68737b;
  font-size: 12px;
}

.funding-card__stats strong {
  display: block;
  color: #171b1f;
  font-size: 16px;
  line-height: 1.3;
}

.funding-coming-soon {
  min-height: 92px;
  margin-top: 16px;
  border: 1px dashed #cdd5d7;
  border-radius: 6px;
  background: #fafbfc;
  display: grid;
  place-items: center;
  gap: 4px;
  color: #59636b;
  text-align: center;
}

.funding-coming-soon strong {
  color: #2f343a;
  font-size: 18px;
}

.funding-card--feature {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.funding-card--feature .funding-card__image-link {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.funding-card--feature .funding-card__body {
  align-content: start;
  padding: 20px;
}

.funding-card--feature h3 {
  font-size: 24px;
  line-height: 1.35;
}

.funding-card--side {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.funding-card--side .funding-card__image-link {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
}

.funding-card--side .funding-card__body {
  padding: 14px;
  gap: 10px;
  align-content: start;
}

.funding-card--side h3 {
  font-size: 16px;
}

.funding-card--side .funding-card__meta {
  justify-content: flex-start;
  gap: 16px;
}

.funding-card__icon-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f343a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.funding-card__icon-stat::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
}

.funding-card__icon-stat--money::before {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px #fff;
  background: currentColor;
}

.funding-card__icon-stat--time::before {
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center 4px / 2px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 9px 8px / 4px 2px no-repeat;
}

.funding-card--side p,
.funding-card--side .funding-meter,
.funding-card--side .funding-card__stats {
  display: none;
}

.funding-tags {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.funding-tags h2 {
  margin: 0;
  font-size: 18px;
}

.funding-tags div,
.funding-genre-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.funding-tags button {
  background: #f7faf9;
}

.funding-genre-section,
.funding-ranking {
  padding: 22px;
}

.funding-genre-grid button {
  border-radius: 8px;
  background: #f7faf9;
  font-weight: 700;
}

.funding-ranking-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  color: #5b6670;
  font-size: 13px;
}

.funding-ranking-tabs span {
  flex: 0 0 auto;
  border: 1px solid #dfe4e2;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f8faf9;
}

.funding-ranking-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.funding-ranking-item {
  min-height: 124px;
  display: grid;
  grid-template-columns: 42px 104px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  text-decoration: none;
}

.funding-ranking-item__rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #202529;
  color: #fff;
  font-weight: 800;
}

.funding-ranking-item img {
  width: 100%;
  height: 100%;
  min-height: 92px;
  border-radius: 6px;
  object-fit: cover;
  background: #edf1f0;
}

.funding-ranking-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
}

.funding-ranking-item p {
  margin: 0;
  color: #5b6670;
  font-size: 13px;
  line-height: 1.5;
}

.funding-empty {
  margin: 14px 0 0;
  padding: 20px;
  color: #59636b;
}

.funding-detail-shell {
  display: grid;
  gap: 16px;
  padding-bottom: 88px;
}

.funding-project-heading {
  padding: 24px;
}

.funding-project-heading > a {
  display: inline-flex;
  margin-bottom: 14px;
  color: #59636b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.funding-project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  padding: 18px;
  align-items: stretch;
}

.funding-project-hero__media {
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf1f0;
}

.funding-project-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-support-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  border-left: 1px solid #e4e9e7;
  padding: 6px 0 6px 20px;
}

.project-support-panel__amount span,
.project-support-panel dt {
  color: #647079;
  font-size: 13px;
}

.project-support-panel__amount strong {
  display: block;
  margin-top: 6px;
  color: #d9492f;
  font-size: 38px;
  line-height: 1.1;
}

.funding-meter--large {
  height: 12px;
}

.project-support-panel__percent {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.project-support-panel__percent strong {
  font-size: 34px;
}

.project-support-panel__percent span {
  color: #647079;
  font-weight: 700;
}

.project-support-panel__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.project-support-panel__stats div {
  border-top: 1px solid #e4e9e7;
  padding-top: 10px;
}

.project-support-panel dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.project-support-panel__button {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

.project-support-panel p {
  margin: 0;
  color: #59636b;
  font-size: 13px;
  line-height: 1.7;
}

.funding-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.funding-action-strip button,
.funding-action-strip a {
  background: #f8faf9;
  font-weight: 700;
}

.funding-project-tabs {
  position: sticky;
  top: 78px;
  z-index: 20;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px;
}

.funding-project-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 16px;
  color: #323b43;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.funding-project-tabs a:hover {
  background: #e8f4ef;
  color: #145541;
}

.funding-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.funding-body {
  padding: 28px;
}

.funding-body h2 {
  margin: 34px 0 12px;
  padding-top: 8px;
  border-top: 1px solid #e4e9e7;
  font-size: 26px;
  letter-spacing: 0;
}

.funding-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.funding-body p,
.funding-body li {
  color: #414a52;
  font-size: 16px;
  line-height: 1.9;
}

.funding-body ul {
  padding-left: 1.4em;
}

.reward-sidebar {
  position: sticky;
  top: 150px;
}

.reward-sidebar__inner {
  padding: 16px;
}

.reward-sidebar__heading {
  margin-bottom: 14px;
}

.reward-sidebar h2 {
  margin: 0;
  font-size: 24px;
}

.reward-card {
  border: 1px solid #dfe4e2;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}

.reward-card__amount strong {
  display: block;
  color: #d9492f;
  font-size: 26px;
  line-height: 1.2;
}

.reward-card__amount span {
  color: #647079;
  font-size: 12px;
}

.reward-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.45;
}

.reward-card p {
  margin: 0;
  color: #525d65;
  font-size: 14px;
  line-height: 1.75;
}

.reward-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.reward-card dt {
  color: #647079;
  font-size: 12px;
}

.reward-card dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.reward-card button {
  width: 100%;
}

.funding-status {
  width: min(720px, calc(100% - 32px));
  margin: 128px auto 72px;
  padding: 22px;
}

.funding-outcome {
  min-height: 320px;
  padding: 32px;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.52);
}

.support-modal__panel {
  width: min(560px, 100%);
  padding: 24px;
}

.support-modal__panel h2 {
  margin: 12px 0 8px;
}

.support-modal__panel p {
  color: #555f67;
  line-height: 1.7;
}

.support-modal__panel code {
  display: inline-block;
  margin: 4px 5px 0 0;
  border: 1px solid #dfe4e2;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f8faf9;
}

.support-modal__close {
  border-color: #cdd5d7;
  background: #fff;
  color: #171b1f;
}

.mobile-support-button:not([hidden]) {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  min-height: 52px;
  box-shadow: 0 14px 32px rgba(217, 73, 47, 0.24);
}

@media (max-width: 1100px) {
  .funding-grid,
  .funding-ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funding-featured-layout,
  .creator-home-grid,
  .funding-project-hero,
  .funding-detail-layout {
    grid-template-columns: 1fr;
  }

  .project-support-panel {
    border-left: 0;
    border-top: 1px solid #e4e9e7;
    padding: 18px 0 0;
  }

  .reward-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .funding-shell {
    width: min(100% - 20px, 1316px);
    padding-top: 18px;
  }

  .home-vision {
    min-height: 420px;
    background:
      linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
      url("/assets/mock/myu-hero.svg") center bottom / 92% auto no-repeat,
      #fff;
    padding-bottom: 190px;
  }

  .funding-publish-strip,
  .funding-discovery,
  .funding-tags {
    grid-template-columns: 1fr;
  }

  .funding-publish-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .funding-publish-strip__button {
    width: 100%;
  }

  .funding-discovery {
    padding: 20px;
  }

  .funding-discovery__copy h1,
  .funding-project-heading h1,
  .funding-outcome h1 {
    font-size: 34px;
  }

  .funding-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .funding-grid,
  .funding-ranking-list,
  .project-support-panel__stats {
    grid-template-columns: 1fr;
  }

  .funding-card--feature,
  .funding-card--side,
  .creator-home-card,
  .funding-ranking-item {
    grid-template-columns: 1fr;
  }

  .funding-card--feature .funding-card__image-link,
  .funding-card--side .funding-card__image-link,
  .creator-home-card__media,
  .creator-home-card--large .creator-home-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .funding-card--side p,
  .funding-card--side .funding-meter,
  .funding-card--side .funding-card__stats {
    display: none;
  }

  .funding-project-hero__media {
    min-height: 280px;
  }

  .project-support-panel__amount strong {
    font-size: 32px;
  }

  .funding-project-tabs {
    top: 70px;
  }

  .funding-body,
  .funding-project-heading {
    padding: 20px;
  }

  .mobile-support-button:not([hidden]) {
    display: inline-flex;
  }
}
