/* Homepage editorial treatment. Shared utility pages retain their own layouts. */
.editorial-home {
  --accent: #1E3A5F;
  --accent-hover: #152C4A;
  --background: #FFF8EE;
  --text-main: #1E3A5F;
  --text-secondary: #5A6B80;
  --border: #EADFCB;
  background: var(--background);
}
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; background: #fff; color: #1E3A5F; }
.skip-link:focus { top: 12px; }
.editorial-home .headline-bar { background: #FFF8EE; border-top: 4px solid #E76F51; padding: 20px max(24px, calc((100vw - 1280px)/2)); gap: 16px; flex-wrap: wrap; }
.editorial-home .logo { color: #1E3A5F; font-family: 'Pretendard Variable','Pretendard','Noto Sans KR',-apple-system,system-ui,sans-serif; font-weight: 800; font-size: 1.45rem; }
.editorial-home .logo-icon { width: 32px; height: 32px; }
.editorial-home .nav-date { font-size: 12px; padding: 0; white-space: nowrap; }
.editorial-home .header-menu { gap: 0; }
.editorial-home .header-menu a { font-size: 13px; padding: 10px; }
.editorial-home .header-menu a:hover { background: #FDEFDD; color: #1E3A5F; }
.editorial-home .content-hub { position: relative; max-width: 1328px; padding: 36px 24px 0; }
.editorial-home .content-hub-eyebrow { color: #C0502F; font-size: 11px; letter-spacing: .18em; margin-bottom: 14px; }
.editorial-home .content-hub h1 { font-family: 'Pretendard Variable','Pretendard','Noto Sans KR',-apple-system,system-ui,sans-serif; font-weight: 800; font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.35; letter-spacing: -.06em; }
.editorial-home .content-hub > p:not(.content-hub-eyebrow) { color: #5A6B80; font-size: 15px; margin-top: 16px; }
.editorial-home .content-tabs { display: flex; gap: 28px; max-width: none; margin-top: 28px; padding: 0; border: 0; border-bottom: 1px solid #DDD0B8; background: transparent; border-radius: 0; }
.editorial-home .content-tabs a { padding: 14px 0; border-radius: 0; border: 0; background: transparent; color: #5A6B80; font-size: 15px; box-shadow: none; }
.editorial-home .content-tabs a.active { color: #1E3A5F; border-bottom: 3px solid #E76F51; margin-bottom: -1px; }
.editorial-home main { max-width: 1328px; padding: 30px 24px 60px; min-height: 50vh; }
.feed-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.feed-heading h2 { font-size: 20px; letter-spacing: -.04em; }
.feed-heading > span { color: #5A6B80; font-size: 12px; }
.editorial-home .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 20px; }
.editorial-home .card { border: 1px solid #EADFCB; border-radius: 22px; box-shadow: none; background: #FFFDF8; transition: border-color .18s, transform .18s; }
.editorial-home .card:hover { transform: translateY(-3px); border-color: #E76F51; box-shadow: none; }
.editorial-home .card-image-container { padding-top: 55%; background: #FDEFDD; }
.editorial-home .card-image-container::before { content: '오늘의 남가주'; position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Pretendard Variable','Pretendard','Noto Sans KR',-apple-system,system-ui,sans-serif; font-weight: 800; font-size: 20px; color: #8E9CB0; }
.editorial-home .card-image { z-index: 1; }
.editorial-home .skeleton-image { background: transparent; animation: none; }
.editorial-home .card-body { padding: 22px; gap: 10px; }
.editorial-home .badge { background: transparent; color: #C0502F; padding: 0; font-size: 12px; margin: 0; }
.editorial-home .card-title { font-size: 21px; line-height: 1.5; letter-spacing: -.045em; -webkit-line-clamp: 3; line-clamp: 3; word-break: keep-all; overflow-wrap: anywhere; }
.editorial-home .card-desc { color: #5A6B80; font-size: 14px; line-height: 1.8; -webkit-line-clamp: 3; line-clamp: 3; margin-bottom: 8px; }
.editorial-home .card-footer { padding-top: 14px; gap: 8px; }
.editorial-home .media-info { min-width: 0; }
.editorial-home .media-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; font-size: 12px; }
.editorial-home .card-meta { flex-shrink: 0; font-size: 11px; }
.editorial-home .site-footer { max-width: 1280px; margin: 0 auto; border-top: 1px solid #DDD0B8; text-align: left; padding: 24px 0 32px; }
.footer-brand { color: #1E3A5F; font-size: 17px; margin-bottom: 16px; }
.footer-brand span { font-size: 12px; font-weight: 400; margin-left: 14px; color: #5A6B80; }
.editorial-home .site-footer a { color: #5A6B80; font-size: 12px; }
.editorial-home :focus-visible { outline: 2px solid #E76F51; outline-offset: 4px; }
@media (min-width: 1100px) {
  .editorial-home .content-hub > p:not(.content-hub-eyebrow) { position: absolute; right: 24px; bottom: 96px; max-width: 300px; line-height: 1.9; }
}
@media (max-width: 1000px) {
  .editorial-home .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-home .headline-bar { display: flex; }
  .editorial-home .nav-date { margin-left: auto; }
  .editorial-home .header-menu { order: 3; width: 100%; display: flex; justify-content: flex-start; overflow-x: auto; }
  .editorial-home .site-footer { margin: 0 24px; }
}
@media (max-width: 600px) {
  .editorial-home .headline-bar { padding: 16px 20px 8px; gap: 10px; }
  .editorial-home .logo { font-size: 20px; }
  .editorial-home .nav-date { width: 100%; order: 4; font-size: 11px; padding: 4px 0; }
  .editorial-home .search-container { margin-left: auto; max-width: 100%; }
  .editorial-home .search-container:not(.is-collapsed) { order: 2; width: 100%; }
  .editorial-home #search-input { min-width: 0; flex: 1; }
  .editorial-home .search-container.is-collapsed #search-input { flex: 0; }
  .editorial-home #search-btn { width: 40px; height: 40px; flex-shrink: 0; }
  .editorial-home .header-menu { margin: 0; gap: 10px; }
  .editorial-home .header-menu a { padding: 8px 0; flex-shrink: 0; font-size: 12px; }
  .editorial-home .content-hub { padding: 24px 20px 0; }
  .editorial-home .content-hub > p:not(.content-hub-eyebrow) { font-size: 13px; line-height: 1.8; }
  .editorial-home .content-tabs { margin-top: 18px; }
  .editorial-home main { padding: 24px 20px 40px; }
  .editorial-home .card-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .editorial-home .card-body { padding: 20px; }
  .editorial-home .card-title { font-size: 21px; }
  .editorial-home .site-footer { margin: 0 20px; }
  .footer-brand span { display: block; margin: 8px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-home *, .editorial-home *::before { transition: none !important; animation: none !important; }
  .editorial-home .card:hover, .editorial-home .card:hover .card-image { transform: none; }
}

/* 컨셉 B: 친근한 동네 소식지 */
.editorial-home .logo b, .detail-site-logo b { color: #E76F51; font-weight: 800; }
.editorial-home .content-tabs a.active { border-bottom-width: 4px; }
.editorial-home .card-image-container { border-radius: 22px 22px 0 0; }
.editorial-home .badge { background: #FDEFDD; padding: 4px 10px; border-radius: 999px; }
.editorial-home .header-menu a { border-radius: 999px; }
.editorial-home .card:hover { box-shadow: 0 12px 28px rgba(30,58,95,.10); }

/* Photo cards: full-card source image with a readable text overlay. */
.editorial-home .card-body:has(.card-thumb:not([hidden])) {
  position: relative;
  isolation: isolate;
  min-height: 440px;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: inherit;
}
.editorial-home .card-body:has(.card-thumb:not([hidden])) > .card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  z-index: -1;
  background: #1E3A5F;
}
.editorial-home .card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,20,35,.08) 0%, rgba(8,20,35,.48) 28%, rgba(8,20,35,.90) 62%, rgba(8,20,35,.97) 100%);
}
.editorial-home .card-body:has(.card-thumb:not([hidden])) > .badge {
  background: #FFF8EE;
  color: #C0502F;
}
.editorial-home .card-body:has(.card-thumb:not([hidden])) > .card-title {
  color: #fff;
  font-size: 24px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.editorial-home .card-body:has(.card-thumb:not([hidden])) > .card-desc {
  color: #F4F1EB;
  flex-grow: 0;
}
.editorial-home .card-body:has(.card-thumb:not([hidden])) > .card-footer {
  color: #F4F1EB;
  border-color: rgba(255,255,255,.25);
  margin-top: 0;
}
.editorial-home .card-body:has(.card-thumb:not([hidden])) .media-name,
.editorial-home .card-body:has(.card-thumb:not([hidden])) .time {
  color: #F4F1EB;
}
@media (max-width: 600px) {
  .editorial-home .card-body:has(.card-thumb:not([hidden])) { min-height: 430px; }
}
