/* «Al día»: a front page, not a feed. One lead story, two highlights and a
   timeline. Colors come from the shared tokens so light and dark both work. */
#noticias { --news-line: var(--ds-line, #ffffff1f); --news-muted: var(--ds-text-3, #a1a1aa); --news-soft: var(--ds-raised, #2c2c2e); }
#noticias:not(.is-collapsed) .club-news-heading { margin-bottom: 14px; }
#noticias .news-toolbar { display: flex; flex-wrap: nowrap; flex-direction: row; justify-content: flex-start; align-items: center; gap: 8px; margin: 0 0 8px; padding: 0; border: 0; }
#noticias .news-tabs { display: flex; flex: 1; min-width: 0; max-width: 420px; gap: 2px; padding: 3px; border: 0; border-radius: var(--ds-radius-pill, 999px); background: var(--news-soft); }
#noticias .news-tab { flex: 1; min-width: 0; min-height: 38px; padding: 8px 10px; border: 0; border-radius: var(--ds-radius-pill, 999px); background: transparent; color: var(--ds-text-2, #ebebf5b3); font-size: 13px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
#noticias .news-tab.active { background: var(--ds-surface, #1c1c1e); color: var(--ds-text, #fff); box-shadow: 0 1px 3px #0000002e; }
#noticias #refreshNewsButton { flex: 0 0 44px; width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--news-soft); color: var(--ds-text-2, #ebebf5b3); -webkit-tap-highlight-color: transparent; }
#noticias #refreshNewsButton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
#noticias #refreshNewsButton > span { display: none; }
#noticias .news-status { margin: 0 0 14px; color: var(--news-muted); font-size: 11px; line-height: 1.5; min-height: 16px; }
#noticias .news-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }

/* Shared card mechanics: the headline link covers the card; share sits above it. */
#noticias .news-card { position: relative; min-width: 0; min-height: 0; height: auto; flex-direction: row; text-align: start; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; content-visibility: visible; contain-intrinsic-size: none; }
#noticias .news-card h3 { margin: 0; font-family: var(--ds-font, inherit); font-weight: 650; letter-spacing: -.015em; overflow-wrap: anywhere; color: var(--ds-text, #fff); }
#noticias .news-card h3 a { display: inline; width: auto; margin: 0; font: inherit; letter-spacing: inherit; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
#noticias .news-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
#noticias .news-card h3 a:focus-visible { outline: none; }
#noticias .news-card:has(h3 a:focus-visible) { outline: 2px solid var(--interaction-strong, var(--ds-line-strong, #ffffff38)); outline-offset: 4px; border-radius: 14px; }
#noticias .news-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-transform: none; letter-spacing: 0; gap: 4px 8px; color: var(--news-muted); font-size: 11px; font-weight: 500; }
#noticias .news-card-meta > span:not(.news-chip) { color: var(--ds-text-2, #ebebf5b3); font-weight: 600; }
#noticias .news-card-meta > * + *:not(.news-chip)::before { content: "·"; margin-right: 8px; color: var(--news-muted); }
#noticias .news-card-meta > .news-chip + *::before { content: none; }
#noticias .news-share-button { position: relative; z-index: 1; flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--news-muted); -webkit-tap-highlight-color: transparent; }
#noticias .news-share-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
@media (hover: hover) and (pointer: fine) {
  #noticias .news-card:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  #noticias .news-share-button:hover { background: var(--news-soft); color: var(--ds-text, #fff); }
}

/* Lead story. */
#noticias .news-lead { display: block; overflow: hidden; border-radius: 16px; background: var(--news-soft); }
#noticias .news-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--news-line); }
#noticias .news-media img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
#noticias .news-lead .news-card-body { display: grid; gap: 10px; padding: 16px 16px 6px; }
#noticias .news-chip { padding: 3px 8px; border-radius: var(--ds-radius-pill, 999px); background: var(--ds-surface, #1c1c1e); color: var(--ds-text, #fff); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
#noticias .news-lead h3 { font-size: clamp(21px, 5.4vw, 28px); line-height: 1.2; }
#noticias .news-lead:not(.has-photo) h3 { font-size: clamp(23px, 6vw, 30px); }
#noticias .news-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0; color: var(--ds-text-2, #ebebf5b3); font-size: 14px; line-height: 1.5; }
#noticias .news-card-actions { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0; justify-content: space-between; margin-right: -10px; }
#noticias .news-read { color: var(--ds-text, #fff); font-size: 13px; font-weight: 600; }
#noticias .news-read::after { content: " →"; }

/* Two highlights: text first, small photo on the right. */
#noticias .news-support { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--news-line); }
#noticias .news-lead + .news-support { margin-top: 6px; }
#noticias .news-support .news-card-body { display: grid; flex: 1; min-width: 0; gap: 6px; }
#noticias .news-support h3 { font-size: 16px; line-height: 1.3; }
#noticias .news-thumb { position: relative; flex: none; width: 76px; height: 76px; overflow: hidden; border-radius: 12px; background: var(--news-soft); }
#noticias .news-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
#noticias .news-support .news-share-button { margin-right: -10px; }

/* Timeline. */
#noticias .news-latest-block { padding-top: 20px; }
#noticias .news-latest-block h4 { margin: 0 0 4px; color: var(--ds-text, #fff); font-size: 13px; font-weight: 700; }
#noticias .news-latest-list { margin: 0; padding: 0; list-style: none; }
#noticias .news-latest { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--news-line); }
#noticias .news-latest:last-child { border-bottom: 0; }
#noticias .news-latest > time { padding-top: 2px; color: var(--news-muted); font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.35; }
#noticias .news-latest .news-card-body { display: grid; gap: 3px; min-width: 0; }
#noticias .news-source { color: var(--news-muted); font-size: 11px; font-weight: 600; }
#noticias .news-latest h3 { font-size: 14px; line-height: 1.35; font-weight: 600; }
#noticias .news-latest .news-share-button { margin: -10px -10px 0 0; }
#noticias .news-more-button { display: block; width: 100%; min-height: 44px; margin-top: 8px; border: 1px solid var(--news-line); border-radius: 12px; background: transparent; color: var(--ds-text, #fff); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#noticias .news-more-button:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }

/* Loading and empty states. */
#noticias .news-loading { display: grid; gap: 14px; }
#noticias .news-skeleton { padding: 0; border: 0; }
#noticias .news-skeleton i, #noticias .news-skeleton span { display: block; border-radius: 8px; background: var(--news-soft); animation: news-pulse 1.5s ease-in-out infinite; }
#noticias .news-skeleton i { aspect-ratio: 16 / 9; margin-bottom: 14px; border-radius: 16px; }
#noticias .news-skeleton:not(.news-skeleton-lead) i { display: none; }
#noticias .news-skeleton span { height: 12px; margin: 10px 0; }
#noticias .news-skeleton span:last-child { width: 60%; }
#noticias .empty-state { min-height: 150px; border: 1px dashed var(--news-line); border-radius: 16px; background: transparent; }
@keyframes news-pulse { 50% { opacity: .45; } }

@media (min-width: 761px) {
  #noticias .news-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 24px; }
  #noticias .news-lead { grid-row: span 2; }
  #noticias .news-lead + .news-support { margin-top: 0; }
  #noticias .news-latest-block { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { #noticias .news-skeleton i, #noticias .news-skeleton span { animation: none; } }
