/* ABC Home page styles (loaded after base.css) */

/* Hero */
.hero { padding-block: var(--s-6); }
.hero__grid { display: grid; gap: var(--s-6); }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-3);
  padding: 4px 16px;
  font: 600 1.0625rem var(--font-head);
  background: var(--yellow);
  border: var(--border);
  border-radius: 999px;
}
.hero__badge::before { content: ""; width: 10px; height: 10px; background: var(--ink); border-radius: 50%; }

.hero h1 { margin-bottom: var(--s-3); }
.hero[data-state="upcoming"] h1 { min-height: 3.6em; } /* room for a three-line headline */
.hero .eyebrow { min-height: 1.3em; }
.hero__facts { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); font-size: 1.125rem; color: var(--slate); }
.hero__facts li { display: flex; align-items: center; gap: 12px; }
.hero__facts .icon { color: var(--green); }
.hero > .container .lead { margin-bottom: var(--s-4); }

.hero__actions { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
@media (min-width: 600px) { .hero__actions { display: flex; flex-wrap: wrap; } }

/* Countdown */
.countdown { min-height: 88px; }
/* Space stays reserved while the script is still loading; invisible until it fills in */
.hero[data-state="upcoming"] .countdown[hidden] { display: block !important; visibility: hidden; }
.countdown__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-1); }
.countdown__tile {
  padding: 10px 4px;
  text-align: center;
  line-height: 1.2;
  background: var(--yellow);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.countdown__num {
  display: block;
  font: 800 clamp(1.5rem, 7vw, 2.25rem) / 1.1 var(--font-head);
  font-variant-numeric: tabular-nums;
}
.countdown__label { display: block; font-size: 0.875rem; font-weight: 500; }
.countdown__live {
  padding: var(--s-2);
  text-align: center;
  font: 700 1.25rem var(--font-head);
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.notice { padding: var(--s-2); background: var(--white); border: var(--border); border-radius: var(--radius); font-weight: 600; }

/* Hero photo frame with corner shapes */
.photo-frame { position: relative; }
.photo-frame__inner {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.photo-frame__inner > .ph, .photo-frame__inner > img { width: 100%; height: 100%; }
.photo-frame__inner > img { object-fit: cover; }

.photo-frame__shape { position: absolute; z-index: 2; pointer-events: none; }
.photo-frame__shape--tri {
  top: -30px; left: -10px; width: 52px; height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 46'%3E%3Cpath d='M26 3 49 43H3z' fill='%23FFD400' stroke='%23111' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.photo-frame__shape--dot {
  top: 32px; right: -17px; width: 34px; height: 34px;
  background: var(--red-action); border: var(--border); border-radius: 50%;
}
.photo-frame__shape--quarter {
  right: -12px; bottom: -12px; width: 60px; height: 60px;
  background: var(--green); border: var(--border); border-radius: 60px 0 0 0;
}
.photo-frame__tag {
  position: absolute;
  z-index: 3;
  left: 20px;
  bottom: 18px;
  margin: 0;
  padding: 10px 16px;
  font: 700 1rem/1.2 var(--font-head);
  color: var(--ink);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero[data-state="past"] .photo-frame { display: none; }

@media (min-width: 1100px) {
  .hero { padding-block: var(--s-8); }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: var(--s-8); }
  .hero[data-state="past"] .hero__grid { grid-template-columns: 1fr; }
}

/* Sub-theme cards */
.subtheme__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-1);
  font: 700 1.125rem var(--font-head);
  background: var(--yellow);
  border: var(--border);
  border-radius: 50%;
}


/* Exhibition and Awards media cards */
.media-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sand);
  border-bottom: var(--border);
}

/* Make images fill the entire frame */
.media-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hide placeholder text when a real image is present */
.media-card__media img + span {
  display: none;
}

/* Past editions carousel */
.editions {
  display: flex;
  gap: var(--s-2);
  margin-inline: calc(var(--s-2) * -1);
  padding: 0 var(--s-2) var(--s-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--s-2);
  scrollbar-width: thin;
}
.edition {
  position: relative;
  flex: 0 0 72%;
  max-width: 340px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  scroll-snap-align: start;
  border: var(--border);
  border-radius: var(--radius);
}
.edition .ph, .edition img { width: 100%; height: 100%; }
.edition img { object-fit: cover; }
.edition__badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 4px 14px;
  font: 700 1rem var(--font-head);
  background: var(--yellow);
  border: var(--border);
  border-radius: 999px;
}
@media (min-width: 768px) {
  .editions { margin-inline: calc(var(--s-3) * -1); padding-inline: var(--s-3); scroll-padding-inline: var(--s-3); }
}

/* Sponsors and partners */
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.logo-box {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: var(--s-2);
  background: var(--white);
  border: 2px dashed #9A9A9A;
  border-radius: 16px;
  color: var(--slate);
  font-size: 1.125rem;
}
.logo-box img { max-height: 70%; width: auto; object-fit: contain; }
@media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }