:root {
  --memo-yellow: #fff3a6;
  --memo-blue: #dff3ff;
  --memo-pink: #ffe2e8;
  --memo-green: #dff4d8;
  --memo-lilac: #eee6ff;
}

.inner-page {
  background: #f6f1e7;
}

.inner-page .site-header {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 8px 30px rgba(25, 39, 54, 0.1);
}

.inner-page .site-header .nav-icon {
  filter: none;
}

.inner-page .site-header .brand-logo--color {
  display: block;
}

.inner-page .site-header .brand-logo--white {
  display: none;
}

.inner-page .site-header .nav-link:hover,
.inner-page .site-header:not(.is-scrolled) .nav-link:hover {
  color: var(--blue);
}

.inner-page .nav-link.is-current::before {
  position: absolute;
  right: 18%;
  bottom: 4px;
  left: 18%;
  height: 5px;
  background: var(--blue);
  content: "";
}

.suggestion-main {
  padding-top: var(--header-height);
}

.suggestion-intro {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: 112px 24px 98px;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(3, 38, 73, 0.76), rgba(11, 75, 128, 0.52)),
    url("/assets/background.webp") center 48% / cover no-repeat;
  text-align: center;
}

.suggestion-intro__tag {
  margin: 0 0 16px;
  color: #cdeeff;
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.04em;
}

.suggestion-intro h1 {
  margin: 0;
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  font-weight: normal;
  letter-spacing: -0.08em;
  line-height: 0.95;
  text-shadow: 0 8px 0 rgba(3, 38, 73, 0.22);
}

.suggestion-intro > p:last-child {
  max-width: 680px;
  margin: 30px auto 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.7;
}

.suggestion-form-section,
.suggestion-gallery-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.suggestion-form-section {
  position: relative;
  z-index: 2;
  margin-top: -48px;
  padding: 56px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(18, 43, 68, 0.14);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.section-heading__icon {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  background: #e9f5fc;
  border-radius: 15px;
}

.section-heading__icon img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.section-heading h2 {
  margin: 0;
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: normal;
  letter-spacing: -0.07em;
  line-height: 1;
}

.section-heading p {
  margin: 12px 0 0;
  color: #53708c;
  line-height: 1.6;
}

.suggestion-form {
  margin-top: 42px;
}

.nickname-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: #e9f5fc;
  border-radius: 20px;
}

.nickname-panel > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.field-caption {
  color: #56718b;
  font-size: 0.9rem;
  font-weight: 800;
}

.nickname-panel strong {
  color: var(--navy);
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: normal;
  letter-spacing: -0.06em;
}

.nickname-refresh,
.gallery-toolbar button {
  padding: 10px 14px;
  color: var(--navy);
  background: var(--white);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(12, 63, 111, 0.1);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nickname-refresh:hover,
.gallery-toolbar button:hover {
  color: var(--white);
  background: var(--blue);
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.form-field {
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 10px;
}

.form-field > span {
  color: var(--ink);
  font-weight: 900;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  color: #153c61;
  background: #fbfaf6;
  border: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px #dfe5e8;
  font: inherit;
  outline: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
  -webkit-user-select: text;
  user-select: text;
}

.form-field input,
.form-field select {
  height: 54px;
  padding: 0 16px;
}

.form-field textarea {
  min-height: 190px;
  padding: 17px 18px 34px;
  line-height: 1.7;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--sky);
}

.form-field--full {
  margin-top: 24px;
}

.form-field small {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #72869a;
  font-size: 0.78rem;
}

.form-field input + small {
  bottom: 18px;
}

.honeypot {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
}

.privacy-box {
  margin-top: 28px;
  padding: 20px 22px;
  background: #f4f1e9;
  border-radius: 16px;
}

.privacy-consent {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}

.privacy-consent + .privacy-consent {
  margin-top: 12px;
}

.privacy-consent input {
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: var(--blue);
}

.privacy-consent em {
  color: #d03b4f;
  font-style: normal;
}

.privacy-box details {
  margin-top: 13px;
  color: #4d647a;
  font-size: 0.88rem;
}

.privacy-box summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 800;
}

.privacy-box dl {
  margin: 16px 0 0;
}

.privacy-box dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  padding: 9px 0;
  border-top: 1px solid rgba(7, 62, 120, 0.1);
}

.privacy-box dt {
  color: var(--navy);
  font-weight: 900;
}

.privacy-box dd {
  margin: 0;
  line-height: 1.55;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 28px;
}

.form-submit-row p {
  margin: 0 auto 0 0;
  color: #37627f;
  font-weight: 700;
}

.form-submit-row p.is-error {
  color: #b52e43;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 210px;
  padding: 17px 20px 17px 24px;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: 15px;
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: 1.2rem;
  cursor: pointer;
}

.submit-button:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.submit-button b {
  font-size: 1.5rem;
}

.suggestion-gallery-section {
  padding: 112px 0 130px;
}

.section-heading--gallery .section-heading__icon {
  background: var(--memo-yellow);
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 24px;
}

.gallery-toolbar p {
  margin: 0;
  color: #56718b;
}

.gallery-toolbar p b {
  color: var(--navy);
  font-size: 1.3rem;
}

.suggestion-gallery {
  columns: 3 300px;
  column-gap: 20px;
}

.suggestion-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  padding: 26px;
  break-inside: avoid;
  background: var(--memo-yellow);
  border-radius: 4px 4px 18px 4px;
  box-shadow: 0 12px 26px rgba(34, 48, 61, 0.11);
  vertical-align: top;
}

.suggestion-card:nth-child(5n + 2) { background: var(--memo-blue); }
.suggestion-card:nth-child(5n + 3) { background: var(--memo-pink); }
.suggestion-card:nth-child(5n + 4) { background: var(--memo-green); }
.suggestion-card:nth-child(5n + 5) { background: var(--memo-lilac); }

.suggestion-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.suggestion-card__nickname {
  color: var(--navy);
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: -0.05em;
}

.suggestion-card__category,
.suggestion-card__status {
  padding: 6px 9px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.suggestion-card h3 {
  margin: 24px 0 13px;
  color: #102f4e;
  font-size: 1.18rem;
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.suggestion-card__content {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #2f4a61;
  line-height: 1.75;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.suggestion-card.is-expanded .suggestion-card__content {
  display: block;
}

.suggestion-card__more {
  margin-top: 12px;
  padding: 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.suggestion-card__reply {
  margin-top: 22px;
  padding: 16px;
  color: #243f57;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.suggestion-card__reply b {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
}

.suggestion-card--pending {
  min-height: 156px;
}

.suggestion-card--pending p {
  margin: 30px 0 6px;
  color: #46627a;
  font-weight: 800;
  line-height: 1.6;
}

.suggestion-card time {
  display: block;
  margin-top: 18px;
  color: rgba(29, 59, 84, 0.58);
  font-size: 0.75rem;
}

.gallery-loading {
  display: flex;
  width: 100%;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  column-span: all;
}

.gallery-loading .site-loader__dots {
  gap: 11px;
}

.gallery-loading .site-loader__dots i {
  width: 12px;
  height: 12px;
}

@media (max-width: 1180px) {
  .suggestion-main {
    padding-top: var(--header-height);
  }

  .inner-page .site-header {
    color: var(--ink);
  }

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

@media (max-width: 720px) {
  .suggestion-intro {
    min-height: 330px;
    padding: 82px 20px 76px;
  }

  .suggestion-form-section,
  .suggestion-gallery-section {
    width: min(100% - 28px, 1180px);
  }

  .suggestion-form-section {
    margin-top: -34px;
    padding: 32px 20px;
    border-radius: 22px;
  }

  .section-heading {
    gap: 14px;
  }

  .section-heading__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .section-heading__icon img {
    width: 27px;
    height: 27px;
  }

  .section-heading p {
    font-size: 0.9rem;
  }

  .suggestion-form {
    margin-top: 30px;
  }

  .nickname-panel {
    align-items: flex-start;
    padding: 20px;
  }

  .nickname-panel > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .nickname-refresh {
    padding: 9px 10px;
    font-size: 0.78rem;
  }

  .profile-fields {
    grid-template-columns: 1fr 1fr;
    gap: 15px 12px;
  }

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

  .form-field input,
  .form-field select {
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .privacy-box dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-button {
    width: 100%;
  }

  .suggestion-gallery-section {
    padding: 80px 0 104px;
  }

  .suggestion-gallery {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .inner-page .nav-link.is-current::before {
    right: 25%;
    bottom: 4px;
    left: 25%;
    height: 4px;
  }

  .suggestion-main {
    padding-top: var(--header-height);
  }

  .suggestion-intro h1 {
    font-size: clamp(3.4rem, 20vw, 5.6rem);
  }

  .suggestion-intro > p:last-child {
    font-size: 0.94rem;
  }

  .profile-fields {
    grid-template-columns: 1fr;
  }

  .form-field--wide-mobile {
    grid-column: auto;
  }

  .gallery-toolbar {
    margin-top: 28px;
  }
}
