/* =====================================================================
 * JAiN (전남AI뉴스 · Jeonnam AI News)
 * Flagship Korean Press Editorial Design System (Inspired by The JoongAng)
 * Pure white canvas · Flat hairline rules · Sharp 0px 16:9 press photos
 * Unified Noto Sans KR typography
 * ===================================================================== */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f5f6f8;
  --surface-tint: #f2f6f6;
  --surface-footer: #f7f7f7;

  --ink: #111111;
  --ink-strong: #1d1d1d;
  --ink-body: #333333;
  --ink-secondary: #555555;
  --ink-muted: #888888;

  --line-light: #e5e5e5;
  --line-mid: #d4d4d4;
  --line-dark: #111111;

  /* JoongAng-inspired refined editorial accents */
  --accent: #f04422;       /* Brand Orange-Red (ISSUE PICK / 주요기사 / 배지) */
  --accent-hover: #d63616;
  --teal: #008073;         /* Editorial Teal-Green (제보·브리핑 / 해설) */
  --teal-hover: #00665c;
  --ad-gold: #8a5a00;
  --ad-bg: #fdf8eb;

  --font-sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top Preparing / Status Utility Strip (Understated Press Bar) ---------- */
.status-banner {
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  font-size: 0.78rem;
  border-bottom: 1px solid var(--line-light);
}

.status-banner.is-preparing {
  background: #fafafa;
  border-bottom: 1px solid var(--line-light);
}

.status-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  flex-wrap: wrap;
}

.status-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill {
  display: inline-block;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--ink);
  color: #ffffff;
  letter-spacing: 0.02em;
}

.status-banner.is-preparing .status-pill {
  background: var(--accent);
}

.status-banner-date {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* ---------- Press Masthead Header (Left Wordmark + 2-Row Nav + ISSUE PICK) ---------- */
.site-header {
  background: #ffffff;
  position: relative;
  z-index: 40;
}

.masthead-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0 28px;
  align-items: end;
  padding-top: 18px;
}

.brand-block {
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 0.96;
}

.brand-wordmark-top {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.brand-wordmark-main {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.brand-wordmark-main .accent-letter {
  color: var(--accent);
}

.brand-wordmark-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.header-right-rows {
  display: flex;
  flex-direction: column;
}

/* Row 1: Utility bar */
.header-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  flex-wrap: wrap;
}

.header-promo-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--ink-body);
}

.pill-brand {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 9999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pill-brand:hover {
  background: var(--accent-hover);
}

.header-utility-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.header-utility-links a {
  transition: color 0.12s ease;
}

.header-utility-links a:hover,
.header-utility-links a.active {
  color: var(--ink);
  font-weight: 700;
}

.util-sep {
  color: var(--line-mid);
  user-select: none;
}

/* Row 2: Main Section Nav */
.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0 12px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header-cta-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-tip-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-tip-btn:hover {
  background: var(--ink);
  color: #ffffff;
}

/* Row 3: ISSUE PICK Ticker + 2px Orange-Red Editorial Bottom Rule */
.issue-pick-bar {
  border-top: 1px solid var(--line-light);
  border-bottom: 2px solid var(--accent);
  background: #ffffff;
}

.issue-pick-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.issue-pick-inner::-webkit-scrollbar {
  display: none;
}

.issue-pick-label {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.issue-pick-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--ink-body);
  white-space: nowrap;
}

.issue-pick-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.issue-dot {
  color: var(--line-mid);
}

/* ---------- Shared Press Micro-Elements ---------- */
.press-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eceef1;
  border-radius: 0;
}

.press-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

a:hover .press-img-wrap img {
  transform: scale(1.025);
}

/* Clean minimal JoongAng-style white play triangle for video stories */
.video-play-icon {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 26px;
  height: 26px;
  background: rgba(17, 17, 17, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1;
}

.video-play-icon.large {
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
}

.video-duration-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 6px;
  background: rgba(17, 17, 17, 0.76);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Sharp rectangular micro-badges (like JoongAng PLUS) */
.tag-rect {
  display: inline-block;
  padding: 1px 5px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
  border-radius: 0;
  letter-spacing: 0.01em;
}

.tag-ai {
  background: var(--accent);
  color: #ffffff;
}

.tag-tip {
  background: var(--ink);
  color: #ffffff;
}

.tag-ad {
  background: var(--ad-bg);
  color: var(--ad-gold);
  border: 1px solid #e2c675;
}

.tag-sample {
  background: #efefef;
  color: #666666;
}

.cat-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.cat-label.teal {
  color: var(--teal);
}

.cat-label.muted {
  color: var(--ink-muted);
}

/* Section Headers with 2px editorial top rule */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 14px;
  border-top: 2px solid var(--ink);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-head.accent {
  border-top-color: var(--accent);
}

.section-head.teal {
  border-top-color: var(--teal);
}

.section-head-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-head.accent .section-head-title {
  color: var(--accent);
}

.section-head.teal .section-head-title {
  color: var(--teal);
}

.section-head-sub {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ---------- Main Content ---------- */
.main-content {
  padding: 26px 0 64px;
}

/* ---------- Top Fold: JoongAng 1 : 2 : 1 Asymmetric Front-Page Grid ---------- */
.top-fold-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 0;
  padding-bottom: 34px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-light);
}

.fold-col-left {
  padding-right: 22px;
  border-right: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
}

.fold-col-center {
  padding: 0 26px;
  border-right: 1px solid var(--line-light);
}

.fold-col-right {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
}

/* Left Column Story Items */
.side-feature-card {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
}

.side-feature-title {
  margin: 10px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.025em;
  color: var(--ink);
}

a:hover .side-feature-title {
  text-decoration: underline;
}

.sub-bullet-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.sub-bullet-list li {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.48;
  padding-left: 11px;
  position: relative;
  margin-top: 5px;
}

.sub-bullet-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--ink-muted);
  font-weight: 700;
}

.sub-bullet-list a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Center Lead Story (Hero Photo + Centered Headline & Deck) */
.lead-story-card {
  display: block;
}

.lead-headline {
  margin: 18px 0 10px;
  font-size: 1.68rem;
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
}

.lead-story-card:hover .lead-headline {
  text-decoration: underline;
}

.lead-deck {
  margin: 0 auto 14px;
  max-width: 92%;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  text-align: center;
}

.lead-meta-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  flex-wrap: wrap;
}

/* Compact Horizontal Card (Headline Left + 98x55 Thumbnail Right) */
.compact-row-card {
  display: grid;
  grid-template-columns: 1fr 98px;
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
}

.compact-row-card:first-child {
  padding-top: 0;
}

.compact-row-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.compact-row-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.compact-row-card:hover .compact-row-title {
  text-decoration: underline;
}

.compact-row-excerpt {
  margin: 6px 0 0;
  font-size: 0.81rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Secondary Fold: 72% Main Feed + 28% Right Sidebar ---------- */
.secondary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 38px;
  align-items: start;
}

/* Light-gray Pick! Filter Bar (JoongAng 추천 Pick! style) */
.pick-filter-bar {
  background: var(--surface-subtle);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.pick-filter-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pick-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  margin-right: 4px;
}

.region-tab {
  padding: 5px 13px;
  border-radius: 9999px;
  border: 1px solid #dcdfe4;
  background: #ffffff;
  color: var(--ink-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.region-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.region-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.search-input {
  padding: 6px 12px;
  border: 1px solid #d4d7dd;
  border-radius: 9999px;
  font-size: 0.8rem;
  background: #ffffff;
  color: var(--ink);
  min-width: 245px;
}

.search-input:focus {
  outline: none;
  border-color: var(--ink);
}

/* 3-Column Flat Editorial Grid (Hairline Vertical Separators, Zero Shadows) */
.editorial-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 42px;
}

.editorial-card {
  padding: 0 18px 22px;
  border-right: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
}

.editorial-card:nth-child(3n + 1) {
  padding-left: 0;
}

.editorial-card:nth-child(3n) {
  padding-right: 0;
  border-right: none;
}

.editorial-card:nth-child(n + 4) {
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
}

.editorial-card-kicker {
  margin-top: 11px;
  font-size: 0.76rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.editorial-card-title {
  margin: 4px 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.editorial-card:hover .editorial-card-title {
  text-decoration: underline;
}

.editorial-card-excerpt {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editorial-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

/* ---------- Right Sidebar Modules (Opinion / Tip Box / Ranking) ---------- */
.sidebar-section {
  margin-bottom: 32px;
}

.opinion-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  display: block;
}

.opinion-item:first-child {
  padding-top: 0;
}

.opinion-item:last-child {
  border-bottom: none;
}

.opinion-series {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin-right: 5px;
}

.opinion-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.opinion-item:hover .opinion-title {
  text-decoration: underline;
}

.opinion-meta {
  margin-top: 5px;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* Utility Promo Box (JoongAng 지면보기 / 오피니언 박스 tone) */
.sidebar-utility-box {
  background: var(--surface-tint);
  padding: 18px 20px;
  border: 1px solid #e2ecec;
  margin-bottom: 28px;
}

.sidebar-utility-title {
  margin: 0 0 6px;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink);
}

.sidebar-utility-desc {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--teal);
  background: #ffffff;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-outline-pill:hover {
  background: var(--teal);
  color: #ffffff;
}

/* Numbered Ranking List */
.ranking-item {
  display: grid;
  grid-template-columns: 22px 1fr 78px;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-num {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
}

.ranking-item:first-child .ranking-num {
  color: var(--accent);
}

.ranking-title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.ranking-item:hover .ranking-title {
  text-decoration: underline;
}

.channel-mini-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.channel-mini-link {
  padding: 4px 10px;
  border: 1px solid var(--line-mid);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-body);
  background: #ffffff;
}

.channel-mini-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Transparency Strip */
.transparency-strip {
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--surface-subtle);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.transparency-strip strong {
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
  border-radius: 0;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-dark:hover {
  background: #333333;
}

.btn-outline {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line-mid);
}

.btn-outline:hover {
  border-color: var(--ink);
}

/* ---------- Article Detail Page (Flat Classic Press Reader) ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 42px;
  align-items: start;
}

.article-paper {
  padding-right: 12px;
}

.article-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.article-detail-title {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.article-detail-subtitle {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-secondary);
  line-height: 1.55;
  padding-left: 14px;
  border-left: 3px solid var(--ink);
}

.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.article-hero-figure {
  margin: 0 0 24px;
}

.article-hero-figure figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-light);
}

.ai-disclosure-box {
  background: var(--surface-subtle);
  border-left: 3px solid var(--teal);
  padding: 13px 16px;
  font-size: 0.84rem;
  color: var(--ink-body);
  margin-bottom: 24px;
  line-height: 1.6;
}

.sample-notice-box {
  background: var(--ad-bg);
  border-left: 3px solid var(--ad-gold);
  padding: 12px 16px;
  font-size: 0.83rem;
  color: #5c3d00;
  margin-bottom: 18px;
}

.article-prose p {
  font-size: 1.06rem;
  line-height: 1.88;
  color: #222222;
  margin: 0 0 20px;
}

.short-embed-box {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  margin-bottom: 28px;
}

.short-embed-box h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 800;
}

.short-embed-frame {
  aspect-ratio: 9 / 16;
  max-height: 440px;
  width: 100%;
  background: #111111;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.short-embed-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.short-embed-overlay {
  position: relative;
  z-index: 2;
  padding: 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
}

/* ---------- Editorial Subpages (Tip & About) ---------- */
.page-editorial-header {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-light);
  padding: 22px 0 20px;
  margin-bottom: 28px;
}

.page-editorial-header h1 {
  margin: 4px 0 8px;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.page-editorial-header p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  max-width: 780px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.editorial-panel {
  border-top: 1px solid var(--line-light);
  padding-top: 22px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.required-star {
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-mid);
  border-radius: 0;
  font-size: 0.92rem;
  background: #ffffff;
  color: var(--ink);
}

.form-control:focus {
  outline: none;
  border-color: var(--ink);
}

textarea.form-control {
  min-height: 145px;
  resize: vertical;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.consent-box {
  background: var(--surface-subtle);
  border: 1px solid var(--line-light);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.86rem;
  color: var(--ink-body);
  cursor: pointer;
}

.consent-item input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--ink);
}

.consent-details summary {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
  margin-top: 8px;
}

.consent-terms {
  margin-top: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line-light);
  font-size: 0.8rem;
  color: var(--ink-secondary);
  max-height: 190px;
  overflow-y: auto;
}

.alert-success {
  display: none;
  background: var(--surface-tint);
  border: 1px solid var(--teal);
  color: #004d45;
  padding: 16px 18px;
  margin-top: 16px;
  font-size: 0.9rem;
}

.alert-success.visible {
  display: block;
}

/* Flat Editorial Ad Package Grid */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  margin: 18px 0 28px;
}

.package-card {
  padding: 22px 20px;
  border-right: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-card:first-child {
  padding-left: 0;
}

.package-card:last-child {
  border-right: none;
  padding-right: 0;
}

.package-price {
  font-size: 1.32rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.package-list {
  margin: 0;
  padding-left: 17px;
  font-size: 0.86rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* ---------- Classic Korean Press Footer (Light Neutral, 2px Black Top Rule) ---------- */
.site-footer {
  background: var(--surface-footer);
  color: var(--ink-secondary);
  border-top: 2px solid var(--ink);
  padding: 36px 0 34px;
  font-size: 0.82rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 18px;
}

.footer-brand {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-body);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-legal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  line-height: 1.8;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.footer-legal-grid strong {
  color: var(--ink);
  font-weight: 700;
  margin-right: 4px;
}

.footer-bottom {
  font-size: 0.76rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .masthead-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .top-fold-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fold-col-left,
  .fold-col-center,
  .fold-col-right {
    padding: 0;
    border-right: none;
  }

  .fold-col-center {
    order: -1;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-light);
  }

  .secondary-layout,
  .article-layout,
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .editorial-grid-3,
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-card,
  .package-card {
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid var(--line-light);
  }

  .editorial-grid-3 {
    gap: 0 24px;
  }
}

@media (max-width: 640px) {
  .header-utility-row {
    display: none;
  }

  .nav-list {
    gap: 16px;
  }

  .editorial-grid-3,
  .package-grid,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .lead-headline {
    font-size: 1.38rem;
    text-align: left;
  }

  .lead-deck {
    text-align: left;
    max-width: 100%;
  }

  .lead-meta-center {
    justify-content: flex-start;
  }

  .article-detail-title {
    font-size: 1.5rem;
  }

  .search-input {
    min-width: 100%;
  }
}
