/* High-clarity home — stronger contrast, clearer hierarchy */

.pb-home {
  width: 100%;
  max-width: 100vw;
  overflow: clip;
}

.pb-home *,
.pb-home *::before,
.pb-home *::after {
  box-sizing: border-box;
}

/* —— Hero: full-bleed teal so first screen pops —— */
.pb-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(2.6rem, 6vw, 4.2rem) max(1.15rem, calc((100% - 1140px) / 2 + 1.15rem));
  color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(255, 255, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(212, 180, 131, 0.18), transparent 55%),
    linear-gradient(145deg, #1a5c50 0%, #154a40 48%, #123f37 100%);
}

.pb-hero--with-spot {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
}

.pb-hero__intro {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  min-width: 0;
}

.pb-hero__eyebrow {
  margin: 0;
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: #fff;
}

.pb-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
}

.pb-brand {
  font: inherit;
  color: inherit;
}

.pb-hero__mark {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  flex: 0 0 auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.pb-hero__title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.2;
  color: #fff;
}

.pb-hero__lead {
  margin: 0;
  max-width: 28rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}

.pb-hero__search {
  width: min(100%, 36rem);
  margin-top: 0.4rem;
}

.pb-search--hero .pb-search__field {
  display: flex;
  gap: 0.3rem;
  padding: 0.45rem;
  border-radius: 16px;
  background: #fff;
  border: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.pb-search--hero .pb-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #171b1a;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  padding: 0.85rem 1rem;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.pb-search--hero .pb-search__input::placeholder {
  color: rgba(23, 27, 26, 0.42);
  font-weight: 500;
}

.pb-search--hero .pb-search__submit {
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1.3rem;
  background: #0f3d35;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.pb-search--hero .pb-search__submit:hover {
  background: #176054;
}

.pb-hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}

.pb-hero__nav a {
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}

.pb-hero__nav a:hover {
  color: #fff !important;
  border-bottom-color: #fff;
}

/* Spotlight — bright white card on teal */
.pb-spotlight {
  min-width: 0;
  padding: 1.3rem;
  border-radius: 24px;
  background: #fff;
  border: 0;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
  color: #171b1a;
}

.pb-spotlight__head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #e8eeec;
}

.pb-spotlight__label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e5c50;
}

.pb-spotlight__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #171b1a;
}

.pb-spotlight__title a {
  color: inherit !important;
  text-decoration: none !important;
}

.pb-spotlight__title a:hover {
  color: #1e5c50 !important;
}

.pb-spotlight__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.pb-spotlight__list li {
  margin: 0;
}

.pb-spotlight__item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 16px;
  background: #f0f5f3;
  border: 1px solid #dde6e2;
  text-decoration: none !important;
  color: #171b1a !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pb-spotlight__item:hover {
  background: #e3efe9;
  border-color: #1e5c50;
}

.pb-spotlight__media {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d5dfda;
}

.pb-spotlight__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.3rem;
}

.pb-spotlight__meta {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.pb-spotlight__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 1.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 7px;
  background: #1e5c50;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pb-spotlight__name {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pb-spotlight__more {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e5c50 !important;
  text-decoration: none !important;
  border-bottom: 2px solid #1e5c50;
  padding-bottom: 2px;
}

/* Sections — clearer separation */
.pb-boards,
.pb-latest {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 3.8rem) clamp(1.15rem, 4vw, 2rem);
}

.pb-guides {
  margin: 0;
  padding: clamp(2.2rem, 4.5vw, 3.2rem) max(1.15rem, calc((100% - 1140px) / 2 + 1.15rem));
  background: #f3f8f6;
  border-top: 1px solid rgba(18, 24, 22, 0.06);
}

.pb-guides__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  max-width: 1140px;
  margin: 0 auto 1.4rem;
}

.pb-guides__head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #121615;
}

.pb-guides__head p {
  margin: 0.4rem 0 0;
  max-width: 36rem;
  color: #4a5c57;
  font-size: 0.98rem;
  line-height: 1.55;
}

.pb-guides__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 107, 92, 0.1);
  font-weight: 800;
  color: #0f6b5c !important;
  text-decoration: none !important;
}

.pb-guides__link:hover {
  background: rgba(15, 107, 92, 0.16);
}

.pb-guides__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1140px;
  margin: 0 auto;
}

.pb-guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 11.5rem;
  padding: 1.2rem 1.2rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(18, 24, 22, 0.08);
  border-radius: 18px;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 8px 22px rgba(18, 24, 22, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pb-guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 92, 0.28);
  box-shadow: 0 14px 30px rgba(18, 24, 22, 0.09);
}

.pb-guide-card__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 107, 92, 0.1);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f6b5c;
}

.pb-guide-card__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.4;
  color: #121615;
}

.pb-guide-card__excerpt {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a5c57;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pb-guide-card::after {
  content: "기준 보기 →";
  margin-top: 0.15rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f6b5c;
}

.pb-boards {
  background: #fff;
  max-width: none;
  padding-left: max(1.15rem, calc((100% - 1140px) / 2 + 1.15rem));
  padding-right: max(1.15rem, calc((100% - 1140px) / 2 + 1.15rem));
  border-bottom: 1px solid #e2e8e5;
}

.pb-latest {
  background: #f4f7f6;
  max-width: none;
  padding-left: max(1.15rem, calc((100% - 1140px) / 2 + 1.15rem));
  padding-right: max(1.15rem, calc((100% - 1140px) / 2 + 1.15rem));
  padding-bottom: clamp(3.5rem, 8vw, 5rem);
}

.pb-section__head {
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.pb-section__head--row {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.pb-section__head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #121615;
}

.pb-section__head p {
  margin: 0;
  color: #4a5551;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.pb-section__link {
  color: #1e5c50 !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 800;
  border-bottom: 2px solid #1e5c50;
  padding-bottom: 2px;
}

.pb-board__name a {
  color: inherit;
  text-decoration: none;
}

.pb-board__name a:hover {
  color: #1e5c50;
  text-decoration: underline;
}

.pb-section__inline-link {
  color: #1e5c50;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.pb-section__inline-link:hover {
  text-decoration: underline;
}

.pb-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.1rem;
  max-width: 1140px;
  margin: 0 auto;
}

.pb-board {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: #f7faf9;
  border: 1.5px solid #d5dfda;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pb-board:hover {
  border-color: #1e5c50;
  box-shadow: 0 12px 28px rgba(18, 40, 34, 0.08);
}

.pb-board__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
  padding-bottom: 0.85rem;
  border-bottom: 1.5px solid #dfe7e3;
}

.pb-board__name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #121615;
}

.pb-board__meta {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #4a5551;
}

.pb-board__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.4rem;
  border-radius: 10px;
  background: #1e5c50;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.pb-board__posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pb-board__posts li {
  margin: 0;
}

.pb-board__post {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.65rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8e5;
  color: #121615 !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pb-board__post:hover {
  border-color: #1e5c50;
  background: #eef6f3;
}

.pb-board__post-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pb-thumb {
  flex: 0 0 var(--pb-thumb, 44px);
  width: var(--pb-thumb, 44px);
  height: var(--pb-thumb, 44px);
  border-radius: 10px;
  overflow: hidden;
  background: #f4f7f6;
  border: 1px solid #d5dfda;
}

.pb-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
}

.pb-thumb--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 0;
  color: var(--pb-icon-fg, #1e5c50);
  background: var(--pb-icon-bg, #e8f3ef);
}

.pb-thumb__svg {
  width: 52%;
  height: 52%;
  display: block;
}

.pb-board__more summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e5c50;
  padding: 0.25rem 0;
}

.pb-board__more summary::-webkit-details-marker {
  display: none;
}

.pb-board__posts--rest {
  margin-top: 0.5rem;
}

.pb-board__hint {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
}

.pb-board__hint a {
  color: #4a5551 !important;
  text-decoration: none !important;
  border-bottom: 1px solid #b8c4bf;
  font-weight: 650;
}

.pb-feed {
  max-width: 1140px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1.5px solid #d5dfda;
  overflow: hidden;
  background: #fff;
}

.pb-feed__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #e6ece9;
  transition: background 0.15s ease;
}

.pb-feed__row:last-child {
  border-bottom: 0;
}

.pb-feed__row.has-thumb {
  grid-template-columns: 68px minmax(0, 1fr) auto;
}

.pb-feed__row:hover {
  background: #eef6f3;
}

.pb-feed__row .pb-thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 14px;
}

.pb-feed__body {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.pb-feed__cat {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 7px;
  background: #1e5c50;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.pb-feed__title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.pb-feed__title a {
  color: #121615 !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pb-feed__title a:hover {
  color: #1e5c50 !important;
}

.pb-feed__date {
  font-size: 0.86rem;
  font-weight: 650;
  color: #4a5551;
  white-space: nowrap;
}

.pb-empty {
  margin: 0;
  padding: 1.25rem;
  color: #4a5551;
}

@media (max-width: 960px) {
  .pb-hero,
  .pb-hero--with-spot {
    grid-template-columns: 1fr;
  }

  .pb-hero__intro {
    justify-items: center;
    text-align: center;
  }

  .pb-hero__lead {
    margin-inline: auto;
  }

  .pb-hero__nav {
    justify-content: center;
  }

  .pb-hero__search {
    width: 100%;
    max-width: 36rem;
  }

  .pb-spotlight {
    max-width: 480px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .pb-hero {
    padding: 1.8rem 1rem 1.7rem;
    gap: 1.25rem;
  }

  .pb-hero__brand {
    font-size: 1.85rem;
  }

  .pb-hero__mark {
    width: 44px;
    height: 44px;
  }

  .pb-hero__title {
    font-size: 1.5rem;
  }

  .pb-spotlight {
    padding: 1.05rem;
  }

  .pb-spotlight__item {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .pb-spotlight__media {
    width: 80px;
    height: 80px;
  }

  .pb-boards,
  .pb-latest {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pb-board-grid {
    grid-template-columns: 1fr;
  }

  .pb-feed__row,
  .pb-feed__row.has-thumb {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 0.95rem 1rem;
  }

  .pb-feed__row .pb-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
  }

  .pb-feed__date {
    grid-column: 2;
  }
}
