:root {
  --bg-paper: #f7f6f2;
  --surface: #ffffff;
  --surface-tint: #f1efe9;
  --ink-primary: #141413;
  --ink-secondary: #3f3f46;
  --ink-muted: #6b6b66;
  --border-hair: #e2e0d8;
  --border-strong: #141413;
  --accent: #c8102e;
  --accent-soft: #fdf2f4;
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-paper);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Editorial Top Rule & Masthead */
.top-accent-bar {
  height: 3px;
  background: var(--accent);
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hair);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.brand-wordmark {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  white-space: nowrap;
}

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

.brand-domain {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-hair);
  border-radius: 4px;
  padding: 6px 8px;
  color: var(--ink-primary);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border-hair);
  padding: 12px 20px 18px;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer a {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid var(--surface-tint);
}

/* Main Editorial Container */
.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.edition-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ink-primary);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.edition-kicker {
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Asymmetric Magazine Lead Grid */
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 32px;
  align-items: stretch;
}

.lead-feature {
  background: var(--surface);
  border: 1px solid var(--border-hair);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  max-width: 100%;
}

.story-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.kicker-label {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.story-date {
  color: var(--ink-muted);
}

.story-metric {
  color: var(--ink-secondary);
  background: var(--surface-tint);
  padding: 2px 8px;
  font-weight: 600;
  font-size: 0.78rem;
}

.lead-headline {
  margin: 0 0 12px;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  word-break: keep-all;
}

.lead-headline a:hover {
  color: var(--accent);
}

.lead-deck {
  margin: 0 0 20px;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--ink-secondary);
  word-break: keep-all;
}

.editorial-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 18px;
  -webkit-overflow-scrolling: touch;
}

.editorial-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--surface);
}

.editorial-table-wrap th {
  text-align: left;
  padding: 9px 10px;
  border-top: 2px solid var(--ink-primary);
  border-bottom: 1px solid var(--ink-primary);
  font-weight: 700;
  color: var(--ink-primary);
  background: var(--surface-tint);
  white-space: nowrap;
}

.editorial-table-wrap td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-hair);
  color: var(--ink-secondary);
  vertical-align: top;
}

.lead-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-hair);
  font-size: 0.85rem;
}

.byline-inline {
  color: var(--ink-muted);
  font-weight: 500;
}

.byline-inline strong {
  color: var(--ink-primary);
}

.read-more-link {
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more-link:hover {
  text-decoration: underline;
}

/* Sidebar Desk Brief */
.desk-sidebar {
  background: var(--surface);
  border: 1px solid var(--border-hair);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.sidebar-heading {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-heading span {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-hair);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.fact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-list strong {
  display: block;
  color: var(--ink-primary);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.portal-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.portal-link-btn {
  display: block;
  padding: 8px 10px;
  background: var(--bg-paper);
  border: 1px solid var(--border-hair);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-align: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.portal-link-btn:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

/* Filter & Search Bar */
.section-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 28px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hair);
}

.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 6px 2px 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover {
  color: var(--ink-primary);
}

.tab-btn.active {
  color: var(--ink-primary);
  font-weight: 800;
  border-bottom-color: var(--accent);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.search-field {
  position: relative;
}

.search-input {
  width: 240px;
  max-width: 100%;
  padding: 7px 12px 7px 32px;
  font-family: inherit;
  font-size: 0.86rem;
  background: var(--surface);
  border: 1px solid var(--border-hair);
  color: var(--ink-primary);
  outline: none;
}

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

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  display: flex;
  pointer-events: none;
}

.story-count {
  font-size: 0.82rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Story Archive Grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.story-card {
  background: var(--surface);
  border: 1px solid var(--border-hair);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease;
}

.story-card:hover {
  border-color: var(--ink-primary);
}

.story-card-title {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.story-card-title a:hover {
  color: var(--accent);
}

.story-card-excerpt {
  margin: 0 0 16px;
  font-size: 0.91rem;
  line-height: 1.58;
  color: var(--ink-secondary);
  word-break: keep-all;
}

.story-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-tint);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* Ads & Insurance Banner Containers */
.ad-slot-wrap {
  margin: 26px 0;
  width: 100%;
}

.ad-slot {
  background: var(--surface);
  border: 1px solid var(--border-hair);
  padding: 12px 14px;
  min-height: 96px;
  text-align: center;
}

.ad-slot-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 6px;
  text-align: left;
}

.promo-banner-wrap {
  margin: 24px 0;
  width: 100%;
}

.promo-banner-link {
  display: block;
  width: 100%;
  border: 1px solid var(--border-hair);
  background: var(--surface);
  overflow: hidden;
}

.promo-banner-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Article Detail View */
.article-shell {
  max-width: 780px;
  margin: 28px auto 56px;
  padding: 0 20px;
}

.article-paper {
  background: var(--surface);
  border: 1px solid var(--border-hair);
  padding: 36px 40px;
}

.article-breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-headline {
  margin: 0 0 14px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.article-standfirst {
  margin: 0 0 20px;
  font-size: 1.07rem;
  line-height: 1.62;
  color: var(--ink-secondary);
  word-break: keep-all;
}

.byline-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  margin-bottom: 26px;
  border-top: 1px solid var(--border-hair);
  border-bottom: 1px solid var(--border-hair);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-monogram {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink-primary);
  color: var(--surface);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  color: var(--ink-primary);
  font-weight: 700;
}

.article-prose {
  font-size: 1.03rem;
  line-height: 1.78;
  color: var(--ink-primary);
  word-break: keep-all;
}

.article-prose p {
  margin: 0 0 16px;
}

.article-prose h2 {
  margin: 34px 0 12px;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  padding-top: 6px;
}

.editorial-quote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-paper);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-primary);
}

.takeaways-panel {
  margin: 24px 0;
  padding: 20px 22px;
  background: var(--bg-paper);
  border: 1px solid var(--border-hair);
}

.takeaways-panel h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 800;
}

.takeaways-panel ul {
  margin: 0;
  padding-left: 20px;
}

.takeaways-panel li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.takeaways-panel li:last-child {
  margin-bottom: 0;
}

.faq-block {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border-hair);
}

.faq-block h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 800;
}

.faq-entry {
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-tint);
}

.faq-q {
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.faq-a {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.source-footnote {
  margin-top: 24px;
  padding: 12px 14px;
  background: var(--surface-tint);
  font-size: 0.83rem;
  color: var(--ink-muted);
}

.related-strip {
  margin-top: 28px;
}

.related-strip h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.related-item {
  background: var(--surface);
  border: 1px solid var(--border-hair);
  padding: 14px 16px;
}

.related-item:hover {
  border-color: var(--ink-primary);
}

.related-item-date {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.related-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-hair);
  background: var(--surface);
  padding: 28px 20px 36px;
  font-size: 0.83rem;
  color: var(--ink-muted);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

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

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

/* Mobile Responsive */
@media (max-width: 900px) {
  .lead-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 18px 14px 44px;
  }
  .header-inner {
    padding: 0 14px;
  }
  .brand-domain {
    display: none;
  }
  .lead-feature {
    padding: 20px 18px;
  }
  .lead-headline {
    font-size: 1.42rem;
  }
  .stories-grid,
  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .search-input {
    width: 100%;
  }
  .search-field {
    flex: 1;
  }
  .article-shell {
    padding: 0 12px;
    margin: 18px auto 40px;
  }
  .article-paper {
    padding: 22px 18px;
  }
  .article-headline {
    font-size: 1.48rem;
  }
}
