/* Rail24 News pages — full-width, content-first SEO layout.
   Coexists with the SPA shell — when .rail24-news-page is set on <html>,
   we hide the SPA nav + main so news content owns the viewport. */

html.rail24-news-page .nav-shell,
html.rail24-news-page #main-content {
  display: none !important;
}

.news-page {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(16, 185, 129, 0.14), transparent 60%),
    radial-gradient(1000px 500px at 90% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--bg-dark, #0f172a);
  color: var(--text-primary, #f1f5f9);
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, sans-serif);
}

.news-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(12, 18, 34, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.news-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.news-header__brand i {
  color: var(--primary-color, #10b981);
  font-size: 22px;
}
.news-header__brand-sub {
  color: var(--text-secondary, #cbd5e1);
  font-weight: 600;
  font-size: 16px;
}
.news-header__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.news-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #f1f5f9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.news-pill:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
}
.news-pill--home {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.45);
}
.news-pill--app {
  margin-left: auto;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  border-color: transparent;
  color: #fff;
}

.news-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}
.news-main--article {
  max-width: 900px;
}

.news-hero {
  padding: 32px 28px;
  margin-bottom: 36px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.news-hero__kicker {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.news-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.news-hero p {
  font-size: 16px;
  color: var(--text-secondary, #cbd5e1);
  margin: 0;
  max-width: 720px;
}
.news-hero__cats {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.news-hero__cat-link {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #f1f5f9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.news-hero__cat-link:hover {
  background: rgba(16, 185, 129, 0.25);
}

.news-section {
  margin: 40px 0;
}
.news-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}
.news-section__head h2 {
  font-size: 22px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
}
.news-section__chip {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-section__more {
  color: var(--primary-color, #10b981);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.news-section__more:hover {
  text-decoration: underline;
}
.news-section__empty,
.news-empty {
  color: var(--text-secondary, #cbd5e1);
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.news-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(30, 41, 59, 0.95);
}
.news-card__link {
  display: block;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.news-card__source {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color, #10b981);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.news-card__title {
  font-size: 17px;
  line-height: 1.35;
  margin: 8px 0 10px;
  color: var(--text-primary, #f1f5f9);
  font-weight: 700;
}
.news-card__excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary, #cbd5e1);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__cta {
  font-size: 13px;
  color: var(--primary-light, #34d399);
  font-weight: 600;
}

/* Article page */
.news-crumbs {
  font-size: 13px;
  color: var(--text-secondary, #cbd5e1);
  margin-bottom: 18px;
}
.news-crumbs a {
  color: inherit;
  text-decoration: none;
}
.news-crumbs a:hover {
  color: var(--primary-color, #10b981);
}

.news-article {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 28px;
}
.news-article__head {
  margin-bottom: 24px;
}
.news-article__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.news-article h1 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.news-article__meta {
  font-size: 14px;
  color: var(--text-secondary, #cbd5e1);
  margin: 0;
}
.news-article__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary, #f1f5f9);
}
.news-article__lead {
  font-size: 18px;
  color: var(--text-primary, #f1f5f9);
  margin: 0 0 18px;
}
.news-article__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 8px;
}
.news-article__cta:hover {
  background: linear-gradient(135deg, #059669, #047857);
}
.news-article__tools {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.news-article__tools h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.news-article__tools ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.news-article__tools li a {
  display: block;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  color: var(--primary-light, #34d399);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}
.news-article__tools li a:hover {
  background: rgba(16, 185, 129, 0.2);
}

.news-related {
  margin-top: 40px;
}
.news-related h2 {
  font-size: 20px;
  margin: 0 0 16px;
}

.news-article__faq {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.news-article__faq h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
.news-article__faq p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary, #cbd5e1);
  margin: 0 0 14px;
}
.news-article__faq strong {
  color: var(--text-primary, #f1f5f9);
}
.news-article__tools li strong {
  color: var(--text-primary, #f1f5f9);
}

/* ----------------------------- station search ----------------------------- */
.station-search {
  position: relative;
  max-width: 560px;
  margin: 22px auto 0;
}
.station-search__field {
  position: relative;
  display: flex;
  align-items: center;
}
.station-search__icon {
  position: absolute;
  left: 16px;
  color: var(--text-secondary, #94a3b8);
  font-size: 15px;
  pointer-events: none;
}
.station-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 44px 14px 42px;
  font-size: 15px;
  color: var(--text-primary, #f1f5f9);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.station-search__input::placeholder {
  color: var(--text-secondary, #94a3b8);
}
.station-search__input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.station-search__clear {
  position: absolute;
  right: 12px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-primary, #f1f5f9);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.station-search__clear:hover {
  background: rgba(148, 163, 184, 0.32);
}
.station-search__results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  text-align: left;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  max-height: 360px;
  overflow-y: auto;
}
.station-search__option {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-areas: 'code name' 'code meta';
  column-gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.station-search__option:hover,
.station-search__option.is-active {
  background: rgba(245, 158, 11, 0.14);
}
.station-search__code {
  grid-area: code;
  align-self: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 5px 4px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 7px;
}
.station-search__name {
  grid-area: name;
  font-size: 15px;
  color: var(--text-primary, #f1f5f9);
}
.station-search__name mark {
  background: transparent;
  color: #fbbf24;
  font-weight: 700;
}
.station-search__meta {
  grid-area: meta;
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
}
.station-search__empty {
  padding: 14px 12px;
  font-size: 14px;
  color: var(--text-secondary, #94a3b8);
}
@media (max-width: 480px) {
  .station-search__option {
    grid-template-columns: 54px 1fr;
  }
}

@media (max-width: 640px) {
  .news-header__pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .news-pill--app {
    margin-left: 0;
  }
  .news-hero,
  .news-article {
    padding: 22px 18px;
  }
}
