.ie-board {
  background: #f5f3ee;
}

.ie-board button,
.ie-board input,
.ie-board textarea,
.ie-board select {
  font-family: 'Pretendard', 'Rimgul', 'Noto Sans KR', sans-serif !important;
}

.ie-board button {
  width: auto;
  margin-top: 0;
}

.board-menu__logo {
  color: #222;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.board-menu__links .is-active {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

.board-shell {
  width: min(128rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 8rem) 0 8rem;
}

.board-hero {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.board-hero__eyebrow {
  font-size: 1.2rem !important;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.board-hero h1 {
  max-width: 80rem;
  font-size: clamp(3.2rem, 7cqi, 8rem) !important;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.board-hero p {
  max-width: 68rem;
  color: rgba(0, 0, 0, 0.72);
}

.board-actions,
.board-form__actions,
.board-detail__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.board-button {
  min-height: 3.6rem;
  padding: 0.7rem 1.2rem !important;
  border: 0.1rem solid #222 !important;
  border-radius: 999px;
  background: #ffffff !important;
  color: #222 !important;
  box-shadow: none !important;
  font-weight: 800;
  cursor: pointer;
}

.board-button:hover,
.board-button.is-active {
  background: #222 !important;
  color: #fff !important;
}

.board-button--primary {
  background: #ffdd00 !important;
  color: #111 !important;
}

.board-button--primary:hover {
  background: #111 !important;
  color: #ffdd00 !important;
}

.board-button--danger {
  border-color: #c41f1f !important;
  color: #c41f1f !important;
}

.board-button--danger:hover {
  background: #c41f1f !important;
  color: #fff !important;
}

.board-alert {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  border: 0.1rem solid #222;
  background: #fffbd8;
  color: #222;
  font-weight: 700;
}

.board-alert[data-type='success'] {
  background: #e9ffe8;
}

.board-alert[data-type='error'] {
  background: #ffe8e8;
}

.board-alert[data-type='warning'] {
  background: #fff2cd;
}

.board-panel {
  display: grid;
  gap: 2rem;
}

.board-panel[hidden] {
  display: none !important;
}

.board-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
  align-items: end;
  padding-bottom: 1.2rem;
  border-bottom: 0.1rem solid rgba(0, 0, 0, 0.18);
}

.board-panel__head p {
  color: rgba(0, 0, 0, 0.62);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 2vw, 2.4rem);
}

.board-card {
  display: grid;
  gap: 1rem;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #222 !important;
  text-align: left;
  box-shadow: none !important;
}

.board-card__thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ddd;
  border: 0.1rem solid rgba(0, 0, 0, 0.18);
}

.board-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1);
  transition: filter 260ms ease, transform 360ms ease;
}

.board-card:hover .board-card__thumb img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.board-card__thumb--empty {
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 900;
}

.board-card__meta {
  display: grid;
  gap: 0.2rem;
}

.board-card__meta strong {
  font-size: 1.8rem !important;
  line-height: 1.25;
}

.board-card__meta span {
  font-size: 1.2rem !important;
  color: rgba(0, 0, 0, 0.58);
}

.board-empty {
  padding: 5rem 2rem;
  border: 0.1rem dashed rgba(0, 0, 0, 0.3);
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
}

.board-form {
  display: grid !important;
  gap: 1.6rem !important;
  max-width: 96rem;
  padding: clamp(1.6rem, 3vw, 3rem);
  background: #ffffff;
  border: 0.1rem solid rgba(0, 0, 0, 0.15);
}

.board-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.board-form__grid--style {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.board-form__row {
  display: grid;
  gap: 0.6rem;
}

.board-form__row label,
.board-style-fieldset legend {
  font-weight: 900;
}

.board-form__row input,
.board-form__row textarea,
.board-form__row select {
  width: 100%;
  min-height: 3.8rem;
  padding: 0.8rem 1rem !important;
  border: 0.1rem solid #bbb !important;
  border-radius: 0;
  background: #fff !important;
  box-shadow: none !important;
  color: #222 !important;
}

.board-form__row textarea {
  resize: vertical;
  line-height: 1.6;
}

.board-style-fieldset {
  padding: 1.2rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.2);
}

.board-help {
  color: rgba(0, 0, 0, 0.58);
  font-size: 1.2rem !important;
}

.board-image-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.board-image-preview__item {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.board-image-preview__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ddd;
}

.board-image-preview__item span {
  overflow: hidden;
  font-size: 1.1rem !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.62);
}

.board-detail {
  max-width: 110rem;
  margin: 0 auto;
}

.board-detail__top {
  justify-content: space-between;
}

.board-detail__header {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.board-detail__header h2 {
  font-size: clamp(2.8rem, 6cqi, 7rem) !important;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.board-detail__header p {
  color: rgba(0, 0, 0, 0.58);
}

.board-detail__images {
  display: grid;
  gap: 2rem;
}

.board-detail__figure {
  margin: 0;
  background: #eee;
}

.board-detail__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.board-detail__body {
  margin-top: 2rem;
  padding: 1.6rem 0;
  white-space: pre-wrap;
  line-height: 1.8;
}

.is-board-loading {
  cursor: progress;
}

.is-board-loading .board-button {
  opacity: 0.72;
  cursor: wait;
}

@container (max-width: 980px) {
  .board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container (max-width: 720px) {
  .board-shell {
    width: min(100% - 2.4rem, 128rem);
  }

  .board-grid,
  .board-image-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-form__grid,
  .board-form__grid--style {
    grid-template-columns: 1fr;
  }

  .board-panel__head {
    align-items: start;
    flex-direction: column;
  }
}

@container (max-width: 420px) {
  .board-grid,
  .board-image-preview {
    grid-template-columns: 1fr;
  }

  .board-actions,
  .board-form__actions,
  .board-detail__top {
    align-items: stretch;
    flex-direction: column;
  }
}
