/* ═══════════════════════════════════════════════════════════════════════════
   NOTÍCIES — page-specific styles.
   Builds on shared/styles-v3.css + shared/page-kit.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* News meta (category + date) */
.news-card__meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.news-card__cat {
  font-family: var(--ff-ui); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--burgundy);
  padding: 4px 10px; border: 1px solid color-mix(in oklch, var(--burgundy) 30%, var(--line));
}
.news-card__date {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mute);
}
.news-card .pk-card__link { margin-top: 6px; }

/* Featured story */
.news-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border: 1px solid var(--line); background: var(--paper);
  overflow: hidden;
}
.news-featured__media {
  position: relative; min-height: 420px; display: block; overflow: hidden;
}
.news-featured__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.news-featured:hover .news-featured__media img { transform: scale(1.05); }
.news-featured__tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--ff-ui); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: var(--burgundy); padding: 7px 13px;
}
.news-featured__body {
  padding: 48px 46px; display: flex; flex-direction: column;
  justify-content: center; gap: 18px;
}
.news-featured__title {
  font-family: var(--ff-display); font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.1; letter-spacing: -0.015em; color: var(--ink);
}
.news-featured__excerpt {
  font-family: var(--ff-body); font-size: 16px; line-height: 1.7; color: var(--mute);
}
@media (max-width: 860px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured__media { min-height: 260px; aspect-ratio: 16/10; }
  .news-featured__body { padding: 34px 28px; }
}

/* Archive — two columns of facets */
.news-archive { display: grid; grid-template-columns: 280px 1fr; gap: 64px; }
@media (max-width: 760px) { .news-archive { grid-template-columns: 1fr; gap: 40px; } }
.news-years { display: flex; flex-direction: column; gap: 2px; }
.news-year {
  font-family: var(--ff-display); font-size: 22px; letter-spacing: -0.01em;
  color: var(--ink); padding: 11px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  transition: color .25s ease, padding-left .25s ease;
}
.news-year:hover { color: var(--burgundy); padding-left: 8px; }
.news-catlist { list-style: none; margin: 0; padding: 0; column-count: 2; column-gap: 40px; }
@media (max-width: 540px) { .news-catlist { column-count: 1; } }
.news-catlist li { break-inside: avoid; margin-bottom: 4px; }
.news-catlist a {
  font-family: var(--ff-body); font-size: 16px; color: var(--ink);
  padding: 8px 0 8px 22px; position: relative; display: block;
  transition: color .25s ease, padding-left .25s ease;
}
.news-catlist a::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 8px; height: 1px; background: var(--burgundy);
  transition: width .25s ease;
}
.news-catlist a:hover { color: var(--burgundy); padding-left: 28px; }
.news-catlist a:hover::before { width: 14px; }

/* Newsletter form (sits inside .pk-cta dark band) */
.news-nl {
  display: flex; gap: 12px; max-width: 520px; margin: 8px auto 0;
}
.news-nl input {
  flex: 1; font-family: var(--ff-body); font-size: 16px;
  padding: 15px 18px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.06); color: #fff;
}
.news-nl input::placeholder { color: rgba(255,255,255,.55); }
.news-nl input:focus { outline: none; border-color: var(--gold-soft); }
.news-nl .btn { margin: 0; flex-shrink: 0; }
.news-nl__note {
  font-family: var(--ff-ui); font-size: 12px; color: rgba(255,255,255,.55);
  margin-top: 18px;
}
.news-nl__success {
  font-family: var(--ff-body); font-size: 17px; color: var(--gold-soft);
  border: 1px solid rgba(245,213,166,.4); padding: 18px 22px;
  max-width: 520px; margin: 8px auto 0;
}
@media (max-width: 540px) { .news-nl { flex-direction: column; } }

/* ─── "Llegir més" as a button (reset, keep .pk-card__link look) ──────────── */
.news-more {
  background: none; border: none; padding: 0; cursor: pointer; font: inherit;
}

/* Featured media is a button (reset) */
button.news-featured__media {
  border: none; padding: 0; background: none; cursor: pointer; width: 100%;
  display: block; text-align: left;
}

/* ─── Active filter pills (above the feed) ────────────────────────────────── */
.news-activefilter {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px;
}
.news-fpill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-ui); font-size: 12px; font-weight: 500;
  letter-spacing: .04em; color: #fff; background: var(--burgundy);
  padding: 8px 10px 8px 14px;
}
.news-fpill button {
  background: rgba(255,255,255,.18); border: none; color: #fff; cursor: pointer;
  width: 20px; height: 20px; border-radius: 50%; font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.news-fpill button:hover { background: rgba(255,255,255,.35); }
.news-clearbtn {
  background: none; border: none; cursor: pointer;
  font-family: var(--ff-ui); font-size: 12px; font-weight: 500; color: var(--mute);
  text-decoration: underline; text-underline-offset: 3px;
}
.news-clearbtn:hover { color: var(--burgundy); }

/* ─── Archive items as buttons ────────────────────────────────────────────── */
.news-year {
  width: 100%; background: none; border: none; border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer; font: inherit;
}
.news-year.is-active { color: var(--burgundy); padding-left: 8px; }
.news-catlink {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--ff-body); font-size: 16px; color: var(--ink);
  padding: 8px 0 8px 22px; position: relative; transition: color .25s ease, padding-left .25s ease;
}
.news-catlink::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 8px; height: 1px; background: var(--burgundy); transition: width .25s ease;
}
.news-catlink:hover { color: var(--burgundy); padding-left: 28px; }
.news-catlink:hover::before { width: 14px; }
.news-catlink.is-active { color: var(--burgundy); font-weight: 600; padding-left: 28px; }
.news-catlink.is-active::before { width: 14px; }

/* ─── Article reader modal ────────────────────────────────────────────────── */
.news-modal {
  position: fixed; inset: 0; z-index: 200;
  background: color-mix(in oklch, var(--burgundy-ink) 55%, rgba(0,0,0,.4));
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.news-modal__panel {
  position: relative; background: var(--paper); width: 100%; max-width: 680px;
  max-height: 90vh; overflow-y: auto; border-top: 3px solid var(--burgundy);
  box-shadow: 0 40px 100px -30px rgba(61,15,21,.6);
}
.news-modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.news-modal__close:hover { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.news-modal__media { aspect-ratio: 16 / 9; overflow: hidden; }
.news-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.news-modal__content { padding: 36px 44px 44px; }
@media (max-width: 560px) { .news-modal__content { padding: 28px 24px 32px; } }
.news-modal__content .news-card__meta { margin-bottom: 16px; }
.news-modal__title {
  font-family: var(--ff-display); font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 20px;
}
.news-modal__lead {
  font-family: var(--ff-body); font-size: 19px; line-height: 1.55; color: var(--ink);
  margin: 0 0 20px; font-weight: 500;
}
.news-modal__p {
  font-family: var(--ff-body); font-size: 16px; line-height: 1.75; color: var(--mute); margin: 0 0 16px;
}
/* Live article body (SanitizedHtml): the server allow-list tags only. */
.news-modal__body p, .news-modal__body li, .news-modal__body blockquote, .news-modal__body figcaption {
  font-family: var(--ff-body); font-size: 16px; line-height: 1.75; color: var(--mute); margin: 0 0 16px;
}
.news-modal__body ul, .news-modal__body ol { margin: 0 0 16px; padding-left: 22px; }
.news-modal__body li { margin: 0 0 8px; }
.news-modal__body blockquote { border-left: 3px solid var(--burgundy); padding-left: 16px; }
.news-modal__body a { color: var(--burgundy); }
.news-modal__body img { max-width: 100%; height: auto; display: block; margin: 0 0 16px; }
.news-modal__body figure { margin: 0 0 16px; }
.news-modal__body h2, .news-modal__body h3, .news-modal__body h4 {
  font-family: var(--ff-display); color: var(--ink); margin: 24px 0 12px; line-height: 1.2;
}
