/* Shared news modal: follows the LONGHO PARTS shell, type and blue accent. */
.news-modal {
  position: fixed;
  z-index: 220;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.news-modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.news-modal__backdrop { position: absolute; inset: 0; background: rgba(9, 23, 34, .76); backdrop-filter: blur(10px); }
.news-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  max-height: min(900px, calc(100dvh - 48px));
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 28px 100px rgba(5, 19, 30, .34);
  transform: translateY(16px) scale(.985);
  transition: transform 260ms ease;
}
.news-modal.is-open .news-modal__panel { transform: translateY(0) scale(1); }
.news-modal__scroll { max-height: min(900px, calc(100dvh - 48px)); overflow: auto; overscroll-behavior: contain; }
.news-modal__close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(16,25,34,.12);
  border-radius: 50%;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.news-modal__close:hover { color: var(--white); background: var(--blue); transform: rotate(4deg); }
.news-modal__close svg { width: 18px; height: 18px; }
.news-modal__gallery {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e7edf1;
  touch-action: pan-y;
}
.news-modal__gallery::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; pointer-events: none; background: linear-gradient(transparent, rgba(11,63,102,.18)); }
.news-modal__image { width: 100%; height: min(43vh, 460px); min-height: 300px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.news-modal__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  color: var(--white);
  background: rgba(11,63,102,.84);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}
.news-modal__nav:hover { background: var(--blue); transform: translateY(-50%) scale(1.05); }
.news-modal__nav[disabled] { opacity: 0; pointer-events: none; }
.news-modal__nav--prev { left: 22px; }
.news-modal__nav--next { right: 22px; }
.news-modal__nav svg { width: 20px; height: 20px; }
.news-modal__counter { position: absolute; z-index: 2; right: 22px; bottom: 18px; color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.news-modal__dots { position: absolute; z-index: 2; left: 22px; bottom: 18px; display: flex; gap: 6px; }
.news-modal__dot { width: 7px; height: 7px; padding: 0; background: rgba(255,255,255,.55); border: 0; border-radius: 50%; cursor: pointer; transition: width 160ms ease, background 160ms ease; }
.news-modal__dot.is-active { width: 22px; background: var(--white); border-radius: 5px; }
.news-modal__body { padding: 32px clamp(24px, 4vw, 54px) 38px; }
.news-modal__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.news-modal__meta time { color: #89949c; letter-spacing: .03em; }
.news-modal__body h2 { margin: 17px 0 0; max-width: 760px; color: var(--ink); font-size: clamp(34px, 5vw, 66px); line-height: .94; letter-spacing: -.065em; }
.news-modal__lead { max-width: 700px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.news-modal__details { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.news-modal__total { color: var(--blue); font-size: 48px; font-weight: 800; line-height: .85; letter-spacing: -.08em; white-space: nowrap; }
.news-modal__categories { grid-column: 1 / -1; }
.news-modal__total-label { color: var(--muted); font-size: 12px; }
.news-modal__categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 2px; border-top: 1px solid var(--line); }
.news-modal__category { padding: 11px 0; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.4; }
.news-modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.news-modal__actions .button { min-height: 46px; }
.news-modal__detail-link { padding: 0; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 12px; font-weight: 600; }
.news-modal__detail-link svg { width: 16px; height: 16px; }
body.news-modal-open { overflow: hidden; }

@media (max-width: 680px) {
  .news-modal { padding: 0; align-items: end; }
  .news-modal__panel { width: 100%; max-height: 94dvh; border-right: 0; border-bottom: 0; border-left: 0; }
  .news-modal__scroll { max-height: 94dvh; }
  .news-modal__close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .news-modal__gallery { min-height: 280px; }
  .news-modal__image { height: 38dvh; min-height: 260px; }
  .news-modal__nav { width: 38px; height: 38px; }
  .news-modal__nav--prev { left: 12px; }
  .news-modal__nav--next { right: 12px; }
  .news-modal__counter { right: 14px; bottom: 14px; }
  .news-modal__dots { left: 14px; bottom: 14px; }
  .news-modal__body { padding: 24px 18px 28px; }
  .news-modal__body h2 { font-size: 42px; }
  .news-modal__details { grid-template-columns: 1fr; gap: 15px; }
  .news-modal__categories { grid-template-columns: 1fr; }
  .news-modal__total { font-size: 44px; }
  .news-modal__actions { display: grid; }
  .news-modal__actions .button { width: 100%; }
}
.news-modal__details[hidden] { display: none; }
