/* Thai Culture & Traditions — magazine layout. Do not reuse on other pages. */

.tl-main.tl-main--culture {
  padding: 0;
  background: #f6f1e8;
}

.tl-tc {
  --tc-gold: #c4a35a;
  --tc-gold-deep: #9a7840;
  --tc-ink: #1b140c;
  --tc-muted: #6b5f52;
  --tc-paper: #f6f1e8;
  --tc-white: #fffcf7;
  --tc-line: rgba(154, 120, 64, 0.28);
  color: var(--tc-ink);
  background: var(--tc-paper);
}

.tl-tc-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(460px, 72vh, 640px);
  padding: 72px 40px 56px;
  color: #f6ecd8;
  background-color: var(--tl-navy, #0d2e4d);
  background-image: var(--tl-tc-hero);
  background-position: 58% 38%;
  background-repeat: no-repeat;
  background-size: cover;
}

.tl-tc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(13, 46, 77, 0.84) 0%,
    rgba(13, 46, 77, 0.46) 52%,
    rgba(13, 46, 77, 0.22) 100%
  );
}

.tl-tc-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.tl-tc-hero__copy {
  max-width: 34rem;
}

.tl-tc-kicker {
  margin: 0 0 14px;
  color: var(--tc-gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tl-tc-hero .tl-tc-kicker {
  color: #e4c98a;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.tl-tc-hero h1 {
  margin: 0 0 18px;
  max-width: 11ch;
  color: #f8f0e0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.tl-tc-hero__lead {
  max-width: 34em;
  margin: 0 0 16px;
  color: rgba(246, 236, 216, 0.94);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.45;
}

.tl-tc-hero__more {
  max-width: 38em;
  margin: 0;
  color: rgba(246, 236, 216, 0.78);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.tl-tc-script {
  margin: 0;
  color: rgba(255, 246, 230, 0.96);
  font-family: Caveat, "Segoe Script", cursive;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  text-align: right;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.tl-tc-hero > .tl-tc-hero__inner .tl-tc-script,
.tl-tc-hero .tl-tc-script {
  position: absolute;
  right: clamp(20px, 5vw, 56px);
  bottom: 48px;
  z-index: 2;
  max-width: 9em;
}

.tl-tc-topics {
  background: var(--tc-white);
  border-bottom: 1px solid var(--tc-line);
  box-shadow: 0 10px 28px rgba(27, 20, 12, 0.04);
}

.tl-tc-topics__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(180px, 0.85fr);
  gap: 8px 12px;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 18px 32px;
}

.tl-tc-topic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  color: var(--tc-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
}

.tl-tc-topic:hover,
.tl-tc-topic:focus-visible {
  color: var(--tc-gold-deep);
}

.tl-tc-topic__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--tc-gold);
}

.tl-tc-topic__icon svg {
  width: 36px;
  height: 36px;
}

.tl-tc-topics__motto {
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--tc-line);
  color: var(--tc-gold-deep);
  font-family: Caveat, "Segoe Script", cursive;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.tl-tc-row {
  display: grid;
  grid-template-columns: 1.18fr 1fr 0.82fr;
  grid-template-areas: "shot copy quote";
  min-height: 340px;
  background: var(--tc-white);
}

.tl-tc-row--flip {
  grid-template-columns: 0.92fr 1.26fr 0.82fr;
  grid-template-areas: "copy shot quote";
}

.tl-tc-shot {
  grid-area: shot;
  position: relative;
  margin: 0;
  min-height: 320px;
  overflow: hidden;
  background: #1b140c;
}

.tl-tc-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px 40px;
  background: var(--tc-white);
}

.tl-tc-quote {
  grid-area: quote;
  position: relative;
  margin: 0;
  min-height: 320px;
  overflow: hidden;
  background: #1b140c;
}

.tl-tc-shot img,
.tl-tc-quote img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-tc-shot--wai img {
  object-position: center 18%;
}

.tl-tc-shot--palace img {
  object-position: center 62%;
}

.tl-tc-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 11, 7, 0.08) 0%,
    rgba(16, 11, 7, 0.28) 48%,
    rgba(16, 11, 7, 0.62) 100%
  );
  pointer-events: none;
}

.tl-tc-quote .tl-tc-script {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  max-width: 12em;
  color: #fff6e6;
}

.tl-tc-copy__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--tc-gold);
}

.tl-tc-copy__icon svg {
  width: 42px;
  height: 42px;
}

.tl-tc-copy h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.tl-tc-copy__eyebrow {
  margin: 0 0 14px;
  color: var(--tc-gold-deep);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tl-tc-copy p {
  max-width: 38em;
  margin: 0 0 22px;
  color: var(--tc-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
}

.tl-tc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tc-ink) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.tl-tc-link:hover,
.tl-tc-link:focus-visible {
  color: var(--tc-gold-deep) !important;
}

.tl-tc-close {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 72px 40px;
  color: #f6ecd8;
  background-color: #120e0a;
  background-image:
    linear-gradient(
      90deg,
      rgba(8, 6, 4, 0.82) 0%,
      rgba(8, 6, 4, 0.42) 48%,
      rgba(8, 6, 4, 0.22) 100%
    ),
    var(--tl-tc-close);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.tl-tc-close__inner {
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.tl-tc-close__inner > div {
  max-width: 34rem;
}

.tl-tc-close .tl-tc-script {
  position: absolute;
  right: clamp(20px, 5vw, 56px);
  bottom: 56px;
  z-index: 2;
}

.tl-tc-close h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.05;
}

.tl-tc-close p:not(.tl-tc-kicker):not(.tl-tc-script) {
  max-width: 32em;
  margin: 0 0 28px;
  color: rgba(246, 236, 216, 0.82);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

.tl-tc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #1a140e;
  color: #f6ecd8 !important;
  box-shadow: inset 0 0 0 1px rgba(196, 163, 90, 0.55);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
}

.tl-tc-btn:hover,
.tl-tc-btn:focus-visible {
  background: var(--tc-gold-deep);
  color: #fff8ea !important;
}

#buddhism,
#monarchy,
#family,
#festivals,
#manners {
  scroll-margin-top: 84px;
}

@media (max-width: 980px) {
  .tl-tc-hero,
  .tl-tc-close {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tl-tc-hero > .tl-tc-hero__inner .tl-tc-script,
  .tl-tc-hero .tl-tc-script,
  .tl-tc-close .tl-tc-script {
    position: static;
    display: block;
    margin-top: 22px;
    max-width: none;
    font-size: 28px;
    text-align: left;
  }

  .tl-tc-topics {
    overflow-x: auto;
  }

  .tl-tc-topics__inner {
    width: max-content;
    min-width: 100%;
    padding: 16px 20px;
    grid-template-columns: repeat(5, 140px) 180px;
  }

  .tl-tc-row,
  .tl-tc-row--flip {
    grid-template-columns: 1fr;
    grid-template-areas:
      "shot"
      "copy"
      "quote";
    min-height: 0;
  }

  .tl-tc-shot,
  .tl-tc-quote {
    min-height: 240px;
    height: 240px;
  }

  .tl-tc-copy {
    padding: 28px 24px 32px;
  }
}

@media (max-width: 640px) {
  .tl-tc-hero {
    min-height: 520px;
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .tl-tc-hero h1 {
    max-width: none;
  }

  .tl-tc-close {
    min-height: 380px;
    padding: 48px 20px;
  }
}
