/* ── News Page ───────────────────────────────────────────────────── */
.news-main { padding: clamp(48px,7vw,100px) 0; min-height: 60vh; }

.news-page-header { margin-bottom: clamp(32px,5vw,56px); }
.news-page-header h1 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 700; color: var(--accent); }
.news-page-header__subtitle { font-size: 1.05rem; color: var(--muted); margin-top: 10px; }

/* ── Search ──────────────────────────────────────────────────────── */
.news-search { margin-bottom: 20px; }
.news-search-input {
  width: 100%;
  max-width: 440px;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%236B6F7A' stroke-width='1.8'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%236B6F7A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 12px center;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.news-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,161,226,.12); }
.news-search-input::-webkit-search-cancel-button { cursor: pointer; }

/* ── Filter bar ──────────────────────────────────────────────────── */
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px,4vw,36px); }
.news-filter-btn {
  display: inline-flex; align-items: center;
  padding: 6px 18px; border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff; color: var(--muted);
  font-size: .82rem; font-weight: 600; font-family: var(--sans);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.news-filter-btn:not(.news-filter-btn--active):hover { border-color: var(--accent); color: var(--accent); }
.news-filter-btn--active { background: var(--accent); color: #fff; border-color: var(--accent); }
.news-no-results { color: var(--muted); font-size: .95rem; margin-top: 12px; }

/* ── Card grid ───────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(20px,3vw,32px);
}
@media (max-width: 880px) { .news-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px)  { .news-grid { grid-template-columns: 1fr; } }

/* ── Card ────────────────────────────────────────────────────────── */
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: 0 8px 32px rgba(14,27,61,.10); transform: translateY(-3px); }
.news-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.news-card__img { aspect-ratio: 2/1; overflow: hidden; background: var(--paper-2); flex-shrink: 0; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; display: block; }
.news-card:hover .news-card__img img { transform: scale(1.04); }

.news-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.news-card__meta time { font-size: .78rem; color: var(--muted); }

/* explicit font-size + font-family overrides base.css h2/h3 heading styles */
.news-card__title { font-size: 1rem !important; font-family: var(--sans) !important; font-weight: 700; line-height: 1.35; margin: 0 0 8px; color: var(--ink); }
.news-card__teaser { font-size: .85rem; color: var(--ink-soft); line-height: 1.55; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__read { display: inline-block; margin-top: 14px; font-size: .83rem; font-weight: 600; color: var(--accent); }

/* ── Category badges ─────────────────────────────────────────────── */
.news-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.news-cat--release     { background: rgba(26,161,226,.12); color: var(--accent); }
.news-cat--feature     { background: rgba(79,179,184,.15); color: #2a8a8f; }
.news-cat--event       { background: rgba(100,65,190,.12);  color: #6441be; }
.news-cat--update      { background: rgba(95,188,46,.12);  color: var(--good); }
.news-cat--success     { background: rgba(95,188,46,.12);  color: var(--good); }
.news-cat--news        { background: rgba(107,111,122,.12); color: var(--muted); }

/* ── Article detail ─────────────────────────────────────────────── */
.news-back {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: none;
  color: var(--accent); font-size: .9rem; font-weight: 600;
  cursor: pointer; padding: 0; margin-bottom: 36px;
  transition: gap .15s;
}
.news-back:hover { gap: 10px; }

.news-article-content { max-width: 760px; margin: 0 auto; }

.news-article__img { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.news-article__img img { width: 100%; height: auto; display: block; }

.news-article__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.news-article__meta time { font-size: .85rem; color: var(--muted); }
.news-article__header h1 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 700; line-height: 1.2; margin: 0 0 36px; color: var(--accent); }

.news-article__body { font-size: 1rem; line-height: 1.8; color: var(--ink); }
.news-article__body h2 { font-size: clamp(1.1rem,2vw,1.35rem); font-weight: 700; color: var(--accent); margin: 2em 0 .6em; }
.news-article__body h3,
.news-article__body h4 { color: var(--accent); }
.news-article__body p { margin: 0 0 1.2em; }
.news-article__body p:last-child { margin-bottom: 0; }

/* Green checkmarks on all lists */
.news-article__body ul { list-style: none; padding: 16px 20px 16px 16px; margin: 0 0 1.4em; background: var(--paper-2); border-radius: var(--radius); display: grid; gap: 8px; }
.news-article__body ul li { position: relative; padding-left: 26px; line-height: 1.55; }
.news-article__body ul li::before { content: "✓"; color: var(--good); font-weight: 700; position: absolute; left: 0; top: 0; }
.news-article__body ul li strong { color: var(--accent); }

/* Customer info card — blue admonition style */
.news-info-card { background: rgba(26,161,226,.07); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 0 0 2em; }
.news-info-card p { margin: 0; line-height: 1.7; }
.news-info-card ul { margin: 10px 0 0; padding: 0; background: none; border: none; border-radius: 0; }
.news-info-card ul li { padding-left: 26px; }
.news-info-card ul li::before { color: var(--accent); }
.news-article__body blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  background: rgba(95,188,46,.08);
  border-left: 4px solid var(--good);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}
.news-article__body blockquote p { margin: 0; }
.news-article__body blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  background: rgba(95,188,46,.08);
  border-left: 4px solid var(--good);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}
.news-article__body blockquote p { margin: 0; }

/* ── Tags ────────────────────────────────────────────────────────── */
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.news-tag { font-size: .75rem; color: var(--muted); background: var(--paper-2); padding: 4px 12px; border-radius: 20px; }

/* ── More articles (below article detail) ───────────────────────── */
.news-more {
  margin-top: clamp(48px,7vw,80px);
  padding-top: clamp(32px,5vw,48px);
  border-top: 1px solid var(--line);
}
.news-more__title {
  font-size: clamp(1.2rem,2.5vw,1.6rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: clamp(24px,4vw,36px);
}
.news-more__all { text-align: center; margin-top: clamp(28px,4vw,40px); }

/* ── Homepage teaser section ─────────────────────────────────────── */
.news-teaser { background: #fff; }
.news-teaser__footer { text-align: center; margin-top: clamp(28px,4vw,44px); }

/* Compact variant for homepage — flatter image, clamp teaser to 2 lines */
.news-grid--teaser .news-card__img    { aspect-ratio: 5/2; }
.news-grid--teaser .news-card__body   { padding: 14px 16px 18px; }
.news-grid--teaser .news-card__teaser { -webkit-line-clamp: 2; }
.news-grid--teaser .news-card__read   { margin-top: 10px; }
