/*
Theme Name: S2 Belgium Country Child
Template: s2-deployment-parent
Version: 1.3.11
Text Domain: s2-belgium-country-child
*/

/* The shared parent owns layout. This child contains Belgium identity only. */

/* The shared parent retains the reusable Comparison Studio composition. Map
   its presentation roles onto the approved Amino Acid News five-colour set. */
.kl-brand-s2 {
  --studio-cobalt: #181A1D;
  --studio-paper: #F7F5EF;
  --studio-yellow: #FFBF55;
}
.kl-brand-s2 .directory-route .kld-visual-hero {
  background: #181A1D;
}

/* The importer identity layer intentionally owns global brand primitives, but
   its generic .hero rule caps the reusable parent grid at 820px. Restore the
   full Belgium composition without changing importer bytes or shared parent. */
.kl-brand-s2 .site .hero-visual-layout {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
}
.kl-brand-s2 .hero-copy h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: clamp(2rem, 4.4cqi, 3.25rem);
}
.kl-brand-s2 .directory-route .kld-visual-hero {
  max-height: 190px;
  background: #F7F5EF;
}
@container (max-width: 768px) {
  .kl-brand-s2 .site .hero-visual-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .kl-brand-s2 .hero-copy h1 {
    font-size: clamp(1.75rem, 8cqi, 2.25rem);
  }
}

/* Rejected route artwork is removed at render time; keep the remaining lead
   balanced instead of leaving an empty visual column. */
.lead > .lead-copy:only-child {
  grid-column: 1 / -1;
  max-width: 52rem;
}

/* Compound profiles always carry a useful, non-product visual. The child owns
   this panel so importer-added numeric slug suffixes cannot leave a blank hero. */
.kl-brand-s2 .profile-record-artwork {
  display: block;
  align-self: center;
  padding: 0;
  overflow: hidden;
  border: 2px solid #181A1D;
  border-radius: 1rem;
  background: #F7F5EF;
  box-shadow: none;
}
.kl-brand-s2 .profile-record-artwork img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 6.5;
}
.kl-brand-s2 .profile-record-artwork figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: .85rem 1rem;
  border-top: 2px solid #181A1D;
  color: #55575A;
}
.kl-brand-s2 .profile-record-artwork figcaption strong { color: #181A1D; }
@container (max-width: 650px) {
  .kl-brand-s2 .profile-record-artwork figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
  }
}

/* Applied-design pilot: render-only directory hierarchy and explicit language control. */
.kl-brand-s2 header { align-items: center; gap: 1rem; }
.kl-brand-s2 .header-utilities {
  display: flex; align-items: center; justify-content: flex-end;
  gap: .75rem; margin-inline-start: auto;
}
.kl-brand-s2 .aan-language-switcher {
  display: flex; align-items: center; gap: .2rem; padding: .2rem;
  border: 2px solid #181A1D; border-radius: .5rem; background: #F7F5EF;
}
.kl-brand-s2 .aan-language-switcher a {
  display: inline-flex; min-height: 44px; align-items: center;
  padding: .55rem .7rem; color: #181A1D; font-weight: 700;
  text-decoration: none; border-radius: .3rem;
}
.kl-brand-s2 .aan-language-switcher a:hover,
.kl-brand-s2 .aan-language-switcher a:focus-visible { background: #FAEDCC; }
.kl-brand-s2 .aan-language-switcher a[aria-current="page"] { background: #FFBF55; }
.kl-brand-s2 .geo-context { color: #55575A; font-size: .78rem; white-space: nowrap; }
.kl-brand-s2 .listing { margin-block: clamp(2rem, 5vw, 4.5rem); }
.kl-brand-s2 .listing > h2 { max-width: 30rem; margin: 0 0 1.5rem; }
.kl-brand-s2 .listing > h2::after,
.kl-brand-s2 .page-content > h2::after,
.kl-brand-s2 .editorial-article > section > h2::after {
  display: block; width: 3.5rem; height: .35rem; margin-top: .65rem;
  background: #FFBF55; content: "";
}
.kl-brand-s2 .listing .cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem;
}
.kl-brand-s2 .listing .card {
  position: relative; min-width: 0; padding: 1.35rem;
  border: 2px solid #181A1D; border-top: 6px solid #FFBF55;
  border-radius: .5rem; background: #F7F5EF;
}
.kl-brand-s2 .listing .card:hover,
.kl-brand-s2 .listing .card:focus-within { background: #FAEDCC; }
.kl-brand-s2 .card-symbol {
  display: grid; width: 48px; height: 48px; margin-bottom: 1rem;
  place-items: center; border: 2px solid #181A1D;
  border-radius: .35rem; background: #FFBF55;
}
.kl-brand-s2 .card-symbol > span {
  width: 14px; height: 14px; border-radius: 50%; background: #181A1D;
}
.kl-brand-s2 .listing .count {
  display: block; margin-bottom: .4rem; color: #55575A;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.kl-brand-s2 .listing .card h3 { margin: 0 0 .65rem; }
.kl-brand-s2 .listing .card h3 a { color: #181A1D; }
.kl-brand-s2 .listing .card p { margin: 0; color: #55575A; }
.kl-brand-s2 #kld-context > section { max-width: 52rem; }
.kl-brand-s2 #kld-context > section > h2 { margin: 2rem 0 .6rem; }
.kl-brand-s2 #kld-context > section > h2:first-child { margin-top: .5rem; }
.kl-brand-s2 #kld-context > section > h2::after {
  display: block; width: 3.5rem; height: .35rem; margin-top: .55rem;
  background: #FFBF55; content: "";
}
.kl-brand-s2 #kld-context > section > p { margin: 0 0 1.15rem; color: #55575A; }
.kl-brand-s2 #kld-context > .record-parent {
  display: block; max-width: 52rem; margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid #55575A;
}

@media (max-width: 1100px) {
  .kl-brand-s2 header { flex-wrap: wrap; }
  .kl-brand-s2 .header-utilities { width: 100%; justify-content: space-between; margin-inline-start: 0; }
}
@media (max-width: 900px) {
  .kl-brand-s2 .listing .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .kl-brand-s2 .header-utilities { align-items: stretch; flex-direction: column; gap: .55rem; }
  .kl-brand-s2 .aan-language-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kl-brand-s2 .aan-language-switcher a { justify-content: center; padding-inline: .35rem; }
  .kl-brand-s2 .geo-context { padding-top: .55rem; border-top: 1px solid #55575A; }
  .kl-brand-s2 .listing .cards { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 600px) {
  .kl-brand-s2 header .header-utilities { display: flex; width: 100%; }
  .kld-app.js.kl-brand-s2 header nav.aan-language-switcher:not(.open),
  .kl-brand-s2 header nav.aan-language-switcher { display: grid; width: 100%; gap: .2rem; }
  .kl-brand-s2 header .geo-context { display: block; }
}
@media (max-width: 340px) {
  .kl-brand-s2 .aan-language-switcher { grid-template-columns: minmax(0, 1fr); }
  .kl-brand-s2 .homepage-lookup-controls { display: grid; grid-template-columns: minmax(0, 1fr); }
  .kl-brand-s2 .homepage-lookup-controls input,
  .kl-brand-s2 .homepage-lookup-controls button { width: 100%; min-width: 0; }
  .kl-brand-s2 .hero-copy h1 { font-size: 1.65rem; overflow-wrap: anywhere; }
}
