/* ============================================================
 * AdVivo — front-page (archetype C topical hub + hero slider)
 * ============================================================ */

/* ----- Hero slider ----- */
.av-hero-slider {
  position: relative;
  margin: var(--av-sp-4) 0 var(--av-sp-6);
  background: var(--av-ink);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .av-hero-slider { background: var(--av-dark-paper); }
}
.av-hero-slider__track {
  position: relative;
  min-height: 420px;
}
.av-hero-slider__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.av-hero-slider__slide--active {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease, visibility 0s;
}
.av-hero-slider__media {
  display: block;
  position: relative;
  height: 100%;
  overflow: hidden;
}
.av-hero-slider__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(.98);
}
.av-hero-slider__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}
.av-hero-slider__live {
  position: absolute;
  top: var(--av-sp-3);
  left: var(--av-sp-3);
  background: var(--av-ink);
  color: var(--av-live-bright);
  font-family: var(--av-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.av-hero-slider__live-dot {
  width: 7px;
  height: 7px;
  background: var(--av-live-bright);
  border-radius: 50%;
  animation: av-pulse 1.6s ease-in-out infinite;
}

.av-hero-slider__body {
  padding: var(--av-sp-5);
  color: var(--av-paper);
}
.av-hero-slider__cat {
  display: inline-block;
  font-family: var(--av-mono);
  font-size: 10px;
  color: var(--av-live-bright);
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--av-sp-3);
  border-bottom: 1.5px solid var(--av-live-bright);
  padding-bottom: 3px;
  text-decoration: none !important;
}
.av-hero-slider__title {
  font-family: var(--av-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--av-sp-3);
}
.av-hero-slider__title a { color: var(--av-paper); text-decoration: none !important; }
.av-hero-slider__title a:hover { color: var(--av-live-bright); }
.av-hero-slider__excerpt {
  font-family: var(--av-sans);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
  margin: 0 0 var(--av-sp-4);
  max-width: 50ch;
}
.av-hero-slider__meta {
  margin: 0;
  font-family: var(--av-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.av-hero-slider__meta strong { color: var(--av-paper); font-weight: 700; }

/* Slider nav dots */
.av-hero-slider__nav {
  position: absolute;
  bottom: var(--av-sp-3);
  right: var(--av-sp-4);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.av-hero-slider__dot {
  width: 28px;
  height: 3px;
  background: rgba(255,255,255,.30);
  border: 0;
  cursor: pointer;
  transition: background .2s, width .25s;
  padding: 0;
}
.av-hero-slider__dot--active {
  background: var(--av-live-bright);
  width: 44px;
}
.av-hero-slider__dot:hover { background: rgba(255,255,255,.6); }

@media (max-width: 880px) {
  .av-hero-slider__track { min-height: auto; }
  .av-hero-slider__slide {
    position: relative;
    grid-template-columns: 1fr;
    display: none;
  }
  .av-hero-slider__slide--active { display: grid; }
  .av-hero-slider__media img { height: auto; aspect-ratio: 16/10; }
  .av-hero-slider__body { padding: var(--av-sp-4); }
  .av-hero-slider__title { font-size: 22px; }
}

/* ============================================================
 * Topic clusters — image_top cards in 3-2-1 grid (roll: 3_2_1)
 * ============================================================ */
.av-cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--av-sp-4);
}
@media (max-width: 980px) { .av-cluster-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .av-cluster-grid { grid-template-columns: 1fr; } }

/* First card in cluster spans larger when desktop wide */
.av-cluster-grid .av-card:first-child {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0;
}
.av-cluster-grid .av-card:first-child .av-card__media img {
  aspect-ratio: 4 / 3;
}
.av-cluster-grid .av-card:first-child .av-card__title {
  font-size: clamp(20px, 2.2vw, 26px);
}
@media (max-width: 980px) {
  .av-cluster-grid .av-card:first-child { grid-column: span 2; grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .av-cluster-grid .av-card:first-child { grid-column: span 1; }
}

/* ============================================================
 * Left aside — ticker with vertical numbered list
 * ============================================================ */
.av-widget--ticker .av-ticker {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tk;
}
.av-ticker li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--av-line);
  align-items: start;
}
.av-ticker li:last-child { border-bottom: 0; }
.av-ticker__num {
  font-family: var(--av-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--av-live-text);
  letter-spacing: .04em;
}
.av-ticker a {
  font-family: var(--av-display);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--av-ink-2);
  text-decoration: none !important;
  letter-spacing: -0.005em;
}
@media (prefers-color-scheme: dark) {
  .av-ticker a { color: var(--av-dark-ink-2); }
}
.av-ticker a:hover { color: var(--av-live); }

/* ============================================================
 * Right aside — most-read compact list
 * ============================================================ */
.av-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.av-side-list li { padding: 7px 0; border-bottom: 1px solid var(--av-line); }
.av-side-list li:last-child { border-bottom: 0; }
.av-side-list a {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-decoration: none !important;
  color: var(--av-ink);
}
@media (prefers-color-scheme: dark) {
  .av-side-list a { color: var(--av-dark-ink); }
}
.av-side-list a:hover .av-side-list__title { color: var(--av-live); }
.av-side-list__thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}
.av-side-list__txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.av-side-list__title {
  font-family: var(--av-display);
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: color .15s;
}
.av-side-list__date {
  font-family: var(--av-mono);
  font-size: 9.5px;
  color: var(--av-muted);
  letter-spacing: .12em;
}
