/**
 * Toket News — article chrome + hub shell (Toket Design System)
 * Prose: assets/news-article-prose.css
 * /news/ index list: news-lite.html + lite-theme.css (.news-lite-doc)
 */

html.cost-news-page {
  scroll-behavior: smooth;
}

/* —— Page shell (match homepage / pricing) —— */
html.page-toket-news.site-unified-chrome,
html.page-toket-news.site-unified-chrome body.page-toket-news {
  font-family: var(--toket-font-sans, var(--dt-font-sans, system-ui, sans-serif));
  min-height: 100vh;
  background-attachment: fixed;
}

html.page-toket-news.site-unified-chrome[data-theme="light"],
html.page-toket-news.site-unified-chrome[data-theme="light"] body.page-toket-news {
  background: linear-gradient(180deg, #f8fafc 0%, #f6f8fc 52%, #f0f4fa 100%);
  color-scheme: light;
}

html.page-toket-news.site-unified-chrome:is([data-theme="dark"], .dark),
html.page-toket-news.site-unified-chrome:is([data-theme="dark"], .dark) body.page-toket-news {
  background:
    radial-gradient(circle at 50% 0%, rgba(99, 91, 255, 0.2), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(124, 108, 255, 0.07), transparent 36%),
    #0b1020;
  color-scheme: dark;
}

html.page-toket-news .toket-bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(
    --toket-bg-glow,
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.12), transparent 55%)
  );
}

html.page-toket-news:is([data-theme="dark"], .dark) .toket-bg-glow {
  background:
    radial-gradient(circle at 50% -4%, rgba(99, 91, 255, 0.14), transparent 36%),
    radial-gradient(circle at 92% 88%, rgba(124, 108, 255, 0.05), transparent 32%);
}

html.page-toket-news.site-unified-chrome body > header {
  position: relative;
  z-index: 10;
  background: color-mix(in srgb, var(--toket-card-bg, var(--card-bg)) 78%, transparent);
  backdrop-filter: blur(var(--toket-blur-overlay, 12px));
  -webkit-backdrop-filter: blur(var(--toket-blur-overlay, 12px));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}

html.page-toket-news .home-header-cta {
  background: var(--toket-gradient-primary) !important;
  box-shadow: var(--toket-btn-primary-shadow);
}

html.page-toket-news .home-header-cta:hover {
  background: var(--toket-gradient-primary-hover) !important;
  box-shadow: var(--toket-btn-primary-shadow-hover);
  transform: translateY(var(--toket-translate-hover-secondary, -1px));
}

@media (max-width: 960px) {
  html.page-toket-news .home-header-signin,
  html.page-toket-news .home-header-cta {
    height: 34px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  html.page-toket-news .home-account__email {
    display: none;
  }

  html.page-toket-news .nav-end {
    gap: 4px 6px;
    max-width: min(100%, calc(100vw - 120px));
  }
}

html[lang="en"].cost-news-page .guide-article {
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* —— Article view —— */
.cost-news-page .guide-article-wrap {
  display: none;
  position: relative;
  z-index: 1;
  max-width: var(--dt-layout-read-max, 760px);
  margin: 0 auto;
  padding: 36px clamp(18px, 4vw, 32px) 72px;
}

.cost-news-page .guide-article-wrap.active {
  display: block;
}

.cost-news-page #hubView.hidden {
  display: none;
}

.cost-news-page .article-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cost-news-page .article-read-progress.is-active {
  opacity: 1;
}

.cost-news-page .article-read-progress__bar {
  height: 100%;
  width: 0%;
  background: color-mix(in srgb, var(--toket-brand) 55%, var(--line));
  transition: width 0.06s linear;
}

.cost-news-page .article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-sub);
}

.cost-news-page .article-back a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color var(--toket-transition-ui, 0.2s ease);
}

.cost-news-page .article-back a:hover {
  color: var(--toket-brand-2, var(--primary-2));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cost-news-page .guide-article h1,
.cost-news-page .article-page-title {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.22;
  margin: 0 0 14px;
  color: var(--text-main);
}

.cost-news-page .article-meta--lite,
.cost-news-page .article-meta {
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0.01em;
  color: var(--text-sub);
  margin: 0 0 28px;
  line-height: 1.5;
}

.cost-news-page .article-meta-sep {
  opacity: 0.55;
}

.cost-news-page .article-meta-time {
  color: var(--text-sub);
}

.cost-news-page .article-meta-topic {
  color: color-mix(in srgb, var(--toket-brand) 35%, var(--text-sub));
}

.cost-news-page .article-meta-read {
  color: var(--text-sub);
}

/* —— Related / pager / CTA —— */
.cost-news-page .article-related {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}

.cost-news-page .article-related h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--text-sub);
}

.cost-news-page .article-related-list {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.55;
}

.cost-news-page .article-related-list li {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: var(--toket-radius-panel, 12px);
  background: color-mix(in srgb, var(--toket-card-bg, var(--card-bg)) 55%, transparent);
  transition:
    border-color var(--toket-transition-ui, 0.2s ease),
    background var(--toket-transition-ui, 0.2s ease),
    transform var(--toket-transition-ui, 0.2s ease);
}

.cost-news-page .article-related-list li:hover {
  border-color: color-mix(in srgb, var(--toket-brand) 28%, var(--line));
  background: color-mix(in srgb, var(--toket-card-bg, var(--card-bg)) 72%, var(--toket-brand) 4%);
  transform: translateY(-1px);
}

.cost-news-page .article-related-list li:last-child {
  margin-bottom: 0;
}

.cost-news-page .article-related-list a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.cost-news-page .article-related-list a:hover {
  color: var(--toket-brand-2, var(--primary-2));
}

.cost-news-page .article-pager {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cost-news-page .article-pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 220px;
  padding: 14px 16px;
  border-radius: var(--toket-radius-panel, 14px);
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  background: color-mix(in srgb, var(--toket-card-bg, var(--card-bg)) 58%, transparent);
  text-decoration: none;
  color: inherit;
  min-height: 72px;
  transition:
    border-color var(--toket-transition-ui, 0.2s ease),
    background var(--toket-transition-ui, 0.2s ease),
    transform var(--toket-transition-ui, 0.2s ease);
}

.cost-news-page .article-pager-link:hover {
  border-color: color-mix(in srgb, var(--toket-brand) 26%, var(--line));
  background: color-mix(in srgb, var(--toket-card-bg, var(--card-bg)) 72%, var(--toket-brand) 4%);
  transform: translateY(-1px);
}

.cost-news-page .article-pager-link--next {
  text-align: right;
}

.cost-news-page .article-pager-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.cost-news-page .article-pager-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
}

.cost-news-page .article-cta-band {
  display: none;
  margin-top: 36px;
  padding: 22px 0 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  background: transparent;
  box-shadow: none;
}

.cost-news-page .article-cta-kicker {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.cost-news-page .article-cta-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 56ch;
}

.cost-news-page .article-cta-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.cost-news-page .article-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: var(--toket-radius-control, 14px);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
}

.cost-news-page .article-cta-btn--primary {
  color: #fff;
  background: var(--toket-gradient-primary);
  border: none;
  box-shadow: var(--toket-btn-primary-shadow);
}

.cost-news-page .article-cta-btn--primary:hover {
  background: var(--toket-gradient-primary-hover);
  box-shadow: var(--toket-btn-primary-shadow-hover);
  transform: translateY(var(--toket-translate-hover-secondary, -1px));
}

.cost-news-page .article-cta-textlink {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cost-news-page .article-cta-textlink:hover {
  color: var(--toket-brand-2, var(--primary-2));
}

html.cost-news-page.sy-news-article-mode body {
  background: inherit;
}

.cost-news-page .back-to-top {
  position: fixed;
  right: 16px;
  bottom: 96px;
  width: 38px;
  height: 38px;
  border-radius: var(--toket-radius-panel, 12px);
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  background: color-mix(in srgb, var(--toket-card-bg, var(--card-bg)) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-sub);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  box-shadow: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.cost-news-page .back-to-top.visible {
  opacity: 0.85;
  pointer-events: auto;
  transform: translateY(0);
}

.cost-news-page .back-to-top.visible:hover {
  opacity: 1;
  border-color: color-mix(in srgb, var(--toket-brand) 30%, var(--line));
  background: color-mix(in srgb, var(--toket-card-bg, var(--card-bg)) 90%, var(--toket-brand) 6%);
}

@media (max-width: 560px) {
  .cost-news-page .article-pager-link--next {
    text-align: left;
  }
}

html.cost-news-page[data-theme="light"] .guide-article h1,
html.cost-news-page[data-theme="light"] .article-page-title {
  color: #0f172a;
}

html.cost-news-page[data-theme="light"] .article-meta,
html.cost-news-page[data-theme="light"] .article-meta--lite {
  color: #64748b;
}

html.cost-news-page[data-theme="light"] .article-pager-link {
  background: color-mix(in srgb, #fff 92%, transparent);
  border-color: #e2e8f0;
}

html.cost-news-page[data-theme="light"] .article-related-list li {
  background: color-mix(in srgb, #fff 88%, transparent);
  border-color: #e2e8f0;
}

html.cost-news-page[data-theme="light"] .article-cta-btn--primary {
  color: #fff;
}

html.cost-news-page[data-theme="light"] .article-back a:hover {
  color: var(--toket-brand, #635bff);
}
