/* Civic extension: executive-rotation (ภาพผู้บริหารแบบหมุนเวียน). Loaded only when the section renders. */
.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--civic-gap, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 20rem);
  text-align: center;
}

.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
}

.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__pose.is-active {
  opacity: 1;
}

.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__body {
  margin-top: 0.75rem;
}

.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__name a {
  color: inherit;
  text-decoration: none;
}

.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__name a:hover,
.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__name a:focus-visible {
  text-decoration: underline;
}

.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__role {
  margin: 0.25rem 0 0;
  opacity: 0.8;
}

.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__pause {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__pose {
    transition: none;
  }

  .sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__pause {
    display: none;
  }
}

/* Showcase look (opt-in via background / phone / link buttons / all-link settings). */
.sila-civic-home .civic-ext--executive-rotation-showcase {
  background-color: var(--civic-paper, #fff);
  background-image: var(--civic-exec-bg, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.sila-civic-home .civic-ext--executive-rotation-showcase .civic-exec-rot {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem;
  max-width: 78rem; margin: 0 auto;
}
.sila-civic-home .civic-ext--executive-rotation-showcase .civic-exec-rot__person {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: end; width: 100%; text-align: left; gap: 0.75rem;
}
.sila-civic-home .civic-ext--executive-rotation-showcase .civic-exec-rot__person:nth-child(even) .civic-exec-rot__stage { order: 2; }
.sila-civic-home .civic-ext--executive-rotation-showcase .civic-exec-rot__person:nth-child(odd) .civic-exec-rot__body { align-self: start; margin-top: 3rem; }
.sila-civic-home .civic-ext--executive-rotation-showcase .civic-exec-rot__person:nth-child(even) .civic-exec-rot__body { align-self: center; margin-top: 4rem; }
.sila-civic-home .civic-ext--executive-rotation-showcase .civic-exec-rot__person:nth-child(even) { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.sila-civic-home .civic-ext--executive-rotation-showcase .civic-exec-rot__stage { aspect-ratio: 2 / 3; }
.sila-civic-home .civic-ext--executive-rotation-showcase .civic-ext-head { justify-content: center; text-align: center; }
.sila-civic-home .civic-ext--executive-rotation-showcase .civic-title { text-align: center; }
.sila-civic-home .civic-ext--executive-rotation-showcase .civic-exec-rot__body {
  padding: 1.25rem 1.5rem; border-radius: 0.75rem; background: rgb(255 252 246 / 0.9);
}
.sila-civic-home .civic-ext--executive-rotation-showcase .civic-exec-rot__name { font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--civic-navy-strong, #8a1020); }
.sila-civic-home .civic-ext--executive-rotation-showcase .civic-exec-rot__role { opacity: 1; font-size: 0.95rem; }
.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__phone,
.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin: 0.6rem 0.4rem 0 0;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__phone {
  flex-direction: column; align-items: flex-start; border-radius: 0.75rem; padding: 0.45rem 1.1rem;
  background: var(--civic-navy, #d2211b);
  color: #fff;
}
.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__phone::before { content: "โทรศัพท์"; font-size: 0.72rem; font-weight: 500; opacity: 0.95; }
.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__phone { font-size: 1.4rem; letter-spacing: 0.02em; line-height: 1.2; white-space: nowrap; }
.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__links { display: flex; flex-wrap: wrap; }
.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__btn {
  border: 2px solid #c9a24a;
  color: var(--civic-navy-strong, #8a1020);
  background: linear-gradient(180deg, #f6e08e, #d9b04a);
}
.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__all { margin: 1.5rem 0 0; text-align: center; }
.sila-civic-home .civic-ext--executive-rotation .civic-exec-rot__all a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1.25rem;
  border-radius: 999px; background: var(--civic-navy-strong, #8a1020); color: #fff; text-decoration: none; font-weight: 600;
}
@media (max-width: 640px) {
  .sila-civic-home .civic-ext--executive-rotation-showcase .civic-exec-rot { grid-template-columns: 1fr; }
}

/* Shared link row (opt-in shared_links): buttons in one centred row below both people, larger cut-outs, lighter type like the reference layout. */
.sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot { max-width: 84rem; }
.sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__stage { aspect-ratio: 3 / 4; }
.sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__person { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__person:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__body { background: rgb(255 252 246 / 0.82); }
.sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__name { font-weight: 500; letter-spacing: 0.01em; }
.sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__role { font-weight: 400; letter-spacing: 0.01em; }
.sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__phone { font-weight: 700; }
.sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__links--shared {
  justify-content: center; gap: 0.5rem 1.5rem; margin-top: 1.25rem;
}
.sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__links--shared .civic-exec-rot__btn {
  min-height: 3.25rem; margin: 0; padding: 0.4rem 2.25rem; font-size: 1.4rem; font-weight: 700;
}
@media (max-width: 640px) {
  .sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__person,
  .sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__person:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__links--shared .civic-exec-rot__btn { font-size: 1.1rem; padding: 0.3rem 1.25rem; }
}
.sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__stage { transform: scale(1.15); transform-origin: 50% 100%; }
.sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__name { font-size: clamp(1.15rem, 1.6vw, 1.5rem); text-wrap: balance; }
@media (max-width: 640px) {
  .sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__stage { transform: none; }
}
@media (max-width: 640px) {
  .sila-civic-home .civic-ext--executive-rotation-shared .civic-exec-rot__phone { font-size: 1.1rem; white-space: normal; }
}
