/* Shared presentation for published banners and the owner preview. */
#public-view .discover-section { width: min(1440px, 92%); margin: 0 auto 56px; padding-top: 30px; border-top: 1px solid #77634f66; }
.discover-section > h2 { color: var(--ink); font-size: clamp(20px, 2vw, 25px); font-weight: 650; letter-spacing: -.3px; margin: 0 0 20px; }
.gh-promotion { display: grid; grid-template-columns: 49% minmax(0, 1fr); overflow: hidden; min-height: 280px; border: 1px solid #a87843; border-radius: 12px; background: radial-gradient(ellipse at 15% 100%, #5a35212b, transparent 65%), #091218; color: #f3f4f5; isolation: isolate; }
.gh-promotion[hidden] { display: none; }
/* Enhanced only for multiple banners. Overlapping grid cells keep the height
   stable, while inert/aria-hidden remove inactive content from interaction. */
.gh-promotion-crossfade { display: grid; isolation: isolate; }
.gh-promotion-crossfade > .gh-promotion { grid-area: 1 / 1; min-width: 0; opacity: 1; visibility: visible; transition: opacity 1.2s ease-in-out, visibility 0s; }
.gh-promotion-crossfade > .gh-promotion[hidden] { display: grid !important; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 1.2s ease-in-out, visibility 0s linear 1.2s; }
.gh-promotion-art { position: relative; min-width: 0; min-height: 280px; max-height: 340px; }
.gh-promotion-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 72%, #091218); pointer-events: none; }
.gh-promotion-art img { width: 100%; height: 100%; max-height: 340px; display: block; object-fit: cover; }
.gh-promotion-image-only { grid-template-columns: 1fr; }
.gh-promotion-image-only .gh-promotion-art::after { display: none; }
.gh-promotion-image-only img { object-fit: contain; }
.gh-promotion-copy { position: relative; align-self: center; padding: 28px 34px 28px 18px; overflow-wrap: anywhere; }
.gh-promotion-label { margin: 0 0 13px; color: #00d8e8; font-size: 10px; font-weight: 750; letter-spacing: 2px; }
.gh-promotion h3 { margin: 0; font-size: clamp(24px, 2.7vw, 38px); line-height: 1.15; font-weight: 700; letter-spacing: -.7px; color: #f3f4f5; }
.gh-promotion-description { color: #bac3c9; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.5; margin: 12px 0 0; white-space: pre-line; }
.gh-promotion .gh-promotion-link { margin-top: 22px; min-height: 44px; border: 1px solid #00bcca; color: #00d8e8; background: #060d11aa; box-shadow: none; gap: 20px; }
.gh-promotion .gh-promotion-link:hover { background: #11272c; border-color: #46e1e9; }
.gh-promotion-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.gh-promotion-controls[hidden] { display: none; }
.gh-promotion-control, .gh-promotion-position { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ink); border: 1px solid var(--line); background: var(--surface); border-radius: 50%; cursor: pointer; }
.gh-promotion-control > span { font-size: 27px; line-height: 1; }
.gh-promotion-rotation { border-radius: 22px; padding: 8px 16px; font: inherit; font-size: 12px; }
.gh-promotion-positions { display: flex; flex-wrap: wrap; justify-content: center; }
.gh-promotion-position { border: 0; background: transparent; min-width: 32px; }
.gh-promotion-position span { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; opacity: .55; }
.gh-promotion-position[aria-current] span { background: var(--accent); opacity: 1; }
.gh-promotion-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) {
  #public-view .discover-section { width: calc(100% - 36px); margin-bottom: 36px; padding-top: 24px; }
  .gh-promotion { grid-template-columns: 1fr; min-height: 0; }
  .gh-promotion-art { min-height: 0; height: 220px; max-height: none; }
  .gh-promotion-art img { height: 100%; max-height: none; object-position: center 60%; }
  .gh-promotion-art::after { background: linear-gradient(0deg, #091218, transparent 25%); }
  .gh-promotion-copy { padding: 8px 24px 26px; }
  .gh-promotion h3 { font-size: 27px; }
  .gh-promotion-position { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .gh-promotion-crossfade > .gh-promotion,
  .gh-promotion-crossfade > .gh-promotion[hidden] { transition: none; }
}
@media (pointer: coarse) { .gh-promotion-position { min-width: 44px; } }
