/* ===== NEWS DETAIL PAGE ===== */
.news-detail-page {
  background: var(--bg-white);
}

.news-detail-page .navbar-nav .nav-current {
  color: var(--text);
  font-weight: 500;
}

/* ===== BREADCRUMB ===== */
.article-breadcrumb {
  margin-top: 88px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.article-breadcrumb .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
  color: var(--accent);
}

.article-breadcrumb .sep {
  color: var(--text-muted);
  opacity: 0.55;
}

.article-breadcrumb .current {
  color: var(--text);
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== LAYOUT ===== */
.article-layout {
  padding: 56px 0 88px;
}

.article-layout .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 56px;
  align-items: start;
}

/* ===== ARTICLE HEAD ===== */
.article-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.article-kicker .article-tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.article-kicker .article-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.4vw, 2.75rem);
  line-height: 1.08;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  text-wrap: pretty;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 15px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 34px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.article-share button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.16s var(--ease);
}

.article-share button:active {
  transform: scale(0.94);
}

.article-share button svg {
  width: 14px;
  height: 14px;
}

.article-share button:hover {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}

/* ===== FIGURES ===== */
.article-figure {
  margin: 0 0 34px;
}

.article-figure .article-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--bg);
  display: block;
}

.article-figure figcaption {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.article-figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.article-figure-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.article-figure-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--bg);
  display: block;
}

/* ===== BODY TEXT ===== */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--text-light);
}

.article-body > * + * {
  margin-top: 24px;
}

.article-body p {
  color: var(--text-light);
}

.article-body .lead {
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: -0.018em;
  font-weight: 400;
  color: var(--text);
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.026em;
  padding-left: 0;
  border-left: none;
  margin-top: 44px;
}

.article-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-body ul li {
  position: relative;
  padding-left: 20px;
  line-height: 1.85;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.article-quote {
  margin: 0;
  padding: 28px 32px;
  background: var(--bg);
  border-left: none;
  border-radius: var(--radius-lg);
}

.article-quote p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.45;
  letter-spacing: -0.022em;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 12px;
}

.article-quote footer {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== SPEC TABLE ===== */
.article-table-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-white);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.article-table thead th {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 14px 20px;
  font-size: 0.875rem;
}

.article-table tbody td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

.article-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table tbody td:first-child {
  color: var(--text-light);
}

.article-table tbody td.highlight {
  font-weight: 600;
  color: var(--accent);
}

/* ===== TAGS ===== */
.article-tags {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.article-tags .label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.article-tags span.chip {
  font-size: 0.8125rem;
  color: var(--text-light);
  background: var(--fill);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
}

/* ===== PREV / NEXT ===== */
.article-nav {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.article-nav a,
.article-nav .placeholder {
  display: block;
  background: var(--bg);
  border: none;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.article-nav a:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-nav .direction {
  font-size: 0.8125rem;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.article-nav .headline {
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
  font-weight: 500;
}

.article-nav .next {
  text-align: right;
}

.article-nav .placeholder {
  opacity: 0.55;
}

/* ===== SIDEBAR ===== */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 120px;
}

.sidebar-card {
  background: var(--bg);
  border: none;
  border-radius: var(--radius-xl);
  padding: 24px;
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.sidebar-related {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-related a {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 13px;
  align-items: start;
}

.sidebar-related img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-white);
}

.sidebar-related .title {
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--text);
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.sidebar-related a:hover .title {
  color: var(--accent);
}

.sidebar-related .date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-cta {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  color: #fff;
}

.sidebar-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 8px;
  color: #fff;
}

.sidebar-cta p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 18px;
}

.sidebar-cta .cta-btn {
  display: block;
  min-height: 44px;
  background: #fff;
  color: var(--bg-dark);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 12px 0;
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), transform 0.16s var(--ease);
}

.sidebar-cta .cta-btn:hover {
  background: #e8e8ed;
  color: var(--bg-dark);
}

.sidebar-cta .cta-btn:active {
  transform: scale(0.975);
}

.sidebar-cta .cta-phone {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s var(--ease);
}

.sidebar-links a:last-child {
  border-bottom: none;
}

.sidebar-links a svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), color 0.2s var(--ease);
}

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

.sidebar-links a:hover svg {
  color: var(--accent);
  transform: translateX(3px);
}

.sidebar-inquiry {
  background: var(--bg);
  border: none;
  border-radius: var(--radius-xl);
  padding: 24px;
}

.sidebar-inquiry .label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.sidebar-inquiry input {
  width: 100%;
  min-height: 44px;
  background: var(--bg-white);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--text);
  margin-bottom: 10px;
}

.sidebar-inquiry input:focus {
  outline: none;
  border-color: rgba(0, 113, 227, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

.sidebar-inquiry button {
  width: 100%;
  min-height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 0;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.16s var(--ease);
}

.sidebar-inquiry button:hover {
  background: var(--accent-hover);
}

.sidebar-inquiry button:active {
  transform: scale(0.985);
}

/* ===== SHARE TOAST ===== */
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 12px);
  background: rgba(29, 29, 31, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #fff;
  font-size: 0.875rem;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1200;
}

.share-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== PRINT ===== */
@media print {
  .navbar,
  .article-breadcrumb,
  .article-sidebar,
  .article-share,
  .article-nav,
  .footer,
  .back-to-top,
  .share-toast {
    display: none !important;
  }

  .news-detail-page {
    background: #fff;
  }

  .article-layout {
    padding: 0;
  }

  .article-layout .container {
    display: block;
    max-width: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .article-layout .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .article-sidebar {
    position: static;
  }

  .sidebar-related {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .article-breadcrumb {
    margin-top: 72px;
  }

  .article-breadcrumb .container {
    font-size: 0.75rem;
    gap: 6px;
  }

  .article-layout {
    padding: 32px 0 64px;
  }

  .article-title {
    font-size: clamp(1.75rem, 7.5vw, 2.125rem);
    line-height: 1.12;
  }

  .article-meta {
    gap: 14px;
    font-size: 0.75rem;
  }

  .article-share {
    margin-left: 0;
    width: 100%;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.6;
  }

  .article-body h2 {
    font-size: 1.3125rem;
    margin-top: 36px;
  }

  .article-figure-grid {
    grid-template-columns: 1fr;
  }

  .article-quote {
    padding: 22px 20px;
  }

  .article-quote p {
    font-size: 1.125rem;
  }

  .article-table-wrap {
    overflow-x: auto;
  }

  .article-table {
    min-width: 520px;
  }

  .article-nav,
  .sidebar-related {
    grid-template-columns: 1fr;
  }

  .article-nav .next {
    text-align: left;
  }
}
