/* v8 - Homepage heading: two lines and slightly larger type. Event cards are intentionally untouched. */
.home-page .hero-copy {
  max-width: none;
  width: calc(100% - 160px);
}
.home-page .hero-copy h1 {
  max-width: none;
  font-size: clamp(32px, 4vw, 72px);
  line-height: 1.17;
  letter-spacing: -.045em;
  text-wrap: wrap;
  white-space: normal;
}
.home-page .hero-copy h1 span { display: inline; }
@media (max-width: 900px) {
  .home-page .hero-copy { width: 100%; }
}
@media (max-width: 640px) {
  .home-page .hero-copy h1 {
    font-size: clamp(32px, 8vw, 42px);
    line-height: 1.18;
  }
}
/* Keep the existing inset intro panel inside the viewport, without touching cards. */
.home-page .intro-band.wrap { width: auto; }

/* Keti Koti Connect v5: homepage hero registration and market-stall actions.
   The pair stays together on larger screens and stacks on small phones. */
.home-page.unified .home-hero .hero-registration-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}
.home-page.unified .home-hero .hero-registration-actions > .btn {
  min-width: 0;
}
.home-page.unified .home-hero .hero-copy .btn-hero-tickets,
.home-page.unified .home-hero .hero-copy .btn-hero-tickets:is(:hover, :focus-visible, :active, :visited) {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.home-page.unified .home-hero .hero-copy .btn-hero-kramen,
.home-page.unified .home-hero .hero-copy .btn-hero-kramen:is(:hover, :focus-visible, :active, :visited) {
  background: #10BA26;
  color: #fff;
  border-color: #10BA26;
}
.home-page.unified .home-hero .hero-registration-actions > .btn .icon {
  color: inherit;
}
.home-page.unified .home-hero .hero-registration-actions > .btn:focus-visible {
  outline: 3px solid #10BA26;
  outline-offset: 4px;
}
@media screen and (max-width: 640px) {
  .home-page.unified .home-hero .hero-registration-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}

/* Keti Koti Connect v11: official Rotterdam website link and live hero countdown.
   Scoped to Home; existing event cards, shared typography and registration
   buttons retain their styling. The timer uses the existing unified.js. */
.home-page.unified .home-hero .hero-copy > .button-row {
  align-items: flex-start;
}
.home-page.unified .home-hero .hero-discover-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}
.home-page.unified .home-hero .hero-discover-actions > .btn {
  width: 100%;
}
.home-page.unified .home-hero .hero-copy .btn-hero-rotterdam,
.home-page.unified .home-hero .hero-copy .btn-hero-rotterdam:is(:hover, :focus-visible, :active, :visited) {
  background: #000;
  color: #fff;
  border-color: #000;
  justify-content: center;
}
.home-page.unified .home-hero .hero-copy .btn-hero-rotterdam:focus-visible {
  outline: 3px solid #10BA26;
  outline-offset: 4px;
}
.home-page.unified .home-hero .hero-luxe-card > .hero-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column: 1 / -1;
  justify-self: end;
  align-self: end;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  margin: 22px 0 0 auto;
  padding: 18px 8px;
  border-radius: 17px;
  background: #000;
  color: #fff;
  text-align: center;
}
.home-page.unified .home-hero .hero-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 0 3px;
}
.home-page.unified .home-hero .hero-countdown-unit + .hero-countdown-unit {
  border-left: 1px solid #ffffff29;
}
.home-page.unified .home-hero .hero-countdown-number {
  display: block;
  font-size: clamp(25px, 2.25vw, 34px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  line-height: 1;
  color: #10BA26;
}
.home-page.unified .home-hero .hero-countdown-label {
  display: block;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1.3;
  text-transform: uppercase;
}
.home-page.unified .home-hero .hero-countdown > noscript {
  grid-column: 1 / -1;
  margin-top: 15px;
}
.home-page.unified .home-hero .hero-countdown-fallback {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  padding-inline: 6px;
}
@media screen and (max-width: 900px) {
  .home-page.unified .home-hero .hero-luxe-card > .hero-countdown {
    margin-top: 10px;
  }
  .home-page.unified .home-hero .hero-countdown-number {
    font-size: 32px;
  }
}
@media screen and (max-width: 640px) {
  .home-page.unified .home-hero .hero-discover-actions {
    width: 100%;
  }
  .home-page.unified .home-hero .hero-luxe-card > .hero-countdown {
    padding: 18px 5px;
    border-radius: 15px;
  }
  .home-page.unified .home-hero .hero-countdown-number {
    font-size: clamp(25px, 7.25vw, 32px);
  }
  .home-page.unified .home-hero .hero-countdown-label {
    letter-spacing: .03em;
  }
}

/* Keep the expanded hero and its bottom event strip vertically arranged
   on tablets as well as phones, without narrowing the feature card. */
@media screen and (min-width: 641px) and (max-width: 900px) {
  .home-page.unified .home-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .home-page.unified .home-hero .hero-content {
    width: 100%;
  }
}

/* Scale the four readouts to the card, not to the whole viewport. */
@supports (font-size: 1cqi) {
  .home-page.unified .home-hero .hero-luxe-card > .hero-countdown {
    container-type: inline-size;
  }
  .home-page.unified .home-hero .hero-countdown-number {
    font-size: clamp(23px, 10cqi, 34px);
  }
  .home-page.unified .home-hero .hero-countdown-label {
    font-size: clamp(8px, 3cqi, 9px);
    letter-spacing: .03em;
  }
}

/* Keti Koti Connect v12: keep Bigi Spikri immediately below registration.
   The existing desktop groups stay intact. Green action colours updated in v13. */
.home-page.unified .home-hero .hero-registration-actions {
  align-items: flex-start;
}
.home-page.unified .home-hero .hero-ticket-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}
.home-page.unified .home-hero .hero-ticket-actions > .btn {
  width: 100%;
  min-width: 0;
}
.home-page.unified .home-hero .hero-copy .btn-hero-bigi,
.home-page.unified .home-hero .hero-copy .btn-hero-bigi:visited {
  background: #10BA26;
  border-color: #10BA26;
  color: #fff;
  justify-content: center;
}
.home-page.unified .home-hero .hero-copy .btn-hero-bigi:is(:hover, :focus-visible, :active) {
  background: #10BA26;
  border-color: #10BA26;
  color: #fff;
}
.home-page.unified .home-hero .hero-ticket-actions > .btn .icon {
  color: inherit;
}
.home-page.unified .home-hero .hero-ticket-actions > .btn:focus-visible {
  outline: 3px solid #10BA26;
  outline-offset: 4px;
}
.home-page.unified .home-hero .hero-button-label {
  min-width: 0;
}

/* Mobile and tablet: center the label itself, not only label plus icon.
   Symmetric icon columns prevent arrows and ticket symbols shifting the text. */
@media screen and (max-width: 900px) {
  .home-page.unified .btn {
    text-align: center;
    justify-content: center;
  }
  .home-page.unified .home-hero .hero-copy .btn {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    column-gap: 8px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .home-page.unified .home-hero .hero-copy .btn > .hero-button-label {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
  }
  .home-page.unified .home-hero .hero-copy .btn > .icon {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    width: 18px;
    height: 18px;
    color: inherit;
  }
}
@media screen and (max-width: 640px) {
  .home-page.unified .home-hero .hero-ticket-actions {
    width: 100%;
  }
}

/* Keti Koti Connect v13: right-hand arrows and mobile action order.
   Only homepage hero actions are affected. White tickets and the black
   Rotterdam link retain their original backgrounds and text colours. */
.home-page.unified .home-hero .hero-copy .button-row .btn > .icon {
  flex-shrink: 0;
  margin-left: auto;
  color: inherit;
}
.home-page.unified .home-hero .hero-copy .button-row .btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* Flatten the desktop groups on mobile/tablet. CSS order also provides
   the requested layout when JavaScript is disabled. The inline home script
   moves the same links so the keyboard order matches this visual order. */
@media screen and (max-width: 900px) {
  .home-page.unified .home-hero .hero-copy > .button-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
  }
  .home-page.unified .home-hero .hero-discover-actions,
  .home-page.unified .home-hero .hero-registration-actions,
  .home-page.unified .home-hero .hero-ticket-actions {
    display: contents;
  }
  .home-page.unified .home-hero .hero-copy .button-row .btn {
    width: 100%;
    min-width: 0;
  }
  .home-page.unified .home-hero .hero-copy .button-row .btn > .icon {
    margin-left: 0;
  }
  .home-page.unified .home-hero .hero-copy .button-row a[href="#events"] { order: 1; }
  .home-page.unified .home-hero .hero-copy .button-row .btn-hero-bigi { order: 2; }
  .home-page.unified .home-hero .hero-copy .button-row .btn-hero-kramen { order: 3; }
  .home-page.unified .home-hero .hero-copy .button-row .btn-hero-tickets { order: 4; }
  .home-page.unified .home-hero .hero-copy .button-row .btn-hero-rotterdam { order: 5; }
}
