:root {
  --csn-red: #e30613;
  --csn-red-dark: #b90914;
  --csn-ink: #20242b;
  --csn-muted: #69717d;
  --csn-line: #dfe3e8;
  --csn-surface: #ffffff;
  --csn-soft: #f5f6f7;
}

.csn-news-page .entry-header,
.csn-news-page .entry-title {
  display: none;
}

.csn-news-page #content,
.csn-news-page #content > .ast-container,
.csn-news-page #content .content-area,
.csn-news-page #content .site-main,
.csn-news-page #content article.page,
.csn-news-page #content article.page > .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.csn-news {
  color: var(--csn-ink);
  background: var(--csn-soft);
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  padding: clamp(44px, 7vw, 86px) max(24px, calc((100% - 1180px) / 2));
}

.csn-news__header {
  max-width: 780px;
  margin-bottom: clamp(34px, 5vw, 54px);
}

.csn-news__header h1 {
  margin: 0;
  color: var(--csn-ink);
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.csn-news__grid {
  display: grid;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.csn-card {
  position: relative;
  display: flex;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--csn-line);
  border-radius: 14px;
  background: var(--csn-surface);
  box-shadow: 0 12px 34px rgba(20, 27, 36, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.csn-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--csn-red);
  content: "";
}

.csn-card:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 6, 19, 0.3);
  box-shadow: 0 18px 46px rgba(20, 27, 36, 0.1);
}

.csn-card--featured {
  grid-column: 1 / -1;
  min-height: 360px;
  background:
    linear-gradient(105deg, rgba(24, 27, 32, 0.98), rgba(41, 45, 52, 0.94)),
    var(--csn-ink);
  border-color: transparent;
}

.csn-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
}

.csn-card time {
  margin-bottom: 24px;
  color: var(--csn-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.csn-card h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.csn-card h2 a {
  color: var(--csn-ink);
  text-decoration: none;
}

.csn-card p {
  margin: 0 0 28px;
  color: var(--csn-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.csn-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  color: var(--csn-red);
  font-weight: 800;
  text-decoration: none;
}

.csn-card__link span {
  transition: transform 180ms ease;
}

.csn-card__link:hover span {
  transform: translateX(4px);
}

.csn-card--featured time,
.csn-card--featured p {
  color: #b9c0ca;
}

.csn-card--featured h2,
.csn-card--featured h2 a {
  max-width: 900px;
  color: #ffffff;
}

.csn-card--featured h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.csn-card--featured .csn-card__link {
  color: #ffffff;
  border-bottom: 2px solid var(--csn-red);
}

.csn-notice {
  position: relative;
  z-index: 90;
  background: #191c21;
  color: #ffffff;
}

.csn-notice[hidden] {
  display: none;
}

.csn-notice__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 42px));
  min-height: 48px;
  margin: 0 auto;
  padding: 9px 40px 9px 0;
}

.csn-notice p {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.csn-notice nav {
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
}

.csn-notice a {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--csn-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.csn-notice__close {
  position: absolute;
  top: 50%;
  right: max(16px, calc((100vw - 1180px) / 2));
  width: 30px;
  height: 30px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.csn-news-article .entry-content {
  font-size: 1.04rem;
  line-height: 1.75;
}

.csn-news-article .entry-content h2 {
  margin-top: 2em;
  color: var(--csn-ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.csn-article-lead {
  margin: 0 0 34px;
  padding: 24px 28px;
  border-left: 4px solid var(--csn-red);
  background: var(--csn-soft);
  color: var(--csn-ink);
  font-size: 1.12rem;
  font-weight: 650;
}

.csn-article-lead p:last-child {
  margin-bottom: 0;
}

.csn-table-wrap {
  margin: 28px 0 38px;
  overflow-x: auto;
  border: 1px solid var(--csn-line);
  border-radius: 12px;
}

.csn-rate-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: var(--csn-surface);
}

.csn-rate-table th,
.csn-rate-table td {
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid var(--csn-line);
  text-align: left;
}

.csn-rate-table th {
  background: var(--csn-ink);
  color: #ffffff;
  font-size: 0.9rem;
}

.csn-rate-table tr:last-child td {
  border-bottom: 0;
}

.csn-rate-table__base td {
  background: rgba(227, 6, 19, 0.07);
  font-weight: 800;
}

@media (max-width: 760px) {
  .csn-news__grid {
    grid-template-columns: 1fr;
  }

  .csn-card--featured {
    grid-column: auto;
  }

  .csn-card,
  .csn-card--featured {
    min-height: 0;
  }

  .csn-notice__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 12px 38px 12px 0;
  }

  .csn-notice nav {
    gap: 16px;
  }
}

body.wp-dark-mode-active .csn-news,
.wp-dark-mode-active .csn-news,
html.wp-dark-mode-active .csn-news {
  --csn-ink: #f2f4f7;
  --csn-muted: #afb6c0;
  --csn-line: #3b4048;
  --csn-surface: #282c31;
  --csn-soft: #202328;
}

body.wp-dark-mode-active .csn-article-lead,
.wp-dark-mode-active .csn-article-lead,
html.wp-dark-mode-active .csn-article-lead,
body.wp-dark-mode-active .csn-rate-table,
.wp-dark-mode-active .csn-rate-table,
html.wp-dark-mode-active .csn-rate-table {
  --csn-ink: #f2f4f7;
  --csn-muted: #afb6c0;
  --csn-line: #3b4048;
  --csn-surface: #282c31;
  --csn-soft: #202328;
}
