/* 제품 고르는 법 — 아카이브 허브 + 본문 가독성
   Visual: editorial teal library (픽가이드 브랜드 정렬)
*/

/* —— Archive hub —— */
body.category-buying-guides.pickboard {
  --pb-guide-teal: #0f6b5c;
  --pb-guide-ink: #121615;
  --pb-guide-muted: #4a5c57;
  --pb-guide-line: rgba(18, 24, 22, 0.08);
  --pb-guide-soft: #f3f8f6;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(15, 107, 92, 0.08), transparent 55%),
    var(--pb-paper, #f4f7f6);
}

body.category-buying-guides .site-content,
body.category-buying-guides #content,
body.category-buying-guides .site-main {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide default GP archive chrome when custom hub is present */
body.category-buying-guides:has(.pb-guides-hub) .page-header,
body.category-buying-guides:has(.pb-guides-hub) .site-main > article,
body.category-buying-guides:has(.pb-guides-hub) .paging-navigation,
body.category-buying-guides:has(.pb-guides-hub) .pagination {
  display: none !important;
}

.pb-guides-hub {
  width: 100%;
  max-width: 100vw;
  overflow: clip;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.pb-guides-hub *,
.pb-guides-hub *::before,
.pb-guides-hub *::after {
  box-sizing: border-box;
}

.pb-guides-hub__hero {
  position: relative;
  margin: 0;
  padding: clamp(2.2rem, 5.5vw, 3.6rem) max(1.15rem, calc((100% - 1080px) / 2 + 1.15rem));
  color: #fff;
  background:
    radial-gradient(ellipse 65% 90% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 52%),
    radial-gradient(ellipse 45% 55% at 0% 100%, rgba(212, 180, 131, 0.16), transparent 55%),
    linear-gradient(148deg, #1a5c50 0%, #154a40 52%, #123f37 100%);
  overflow: hidden;
}

.pb-guides-hub__hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -40% auto;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  border-radius: 40% 60% 55% 45%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.pb-guides-hub__hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  justify-items: start;
}

.pb-guides-hub__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: #fff;
}

.pb-guides-hub__title {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
  color: #fff;
}

.pb-guides-hub__lead {
  margin: 0;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  word-break: keep-all;
}

.pb-guides-hub__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.pb-guides-hub__meta li {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.pb-guides-hub__body {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.15rem, 4vw, 1.5rem) 0;
}

.pb-guides-hub__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 1.15rem;
}

.pb-guides-hub__toolbar h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pb-guide-ink);
}

.pb-guides-hub__toolbar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pb-guide-muted);
}

.pb-guides-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .pb-guides-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.05rem;
  }
}

@media (max-width: 640px) {
  .pb-guides-hub__grid {
    grid-template-columns: 1fr;
  }
}

.pb-guides-hub__card {
  --hub-i: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 11.25rem;
  height: 100%;
  padding: 1.2rem 1.2rem 1.05rem;
  background: #fff;
  border: 1px solid var(--pb-guide-line);
  border-radius: 18px;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 8px 22px rgba(18, 24, 22, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: pb-guides-hub-in 0.5s ease both;
  animation-delay: calc(var(--hub-i) * 40ms);
}

.pb-guides-hub__card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 107, 92, 0.3);
  box-shadow: 0 16px 34px rgba(18, 40, 34, 0.1);
}

.pb-guides-hub__card:focus-visible {
  outline: 2px solid var(--pb-guide-teal);
  outline-offset: 3px;
}

@keyframes pb-guides-hub-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-guides-hub__card {
    animation: none;
  }

  .pb-guides-hub__card:hover {
    transform: none;
  }
}

.pb-guides-hub__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pb-guides-hub__topic {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 107, 92, 0.1);
  color: var(--pb-guide-teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-guides-hub__idx {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(15, 107, 92, 0.45);
  letter-spacing: 0.02em;
}

.pb-guides-hub__card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--pb-guide-ink);
  word-break: keep-all;
}

.pb-guides-hub__mid {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: #2a4a43;
}

.pb-guides-hub__excerpt {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--pb-guide-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

.pb-guides-hub__cta {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--pb-guide-teal);
}

.pb-guides-hub__card:hover .pb-guides-hub__cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pb-guides-hub__empty {
  margin: 1rem 0;
  padding: 1.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed rgba(15, 107, 92, 0.25);
  color: var(--pb-guide-muted);
  text-align: center;
}

.pb-guides-hub__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.pb-guides-hub__pages a,
.pb-guides-hub__pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--pb-guide-line);
  color: var(--pb-guide-ink) !important;
  text-decoration: none !important;
  font-weight: 750;
  font-size: 0.9rem;
}

.pb-guides-hub__pages .current {
  background: var(--pb-guide-teal);
  border-color: var(--pb-guide-teal);
  color: #fff !important;
}

.pb-guides-hub__pages a:hover {
  border-color: rgba(15, 107, 92, 0.35);
  color: var(--pb-guide-teal) !important;
}

/* Legacy thin archive (no hub markup) */
body.category-buying-guides:not(:has(.pb-guides-hub)) .page-header,
body.category-buying-guides:not(:has(.pb-guides-hub)) .inside-article {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

body.category-buying-guides:not(:has(.pb-guides-hub)) .page-header .entry-title {
  letter-spacing: -0.03em;
}

body.category-buying-guides:not(:has(.pb-guides-hub)) .page-header .entry-title::before {
  content: "정보 · ";
  color: #0f6b5c;
  font-weight: 700;
}

/* Single guide article */
.pb-guide {
  --pb-guide-ink: #16201d;
  --pb-guide-muted: #4f5f5a;
  --pb-guide-line: rgba(18, 24, 22, 0.08);
  --pb-guide-teal: #0f6b5c;
  --pb-guide-soft: #f3f8f6;
  max-width: 40.5rem;
  margin: 0.25rem auto 1.5rem;
  color: var(--pb-guide-ink);
  font-size: 1.05rem;
  line-height: 1.78;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.pb-guide__section {
  margin: 0 0 1rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: #fff;
  border: 1px solid var(--pb-guide-line);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(18, 24, 22, 0.03);
}

.pb-guide__section--lead {
  background: linear-gradient(180deg, rgba(15, 107, 92, 0.07), #fff 72%);
  border-color: rgba(15, 107, 92, 0.16);
}

.pb-guide__section--check {
  background: var(--pb-guide-soft);
  border-color: rgba(15, 107, 92, 0.12);
}

.pb-guide__section--mistake {
  background: #fffaf5;
  border-color: rgba(180, 110, 40, 0.18);
}

.pb-guide__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 107, 92, 0.1);
  color: var(--pb-guide-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.pb-guide h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.12rem, 2.4vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: #101816;
}

.pb-guide p {
  margin: 0 0 0.85rem;
  color: var(--pb-guide-ink);
}

.pb-guide p:last-child {
  margin-bottom: 0;
}

.pb-guide__lead {
  margin: 0 0 0.85rem;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #1a2a26;
}

.pb-guide strong {
  font-weight: 800;
  color: #0d3f36;
}

.pb-guide__points {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.pb-guide__points li {
  position: relative;
  margin: 0;
  padding: 0.55rem 0.75rem 0.55rem 1.55rem;
  background: #f7faf9;
  border-radius: 10px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--pb-guide-ink);
}

.pb-guide__points li::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.95rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--pb-guide-teal);
}

.pb-guide__section--lead .pb-guide__points li {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 107, 92, 0.1);
}

.pb-guide__tip {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid rgba(180, 130, 40, 0.22);
  color: #4a3a18;
  font-size: 0.94rem;
  line-height: 1.5;
}

.pb-guide__tip span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #e8b84a;
  color: #2c2208;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.pb-guide__checks {
  margin: 0.15rem 0 0.85rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.pb-guide__checks li {
  position: relative;
  margin: 0;
  padding: 0.7rem 0.85rem 0.7rem 2.55rem;
  background: #fff;
  border: 1px solid var(--pb-guide-line);
  border-radius: 12px;
  color: var(--pb-guide-ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.pb-guide__checks li::before {
  content: attr(data-n);
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: var(--pb-guide-teal);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45rem;
  text-align: center;
}

.pb-guide__after {
  margin: 0;
  color: var(--pb-guide-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.pb-guide__related {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.35rem 0 0.9rem;
  padding: 1.2rem 1.25rem;
  border-radius: 16px;
  background: #12201c;
  color: #eef6f3;
}

.pb-guide__related p {
  margin: 0;
  color: inherit;
}

.pb-guide__related strong {
  color: #fff;
  font-size: 1.02rem;
}

.pb-guide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.6rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #1db39a;
  color: #06221c !important;
  text-decoration: none !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.pb-guide__btn:hover {
  filter: brightness(1.05);
}

.pb-guide__note {
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #667873;
}

@media (max-width: 640px) {
  .pb-guide {
    font-size: 1.02rem;
    line-height: 1.74;
  }

  .pb-guide__section {
    padding: 1rem 0.95rem 1.05rem;
    border-radius: 14px;
  }

  .pb-guide__checks li {
    padding-left: 2.4rem;
  }

  .pb-guides-hub__card {
    min-height: 0;
  }
}
