/* snipit.im/blog 스타일: 태그별 섹션 + 미리보기 이미지 카드 */

/* 배너 ~ 주목할 콘텐츠까지 상단 밴드 */
body.home-template .site-content {
  padding-top: 0;
}

/* 본문과 하단 밴드 사이 여백 */
.site-content {
  padding-bottom: 32px;
}

.snipit-home-topband {
  width: 100%;
  background: #f4f7fe;
  padding-bottom: 48px;
  box-sizing: border-box;
}

.snipit-home-topband .site-main {
  padding-top: 40px;
}

.snipit-home-topics {
  background: #fff;
  padding-bottom: 32px;
  box-sizing: border-box;
}

.snipit-home-topics .site-main {
  padding-top: 48px;
}

.snipit-home .snipit-featured {
  margin-top: 0;
}

/* Ease .topic-feed(2열 grid) 덮어쓰기 */
.snipit-home .topic-feed.snipit-topic-feed {
  display: flex;
  flex-direction: column;
  gap: 72px;
  width: 100%;
}

.snipit-home .snipit-topic {
  width: 100%;
  min-width: 0;
}

.snipit-topic__header.topic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 0;
  border-bottom: none;
}

.snipit-topic__heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.snipit-topic__name.topic-name {
  margin: 0;
  color: rgb(8, 18, 94);
}

.snipit-topic__desc {
  margin: 0;
  color: rgba(8, 18, 94, 0.5);
  font-family: var(--font-body, inherit);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  word-break: keep-all;
}

.snipit-topic__name a {
  color: inherit;
  text-decoration: none;
}

.snipit-topic__name a:hover {
  color: rgb(51, 68, 181);
}

.snipit-topic__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #00000014;
  border-radius: 8px;
  background: #fefeff;
  color: rgb(8, 18, 94) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.snipit-topic__cta:hover {
  color: rgb(51, 68, 181) !important;
  text-decoration: none;
  background-color: #f8f9ff;
}

.snipit-topic-card {
  --snipit-topic-card-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fefeff;
  border: 1px solid #00000014;
  border-radius: var(--snipit-topic-card-radius);
  box-sizing: border-box;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.snipit-topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.snipit-topic-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(135deg, #eef1ff 0%, #f5f7fb 100%);
  aspect-ratio: 550 / 320;
}

.snipit-topic-card__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.snipit-topic-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px 18px 18px;
}

.snipit-topic-card__title {
  margin: 0;
  color: rgb(8, 18, 94);
  word-break: keep-all;
}

.snipit-topic-card:hover {
  opacity: 1 !important;
}

.snipit-topic-card__excerpt {
  margin: 0;
  color: rgba(8, 18, 94, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.snipit-topic-card--featured .snipit-topic-card__excerpt {
  -webkit-line-clamp: 3;
}

.snipit-topic-card__meta {
  margin-top: 2px;
  letter-spacing: 0.02em;
  color: rgba(8, 18, 94, 0.45);
}

/* 제품 스토리: 왼쪽 메인 + 오른쪽 2개 (flex, 겹침 방지) */
.snipit-home .snipit-topic__posts--story {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}

.snipit-home .snipit-topic__main {
  flex: 1.2 1 0%;
  min-width: 0;
  max-width: 56%;
}

.snipit-home .snipit-topic__side {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 44%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
}

.snipit-home .snipit-topic__main .snipit-topic-card--featured {
  height: auto;
}

.snipit-home .snipit-topic__main .snipit-topic-card__media {
  aspect-ratio: 550 / 320;
  max-height: none;
}

/* 오른쪽 2카드: 이미지 왼쪽 + 텍스트 오른쪽 */
.snipit-home .snipit-topic__side .snipit-topic-card {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.snipit-home .snipit-topic__side .snipit-topic-card__media {
  flex: 0 0 220px;
  width: 220px;
  max-height: none;
  align-self: stretch;
  aspect-ratio: auto;
  min-height: 140px;
  border-radius: 0;
}

.snipit-home .snipit-topic__side .snipit-topic-card__body {
  flex: 1 1 auto;
  justify-content: center;
  padding: 16px 18px;
  gap: 6px;
}

.snipit-home .snipit-topic__side .snipit-topic-card__excerpt {
  -webkit-line-clamp: 2;
}

.snipit-home
  .snipit-topic__posts--pair
  > .snipit-topic-card
  .snipit-topic-card__media {
  aspect-ratio: 550 / 320;
  max-height: none;
}

/* 제품 스토리 하단 뉴스레터 */
.snipit-newsletter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 64px 32px;
  overflow: hidden;
  background: #fff;
  border: none;
  border-radius: 16px;
  box-sizing: border-box;
  text-align: center;
  isolation: isolate;
}

.snipit-newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/newsletter-bg.png") left center / cover no-repeat;
  opacity: 0.72;
  pointer-events: none;
}

.snipit-newsletter > * {
  position: relative;
  z-index: 1;
}

.snipit-newsletter__title {
  margin: 0;
  color: rgb(8, 18, 94);
  font-family: var(--font-heading, inherit);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  word-break: keep-all;
  text-align: center;
}

.snipit-newsletter__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.snipit-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
}

.snipit-newsletter__form input[type="email"],
.snipit-newsletter__form .snipit-newsletter__input {
  flex: 1 1 240px;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #00000014;
  border-radius: 999px;
  background: #fff;
  color: rgb(8, 18, 94);
  font-family: var(--font-body, inherit);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  outline: none;
  box-sizing: border-box;
  appearance: none;
}

.snipit-newsletter__form input[type="email"]:focus,
.snipit-newsletter__form .snipit-newsletter__input:focus {
  border-color: rgba(51, 68, 181, 0.45);
}

.snipit-newsletter__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #00000014;
  border-radius: 999px;
  background: #3344ff;
  color: #fff;
  font-family: var(--font-heading, inherit);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: filter 180ms ease;
}

.snipit-newsletter__button:hover {
  filter: brightness(1.05);
}

.snipit-newsletter__form.loading .snipit-newsletter__button {
  opacity: 0.7;
  cursor: wait;
}

.snipit-newsletter__form.loading .snipit-newsletter__button,
.snipit-newsletter__form .snipit-newsletter__button:disabled {
  pointer-events: none;
}

.snipit-newsletter__success,
.snipit-newsletter__error {
  display: none;
  width: 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.snipit-newsletter__form.success .snipit-newsletter__success,
.snipit-newsletter__form.error .snipit-newsletter__error {
  display: block;
}

.snipit-newsletter__success {
  color: #1b7a3d;
}

.snipit-newsletter__error {
  color: #c0392b;
}

/* 최하단 뉴스레터 + 푸터 밴드 */
.snipit-footer-band {
  width: 100%;
  background: transparent;
  padding: 32px 24px;
  box-sizing: border-box;
}

.snipit-footer-band__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.snipit-footer-band .snipit-newsletter {
  width: 100%;
}

/* 하단 밴드용: 좌 문구 / 우 폼, 하단 정렬 + 네이비 배경 */
.snipit-newsletter--split {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  text-align: left;
  padding: 48px 40px;
  background: #2b3761;
}

.snipit-newsletter--split::before {
  display: none;
}

.snipit-newsletter--split .snipit-newsletter__title {
  flex: 1 1 320px;
  max-width: 560px;
  margin: 0;
  text-align: left;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
}

.snipit-newsletter--split .snipit-newsletter__form {
  flex: 0 1 420px;
  max-width: 420px;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
}

.snipit-newsletter--split .snipit-newsletter__form input[type="email"],
.snipit-newsletter--split .snipit-newsletter__form .snipit-newsletter__input {
  border-color: rgba(255, 255, 255, 0.28);
  background: #fff;
  color: #2b3761;
}

.snipit-newsletter--split
  .snipit-newsletter__form
  input[type="email"]::placeholder,
.snipit-newsletter--split
  .snipit-newsletter__form
  .snipit-newsletter__input::placeholder {
  color: rgba(43, 55, 97, 0.55);
}

.snipit-newsletter--split .snipit-newsletter__form input[type="email"]:focus,
.snipit-newsletter--split
  .snipit-newsletter__form
  .snipit-newsletter__input:focus {
  border-color: #b8beff;
}

.snipit-newsletter--split .snipit-newsletter__button {
  border-color: transparent;
  background: #b8beff;
  color: #2b3761;
}

.snipit-newsletter--split .snipit-newsletter__button:hover {
  filter: brightness(1.06);
}

.snipit-newsletter--split .snipit-newsletter__success {
  color: #9ee6b2;
}

.snipit-newsletter--split .snipit-newsletter__error {
  color: #ffb4a8;
}

.snipit-newsletter--split .snipit-newsletter__success,
.snipit-newsletter--split .snipit-newsletter__error {
  text-align: left;
}

.snipit-footer-band .gh-foot {
  width: 100%;
  margin: 0;
  padding: 32px 0 0;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

.snipit-footer-band .gh-foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: none;
  margin: 0;
  padding: 8px 4px 0;
}

@media (max-width: 767px) {
  .snipit-footer-band {
    padding: 32px 16px;
  }

  .snipit-footer-band__inner {
    gap: 20px;
  }
}

/* 리포트 / 유저 인터뷰: 2열. 글 1개여도 한 칸만 써서 과하게 늘어나지 않음 */
.snipit-home .snipit-topic__posts--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.snipit-home .snipit-topic__posts--pair > .snipit-topic-card {
  min-width: 0;
}

@media (max-width: 900px) {
  .snipit-newsletter {
    padding: 48px 20px;
  }

  .snipit-newsletter__title {
    font-size: 20px;
  }

  .snipit-newsletter__form {
    max-width: none;
  }

  .snipit-newsletter__button {
    width: 100%;
  }

  .snipit-newsletter--split {
    flex-direction: column;
    align-items: stretch;
    padding: 40px 24px;
  }

  .snipit-newsletter--split .snipit-newsletter__title {
    max-width: none;
    font-size: 22px;
  }

  .snipit-newsletter--split .snipit-newsletter__form {
    flex: 1 1 auto;
    max-width: none;
    justify-content: stretch;
  }

  .snipit-newsletter--split .snipit-newsletter__success,
  .snipit-newsletter--split .snipit-newsletter__error {
    text-align: left;
  }

  .snipit-topic__header.topic-header {
    align-items: flex-start;
  }

  .snipit-topic__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .snipit-home .snipit-topic__posts--story,
  .snipit-home .snipit-topic__posts--pair {
    flex-direction: column;
    gap: 24px;
  }

  .snipit-home .snipit-topic__posts--pair {
    grid-template-columns: 1fr;
  }

  .snipit-home .snipit-topic__main,
  .snipit-home .snipit-topic__side {
    max-width: none;
    flex: 1 1 auto;
    width: 100%;
  }

  .snipit-home .snipit-topic__main .snipit-topic-card__media {
    aspect-ratio: 550 / 320;
    max-height: none;
  }

  .snipit-home .snipit-topic__side .snipit-topic-card {
    flex-direction: row;
    align-items: stretch;
  }

  .snipit-home .snipit-topic__side .snipit-topic-card__media {
    flex: 0 0 160px;
    width: 160px;
    aspect-ratio: auto;
    max-height: none;
    min-height: 120px;
  }

  .snipit-home .topic-feed.snipit-topic-feed {
    gap: 56px;
  }
}

/* 태그/작성자 목록: 이미지 + 발행일 */
.snipit-tag .post-feed .post,
.tag-template .post-feed .post {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
}

.snipit-tag .post-feed .post + .post,
.tag-template .post-feed .post + .post {
  border-top: 1px solid rgba(8, 18, 94, 0.1);
}

.snipit-tag .post-feed .post-media,
.tag-template .post-feed .post-media {
  flex: 0 0 220px;
  width: 220px;
  margin: 0;
}

.snipit-tag .post-feed .post-media .u-placeholder,
.tag-template .post-feed .post-media .u-placeholder {
  width: 100%;
  aspect-ratio: 550 / 320;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef1ff 0%, #f5f7fb 100%);
}

.snipit-tag .post-feed .post-image,
.tag-template .post-feed .post-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snipit-tag .post-feed .post-wrapper,
.tag-template .post-feed .post-wrapper {
  flex: 1 1 auto;
  min-width: 0;
}

.snipit-tag .post-feed .post-title,
.tag-template .post-feed .post-title {
  color: rgb(8, 18, 94);
  word-break: keep-all;
}

.snipit-tag .post-feed .post-link:hover ~ .post-wrapper .post-title,
.tag-template .post-feed .post-link:hover ~ .post-wrapper .post-title {
  color: rgb(8, 18, 94);
}

.snipit-tag .post-feed .post-date,
.tag-template .post-feed .post-date {
  display: block;
  margin-top: 10px;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(8, 18, 94, 0.45);
}

@media (max-width: 767px) {
  .snipit-tag .post-feed .post,
  .tag-template .post-feed .post {
    align-items: flex-start;
    gap: 16px;
  }

  .snipit-tag .post-feed .post-media,
  .tag-template .post-feed .post-media {
    flex: 0 0 120px;
    width: 120px;
  }
}
