.board-page {
    background: #fff;
}

.board-page .page-hero {
    height: 350px;
}

.board-page .page-hero::before {
    background-image: url("/assets/images/unhaeclean-clean-tools-regen-20260619.webp");
}

.board-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--container-gutter) 96px;
}

.board-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.board-title {
    margin: 0;
    color: #0056e0;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.board-description {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

.board-count {
    flex: 0 0 auto;
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.board-count strong {
    color: #0056e0;
    font-weight: 700;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #0f172a;
    table-layout: fixed;
}

.board-table th,
.board-table td {
    padding: 17px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    line-height: 1.45;
}

.board-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: center;
}

.board-table td {
    color: #64748b;
    text-align: center;
}

.board-table .board-table__number {
    width: 88px;
}

.board-table .board-table__date {
    width: 140px;
}

.board-table .board-table__title {
    color: #0056e0;
    text-align: left;
}

.board-table__link {
    display: block;
    overflow: hidden;
    color: inherit;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-table__link:hover {
    color: #0056e0;
}

.board-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #edf3ff;
    color: #0056e0;
    font-size: 12px;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 22px;
}

.gallery-card {
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.gallery-card__link {
    display: block;
    height: 100%;
    color: inherit;
}

.gallery-card__link:focus-visible,
.board-table__link:focus-visible {
    outline: 3px solid rgba(0, 34, 67, 0.25);
    outline-offset: -3px;
}

.gallery-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}

.gallery-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-card:hover .gallery-card__image {
    transform: scale(1.025);
}

.gallery-card__content {
    padding: 20px;
}

.gallery-card__category {
    display: inline-block;
    margin-bottom: 10px;
    color: #0056e0;
    font-size: 13px;
    font-weight: 700;
}

.gallery-card__title {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: #0056e0;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: -0.02em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gallery-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: #94a3b8;
    font-size: 13px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}

.pagination__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination__button:hover:not(:disabled) {
    border-color: #0056e0;
    color: #0056e0;
}

.pagination__button.is-active {
    border-color: #0056e0;
    background: #0056e0;
    color: #fff;
    font-weight: 700;
}

.pagination__button:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Partner application */
.partner-form__required-guide {
    flex: 0 0 auto;
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.partner-form__required-guide span,
.partner-field__label span {
    color: #c2410c;
}

.partner-form {
    padding: clamp(28px, 4vw, 44px) 0;
    border-top: 1px solid #0f172a;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.partner-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
}

.partner-field {
    min-width: 0;
}

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

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

.partner-field__label {
    display: inline-block;
    margin-bottom: 9px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 650;
}

.partner-field__counter {
    margin-bottom: 9px;
    color: #94a3b8;
    font-size: 12px;
}

.partner-field__control {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: #0056e0;
    font: inherit;
    font-size: 15px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

select.partner-field__control {
    cursor: pointer;
}

input.partner-field__control[type="date"] {
    color-scheme: light;
}

.partner-field__control::placeholder {
    color: #a8b2c1;
}

.partner-field__control:hover {
    border-color: #b9c3d0;
}

.partner-field__control:focus {
    border-color: #0056e0;
    box-shadow: 0 0 0 3px rgba(0, 34, 67, 0.1);
}

.partner-field__control--textarea {
    min-height: 160px;
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.65;
    resize: vertical;
}

.partner-privacy {
    margin-top: 32px;
    padding: 22px;
    border-radius: 10px;
    background: #f8fafc;
}

.partner-privacy__title {
    margin: 0 0 14px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
}

.partner-privacy__content {
    display: grid;
    gap: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.partner-privacy__content p {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.partner-privacy__content strong {
    color: #475569;
    font-weight: 650;
}

.partner-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.partner-consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #002243;
}

.partner-consent strong {
    color: #0056e0;
}

.partner-form__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
}

.partner-form__submit {
    min-width: 180px;
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 9px;
    background: #0056e0;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease;
}

.partner-form__submit:hover:not(:disabled) {
    background: #0b355e;
    transform: translateY(-1px);
}

.partner-form__submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.partner-form__status {
    min-height: 22px;
    margin: 12px 0 0;
    color: #166534;
    font-size: 14px;
    text-align: center;
}

.partner-form__submit-frame {
    position: absolute;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* Board detail */
.board-detail {
    border-top: 1px solid #0f172a;
}

.board-detail__header {
    padding: 34px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.board-detail__category {
    display: inline-block;
    margin-bottom: 12px;
    color: #0056e0;
    font-size: 13px;
    font-weight: 700;
}

.board-detail__title {
    margin: 0;
    color: #0056e0;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.board-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
    color: #64748b;
    font-size: 14px;
}

.board-detail__media {
    max-width: 980px;
    margin: 44px auto 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.board-detail__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-detail__body {
    min-height: 260px;
    padding: 48px 30px 64px;
    color: #334155;
    font-size: 16px;
    line-height: 1.9;
}

.board-detail__body p {
    margin: 0;
}

.board-detail__body p + p {
    margin-top: 18px;
}

.board-detail__navigation {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.board-detail__nav-link {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 58px;
    padding: 12px 20px;
    color: #334155;
    font-size: 14px;
}

.board-detail__nav-link + .board-detail__nav-link {
    border-top: 1px solid #e2e8f0;
}

.board-detail__nav-label {
    color: #64748b;
    font-weight: 600;
}

.board-detail__nav-title {
    overflow: hidden;
    color: #0056e0;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-detail__nav-link:hover .board-detail__nav-title {
    color: #0056e0;
}

.board-detail__actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.board-detail__list-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid #002243;
    border-radius: 8px;
    color: #002243;
    font-size: 14px;
    font-weight: 700;
}

.board-detail__list-button:hover {
    background: #0056e0;
    color: #fff;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .board-page .page-hero {
        height: 220px;
    }

    .board-shell {
        padding-bottom: 64px;
    }

    .board-head {
        display: block;
        margin-bottom: 20px;
    }

    .board-count {
        margin-top: 14px;
    }

    .board-table thead {
        display: none;
    }

    .board-table,
    .board-table tbody,
    .board-table tr,
    .board-table td {
        display: block;
        width: 100%;
    }

    .board-table tr {
        position: relative;
        padding: 17px 76px 17px 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .board-table td {
        padding: 0;
        border: 0;
        text-align: left;
    }

    .board-table .board-table__number {
        display: none;
    }

    .board-table .board-table__date {
        position: absolute;
        top: 19px;
        right: 0;
        width: auto;
        font-size: 12px;
    }

    .board-table__link {
        white-space: normal;
    }

    .board-badge {
        margin-bottom: 7px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-card__content {
        padding: 17px;
    }

    .pagination {
        margin-top: 36px;
    }

    .partner-form__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partner-field--wide {
        grid-column: auto;
    }

    .partner-form {
        padding: 24px 0;
    }

    .partner-privacy {
        padding: 18px;
    }

    .partner-privacy__content p {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .partner-form__submit {
        width: 100%;
    }

    .board-detail__header {
        padding: 26px 0;
    }

    .board-detail__media {
        margin-top: 28px;
        aspect-ratio: 4 / 3;
    }

    .board-detail__body {
        min-height: 220px;
        padding: 32px 0 44px;
        font-size: 15px;
    }

    .board-detail__nav-link {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 8px;
        padding: 12px 0;
    }
}

/* board-privacy-consent 공간360 맞춤화 스타일 */
.board-privacy-consent {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  padding: 22px;
  border-radius: 10px;
  background: #f8fafc;
  border: 0; /* 외곽 테두리 제거로 통일! */
  text-align: left;
}

.board-privacy-consent small {
  display: block;
  max-height: 110px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.board-privacy-consent__details {
  width: 100%;
  max-height: 156px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
  box-sizing: border-box;
}

.board-privacy-consent__details:focus-visible {
  border-color: #0056e0;
  outline: 3px solid rgba(0, 34, 67, 0.18);
  outline-offset: 2px;
}

.board-privacy-consent__title {
  margin: 0 0 10px;
  color: #1e293b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.board-privacy-consent__intro {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: #64748b;
  text-align: left;
}

.board-privacy-consent__terms {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.board-privacy-consent__terms > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
}

.board-privacy-consent__terms dt {
  color: #475569;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  text-align: left;
}

.board-privacy-consent__terms dd {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
}

.board-privacy-consent__notice {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  text-align: left;
}

.board-privacy-consent .board-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: #334155;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  border: 0;
  padding: 0;
  background: transparent;
}

.board-privacy-consent .board-checkbox-item span strong {
  color: #1e293b;
  font-weight: 700;
}

.board-privacy-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: #002243;
  cursor: pointer;
}

.board-privacy-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.board-privacy-consent__btn:hover,
.board-privacy-consent__btn:focus-visible {
  border-color: #0056e0;
  color: #002243;
}

/* 모바일 반응형 처리 */
@media (max-width: 768px) {
  .board-privacy-consent__terms > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .board-privacy-consent .board-checkbox-item {
    min-height: 44px;
    padding: 8px 0;
  }
}

/* Unhae Clean Custom 4-Column Static Summary Cards */
.board-static-copy {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 28px;
}

.board-static-copy__item {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: transform var(--motion-base) var(--motion-ease-emphasized), box-shadow var(--motion-base) ease;
}

.board-static-copy__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
}

.board-static-copy__item h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
}

.board-static-copy__item p {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.7;
  word-break: keep-all;
}

/* Unhae Clean Custom Category Summary Tab Styles */
.gallery-board__summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.gallery-board__summary a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #dbe7fa;
  border-radius: 999px;
  background: #ffffff;
  color: #003ea5;
  font-size: 14.4px;
  font-weight: 850;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gallery-board__summary a:hover,
.gallery-board__summary a.is-active {
  border-color: #0056e0;
  background: #0056e0;
  color: #ffffff;
}

.gallery-board__summary em {
  font-style: normal;
  opacity: 0.78;
}
