/* C안: 공개 홈 전용 매거진 레이아웃. 관리자·문의 화면에는 영향을 주지 않는다. */
body.editorial-home {
  --editorial-ink: #262a22;
  --editorial-muted: #76796e;
  --editorial-line: #dcded4;
  --editorial-olive: #526046;
  background: #f5f3ec;
  color: var(--editorial-ink);
}
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

body.editorial-home .public-header {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(340px, 1fr) minmax(180px, 240px) auto;
  align-items: center;
  gap: clamp(10px, 1.5vw, 24px);
  min-height: 76px;
  padding: 0 clamp(16px, 2vw, 38px);
  color: var(--editorial-ink);
  background: #fbfaf5;
  border-bottom: 1px solid var(--editorial-line);
  box-shadow: none;
}
body.editorial-home .public-header .brand { grid-column: 1; white-space: nowrap; }
body.editorial-home .public-header .brand-logo { width: 34px; height: 34px; flex-basis: 34px; border-radius: 7px; }
body.editorial-home .public-header .brand-name { color: var(--editorial-ink); font-size: 23px; font-weight: 780; letter-spacing: -.06em; }
body.editorial-home .public-header .brand-name::after { display: none; }
body.editorial-home .public-header .visitor-count {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  margin: 0;
  padding: 0;
  color: #8b8c80;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  transform: none;
}
body.editorial-home .public-header .visitor-count strong { color: #676f5c; }
body.editorial-home .public-header .visitor-dot { width: 5px; height: 5px; background: #7b8a6a; box-shadow: none; }

body.editorial-home .category-picker {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
body.editorial-home .category-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(2px, .7vw, 12px);
  width: 100%;
  margin: 0;
}
body.editorial-home .category-nav button {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 75px;
  padding: 0 clamp(7px, .85vw, 15px);
  color: #53574e;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}
body.editorial-home .category-nav button:hover { color: #313e2e; background: transparent; }
body.editorial-home .category-nav button.is-active { color: #33412d; font-weight: 760; background: transparent; }
body.editorial-home .category-nav button.is-active::after { right: 8px; left: 8px; height: 2px; background: #68785d; }
body.editorial-home .category-nav-empty { color: var(--editorial-muted); font-size: 12px; }

body.editorial-home .editorial-search {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 38px;
  background: #f4f3ee;
  border: 1px solid #dcded5;
  border-radius: 999px;
}
body.editorial-home .editorial-search:focus-within { border-color: #788a69; box-shadow: 0 0 0 3px rgba(82, 96, 70, .12); }
body.editorial-home .editorial-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 15px;
  color: var(--editorial-ink);
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  font-size: 12px;
}
body.editorial-home .editorial-search input::placeholder { color: #999a91; }
body.editorial-home .editorial-search button { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 36px; padding: 0; color: #53604d; background: transparent; border: 0; cursor: pointer; }
body.editorial-home .editorial-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
body.editorial-home .public-header .site-nav { position: static; grid-column: 5; grid-row: 1; display: flex; width: auto; padding: 0; background: transparent; border: 0; box-shadow: none; }
body.editorial-home .public-header .inquiry-nav-link { min-height: 37px; padding: 0 10px; color: #495448; background: transparent; border: 1px solid #c9d0c1; border-radius: 999px; font-size: 12px; font-weight: 620; white-space: nowrap; }
body.editorial-home .public-header .inquiry-nav-link::after { display: none; }
body.editorial-home .public-header .inquiry-nav-link:hover { color: #273a29; background: #ecefe7; border-color: #819177; }

body.editorial-home .portal-layout {
  display: grid;
  grid-template-columns: clamp(125px, 15vw, 238px) minmax(0, 1fr) clamp(125px, 15vw, 238px);
  align-items: start;
  gap: clamp(8px, 1.2vw, 20px);
  max-width: 1800px;
  margin: 0 auto;
  padding: 18px clamp(8px, 1.3vw, 24px) 50px;
}
body.editorial-home .portal-layout .public-main {
  min-width: 0;
  width: 100%;
  padding: 0;
}
body.editorial-home .rank-board-shell { width: 100%; overflow: visible; }
body.editorial-home .rank-board-shell::before,
body.editorial-home .rank-board-shell::after { display: none; }
body.editorial-home .portal-layout .side-banner-rail {
  position: sticky;
  top: 16px;
  display: flex;
  width: 100%;
  max-height: calc(100vh - 32px);
  flex-direction: column;
  gap: 2px;
  margin: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
body.editorial-home .portal-layout .side-banner-rail::-webkit-scrollbar { display: none; }
body.editorial-home .portal-layout .side-banner-item { display: block; flex: 0 0 auto; width: 100%; overflow: hidden; background: #fafaf6; border: 1px solid #dfe2d8; border-radius: 2px; box-shadow: none; opacity: 1; }
body.editorial-home .portal-layout .side-banner-item img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; background: transparent; }
body.editorial-home .portal-layout .side-banner-item.is-placeholder { background: #f8f9f4; }
body.editorial-home .portal-layout .side-banner-item.is-placeholder img { filter: saturate(.28); opacity: .74; }
body.editorial-home .portal-layout a.side-banner-item:hover { border-color: #9fae91; box-shadow: none; }
body.editorial-home .portal-layout .side-banner-text { display: grid; place-items: center; min-height: clamp(190px, 35vw, 515px); padding: 12px; color: #4b5748; background: #f8f9f4; text-align: center; text-decoration: none; }
body.editorial-home .portal-layout .side-banner-text span { font-size: clamp(12px, 1.5vw, 24px); font-weight: 700; line-height: 1.3; word-break: keep-all; }

body.editorial-home .editorial-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
  min-height: 285px;
  padding: clamp(26px, 3.2vw, 52px) clamp(20px, 2.4vw, 44px) 32px;
  background: #fbfaf5;
  border: 1px solid var(--editorial-line);
  border-bottom: 0;
}
body.editorial-home .editorial-kicker { margin: 0 0 15px; color: #75816d; font-size: 11px; font-weight: 620; letter-spacing: .16em; text-transform: uppercase; }
body.editorial-home .editorial-intro h1 {
  max-width: 740px;
  margin: 0 0 20px;
  color: #242821;
  font-family: Georgia, "Noto Serif KR", "AppleMyungjo", serif;
  font-size: clamp(30px, 3.4vw, 56px);
  font-weight: 650;
  line-height: 1.23;
  letter-spacing: -.07em;
  overflow-wrap: anywhere;
}
body.editorial-home .editorial-intro-copy { max-width: 610px; margin: 0; color: #73766d; font-size: clamp(13px, 1.1vw, 16px); line-height: 1.7; white-space: pre-line; }
body.editorial-home .editorial-intro-aside { min-width: 118px; margin: 0 0 4px; color: #909188; font-size: 11px; line-height: 1.7; text-align: right; }
body.editorial-home .editorial-intro-aside strong { color: #56634c; font-size: 13px; font-weight: 650; }

body.editorial-home .editorial-feature-section { padding: 0 clamp(16px, 2vw, 34px) 28px; background: #fbfaf5; border-inline: 1px solid var(--editorial-line); }
body.editorial-home .editorial-feature {
  position: relative;
  display: block;
  height: clamp(245px, 24vw, 360px);
  overflow: hidden;
  color: #fff;
  background: #25291d;
  border-radius: 2px;
}
body.editorial-home .editorial-feature-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.editorial-home .editorial-feature-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 22, 14, .84) 0%, rgba(18, 22, 14, .65) 48%, rgba(18, 22, 14, .12) 100%); }
body.editorial-home .editorial-feature-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; width: min(76%, 650px); height: 100%; padding: clamp(20px, 2.5vw, 40px); }
body.editorial-home .editorial-feature-label { padding: 7px 12px; color: #e8e8dd; background: rgba(244, 243, 232, .16); border: 1px solid rgba(255, 255, 255, .38); border-radius: 999px; font-size: 11px; letter-spacing: .03em; }
body.editorial-home .editorial-feature-main { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: clamp(10px, 1.4vw, 22px); width: 100%; }
body.editorial-home .editorial-feature-number { padding-right: clamp(10px, 1.6vw, 24px); border-right: 1px solid rgba(255, 255, 255, .35); font-family: Georgia, serif; font-size: clamp(30px, 3vw, 56px); line-height: 1; }
body.editorial-home .editorial-feature-icon { display: grid; place-items: center; flex: 0 0 auto; width: clamp(42px, 5vw, 78px); height: clamp(42px, 5vw, 78px); overflow: hidden; background: #fff; border-radius: 12px; }
body.editorial-home .editorial-feature-icon { position: relative; color: #4a5542; font-family: Georgia, serif; font-size: 30px; }
body.editorial-home .editorial-feature-icon img { position: absolute; inset: 12.5%; width: 75%; height: 75%; object-fit: contain; background: #fff; }
body.editorial-home .editorial-feature-copy { min-width: 0; }
body.editorial-home .editorial-feature-copy strong { display: block; overflow: hidden; font-family: Georgia, "Noto Serif KR", "AppleMyungjo", serif; font-size: clamp(20px, 2.3vw, 34px); font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
body.editorial-home .editorial-feature-copy small { display: -webkit-box; overflow: hidden; margin-top: 6px; color: rgba(255, 255, 255, .83); font-size: clamp(11px, 1vw, 14px); line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body.editorial-home .editorial-feature-link { padding: 8px 15px; color: #fff; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; font-size: 12px; font-weight: 600; }
body.editorial-home a.editorial-feature:hover .editorial-feature-link { background: rgba(255, 255, 255, .18); }
body.editorial-home a.editorial-feature:focus-visible { outline: 3px solid #a5b399; outline-offset: 3px; }

body.editorial-home .editorial-rank-section { padding: 0 clamp(16px, 2vw, 34px) 30px; background: #fbfaf5; border: 1px solid var(--editorial-line); border-top: 0; }
body.editorial-home .editorial-rank-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 18px 0 12px; border-top: 1px solid #e1e1d6; }
body.editorial-home .editorial-rank-heading h2 { margin: 0; font-family: Georgia, "Noto Serif KR", "AppleMyungjo", serif; font-size: clamp(17px, 1.65vw, 23px); font-weight: 600; letter-spacing: -.05em; }
body.editorial-home .editorial-rank-heading span { color: #8b8f83; font-size: 12px; white-space: nowrap; }
body.editorial-home .editorial-rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
body.editorial-home .editorial-rank-row { display: grid; grid-template-columns: 28px 38px minmax(0, 1fr) 20px; gap: 11px; align-items: center; min-width: 0; min-height: 76px; padding: 10px 2px; border-bottom: 1px solid #e3e3d9; }
body.editorial-home a.editorial-rank-row:hover { background: #f4f4ed; }
body.editorial-home .editorial-rank-number { color: #454c3e; font-family: Georgia, serif; font-size: 21px; font-variant-numeric: tabular-nums; text-align: center; }
body.editorial-home .editorial-site-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 3px; color: #52604d; background: #fff; border: 1px solid #e3e5dc; border-radius: 8px; font-size: 15px; font-weight: 750; }
body.editorial-home .editorial-site-icon img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; background: #fff; }
body.editorial-home .editorial-site-copy { min-width: 0; }
body.editorial-home .editorial-site-copy strong { display: block; overflow: hidden; color: #292f27; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
body.editorial-home .editorial-site-copy small { display: block; overflow: hidden; margin-top: 4px; color: #82877c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
body.editorial-home .editorial-row-arrow { color: #889281; font-size: 16px; text-align: right; }
body.editorial-home .editorial-rank-row-empty { opacity: .62; }
body.editorial-home .editorial-no-results { margin: 0; padding: 24px 0; color: #7d8277; font-size: 13px; }
body.editorial-home .editorial-search-results { min-height: 65vh; padding: clamp(22px, 3vw, 46px); background: #fbfaf5; border: 1px solid var(--editorial-line); }
body.editorial-home .editorial-search-heading { padding-bottom: 24px; border-bottom: 1px solid var(--editorial-line); }
body.editorial-home .editorial-search-heading h1 { margin: 0 0 9px; font-family: Georgia, "Noto Serif KR", "AppleMyungjo", serif; font-size: clamp(25px, 3vw, 40px); letter-spacing: -.05em; }
body.editorial-home .editorial-search-heading > p:last-child { margin: 0; color: var(--editorial-muted); font-size: 13px; }
body.editorial-home .editorial-results-list { display: grid; }
body.editorial-home .editorial-result { padding-top: 12px; }
body.editorial-home .editorial-result-category { color: #7d8974; font-size: 11px; }
body.editorial-home .editorial-result .editorial-rank-row { min-height: 65px; }
body.editorial-home .empty-state { min-height: 50vh; padding: 40px; background: #fbfaf5; border: 1px solid var(--editorial-line); }
body.editorial-home .empty-state .eyebrow { color: var(--editorial-olive); }

@media (max-width: 1390px) {
  body.editorial-home .public-header { grid-template-columns: auto minmax(0, 1fr) minmax(160px, 220px) auto; gap: 12px; }
  body.editorial-home .public-header .visitor-count { position: absolute; left: clamp(16px, 2vw, 38px); bottom: 6px; font-size: 10px; }
  body.editorial-home .category-picker { grid-column: 2; }
  body.editorial-home .editorial-search { grid-column: 3; }
  body.editorial-home .public-header .site-nav { grid-column: 4; }
  body.editorial-home .editorial-intro { min-height: 245px; }
  body.editorial-home .editorial-intro-aside { display: none; }
}
@media (max-width: 900px) {
  body.editorial-home .portal-layout .side-banner-text { min-height: 310px; padding: 8px; }
  body.editorial-home .public-header { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: 55px 42px; gap: 0 10px; padding: 0 12px 8px; }
  body.editorial-home .public-header .brand { grid-column: 1; grid-row: 1; }
  body.editorial-home .public-header .brand-logo { width: 30px; height: 30px; flex-basis: 30px; }
  body.editorial-home .public-header .brand-name { font-size: 20px; }
  body.editorial-home .public-header .visitor-count { position: static; display: inline-flex; grid-column: 2; grid-row: 1; font-size: 10px; }
  body.editorial-home .public-header .site-nav { grid-column: 3; grid-row: 1; }
  body.editorial-home .public-header .inquiry-nav-link { min-height: 31px; padding: 0 7px; font-size: 11px; }
  body.editorial-home .category-picker { grid-column: 1 / 3; grid-row: 2; overflow-x: auto; scrollbar-width: none; }
  body.editorial-home .category-picker::-webkit-scrollbar { display: none; }
  body.editorial-home .category-nav { justify-content: flex-start; width: max-content; min-width: 100%; }
  body.editorial-home .category-nav button { min-height: 42px; padding: 0 11px; font-size: 12px; }
  body.editorial-home .editorial-search { grid-column: 3; grid-row: 2; width: 36px; height: 34px; justify-self: end; overflow: hidden; }
  body.editorial-home .editorial-search:focus-within,
  body.editorial-home .editorial-search.is-open { grid-column: 1 / -1; width: 100%; z-index: 1; }
  body.editorial-home .editorial-search input { padding: 0; width: 0; opacity: 0; }
  body.editorial-home .editorial-search:focus-within input,
  body.editorial-home .editorial-search.is-open input { width: 100%; padding-left: 12px; opacity: 1; }
  body.editorial-home .editorial-search button { flex-basis: 34px; width: 34px; height: 32px; }
  body.editorial-home .editorial-intro { min-height: 208px; }
  body.editorial-home .editorial-rank-grid { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  body.editorial-home .portal-layout .side-banner-text { min-height: 190px; padding: 4px; }
  body.editorial-home .portal-layout .side-banner-text span { font-size: 10px; }
  body.editorial-home .portal-layout { grid-template-columns: clamp(46px, 16vw, 110px) minmax(0, 1fr) clamp(46px, 16vw, 110px); gap: 4px; padding: 10px 4px 30px; }
  body.editorial-home .portal-layout .side-banner-rail { top: 8px; max-height: calc(100vh - 16px); gap: 2px; }
  body.editorial-home .editorial-intro { min-height: 0; padding: 20px 12px 17px; }
  body.editorial-home .editorial-kicker { margin-bottom: 9px; font-size: 8px; letter-spacing: .11em; }
  body.editorial-home .editorial-intro h1 { margin-bottom: 12px; font-size: clamp(20px, 5.5vw, 29px); line-height: 1.3; letter-spacing: -.075em; }
  body.editorial-home .editorial-intro-copy { font-size: 10px; line-height: 1.5; }
  body.editorial-home .editorial-feature-section { padding: 0 6px 16px; }
  body.editorial-home .editorial-feature { height: 205px; }
  body.editorial-home .editorial-feature-content { width: 100%; padding: 14px 11px; }
  body.editorial-home .editorial-feature-label { padding: 4px 7px; font-size: 9px; }
  body.editorial-home .editorial-feature-main { grid-template-columns: 26px 31px minmax(0, 1fr); gap: 5px; }
  body.editorial-home .editorial-feature-number { padding-right: 5px; font-size: 23px; }
  body.editorial-home .editorial-feature-icon { width: 30px; height: 30px; border-radius: 5px; }
  body.editorial-home .editorial-feature-copy strong { font-size: 16px; }
  body.editorial-home .editorial-feature-copy small { margin-top: 2px; font-size: 9px; }
  body.editorial-home .editorial-feature-link { padding: 5px 8px; font-size: 9px; }
  body.editorial-home .editorial-rank-section { padding: 0 8px 16px; }
  body.editorial-home .editorial-rank-heading { padding: 12px 0 6px; }
  body.editorial-home .editorial-rank-heading h2 { font-size: 16px; }
  body.editorial-home .editorial-rank-heading span { font-size: 9px; }
  body.editorial-home .editorial-rank-row { grid-template-columns: 18px 24px minmax(0, 1fr); gap: 4px; min-height: 62px; padding: 6px 0; }
  body.editorial-home .editorial-rank-number { font-size: 15px; }
  body.editorial-home .editorial-site-icon { width: 23px; height: 23px; padding: 1px; border-radius: 4px; }
  body.editorial-home .editorial-site-copy strong { font-size: 11px; }
  body.editorial-home .editorial-site-copy small { margin-top: 2px; font-size: 9px; }
  body.editorial-home .editorial-row-arrow { display: none; }
  body.editorial-home .editorial-search-results { padding: 14px 10px; }
  body.editorial-home .editorial-search-heading h1 { font-size: 20px; }
  body.editorial-home .editorial-result-category { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  body.editorial-home .rank-board, body.editorial-home .rank-board * { animation: none !important; transition: none !important; }
}

/* 24개 이상 카테고리를 수용하는 독립 탐색 줄과 카드형 홈 */
body.editorial-home { background: #f4f2ec; }
body.editorial-home .public-header {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 360px) auto auto;
  gap: clamp(12px, 2vw, 30px);
  min-height: 78px;
  padding-inline: clamp(16px, 2.5vw, 44px);
  background: #fdfcf8;
}
body.editorial-home .public-header .brand { grid-column: 1; }
body.editorial-home .public-header .brand-name { font-size: 25px; }
body.editorial-home .public-header .visitor-count {
  position: static;
  display: inline-flex;
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  white-space: nowrap;
}
body.editorial-home .editorial-search { grid-column: 2; grid-row: 1; width: 100%; }
body.editorial-home .public-header .site-nav { grid-column: 3; grid-row: 1; }
body.editorial-home .public-header .inquiry-nav-link { border: 0; font-weight: 650; }

body.editorial-home .category-picker {
  position: relative;
  z-index: 5;
  display: block;
  overflow: visible;
  padding: 0;
  background: #fdfcf8;
  border-bottom: 1px solid #d9dbd1;
}
body.editorial-home .category-picker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1800px;
  min-height: 61px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 44px);
}
body.editorial-home .category-nav { justify-content: flex-start; flex: 1 1 auto; gap: clamp(8px, 2vw, 30px); width: auto; min-width: 0; }
body.editorial-home .category-nav button {
  min-height: 60px;
  padding: 0 5px;
  font-size: 14px;
  font-weight: 590;
}
body.editorial-home .category-nav button.is-active::after { right: 5px; left: 5px; }
body.editorial-home .category-all-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  color: #44503e;
  background: #f9f9f4;
  border: 1px solid #aeb9a5;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
body.editorial-home .category-all-toggle:hover,
body.editorial-home .category-all-toggle.has-current,
body.editorial-home .category-all-toggle[aria-expanded="true"] { background: #e9eee4; border-color: #718266; }
body.editorial-home .category-all-toggle[aria-expanded="true"] > span:last-child { transform: rotate(180deg); }
body.editorial-home .category-all-panel[hidden] { display: none; }
body.editorial-home .category-all-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 0 clamp(8px, 2vw, 30px);
}
body.editorial-home .category-all-panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 25px;
  background: #fdfcf8;
  border: 1px solid #d8dbd1;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 20px 32px rgba(38, 45, 32, .14);
}
body.editorial-home .category-all-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #293226; font-size: 14px; }
body.editorial-home .category-all-heading button { width: 30px; height: 30px; padding: 0; color: #5f6959; background: transparent; border: 0; font-size: 23px; cursor: pointer; }
body.editorial-home .category-all-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px 16px; max-height: min(58vh, 520px); overflow-y: auto; }
body.editorial-home .category-all-grid button { min-height: 40px; padding: 7px 12px; color: #4c5447; background: transparent; border: 0; border-radius: 5px; font-size: 13px; text-align: left; cursor: pointer; }
body.editorial-home .category-all-grid button:hover,
body.editorial-home .category-all-grid button.is-active { color: #273923; background: #e8eee3; font-weight: 700; }

body.editorial-home .portal-layout { padding-top: 20px; }
body.editorial-home .portal-layout .side-banner-item { border-radius: 5px; }
body.editorial-home .editorial-feature-section { padding: 18px clamp(14px, 2vw, 30px) 22px; border: 1px solid var(--editorial-line); border-bottom: 0; }
body.editorial-home .editorial-feature { height: clamp(295px, 30vw, 430px); border-radius: 5px; }
body.editorial-home .editorial-feature-shade { background: linear-gradient(0deg, rgba(10, 15, 9, .87) 0%, rgba(15, 20, 11, .22) 62%, rgba(15, 20, 11, .1) 100%); }
body.editorial-home .editorial-feature-content { width: 100%; padding: clamp(18px, 2.5vw, 38px); }
body.editorial-home .editorial-feature-label { color: #213220; background: #c8d9b8; border: 0; border-radius: 5px; font-size: 12px; font-weight: 700; }
body.editorial-home .editorial-feature-bottom { display: flex; align-items: end; justify-content: space-between; gap: 20px; width: 100%; }
body.editorial-home .editorial-feature-main { grid-template-columns: auto minmax(0, 1fr); max-width: 85%; }
body.editorial-home .editorial-feature-icon { width: 58px; height: 58px; border-radius: 12px; font-size: 24px; }
body.editorial-home .editorial-feature-copy strong { font-size: clamp(26px, 3.4vw, 47px); }
body.editorial-home .editorial-feature-copy small { max-width: 560px; font-size: 13px; }
body.editorial-home .editorial-feature-link { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border-radius: 50%; font-size: 20px; }
body.editorial-home .editorial-rank-section { padding: 0 clamp(14px, 2vw, 30px) 32px; }
body.editorial-home .editorial-rank-heading { padding: 24px 0 17px; }
body.editorial-home .editorial-rank-heading h2 { font-family: inherit; font-size: 21px; font-weight: 760; }
body.editorial-home .editorial-rank-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; }
body.editorial-home .editorial-rank-row { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 0 0 14px; overflow: hidden; background: #fff; border: 1px solid #e2e4dc; border-radius: 7px; }
body.editorial-home a.editorial-rank-row:hover { background: #fff; border-color: #9faf96; box-shadow: 0 6px 16px rgba(46, 54, 40, .09); transform: translateY(-2px); }
body.editorial-home .editorial-card-visual { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.8; overflow: hidden; background: linear-gradient(135deg, #dce8df, #aabbb4); }
body.editorial-home .editorial-card-visual::before { position: absolute; width: 120%; height: 90%; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; transform: rotate(-22deg) translate(13%, -18%); content: ""; }
body.editorial-home .editorial-card-visual.tone-1 { background: linear-gradient(135deg, #e6ded5, #b9a99b); }
body.editorial-home .editorial-card-visual.tone-2 { background: linear-gradient(135deg, #dce4ee, #8c9caa); }
body.editorial-home .editorial-card-visual.tone-3 { background: linear-gradient(135deg, #e5e4d8, #aaa994); }
body.editorial-home .editorial-card-visual.tone-4 { background: linear-gradient(135deg, #e0dedf, #afa6af); }
body.editorial-home .editorial-rank-number { position: absolute; top: 10px; left: 10px; z-index: 1; display: grid; place-items: center; width: 27px; height: 27px; color: #263223; background: #e1eacb; border-radius: 5px; font-family: inherit; font-size: 12px; font-weight: 750; }
body.editorial-home .editorial-site-icon { width: 60px; height: 60px; padding: 6px; border: 0; border-radius: 13px; box-shadow: 0 8px 20px rgba(34, 40, 32, .16); font-size: 24px; }
body.editorial-home .editorial-site-icon img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
body.editorial-home .editorial-site-copy { padding: 12px 12px 0; }
body.editorial-home .editorial-site-copy strong { font-size: 14px; }
body.editorial-home .editorial-site-copy small { display: -webkit-box; min-height: 32px; margin-top: 6px; font-size: 11px; line-height: 1.45; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body.editorial-home .editorial-row-arrow { display: none; }
body.editorial-home .editorial-search-results .editorial-rank-row { max-width: 280px; }
body.editorial-home .editorial-results-list { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
body.editorial-home .editorial-result { padding-top: 16px; }

@media (max-width: 900px) {
  body.editorial-home .public-header { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: 56px 43px; gap: 0 10px; padding: 0 12px 7px; }
  body.editorial-home .public-header .brand { grid-column: 1; grid-row: 1; }
  body.editorial-home .public-header .brand-name { font-size: 20px; }
  body.editorial-home .public-header .visitor-count { grid-column: 2; grid-row: 1; font-size: 10px; }
  body.editorial-home .public-header .site-nav { grid-column: 3; grid-row: 1; }
  body.editorial-home .editorial-search { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 35px; }
  body.editorial-home .editorial-search input { width: 100%; padding-left: 12px; opacity: 1; }
  body.editorial-home .category-picker-inner { min-height: 52px; padding-inline: 10px; gap: 7px; }
  body.editorial-home .category-nav { width: 100%; min-width: 0; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  body.editorial-home .category-nav::-webkit-scrollbar { display: none; }
  body.editorial-home .category-nav button { flex: 0 0 auto; min-height: 50px; padding: 0 8px; font-size: 12px; }
  body.editorial-home .category-all-toggle { min-height: 31px; padding: 0 7px; font-size: 10px; }
  body.editorial-home .category-all-panel { padding-inline: 6px; }
  body.editorial-home .category-all-panel-inner { padding: 14px 10px 18px; }
  body.editorial-home .category-all-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; max-height: 55vh; }
  body.editorial-home .category-all-grid button { min-height: 42px; font-size: 12px; }
  body.editorial-home .editorial-rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 719px) {
  body.editorial-home .portal-layout { padding-top: 8px; }
  body.editorial-home .editorial-feature-section { padding: 6px 6px 13px; }
  body.editorial-home .editorial-feature { height: 205px; }
  body.editorial-home .editorial-feature-content { padding: 13px 10px; }
  body.editorial-home .editorial-feature-main { max-width: calc(100% - 34px); gap: 6px; }
  body.editorial-home .editorial-feature-icon { width: 31px; height: 31px; border-radius: 6px; font-size: 14px; }
  body.editorial-home .editorial-feature-copy strong { font-size: 18px; }
  body.editorial-home .editorial-feature-copy small { font-size: 9px; }
  body.editorial-home .editorial-feature-link { flex-basis: 28px; width: 28px; height: 28px; font-size: 13px; }
  body.editorial-home .editorial-rank-section { padding: 0 7px 15px; }
  body.editorial-home .editorial-rank-heading { padding: 12px 0 8px; }
  body.editorial-home .editorial-rank-heading h2 { font-size: 13px; }
  body.editorial-home .editorial-rank-heading span { font-size: 9px; }
  body.editorial-home .editorial-rank-grid { grid-template-columns: 1fr; }
  body.editorial-home .editorial-card-visual { aspect-ratio: 1.8; }
  body.editorial-home .editorial-site-icon { width: 35px; height: 35px; border-radius: 7px; font-size: 15px; }
  body.editorial-home .editorial-site-icon img { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
  body.editorial-home .editorial-rank-number { top: 4px; left: 4px; width: 18px; height: 18px; font-size: 9px; }
  body.editorial-home .editorial-site-copy { padding: 6px 6px 0; }
  body.editorial-home .editorial-site-copy strong { font-size: 10px; }
  body.editorial-home .editorial-site-copy small { min-height: 0; font-size: 8px; -webkit-line-clamp: 2; }
  body.editorial-home .editorial-results-list { grid-template-columns: 1fr 1fr; gap: 6px; }
}

/* 새 시안: 사진 중심의 밝은 디렉터리 화면 */
body.editorial-home { --editorial-line: #e5e5de; background: #faf9f6; color: #252924; }
body.editorial-home .public-header { min-height: 88px; background: #fff; }
body.editorial-home .public-header .brand { align-items: center; }
body.editorial-home .public-header .brand-logo { display: block; width: 42px; height: 42px; flex: 0 0 42px; margin-left: 7px; border-radius: 9px; object-fit: contain; }
body.editorial-home .brand-lockup { display: flex; flex-direction: column; gap: 3px; }
body.editorial-home .brand-lockup .brand-name { font-size: 24px; line-height: 1.1; letter-spacing: -.065em; }
body.editorial-home .brand-lockup small { color: #8b8d84; font-size: 10px; font-weight: 500; letter-spacing: -.025em; }
body.editorial-home .editorial-search { height: 42px; background: #fff; border-color: #e6e6e0; box-shadow: 0 1px 5px rgba(33, 39, 31, .04); }
body.editorial-home .category-picker { background: #faf9f5; }
body.editorial-home .category-nav button { font-size: 13px; }
body.editorial-home .category-nav button { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; }
body.editorial-home .category-all-panel-inner { background: #fff; }
body.editorial-home .category-all-grid button { display: inline-flex; align-items: center; gap: 9px; }
body.editorial-home .portal-layout { grid-template-columns: clamp(110px, 13vw, 188px) minmax(0, 1fr) clamp(110px, 13vw, 188px); max-width: 1900px; gap: clamp(8px, .9vw, 16px); padding-top: 16px; }
body.editorial-home .portal-layout .public-main { padding: clamp(12px, 1.45vw, 24px); background: #fff; border: 1px solid #ededE8; border-radius: 9px; box-shadow: 0 3px 18px rgba(41, 43, 35, .035); }
body.editorial-home .portal-layout .side-banner-rail { max-height: calc(100vh - 32px); gap: 7px; }
body.editorial-home .portal-layout .side-banner-item { border-radius: 5px; }
body.editorial-home .portal-layout .editorial-promo { display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(300px, 35vw, 515px); padding: 0; color: #30352e; background: #f0eee8; border-color: #ebe9e2; }
body.editorial-home .editorial-promo-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(13px, 1.7vw, 26px); }
body.editorial-home .editorial-promo-copy strong { font-size: clamp(14px, 1.5vw, 24px); line-height: 1.35; letter-spacing: -.06em; }
body.editorial-home .editorial-promo-copy small { color: #7a7d73; font-size: clamp(9px, .8vw, 12px); line-height: 1.5; }
body.editorial-home .editorial-promo-arrow { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #aab1a2; border-radius: 50%; font-size: 16px; }
body.editorial-home .editorial-promo-photo { display: block; width: 100%; flex: 1 1 auto; min-height: 115px; background-image: url('./assets/editorial-card-photos.png'); background-size: auto 200%; background-position: 0% 100%; background-repeat: no-repeat; }
body.editorial-home .side-banner-right .editorial-promo-photo { background-position: 100% 100%; }
body.editorial-home .editorial-feature-section { padding: 0 0 12px; background: #fff; border: 0; }
body.editorial-home .editorial-feature { height: clamp(310px, 33vw, 510px); border-radius: 5px; }
body.editorial-home .editorial-feature-backdrop { object-position: 56% center; }
body.editorial-home .editorial-feature-shade { background: linear-gradient(0deg, rgba(7, 10, 7, .87), rgba(7, 10, 7, .16) 58%, rgba(7, 10, 7, 0) 82%); }
body.editorial-home .editorial-feature-content { padding: clamp(17px, 2vw, 31px); }
body.editorial-home .editorial-feature-label { align-self: flex-start; color: #334129; background: #d9e0c7; }
body.editorial-home .editorial-feature-main { max-width: calc(100% - 54px); }
body.editorial-home .editorial-feature-copy strong { font-family: Georgia, 'Noto Serif KR', serif; font-size: clamp(31px, 3.6vw, 53px); font-weight: 500; }
body.editorial-home .editorial-feature-copy small { margin-top: 8px; font-size: clamp(12px, 1vw, 15px); }
body.editorial-home .editorial-feature-tags { display: flex; gap: 5px; margin-top: 12px; }
body.editorial-home .editorial-feature-tags span { padding: 4px 9px; color: #f7f7f0; background: rgba(239, 241, 225, .19); border-radius: 999px; font-size: 10px; }
body.editorial-home .editorial-rank-section { padding: 0 0 28px; background: #fff; border: 0; }
body.editorial-home .editorial-rank-heading { margin: 0; padding: 7px 0 16px; border-top: 0; }
body.editorial-home .editorial-rank-heading h2 { font-size: clamp(18px, 1.45vw, 24px); }
body.editorial-home .editorial-rank-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(7px, 1vw, 15px); }
body.editorial-home .editorial-rank-row { padding-bottom: 12px; border-color: #ecece7; box-shadow: 0 2px 9px rgba(34, 40, 31, .035); }
body.editorial-home .editorial-card-visual { aspect-ratio: 1.05; background-image: url('./assets/editorial-card-photos.png'); background-size: 300% 200%; background-repeat: no-repeat; }
body.editorial-home .editorial-card-visual::before { display: none; }
body.editorial-home .editorial-card-visual.photo-0 { background-position: 0% 0%; }
body.editorial-home .editorial-card-visual.photo-1 { background-position: 50% 0%; }
body.editorial-home .editorial-card-visual.photo-2 { background-position: 100% 0%; }
body.editorial-home .editorial-card-visual.photo-3 { background-position: 0% 100%; }
body.editorial-home .editorial-card-visual.photo-4 { background-position: 50% 100%; }
body.editorial-home .editorial-card-visual.photo-5 { background-position: 100% 100%; }
body.editorial-home .editorial-rank-number { color: #fff; background: rgba(21, 29, 21, .72); }
body.editorial-home .editorial-site-copy { padding: 11px 10px 0; }
body.editorial-home .editorial-site-copy strong { font-size: 13px; }
body.editorial-home .editorial-site-copy small { min-height: 30px; color: #858780; font-size: 10px; }
body.editorial-home .editorial-card-tags { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; padding: 9px 10px 0; }
body.editorial-home .editorial-card-tags span { max-width: 100%; overflow: hidden; padding: 3px 6px; color: #777d71; background: #f3f4ef; border-radius: 999px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
body.editorial-home .editorial-search-results { background: #fff; border-color: #ecece6; }

@media (max-width: 1300px) {
  body.editorial-home .editorial-rank-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  body.editorial-home .editorial-rank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.editorial-home .public-header { min-height: 75px; }
}
@media (max-width: 900px) {
  body.editorial-home .public-header { min-height: 102px; }
  body.editorial-home .brand-lockup small { display: none; }
  body.editorial-home .public-header .brand-logo { width: 34px; height: 34px; flex-basis: 34px; margin-left: 2px; }
  body.editorial-home .editorial-search { height: 35px; }
  body.editorial-home .portal-layout { grid-template-columns: clamp(64px, 13vw, 110px) minmax(0, 1fr) clamp(64px, 13vw, 110px); }
  body.editorial-home .portal-layout .editorial-promo { min-height: 310px; }
  body.editorial-home .editorial-promo-copy { gap: 10px; padding: 9px; }
  body.editorial-home .editorial-promo-copy strong { font-size: 12px; }
  body.editorial-home .editorial-promo-copy small { display: none; }
  body.editorial-home .editorial-promo-arrow { width: 23px; height: 23px; font-size: 12px; }
}
@media (max-width: 719px) {
  body.editorial-home .portal-layout { grid-template-columns: clamp(38px, 10vw, 70px) minmax(0, 1fr) clamp(38px, 10vw, 70px); gap: 3px; padding-inline: 3px; }
  body.editorial-home .portal-layout .public-main { padding: 4px; border-radius: 5px; }
  body.editorial-home .portal-layout .editorial-promo { min-height: 190px; }
  body.editorial-home .editorial-promo-copy { padding: 5px; }
  body.editorial-home .editorial-promo-copy strong { font-size: 9px; }
  body.editorial-home .editorial-promo-arrow { width: 18px; height: 18px; font-size: 10px; }
  body.editorial-home .editorial-promo-photo { min-height: 55px; }
  body.editorial-home .editorial-feature-section { padding: 0 0 6px; }
  body.editorial-home .editorial-feature { height: 240px; }
  body.editorial-home .editorial-feature-content { padding: 12px 10px; }
  body.editorial-home .editorial-feature-main { max-width: calc(100% - 26px); }
  body.editorial-home .editorial-feature-copy strong { font-size: 22px; }
  body.editorial-home .editorial-feature-copy small { font-size: 9px; }
  body.editorial-home .editorial-feature-tags { gap: 3px; margin-top: 7px; }
  body.editorial-home .editorial-feature-tags span { padding: 3px 5px; font-size: 8px; }
  body.editorial-home .editorial-feature-link { flex-basis: 25px; width: 25px; height: 25px; }
  body.editorial-home .editorial-rank-section { padding-bottom: 15px; }
  body.editorial-home .editorial-rank-heading h2 { font-size: 12px; }
  body.editorial-home .editorial-rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  body.editorial-home .editorial-card-visual { aspect-ratio: .95; }
  body.editorial-home .editorial-rank-number { width: 18px; height: 18px; }
  body.editorial-home .editorial-site-copy { padding: 6px 5px 0; }
  body.editorial-home .editorial-site-copy strong { font-size: 9px; }
  body.editorial-home .editorial-site-copy small { min-height: 0; font-size: 8px; }
  body.editorial-home .editorial-card-tags { padding: 5px 5px 0; }
  body.editorial-home .editorial-card-tags span { font-size: 7px; }
  body.editorial-home .category-picker:has(.category-all-panel:not([hidden]))::before { position: fixed; z-index: 8; inset: 0; background: rgba(21, 25, 19, .28); content: ''; }
  body.editorial-home .category-all-panel { position: fixed; z-index: 9; top: auto; bottom: 0; left: 0; width: 100%; padding: 0; }
  body.editorial-home .category-all-panel-inner { max-height: min(75vh, 690px); padding: 18px 15px 24px; overflow: hidden; border: 1px solid #e5e6dd; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(29, 34, 27, .17); }
  body.editorial-home .category-all-panel-inner::before { display: block; width: 30px; height: 4px; margin: -7px auto 15px; background: #d8d9d2; border-radius: 99px; content: ''; }
  body.editorial-home .category-all-grid { max-height: calc(min(75vh, 690px) - 100px); }
}

/* 카테고리 가로 탐색과 통합 검색 */
body.editorial-home .public-header { z-index: 20; }
body.editorial-home .category-picker { z-index: 10; }
body.editorial-home .category-picker-inner { gap: 5px; }
body.editorial-home .category-scroll-window { flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-behavior: smooth; }
body.editorial-home .category-scroll-window::-webkit-scrollbar { display: none; }
body.editorial-home .category-scroll-window.can-scroll-right { mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 26px), transparent 100%); }
body.editorial-home .category-nav { justify-content: flex-start; flex: none; gap: clamp(8px, 1.6vw, 25px); width: max-content; min-width: 100%; overflow: visible; }
body.editorial-home .category-nav button { flex: 0 0 auto; }
body.editorial-home .category-scroll-button { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; padding: 0; color: #5b6657; background: #fff; border: 1px solid #d9ded5; border-radius: 50%; font-size: 25px; line-height: 1; cursor: pointer; }
body.editorial-home .category-scroll-button[hidden] { display: none; }
body.editorial-home .category-scroll-button:hover { color: #253322; background: #eef2e9; border-color: #a8b59d; }
body.editorial-home .category-scroll-button:focus-visible,
body.editorial-home .category-nav button:focus-visible { outline: 2px solid #6e8566; outline-offset: -3px; }
body.editorial-home .editorial-search { position: relative; }
body.editorial-home .category-search-suggestions[hidden] { display: none; }
body.editorial-home .category-search-suggestions { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; display: grid; width: 100%; max-height: 345px; overflow-y: auto; padding: 10px; background: #fff; border: 1px solid #dfe3dc; border-radius: 9px; box-shadow: 0 14px 30px rgba(31, 39, 29, .15); }
body.editorial-home .category-search-suggestions > strong { padding: 4px 8px 8px; color: #66735f; font-size: 11px; }
body.editorial-home .editorial-search .category-search-suggestions > button { display: flex; flex: none; justify-content: space-between; align-items: center; width: 100%; height: auto; min-height: 36px; padding: 7px 9px; color: #333e30; background: transparent; border: 0; border-radius: 5px; font-size: 12px; text-align: left; cursor: pointer; }
body.editorial-home .category-search-suggestions > button:hover,
body.editorial-home .category-search-suggestions > button:focus-visible { background: #eef2e9; }
body.editorial-home .category-search-suggestions > p { margin: 5px 8px 9px; color: #777e73; font-size: 11px; line-height: 1.45; }
body.editorial-home .editorial-category-results { padding: 20px 0 12px; border-bottom: 1px solid #e4e8e0; }
body.editorial-home .editorial-category-results h2 { margin: 0 0 10px; color: #55624f; font-size: 14px; }
body.editorial-home .editorial-category-results > div { display: flex; flex-wrap: wrap; gap: 8px; }
body.editorial-home .editorial-category-results button { display: inline-flex; align-items: center; gap: 13px; padding: 8px 12px; color: #354531; background: #edf2e9; border: 1px solid #d6dfd1; border-radius: 6px; font-size: 12px; cursor: pointer; }
body.editorial-home .editorial-category-results button:hover { background: #e2eadc; }
@media (max-width: 900px) {
  body.editorial-home .category-picker-inner { padding-right: 0; }
  body.editorial-home .category-scroll-window { width: 100%; }
  body.editorial-home .category-scroll-button { display: none; }
  body.editorial-home .category-nav { gap: 6px; }
  body.editorial-home .category-nav button { min-height: 52px; }
}

/* 공간이 부족하면 두 줄로 접고, 두 줄마저 넘칠 때만 가로 이동 */
body.editorial-home .category-picker-inner { min-height: 60px; padding-block: 0; }
body.editorial-home .category-scroll-window { flex: 1 1 auto; width: 100%; overflow-x: auto; overflow-y: hidden; }
body.editorial-home .category-nav { display: flex; flex-wrap: nowrap; width: max-content; min-width: 0; }
body.editorial-home .category-nav.is-two-row { display: grid; grid-template-columns: repeat(var(--category-columns), max-content); grid-template-rows: repeat(2, 44px); grid-auto-flow: row; align-items: stretch; column-gap: clamp(8px, 1.6vw, 25px); row-gap: 0; width: max-content; min-width: 100%; }
body.editorial-home .category-nav.is-two-row button { min-height: 44px; }
body.editorial-home .category-nav { gap: clamp(16px, 2.2vw, 32px); }
body.editorial-home .category-nav button { gap: 0; padding-inline: 4px; color: #697064; font-size: 14px; font-weight: 580; letter-spacing: -.025em; }
body.editorial-home .category-nav button.is-active { color: #283b2b; font-weight: 760; }
body.editorial-home .category-nav button.is-active::after { right: 3px; left: 3px; height: 2px; background: #526b4c; }
body.editorial-home .category-nav .category-icon { width: 20px; height: 20px; font-size: 17px; }
body.editorial-home .category-nav.is-two-row { column-gap: clamp(16px, 2.2vw, 32px); }
@media (max-width: 900px) {
  body.editorial-home .category-picker-inner { min-height: 52px; padding-inline: 10px; }
  body.editorial-home .category-nav { gap: 12px; }
  body.editorial-home .category-nav button { font-size: 12px; }
  body.editorial-home .category-nav .category-icon { width: 17px; height: 17px; font-size: 14px; }
  body.editorial-home .category-nav.is-two-row { grid-template-rows: repeat(2, 45px); }
  body.editorial-home .category-nav.is-two-row { column-gap: 12px; }
  body.editorial-home .category-nav.is-two-row button { min-height: 45px; }
}

/* 모바일: 사진 크기로 순위를 읽는 한 열 화면 */
body.editorial-home .mobile-feature-rank,
body.editorial-home .mobile-rank-unit,
body.editorial-home .editorial-site-domain,
body.editorial-home .editorial-feature-domain,
body.editorial-home .mobile-banner-slot { display: none; }
body.editorial-home .portal-layout .side-banner-rail .mobile-banner-variant { display: none; }

@media (max-width: 719px) {
  body.editorial-home .public-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 8px 10px;
    min-height: 0;
    padding: 13px 14px 11px;
  }
  body.editorial-home .public-header .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  body.editorial-home .public-header .brand-name { font-size: clamp(22px, 6vw, 28px); }
  body.editorial-home .brand-lockup small { display: block; font-size: 10px; }
  body.editorial-home .public-header .site-nav { grid-column: 2; grid-row: 1; align-self: center; }
  body.editorial-home .public-header .inquiry-nav-link { min-height: 34px; padding: 0 11px; font-size: 11px; }
  body.editorial-home .public-header .visitor-count {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    padding: 0;
    font-size: 11px;
    transform: none;
  }
  body.editorial-home .editorial-search { grid-column: 1 / -1; grid-row: 3; height: 39px; }
  body.editorial-home .category-picker-inner { min-height: 48px; padding: 6px 12px; }
  body.editorial-home .category-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 7px; width: max-content; min-width: 0; }
  body.editorial-home .category-nav.is-two-row { display: grid; grid-template-columns: repeat(var(--category-columns), max-content); grid-template-rows: repeat(2, 36px); grid-auto-flow: row; align-items: stretch; column-gap: 7px; row-gap: 6px; width: max-content; min-width: 0; }
  body.editorial-home .category-nav button,
  body.editorial-home .category-nav.is-two-row button {
    min-height: 36px;
    padding: 0 14px;
    background: #efeee8;
    border-radius: 8px;
    font-size: 12px;
  }
  body.editorial-home .category-nav button.is-active { color: #fff; background: #34462e; }
  body.editorial-home .category-nav button.is-active::after { display: none; }
  body.editorial-home .portal-layout {
    display: block;
    padding: 10px 12px 32px;
  }
  body.editorial-home .portal-layout > .side-banner-rail { display: none; }
  body.editorial-home .portal-layout .public-main { padding: 0; background: transparent; border: 0; box-shadow: none; }
  body.editorial-home .editorial-feature-section { padding: 0 0 7px; background: transparent; }
  body.editorial-home .editorial-feature { height: clamp(310px, 94vw, 480px); border-radius: 9px; }
  body.editorial-home .editorial-feature-backdrop { object-position: center; }
  body.editorial-home .editorial-feature-shade { background: linear-gradient(0deg, rgba(5, 9, 5, .88), rgba(5, 9, 5, .12) 57%, transparent 78%); }
  body.editorial-home .editorial-feature-label,
  body.editorial-home .editorial-feature-tags,
  body.editorial-home .editorial-feature-link { display: none; }
  body.editorial-home .mobile-feature-rank { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: baseline; padding: 7px 10px; color: #fff; background: rgba(33, 45, 25, .87); border-radius: 6px; font-size: 24px; font-weight: 750; line-height: 1; }
  body.editorial-home .mobile-feature-rank span { margin-left: 1px; font-size: 15px; }
  body.editorial-home .editorial-feature-content { justify-content: flex-end; padding: 16px; }
  body.editorial-home .editorial-feature-main { max-width: 100%; }
  body.editorial-home .editorial-feature-copy strong { font-size: clamp(27px, 7vw, 36px); }
  body.editorial-home .editorial-feature-domain { display: block; overflow: hidden; margin-top: 4px; color: #e9eae2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  body.editorial-home .editorial-feature-copy small { margin-top: 6px; color: #fff; font-size: 12px; }
  body.editorial-home .editorial-rank-section { padding: 0; background: transparent; }
  body.editorial-home .editorial-rank-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
  body.editorial-home .editorial-rank-grid > .editorial-rank-row {
    position: relative;
    display: block;
    height: clamp(175px, 57vw, 250px);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: #263124;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
  }
  body.editorial-home .editorial-rank-grid > .editorial-rank-row.mobile-rank-lower { height: clamp(118px, 39vw, 170px); }
  body.editorial-home .editorial-rank-grid > .editorial-rank-row:hover { transform: none; }
  body.editorial-home .editorial-rank-grid .editorial-card-visual { position: absolute; inset: 0; display: block; width: 100%; height: 100%; aspect-ratio: auto; }
  body.editorial-home .editorial-rank-grid .editorial-card-visual::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 9, 5, .84), rgba(5, 9, 5, .12) 63%, transparent 82%); content: ""; }
  body.editorial-home .editorial-rank-grid .editorial-rank-number { top: 10px; left: 10px; z-index: 2; display: inline-flex; gap: 1px; width: auto; height: auto; padding: 7px 9px; color: #fff; background: rgba(33, 45, 25, .87); border-radius: 6px; font-size: 22px; line-height: 1; }
  body.editorial-home .editorial-rank-grid .mobile-rank-unit { display: inline; align-self: end; font-size: 13px; }
  body.editorial-home .editorial-rank-grid .editorial-site-copy { position: absolute; z-index: 2; right: 14px; bottom: 13px; left: 14px; padding: 0; }
  body.editorial-home .editorial-rank-grid .editorial-site-copy strong { display: block; color: #fff; font-size: 21px; line-height: 1.15; }
  body.editorial-home .editorial-rank-grid .editorial-site-domain { display: block; overflow: hidden; margin-top: 4px; color: #e9eae2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  body.editorial-home .editorial-rank-grid .editorial-site-copy small { display: -webkit-box; overflow: hidden; min-height: 0; margin-top: 4px; color: #fff; font-size: 11px; line-height: 1.35; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  body.editorial-home .editorial-rank-grid .editorial-card-tags { display: none; }
  body.editorial-home .editorial-rank-grid > .editorial-rank-row.mobile-rank-lower .editorial-site-copy strong { font-size: 18px; }
  body.editorial-home .editorial-rank-grid > .editorial-rank-row.mobile-rank-lower .editorial-rank-number { font-size: 18px; }
  body.editorial-home .editorial-rank-grid > .editorial-rank-row.mobile-rank-lower .editorial-site-copy small { display: none; }
  body.editorial-home .mobile-banner-slot:not([hidden]) { position: relative; display: block; margin: 5px 0 9px; }
  body.editorial-home .mobile-banner-slot[hidden] { display: none; }
  body.editorial-home .mobile-banner-label { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 5px 8px; color: #3b4136; background: rgba(255, 255, 255, .88); border-radius: 5px; font-size: 11px; font-weight: 700; }
  body.editorial-home .mobile-banner-slot .side-banner-item { display: block; width: 100%; overflow: hidden; border: 1px solid #dfded4; border-radius: 9px; }
  body.editorial-home .mobile-banner-slot .desktop-banner-variant { display: none; }
  body.editorial-home .mobile-banner-slot .mobile-banner-variant { display: block; }
  body.editorial-home .mobile-banner-slot .side-banner-item img { display: block; width: 100%; height: auto; object-fit: contain; }
  body.editorial-home .mobile-banner-slot .editorial-promo { min-height: 360px; }
  body.editorial-home .mobile-banner-slot .editorial-promo-copy { padding: 24px; }
  body.editorial-home .mobile-banner-slot .editorial-promo-copy strong { font-size: 24px; }
  body.editorial-home .mobile-banner-slot .editorial-promo-copy small { display: block; font-size: 12px; }
  body.editorial-home .mobile-banner-slot[data-banner-position="right"] .editorial-promo-photo { background-position: 100% 100%; }
  body.editorial-home .mobile-banner-slot .mobile-banner-fallback { min-height: 220px; padding: 35px 20px 22px; color: #33412e; background: #f0eee8; text-decoration: none; }
  body.editorial-home .mobile-banner-slot .mobile-banner-fallback strong { display: block; font-size: 26px; }
  body.editorial-home .mobile-banner-slot .mobile-banner-fallback small { display: block; margin-top: 12px; color: #6d7569; font-size: 13px; }
  body.editorial-home .mobile-banner-slot .mobile-banner-fallback > span { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-top: 25px; border: 1px solid #9ca995; border-radius: 50%; }
}
