:root {
  --cl-bg: #ffffff;
  --cl-text: #0f172a;
  --cl-muted: #64748b;
  --cl-line: #e2e8f0;
  --cl-brand1: #0ea5e9;
  --cl-brand2: #10b981;
  --cl-navy: #0c1f62;
  --cl-blue: #1b49b1;
  --cl-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cl-article-page { background: #f7f7f8; }

.cl-article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  font-family: var(--cl-font);
  font-size: 18px;
  line-height: 1.7;
  color: var(--cl-text);
}

.cl-hero {
  position: relative;
  padding: 28px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}

.cl-hero-banner {
  display: block;
  max-width: 1100px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .12);
}

.cl-article-wrap h1,
.cl-article-wrap h2,
.cl-article-wrap h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 24px 0 12px;
  color: var(--cl-navy);
}
.cl-article-wrap h1 { font-size: clamp(30px, 4vw, 40px); margin-top: 15px; }
.cl-article-wrap h2 { font-size: 28px; margin-top: 30px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }

.cl-article-wrap a { color: inherit; }

.cl-article-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.cl-toc {
  background-color: #f8fafc;
  border: 1px solid var(--cl-line);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0 32px 0;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.cl-toc > div:first-child {
  font-family: var(--cl-font);
  font-weight: 700;
  font-size: 13px;
  color: var(--cl-navy);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cl-toc > div:last-child {
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cl-toc a {
  position: relative;
  color: var(--cl-blue);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 4px 0 4px 20px;
  transition: all 0.2s ease;
  line-height: 1.4;
  border-bottom: none !important;
}

.cl-toc a::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--cl-brand1);
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

.cl-toc a:hover {
  color: var(--cl-brand1);
  transform: translateX(4px);
}

.cl-toc a:hover::before {
  transform: translateX(2px);
}

.cl-warning {
  display: flex;
  gap: 15px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  padding: 15px;
  border-radius: 12px;
  margin: 20px 0;
  align-items: flex-start;
}
.cl-warning img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.cl-text {
  padding: 12px 16px;
  background: #fff;
}
.cl-text.cl-leadbox {
  border-radius: 14px 14px 0 0;
  background: #f8fafc;
  font-weight: 700;
}

.cl-table-wrap { width: 100%; overflow-x: auto; }

.cl-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  margin: 18px 0 26px;
}
.cl-table thead th {
  background: var(--cl-navy);
  color: #fff;
  padding: 14px 12px;
  text-align: left;
}
.cl-table td {
  border: 1px solid #d1d5db;
  padding: 16px 12px;
  vertical-align: top;
}

@media (max-width: 720px) {
  .cl-table thead {
    display: none;
  }
  .cl-table, .cl-table tbody, .cl-table tr, .cl-table td {
    display: block;
    width: 100%;
  }
  .cl-table tr {
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }
  .cl-table td:first-child {
    background-color: var(--cl-navy);
    color: #fff;
    padding: 16px;
    text-align: center;
    border-bottom: none;
  }
  .cl-table td:first-child a {
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: var(--cl-brand1);
  }
  .cl-table td:first-child::before {
    display: none;
  }
  .cl-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    text-align: right;
  }
  .cl-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--cl-navy);
    font-size: 0.95rem;
    text-align: left;
    flex-shrink: 0;
  }
  .cl-table td:last-child {
    border-bottom: none;
  }
}

.cl-top-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  margin: 18px 0 26px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}
.cl-top-table td {
  padding: 16px 20px;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.5;
}
.cl-top-table td:first-child {
  width: 35%;
  background-color: #f8fafc;
  font-weight: 500;
  border-right: 1px solid #e2e8f0;
  color: var(--cl-navy);
}
.cl-top-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 720px) {
  .cl-top-table, .cl-top-table tbody, .cl-top-table tr, .cl-top-table td {
    display: block;
    width: 100%;
  }
  .cl-top-table {
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .cl-top-table tr {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  }
  .cl-top-table td {
    border-right: none;
    padding: 14px 18px;
  }
  .cl-top-table td:first-child {
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    font-weight: 700;
  }
}

.cl-button, a.cl-button {
  display: inline-flex;
  padding: 14px 28px;
  margin: 8px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cl-brand1), var(--cl-brand2));
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
  transition: transform 0.2s;
  text-decoration: none;
}
.cl-button:hover { transform: translateY(-2px); }

.cl-video-container iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  display: block;
}

.cl-ad {
  padding: 12px 0;
}

hr.cl-rounded {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 24px 0;
}

.cl-back-to-overview {
  padding: 8px 16px;
  margin-bottom: 4px;
}
.cl-back-to-overview a {
  font-size: 14px;
  font-weight: 500;
  color: var(--cl-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.cl-back-to-overview a:hover {
  color: var(--cl-brand1);
}

.cl-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  cursor: pointer;
  background: #333;
  border: none;
  padding: 10px;
  border-radius: 8px;
  z-index: 1000;
  line-height: 0;
}
.cl-back-to-top svg {
  stroke: #fff;
  width: 20px;
  height: 20px;
}
.cl-back-to-top.show { display: block; }
