/* Berita & Pengumuman: wide liquid-glass layout, cover images on the featured post and on every card. */
body.v3-glass.publication-page {
  --pub-wide: min(1480px, calc(100% - 2 * clamp(.5rem, 2vw, 1.5rem)));
}

/* Wider, lighter glass: the page uses the full width instead of a narrow boxed panel. */
body.v3-glass.publication-page .information-hero__inner,
body.v3-glass.publication-page .information-empty-section__inner {
  width: var(--pub-wide);
  max-width: none;
  padding: clamp(18px, 3vw, 40px);
  background: linear-gradient(150deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 40px 90px -50px rgba(0, 0, 0, .85);
}
body.v3-glass.publication-page .information-hero__inner { padding-block: clamp(22px, 3vw, 40px); }

/* Featured post: cover fills the whole media side; no white box. */
body.v3-glass.publication-page .news-featured-card {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: clamp(20px, 2.6vw, 30px);
  background: linear-gradient(150deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
}
body.v3-glass.publication-page .news-featured-card__image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(220px, 32vw, 420px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #123a7a, #2f6cde 60%, #5b4bd0);
}
body.v3-glass.publication-page .news-featured-card__image--placeholder,
body.v3-glass.publication-page .pub-card__cover--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3f7fd, #d4e3f6);
}
body.v3-glass.publication-page .pub-ph-logo {
  width: min(46%, 220px);
  height: auto;
  object-fit: contain;
}
body.v3-glass.publication-page .news-featured-card__content { min-width: 0; }

/* A cover that fails to load swaps itself for the brand tile (never a broken-image box). */
body.v3-glass.publication-page img.is-fallback { object-fit: contain !important; padding: 18% 22%; background: linear-gradient(135deg, #f3f7fd, #d4e3f6); }
body.v3-glass.publication-page .pub-card__cover > img.is-fallback { padding: 22% 26%; }

/* Publication list as a responsive card grid with covers. */
body.v3-glass.publication-page .pub-fallback,
body.v3-glass.publication-page .pub-shelf[data-webgl="ready"] ~ .pub-fallback { border-top: 0; padding-top: 0; margin-top: clamp(1.25rem, 3vw, 2rem); }
body.v3-glass.publication-page .pub-fallback__list,
body.v3-glass.publication-page .pub-shelf[data-webgl="ready"] ~ .pub-fallback .pub-fallback__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
body.v3-glass.publication-page .pub-card,
body.v3-glass.publication-page .pub-shelf[data-webgl="ready"] ~ .pub-fallback .pub-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--v3-glass-border);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: transform .25s ease, background-color .25s ease;
}
body.v3-glass.publication-page .pub-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12); }
body.v3-glass.publication-page .pub-card__cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #123a7a, #2f6cde 60%, #5b4bd0);
}
body.v3-glass.publication-page .pub-card__cover > img:not(.pub-ph-logo) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.v3-glass.publication-page .pub-card__cover--empty { display: grid; place-items: center; }
body.v3-glass.publication-page .pub-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; min-width: 0; }
body.v3-glass.publication-page .pub-fallback__link,
body.v3-glass.publication-page .pub-shelf[data-webgl="ready"] ~ .pub-fallback .pub-fallback__link { font-family: inherit; font-size: 1.05rem; line-height: 1.35; }
body.v3-glass.publication-page .pub-shelf[data-webgl="ready"] ~ .pub-fallback .pub-fallback__excerpt { display: block; }

/* With the 3D shelf live, the card grid below it would only repeat the shelf. The list stays in the accessibility tree (it is the
   keyboard / screen-reader path to every item) and is revealed while keyboard focus is inside it. No JS or no WebGL: it stays visible. */
body.v3-glass.publication-page .pub-shelf[data-webgl="ready"] ~ .pub-fallback:not(:focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  body.v3-glass.publication-page .news-featured-card { grid-template-columns: minmax(0, 1fr); }
  body.v3-glass.publication-page .news-featured-card__image { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  body.v3-glass.publication-page .pub-fallback__list { grid-template-columns: minmax(0, 1fr); }
}
