/* ===================================
   Svitgrid News (/news)
   Uses the tokens defined in main.css. No new colours, no gradients.
   =================================== */

.news { padding: 120px 0 var(--space-4xl); }

.news__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.news__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-text);
}

.news__intro { max-width: 62ch; }

.news__subtitle {
  color: var(--color-gray-500);
  font-size: 1rem;
  margin-top: var(--space-sm);
}

/* Filters --------------------------------------------------------------- */

.news__filters {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-xs);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.news__filters::-webkit-scrollbar { display: none; }

.news__filter {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 10px var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  color: var(--color-gray-600);
  text-decoration: none;
  white-space: nowrap;
}
.news__filter:hover { color: var(--color-primary-text); border-color: var(--color-primary); }
.news__filter.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #1A1206;
}

/* Meta line shared by every card ---------------------------------------- */

.news-meta {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray-400);
}
.news-meta__lead { color: var(--color-primary-text); }

/* Featured -------------------------------------------------------------- */

.news-featured {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
  text-decoration: none;
  color: inherit;
}
.news-featured:hover { box-shadow: var(--shadow-md); }

.news-featured__media {
  background: var(--color-gray-50);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-featured__media img { border-radius: var(--radius-md); display: block; }

.news-featured__body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
}
.news-featured__title { font-size: 1.35rem; }
.news-featured__summary { color: var(--color-gray-700); }
.news-featured__more {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xs);
}
.news-featured__cta { font-size: 0.875rem; font-weight: 600; color: var(--color-primary-text); }
.news-featured__note { font-size: 0.8125rem; color: var(--color-gray-400); }

@media (min-width: 900px) {
  .news-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-featured__body { padding: var(--space-2xl); }
  .news-featured__title { font-size: 1.6rem; }
}

/* Card grid ------------------------------------------------------------- */

.news-cards {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
@media (min-width: 640px) { .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .news-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.news-card {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.news-card__media { height: 190px; overflow: hidden; background: var(--color-gray-50); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.news-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.news-card__title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.news-card__summary { font-size: 0.875rem; color: var(--color-gray-500); line-height: 1.6; }

/* Earlier list ---------------------------------------------------------- */

.news-list__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-bottom: var(--space-md);
}

.news-row {
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-gray-200);
  text-decoration: none;
  color: inherit;
}
.news-row:last-child { border-bottom: 1px solid var(--color-gray-200); }
.news-row:hover .news-row__title { color: var(--color-primary-text); }
.news-row__title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.news-row__summary { font-size: 0.875rem; color: var(--color-gray-500); }
.news-row__date { font-size: 0.8125rem; color: var(--color-gray-400); }
.news-row__cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray-400);
}

@media (min-width: 860px) {
  .news-row {
    grid-template-columns: 150px minmax(0, 1fr) 130px;
    gap: var(--space-lg);
    align-items: baseline;
  }
  .news-row__cat { text-align: right; }
  .news-row__text { display: flex; flex-direction: column; gap: var(--space-xs); }
}

/* Pointer at the changelog ---------------------------------------------- */

.news-pointer {
  margin-top: var(--space-2xl);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.news-pointer p { font-size: 0.875rem; color: var(--color-gray-600); }
.news-pointer a { font-size: 0.875rem; font-weight: 600; color: var(--color-primary-text); text-decoration: none; white-space: nowrap; }
@media (min-width: 720px) {
  .news-pointer { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-xl); }
}

/* ===================================
   A single post
   =================================== */

.post { padding: 96px 0 var(--space-4xl); }

.post__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--color-gray-400);
  margin-bottom: var(--space-xl);
}
.post__crumbs a { color: var(--color-primary-text); text-decoration: none; }

.post__layout { display: grid; gap: var(--space-2xl); align-items: start; }
@media (min-width: 1000px) {
  .post__layout { grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: var(--space-4xl); }
}

.post__article { display: flex; flex-direction: column; gap: var(--space-xl); }
.post__header { display: flex; flex-direction: column; gap: var(--space-md); }
.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary-text);
}
.post__meta span:not(:first-child) { color: var(--color-gray-400); }
.post__standfirst { font-size: 1.0625rem; line-height: 1.7; color: var(--color-gray-700); }

.post__section { display: flex; flex-direction: column; gap: var(--space-md); }
.post__section p { color: var(--color-gray-800); }
.post__section strong { color: var(--color-gray-900); font-weight: 700; }

.post figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.post figure img { width: 100%; border: 1px solid var(--color-gray-200); border-radius: var(--radius-xl); display: block; }
.post figcaption { font-size: 0.75rem; color: var(--color-gray-400); }

/* A portrait photo in a landscape column: frame it rather than let it tower. */
.post__figure--framed {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  justify-content: center;
}
/* Specificity, not decoration: `.post figure img` above is (0,1,2) and would
   otherwise beat this rule's `width`, stretching a portrait photo to the full
   column width while max-height clamped it — 675x900 rendered as 660x520. */
.post figure .post__figure--framed img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.post__callout {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.post__callout-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-text);
}
.post__callout p { font-size: 0.9375rem; color: var(--color-gray-700); }

/* The measurement table. Two value columns and a row label; the first value
   column is the one being argued for, so it carries the amber. Wide content
   scrolls inside the block rather than widening the page. */
.post__measure {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow-x: auto;
}
.post__measure-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.post__measure-table thead td { border: 0; }
.post__measure-table th,
.post__measure-table td {
  text-align: right;
  padding: 10px var(--space-md);
  border-bottom: 1px solid var(--color-gray-200);
  white-space: nowrap;
}
.post__measure-table th[scope="row"] {
  text-align: left;
  font-weight: 400;
  color: var(--color-gray-600);
  white-space: normal;
}
.post__measure-table th[scope="col"] {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}
.post__measure-table tbody tr:last-child th,
.post__measure-table tbody tr:last-child td { border-bottom: 0; }
.post__measure-table td:first-of-type {
  font-weight: 700;
  color: var(--color-primary-text);
}
.post__measure-table td:last-of-type { font-weight: 700; color: var(--color-gray-900); }

.post__inline-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-text);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 12px var(--space-lg);
  text-decoration: none;
  align-self: flex-start;
}
.post__inline-link:hover { border-color: var(--color-primary); }

.post__order {
  border: 1px solid var(--color-gray-900);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.post__order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
}
.post__order-note { font-size: 0.875rem; color: var(--color-gray-500); margin-top: var(--space-xs); }
.post__order-price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--color-gray-900); white-space: nowrap; }
/* Direct children only. `.post__order p` (0,1,1) outranks the single-class
   rules below it, and silently rendered the price at body size. */
.post__order > p { font-size: 0.875rem; color: var(--color-gray-700); }
.post__order .btn { align-self: flex-start; }

.post__foot {
  border-top: 1px solid var(--color-gray-200);
  padding-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.post__foot p { font-size: 0.875rem; color: var(--color-gray-500); }
.post__foot a { font-size: 0.875rem; font-weight: 600; color: var(--color-primary-text); text-decoration: none; white-space: nowrap; }
@media (min-width: 720px) {
  .post__foot { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-xl); }
}

/* Aside ----------------------------------------------------------------- */

.post__aside { display: flex; flex-direction: column; gap: var(--space-xl); }
.post__aside-block { display: flex; flex-direction: column; gap: var(--space-md); }
.post__aside-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}
.post__aside-links { display: flex; flex-direction: column; gap: var(--space-sm); }
.post__aside-links a { font-size: 0.875rem; font-weight: 600; color: var(--color-primary-text); text-decoration: none; }
.post__aside-links a:hover { text-decoration: underline; }

.post__facts {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.post__facts dl { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.8125rem; }
.post__facts div { display: flex; justify-content: space-between; gap: var(--space-md); }
.post__facts dt { color: var(--color-gray-500); }
.post__facts dd { margin: 0; color: var(--color-gray-900); font-weight: 600; }

.post__share { display: flex; gap: var(--space-sm); }
.post__share a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-600);
}
.post__share a:hover { border-color: var(--color-primary); color: var(--color-primary-text); }
.post__share svg { width: 16px; height: 16px; }

.post__lang {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.post__lang a { font-size: 0.8125rem; font-weight: 600; color: var(--color-primary-text); text-decoration: none; }

/* Home-page strip ------------------------------------------------------- */

.home-news { padding: var(--space-4xl) 0; background: var(--color-gray-50); }
.home-news .news-card { background: var(--color-white); }
.home-news__more { margin-top: var(--space-xl); }
.home-news__more a { font-size: 0.875rem; font-weight: 600; color: var(--color-primary-text); text-decoration: none; }
.home-news__more a:hover { text-decoration: underline; }

/* The assembly video. `preload="none"` on the element keeps the 14 MB off
   every page load — it downloads when somebody presses play, and not before. */
.post__video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  background: var(--color-gray-900);
}
