/* 검색 결과와 분류 다음 페이지의 탐색 우선 화면 보정이다. */
.dph-hero--compact {
  display:block;
  min-height:0;
  background:var(--dp-wash);
  color:var(--dp-navy);
  border-block:1px solid var(--dp-line);
}

.dph-hero--compact .dph-hero__inner {
  width:min(1180px,calc(100% - 40px));
  margin:auto;
  padding:28px 0;
}

.dph-hero--compact .dph-hero__breadcrumb,
.dph-hero--compact .dph-hero__eyebrow {
  color:var(--dp-muted);
}

.dph-hero--compact h1 { color:var(--dp-navy); font-size:clamp(30px,3.4vw,42px); }
.dph-hero--compact .dph-hero__summary { display:none; }
.dph-hero--compact .dph-hero__actions { display:flex; margin:16px 0 0; }
.dph-hero--compact .dph-hero__actions a { border-color:var(--dp-navy); color:var(--dp-navy); }
.dph-hero--compact .dph-hero__actions a:first-child { background:var(--dp-navy); color:#fff; }
.dph-hero--compact .dph-topic-nav { margin-top:18px; }
.dph-hero--compact .dph-topic-nav a { border-color:var(--dp-line); color:var(--dp-navy); }

.dph-search-head {
  max-width:960px;
  margin:0 auto 38px;
  padding:34px 0 30px;
  border-bottom:1px solid var(--dp-line);
}

.dph-search-head h1 {
  margin:0;
  color:var(--dp-navy);
  font-family:var(--dp-display);
  font-size:clamp(28px,3.2vw,42px);
  line-height:1.3;
  letter-spacing:-.045em;
}

.dph-search-head>p { margin:12px 0 0; color:var(--dp-muted); font-weight:400; }
.dph-search-head strong { color:var(--dp-navy); }

.dph-search-head__form {
  display:flex;
  width:min(620px,100%);
  margin-top:23px;
  border:1px solid var(--dp-navy);
}

.dph-search-head__form input {
  min-width:0;
  flex:1;
  padding:13px 14px;
  border:0;
  color:var(--dp-navy);
  font:inherit;
}

.dph-search-head__form button {
  padding:0 23px;
  border:0;
  background:var(--dp-navy);
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.dpm-content-search.is-layout-constrained > .wp-block-query,
.dpm-content-search.is-layout-constrained > .dpm-content-breadcrumb {
  max-width:960px;
}

.dpm-content-search .dpm-content-cards {
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:960px;
  margin-inline:auto;
}

.dpm-content-search .dpm-content-card {
  display:grid;
  grid-template-columns:132px minmax(0,1fr);
  grid-template-areas:"image category" "image title" "image excerpt" "image date";
  gap:5px 20px;
  align-content:start;
}

.dpm-content-search .dpm-content-card .wp-block-post-featured-image {
  grid-area:image;
  margin:0;
}

.dpm-content-search .dpm-content-card .wp-block-post-featured-image img { aspect-ratio:1; object-fit:cover; }
.dpm-content-search .dpm-content-card .wp-block-post-terms { grid-area:category; margin:0; }
.dpm-content-search .dpm-content-card .wp-block-post-title { grid-area:title; margin:0; font-size:21px; line-height:1.4; }
.dpm-content-search .dpm-content-card .wp-block-post-excerpt { grid-area:excerpt; margin:0; font-size:16px; font-weight:400; }
.dpm-content-search .dpm-content-card .wp-block-post-date { grid-area:date; margin:0; }
.dpm-content-search .dpm-content-pagination { max-width:960px; margin-inline:auto; }

.dp-footer__cols h2 {
  margin:0 0 5px;
  color:var(--dp-navy);
  font-family:var(--dp-body);
  font-size:15px;
  font-weight:800;
}

.dp-footer p,
.dp-footer__cols a {
  font-size:.9375rem;
  font-weight:400;
  overflow-wrap:anywhere;
}

.dp-footer__cols a {
  padding-block:.2rem;
  line-height:1.55;
}

@media (max-width:680px) {
  .dph-hero--compact .dph-hero__inner { width:calc(100% - 32px); }
  .dph-search-head { margin-bottom:28px; padding-top:25px; }
  .dpm-content-search .dpm-content-cards { grid-template-columns:1fr; }
  .dpm-content-search .dpm-content-card { grid-template-columns:92px minmax(0,1fr); gap:4px 14px; }
  .dpm-content-search .dpm-content-card .wp-block-post-title { font-size:19px; }
  .dpm-content-search .dpm-content-card .wp-block-post-excerpt { font-size:15px; }
  .dph-search-head__form button { padding-inline:18px; }
}

/* 분류 첫 화면은 검색과 실제 글을 먼저 보여 준다. */
.dph-category .dph-hero {
  min-block-size:clamp(18rem,25vw,21.25rem);
}

.dph-hero__picture { display:contents; }

.dph-category .dph-hero__inner {
  padding-block:18px;
}

.dph-category .dph-hero__picture > .dph-hero__image {
  block-size:100%;
  max-block-size:21.25rem;
  object-fit:cover;
}

.dph-category .dph-hero:where(:not(.dph-hero--compact)) h1 {
  font-family:var(--dp-body);
  font-size:clamp(2.125rem,3.7vw,3rem);
}

.dph-category .dph-hero__breadcrumb {
  margin-bottom:10px;
}

.dph-category .dph-hero__summary {
  margin-block:12px 14px;
}

.dph-category .dph-hero__actions {
  margin-block:10px;
}

.dph-category .dph-hero__search {
  margin-block:10px 0;
}

.dph-category .dph-content {
  padding-top:32px;
}

.dph-category .dph-content > section + section {
  margin-top:32px;
}

.dph-category .dph-content h2,
.dph-category .dph-list > h2,
.dph-category .dph-steps h2 {
  margin-bottom:14px;
  font-family:var(--dp-body);
  font-size:clamp(1.25rem,1.05rem + .45vw,1.5rem);
  font-weight:800;
  letter-spacing:-.03em;
}

.dph-category .dph-topic-picker .dph-topic-nav {
  margin:0;
}

.dph-category .dph-topic-picker .dph-topic-nav a {
  border-color:#c7d5ea;
  color:#174c9e;
  background:#f3f6fc;
  font-size:.875rem;
}

.dph-category .dph-topic-picker .dph-topic-nav a[aria-current=page] {
  border-color:#174c9e;
  color:#fff;
  background:#174c9e;
}

.dph-category .dph-searches > div {
  gap:8px;
}

.dph-category .dph-searches a {
  border-color:#c7d5ea;
  border-radius:1rem;
  background:#f3f6fc;
  color:#174c9e;
  font-size:.9375rem;
  font-weight:700;
}

.dph-category .dph-reading__cards {
  grid-template-columns:minmax(0,1.35fr) minmax(17rem,.85fr);
  gap:24px;
  padding-top:0;
}

.dph-category .dph-reading__cards .dp-magazine-card--lead {
  grid-row:span 2;
}

.dph-category .dph-reading__cards .dp-magazine-card--lead > a {
  display:block;
}

.dph-category .dph-reading__cards .dp-magazine-card--lead .dp-magazine-card__image {
  aspect-ratio:16 / 9;
  object-fit:contain;
}

.dph-category .dph-reading__cards .dp-magazine-card--lead .dp-magazine-card__body {
  padding-top:14px;
}

.dph-category .dph-reading__cards .dp-magazine-card--lead h3 {
  font-family:var(--dp-body);
  font-size:clamp(1.25rem,1.1rem + .35vw,1.5rem);
  font-weight:800;
}

.dph-category .dph-reading__cards .dp-magazine-card--lead .dp-magazine-card__body > p:last-child {
  display:block;
}

.dph-category .dph-reading__cards .dp-magazine-card--compact > a {
  grid-template-columns:104px minmax(0,1fr);
}

.dph-category .dph-list {
  padding-top:40px;
}

.dph-category .dph-list .dpm-content-cards {
  gap:28px 24px;
}

.dph-category .dph-list .dpm-content-card h2 {
  font-family:var(--dp-body);
  font-size:clamp(1.125rem,1.02rem + .3vw,1.375rem);
  font-weight:800;
}

.dph-category .dph-list .dpm-content-card .wp-block-post-date,
.dph-category .dph-list .dpm-content-card .wp-block-post-excerpt {
  font-size:.9375rem;
}

.dph-category .dph-list__head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
}

.dph-category .dph-list__head h2 {
  margin-bottom:6px;
}

.dph-category .dph-list__head p {
  margin:0;
  color:var(--dp-muted);
  font-size:.9375rem;
}

.dph-category .dph-list__head strong {
  color:var(--dp-navy);
}

.dph-category .dph-list__search {
  display:flex;
  align-items:stretch;
  width:min(100%,24rem);
  border:1px solid #a9bfdf;
  background:#fff;
}

.dph-category .dph-list__search label {
  position:absolute;
  inline-size:1px;
  block-size:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}

.dph-category .dph-list__search input {
  min-inline-size:0;
  flex:1;
  border:0;
  padding:.72rem .82rem;
  color:var(--dp-navy);
  font:inherit;
}

.dph-category .dph-list__search button {
  border:0;
  padding-inline:1rem;
  background:#174c9e;
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.dph-category .dph-list__cards {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px 24px;
}

.dph-category .dph-list__cards .dp-magazine-card {
  padding-bottom:20px;
  border-bottom:1px solid var(--dp-line);
}

.dph-category .dph-list__cards .dp-magazine-card h3 {
  font-family:var(--dp-body);
  font-size:clamp(1.125rem,1.02rem + .3vw,1.375rem);
  font-weight:800;
}

.dph-pagination {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  margin-top:34px;
  padding-top:20px;
  border-top:1px solid var(--dp-line);
}

.dph-pagination a,
.dph-pagination__current {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-inline-size:2.5rem;
  min-block-size:2.5rem;
  padding-inline:.45rem;
  border:1px solid #c7d5ea;
  color:#174c9e;
  font-weight:700;
  text-decoration:none;
}

.dph-pagination a:hover {
  border-color:#174c9e;
  background:#edf4ff;
}

.dph-pagination a:focus-visible { outline:2px solid #174c9e; outline-offset:2px; }

.dph-pagination__current {
  border-color:#174c9e;
  background:#174c9e;
  color:#fff;
}

.dph-pagination .dph-pagination__previous,
.dph-pagination .dph-pagination__next {
  min-inline-size:auto;
  gap:.35rem;
}

.dph-pagination__previous::before { content:"‹"; }
.dph-pagination__next::after { content:"›"; }

.dph-category .dph-steps {
  box-sizing:border-box;
  margin-top:48px;
  margin-bottom:8px;
  background:#f1f5fb;
  border:1px solid #d5e1f0;
}

.dph-steps ol { gap:16px; }
.dph-steps .dph-step { min-inline-size:0; background:#fff; border:1px solid #d5e1f0; }
.dph-steps .dph-step::before { content:none; }
.dph-step__image { display:block; inline-size:100%; block-size:auto; aspect-ratio:16/9; object-fit:cover; }
.dph-step__body { padding:16px; }
.dph-step .dph-step__number { margin:0 0 4px; color:#174c9e; font-size:.875rem; font-weight:800; }
.dph-step strong { color:var(--dp-navy); font-size:1.0625rem; line-height:1.4; }
.dph-step .dph-step__copy { color:#425675; font-size:.9375rem; line-height:1.55; }

@media (max-width:900px) {
  .dph-category .dph-reading__cards {
    grid-template-columns:1fr;
  }

  .dph-category .dph-reading__cards .dp-magazine-card--lead {
    grid-row:auto;
  }

  .dph-category .dph-list__cards {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:680px) {
  .dph-category .dph-hero {
    min-block-size:0;
  }

  .dph-category .dph-hero__image {
    display:none;
  }

  .dph-category .dph-hero__inner {
    padding-block:16px 14px;
  }

  .dph-category .dph-hero:not(.dph-hero--compact) .dph-hero__eyebrow { display:none; }

  .dph-category .dph-hero h1 {
    font-size:2rem;
  }

  .dph-category .dph-hero__summary {
    font-size:1rem;
  }

  .dph-category .dph-hero__actions {
    display:none;
  }

  .dph-category .dph-content {
    padding-top:20px;
  }

  .dph-category .dph-content > section + section { margin-top:16px; }

  .dph-category .dph-reading__cards .dp-magazine-card--lead > a,
  .dph-category .dph-reading__cards .dp-magazine-card--compact > a {
    grid-template-columns:100px minmax(0,1fr);
    display:grid;
    gap:14px;
  }

  .dph-category .dph-reading__cards .dp-magazine-card--lead .dp-magazine-card__image,
  .dph-category .dph-reading__cards .dp-magazine-card--compact .dp-magazine-card__image {
    aspect-ratio:1;
  }

  .dph-category .dph-reading__cards .dp-magazine-card--lead .dp-magazine-card__body {
    padding-top:0;
  }

  .dph-category .dph-reading__cards .dp-magazine-card--lead h3,
  .dph-category .dph-reading__cards .dp-magazine-card--compact h3 {
    font-size:1.125rem;
  }

  .dph-category .dph-reading__cards .dp-magazine-card__body > p:last-child {
    display:none;
  }

  .dph-category .dph-list {
    padding-top:32px;
  }

  .dph-category .dph-list__head {
    display:block;
  }

  .dph-category .dph-list__search {
    width:100%;
    margin-top:16px;
  }

  .dph-category .dph-list__cards {
    grid-template-columns:1fr;
    gap:20px;
  }

  .dph-category .dph-list__cards .dp-magazine-card > a {
    display:grid;
    grid-template-columns:100px minmax(0,1fr);
    gap:14px;
  }

  .dph-category .dph-list__cards .dp-magazine-card__image {
    aspect-ratio:1;
  }

  .dph-category .dph-list__cards .dp-magazine-card__body {
    padding-top:0;
  }

  .dph-category .dph-list__cards .dp-magazine-card__body > p:last-child {
    display:none;
  }

  .dph-pagination {
    gap:.25rem;
  }

  .dph-pagination a,
  .dph-pagination__current {
    box-sizing:border-box;
    min-inline-size:2rem;
    min-block-size:2.75rem;
    padding-inline:.25rem;
  }
  .dph-pagination .dph-pagination__previous, .dph-pagination .dph-pagination__next { padding-inline:.65rem; }

  .dph-pagination > :not(.dph-pagination__previous):not(.dph-pagination__next) {
    flex:0 0 calc((100% - 2.25rem) / 10);
    min-inline-size:0;
  }

  .dph-steps .dph-step { display:grid; grid-template-columns:5.75rem minmax(0,1fr); align-items:stretch; }
  .dph-step__image { block-size:100%; aspect-ratio:auto; }
  .dph-step__body { padding:12px; }
}

@media (max-width:360px) {
  .dph-pagination a,
  .dph-pagination__current {
    padding-inline:.125rem;
  }
}
