.tews-project-zone-page {
  color: #07182d;
  background: #f8f6f1;
}

.tews-project-zone-page,
.tews-project-zone-page * {
  box-sizing: border-box;
}

.tews-project-zone-page #page,
.tews-project-zone-page .site-content,
.tews-project-zone-page .site-content > .ast-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.tews-project-zone-page .site-content > .ast-container {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.tews-project-zone-page #page {
  min-height: 100svh;
  background: #f8f6f1;
}

.tews-project-header {
  display: grid;
  min-height: 118px;
  padding: 26px clamp(24px, 4vw, 64px);
  place-items: center;
  background: #07182d;
  border-bottom: 1px solid rgba(200, 169, 107, 0.28);
}

.tews-project-header__brand,
.tews-project-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tews-project-header__brand img {
  display: block;
  width: clamp(190px, 18vw, 234px);
  height: auto;
}

.tews-project-zone-page #primary.tews-project-main {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 0;
  flex: 1 0 auto;
  padding: clamp(64px, 8vw, 112px) clamp(24px, 5vw, 72px) clamp(76px, 9vw, 128px);
  background:
    linear-gradient(135deg, rgba(200, 169, 107, 0.055), transparent 35%),
    #f8f6f1;
}

.tews-project {
  width: min(100%, 1320px);
  margin-inline: auto;
}

.tews-project__intro {
  width: min(100%, 840px);
  margin-bottom: clamp(44px, 5vw, 70px);
}

.tews-project__kicker {
  margin: 0 0 20px;
  color: #9a773c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.tews-project__title {
  margin: 0;
  color: #07182d;
  font-family: "Kiro", sans-serif;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.tews-project__description {
  max-width: 720px;
  margin: 26px 0 0;
  color: #415064;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
}

.tews-project__files {
  width: 100%;
  min-width: 0;
}

.tews-project__files:empty {
  display: none;
}

.tews-project__files > * {
  max-width: 100%;
}

.tews-project__files img,
.tews-project__files iframe,
.tews-project__files table {
  max-width: 100%;
}

/* WP File Download exposes the preview action separately from its theme colors. */
.tews-project-zone-page .tews-project__files .file-right a.wpfd_previewlink {
  color: #07182d !important;
  background: #c8a96b !important;
  border-color: #c8a96b !important;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tews-project-zone-page .tews-project__files .file-right a.wpfd_previewlink i {
  color: #07182d !important;
}

.tews-project-zone-page .tews-project__files .file-right a.wpfd_previewlink:hover,
.tews-project-zone-page .tews-project__files .file-right a.wpfd_previewlink:focus-visible {
  color: #07182d !important;
  background: #e2c88a !important;
  border-color: #e2c88a !important;
  box-shadow: 0 6px 14px rgba(200, 169, 107, 0.2);
}

.tews-project-footer {
  padding: 38px clamp(24px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.68);
  background: #07182d;
  border-top: 1px solid rgba(200, 169, 107, 0.28);
}

.tews-project-footer__inner {
  width: min(100%, 1320px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.tews-project-footer__brand {
  justify-self: start;
}

.tews-project-footer__brand img {
  display: block;
  width: 170px;
  height: auto;
}

.tews-project-footer p {
  margin: 0;
}

.tews-project-footer__label {
  color: #c8a96b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.tews-project-footer__copyright {
  justify-self: end;
  font-size: 13px;
}

.tews-project-zone-page a:focus-visible {
  outline: 2px solid #e2c88a;
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .tews-project-header {
    min-height: 94px;
    padding-block: 22px;
  }

  .tews-project-header__brand img {
    width: 180px;
  }

  .tews-project-zone-page #primary.tews-project-main {
    padding: 54px 20px 72px;
  }

  .tews-project__intro {
    margin-bottom: 42px;
  }

  .tews-project__kicker {
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .tews-project__title {
    font-size: clamp(36px, 12vw, 54px);
    overflow-wrap: normal;
    word-break: normal;
  }

  .tews-project__description {
    margin-top: 20px;
    font-size: 16px;
  }

  .tews-project-footer {
    padding-block: 34px;
  }

  .tews-project-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    text-align: center;
  }

  .tews-project-footer__brand,
  .tews-project-footer__copyright {
    justify-self: center;
  }

  .tews-project-footer__brand img {
    width: 155px;
  }
}

@media (max-width: 420px) {
  .tews-project-zone-page #primary.tews-project-main {
    padding-inline: 18px;
  }

  .tews-project__title {
    font-size: 36px;
  }
}
