/* Kader news: portrait-led cards with the soft green lighting of the approved reference.
   Shared by the home feed and the full news list; the article reader stays separate. */
:is(#squad-news-panel, #window[data-window="news"]) :is(.squad-news-feed, .news-window-feed) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

:is(#squad-news-panel, #window[data-window="news"]) .squad-news-item {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr) 12px;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 11px 12px;
  width: 100%;
  min-height: 146px;
  margin: 0;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 0% 0%, #82b24b25, transparent 48%) padding-box,
    radial-gradient(ellipse at 100% 100%, #639b3626, transparent 43%) padding-box,
    linear-gradient(125deg, #121d18, #0b1412 62%, #122019) padding-box,
    linear-gradient(125deg, #b9e88180, #6485744d 35%, #37554a88 73%, #8faf666b) border-box;
  box-shadow: inset 0 1px 0 #d8efd70a, 0 5px 18px #00000020;
  overflow: hidden;
  color: #f1f5f0;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}

:is(#squad-news-panel, #window[data-window="news"]) .squad-news-item:hover {
  border-color: #b3dc7a66;
  box-shadow: inset 0 1px 0 #d8efd710, 0 7px 22px #00000030, 0 0 20px #8bb4440a;
}
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-item:focus-visible {
  outline: 2px solid #c8f25a;
  outline-offset: 3px;
}

/* Let the metadata span the headline and arrow columns without changing the card markup. */
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-copy { display: contents; }
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-visual {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 120px;
  aspect-ratio: auto;
  border: 1px solid #9bb49414;
  border-radius: 11px;
  overflow: hidden;
  background: radial-gradient(ellipse at 100% 100%, #334c19, #111d16 60%, #0a1210);
  box-shadow: inset 0 1px 1px #deedce0b;
}
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-visual::before,
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-visual::before {
  clip-path: polygon(0 29%, 39% 0, 84% 0, 0 76%);
  background: linear-gradient(140deg, #d6e5ce10, #a6c98403);
}
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-visual::after {
  clip-path: polygon(100% 18%, 100% 56%, 37% 100%, 0 100%);
  background: linear-gradient(145deg, #8aab371b, #75992d0a);
}
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-visual img {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-visual.is-article img {
  object-position: center;
}
:is(#squad-news-panel, #window[data-window="news"]) .news-photo-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 120px;
  color: #c4d6ad;
  font-size: 30px;
}

:is(#squad-news-panel, #window[data-window="news"]) .squad-news-meta {
  grid-column: 2 / 4;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  margin: 2px 0 0;
  padding: 0;
  color: #9aa99e;
  font-size: 10px;
  line-height: 1.3;
}
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-meta b {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58%;
  margin: 0;
  padding: 4px 7px;
  border: 1px solid #c1d3bd12;
  border-radius: 6px;
  background: linear-gradient(135deg, #d0e1ce12, #d0e1ce08);
  box-shadow: inset 0 1px 0 #ffffff06;
  color: #e3eae0;
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .075em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-meta > span {
  flex: 0 0 auto;
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: #9aa99e;
  white-space: nowrap;
}
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-title {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: none;
  color: #f1f5f0;
}
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-title strong {
  display: block;
  margin: 0;
  padding: 0;
  color: #f1f5f0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: -.16px;
  overflow: visible;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
}
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-publisher {
  grid-column: 2 / 4;
  grid-row: 3;
  display: block;
  min-width: 0;
  margin: 0 0 2px;
  color: #91a096;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .075em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
:is(#squad-news-panel, #window[data-window="news"]) .squad-news-arrow {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  justify-self: end;
  margin: 1px 0 0;
  color: #b3c2b7;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

/* The complete feed has more room, so let its portraits and typography breathe. */
@media (min-width: 601px) {
  #window[data-window="news"] .squad-news-item {
    grid-template-columns: 30% minmax(0, 1fr) 18px;
    min-height: 190px;
    padding: 18px;
    gap: 16px 20px;
    border-radius: 20px;
  }
  #window[data-window="news"] .squad-news-visual { min-height: 150px; border-radius: 13px; }
  #window[data-window="news"] .squad-news-meta,
  #window[data-window="news"] .squad-news-meta > span { font-size: 12px; }
  #window[data-window="news"] .squad-news-meta b { font-size: 11px; padding: 5px 10px; border-radius: 7px; }
  #window[data-window="news"] .squad-news-title strong { font-size: 19px; line-height: 1.36; }
  #window[data-window="news"] .squad-news-publisher { font-size: 11px; }
  #window[data-window="news"] .squad-news-arrow { font-size: 22px; }
}
@media (max-width: 400px) {
  :is(#squad-news-panel, #window[data-window="news"]) .squad-news-item {
    grid-template-columns: 30% minmax(0, 1fr) 11px;
    gap: 10px 10px;
    padding: 11px;
    border-radius: 15px;
  }
  :is(#squad-news-panel, #window[data-window="news"]) .squad-news-title strong { font-size: 13px; }
  :is(#squad-news-panel, #window[data-window="news"]) .squad-news-meta,
  :is(#squad-news-panel, #window[data-window="news"]) .squad-news-meta > span { font-size: 9px; }
  :is(#squad-news-panel, #window[data-window="news"]) .squad-news-meta b { font-size: 9px; padding: 4px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#squad-news-panel, #window[data-window="news"]) .squad-news-item { transition: none; }
}
