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

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

.tl-tc {
  --tc-gold: #c9a24a;
  --tc-gold-deep: #8b6914;
  --tc-gold-soft: #e8d5a3;
  --tc-saffron: #c4782a;
  --tc-crimson: #7a2e2e;
  --tc-ink: #1a1008;
  --tc-muted: #5e4f40;
  --tc-paper: #f3ebe0;
  --tc-silk: #faf6ef;
  --tc-white: #fffcf7;
  --tc-teak: #2a1c10;
  --tc-line: rgba(139, 105, 20, 0.22);
  --tc-serif: "Cormorant Garamond", "Times New Roman", serif;
  --tc-script: Caveat, "Segoe Script", cursive;
  color: var(--tc-ink);
  background: var(--tc-paper);
}

/* Soft Thai lattice behind content bands */
.tl-tc::before {
  content: none;
}

/* ——— Hero ——— */
.tl-tc-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: var(--tl-cover-min-height, 460px);
  padding: var(--tl-cover-pad-top, 88px) 40px var(--tl-cover-pad-bottom, 72px);
  color: #f8ecd8;
  overflow: hidden;
  background-color: var(--tc-teak);
  background-image: var(--tl-tc-hero);
  background-position: 58% 36%;
  background-repeat: no-repeat;
  background-size: cover;
}

.tl-tc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      rgba(26, 16, 8, 0.88) 0%,
      rgba(42, 28, 16, 0.55) 42%,
      rgba(122, 46, 46, 0.28) 72%,
      rgba(196, 120, 42, 0.18) 100%
    ),
    linear-gradient(
      to top,
      rgba(26, 16, 8, 0.82) 0%,
      rgba(26, 16, 8, 0.2) 55%,
      rgba(26, 16, 8, 0.08) 100%
    );
}

.tl-tc-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--tc-gold) 18%,
    var(--tc-gold-soft) 50%,
    var(--tc-gold) 82%,
    transparent 100%
  );
  opacity: 0.85;
  pointer-events: none;
}

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

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

.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: var(--tc-gold-soft);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.tl-tc-hero h1 {
  margin: 0 0 18px;
  max-width: 12ch;
  color: #faf3e6;
  font-family: var(--tc-serif);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

.tl-tc-hero__lead {
  max-width: 34em;
  margin: 0 0 16px;
  color: rgba(250, 243, 230, 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(250, 243, 230, 0.76);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.tl-tc-script {
  margin: 0;
  color: rgba(255, 246, 230, 0.96);
  font-family: var(--tc-script);
  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.4);
}

.tl-tc-hero > .tl-tc-hero__inner .tl-tc-script,
.tl-tc-hero .tl-tc-script {
  position: absolute;
  right: clamp(20px, 5vw, 56px);
  bottom: 52px;
  z-index: 2;
  max-width: 9em;
  animation: tl-tc-rise 1.1s 0.15s ease both;
}

/* ——— Topic nav ——— */
.tl-tc-topics {
  position: relative;
  background:
    linear-gradient(180deg, #fffdf8 0%, var(--tc-silk) 100%);
  border-bottom: 1px solid var(--tc-line);
  box-shadow: 0 12px 32px rgba(26, 16, 8, 0.05);
}

.tl-tc-topics__inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(160px, 0.75fr);
  gap: 6px 10px;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 20px 28px;
}

.tl-tc-topic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  color: var(--tc-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  border-radius: 4px;
  transition: color 0.25s ease, background 0.25s ease;
}

.tl-tc-topic:hover,
.tl-tc-topic:focus-visible {
  color: var(--tc-crimson);
  background: rgba(201, 162, 74, 0.1);
}

.tl-tc-topic__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--tc-gold-deep);
  transition: transform 0.35s ease, color 0.25s ease;
}

.tl-tc-topic:hover .tl-tc-topic__icon,
.tl-tc-topic:focus-visible .tl-tc-topic__icon {
  color: var(--tc-saffron);
  transform: translateY(-2px);
}

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

.tl-tc-topics__motto {
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--tc-line);
  color: var(--tc-gold-deep);
  font-family: var(--tc-script);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

/* ——— Culture rows ——— */
.tl-tc-row {
  display: grid;
  grid-template-columns: 1.18fr 1fr 0.82fr;
  grid-template-areas: "shot copy quote";
  min-height: 360px;
  background: var(--tc-white);
  border-bottom: 1px solid var(--tc-line);
}

.tl-tc-row:nth-of-type(even) {
  background: var(--tc-silk);
}

.tl-tc-row:nth-of-type(even) .tl-tc-copy {
  background: var(--tc-silk);
}

.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: 340px;
  overflow: hidden;
  background: var(--tc-teak);
}

.tl-tc-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.18);
}

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

.tl-tc-copy::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 42px;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--tc-gold), transparent);
}

.tl-tc-quote {
  grid-area: quote;
  position: relative;
  margin: 0;
  min-height: 340px;
  overflow: hidden;
  background: var(--tc-teak);
}

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

.tl-tc-row:hover .tl-tc-shot img,
.tl-tc-row:hover .tl-tc-quote img {
  transform: scale(1.03);
}

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

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

.tl-tc-shot--dress img {
  object-position: center 35%;
}

.tl-tc-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 16, 8, 0.06) 0%,
    rgba(26, 16, 8, 0.32) 48%,
    rgba(26, 16, 8, 0.72) 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: 8px 0 14px;
  color: var(--tc-gold-deep);
}

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

.tl-tc-copy h2 {
  margin: 0 0 8px;
  font-family: var(--tc-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-saffron);
  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-thai-name {
  display: block;
  margin: 0 0 6px;
  color: var(--tc-crimson);
  font-family: var(--tc-serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.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;
  transition: color 0.2s ease, gap 0.2s ease;
}

.tl-tc-link:hover,
.tl-tc-link:focus-visible {
  color: var(--tc-crimson) !important;
  gap: 12px;
}

/* ——— Thai dress gallery ——— */
.tl-tc-dress {
  position: relative;
  padding: 72px 40px 80px;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(201, 162, 74, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(122, 46, 46, 0.08), transparent 50%),
    linear-gradient(180deg, #faf6ef 0%, #f0e4d4 100%);
  border-bottom: 1px solid var(--tc-line);
  overflow: hidden;
}

.tl-tc-dress::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='none' stroke='%238b6914' stroke-width='0.8' d='M40 8c4 10 12 16 12 28a12 12 0 1 1-24 0c0-12 8-18 12-28zM18 40c10-4 16-12 28-12a12 12 0 1 1 0 24c-12 0-18-8-28-12zM62 40c-10 4-16 12-28 12a12 12 0 1 1 0-24c12 0 18 8 28 12z'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

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

.tl-tc-dress__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px 56px;
  align-items: end;
  margin-bottom: 48px;
}

.tl-tc-dress__head h2 {
  margin: 10px 0 12px;
  font-family: var(--tc-serif);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

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

.tl-tc-dress__ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  color: var(--tc-gold-deep);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tl-tc-dress__ornament::before,
.tl-tc-dress__ornament::after {
  content: "";
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tc-gold));
}

.tl-tc-dress__ornament::after {
  background: linear-gradient(90deg, var(--tc-gold), transparent);
}

.tl-tc-dress__aside {
  padding: 28px 28px 30px;
  border: 1px solid var(--tc-line);
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.95), rgba(248, 236, 216, 0.75));
}

.tl-tc-dress__aside p {
  margin: 0;
  color: var(--tc-ink);
  font-family: var(--tc-script);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

.tl-tc-dress__aside span {
  display: block;
  margin-top: 12px;
  color: var(--tc-muted);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  font-style: normal;
}

.tl-tc-dress__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tl-tc-dress-type {
  position: relative;
  padding: 26px 22px 28px;
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid transparent;
  border-bottom: 2px solid var(--tc-gold);
  box-shadow: 0 10px 28px rgba(26, 16, 8, 0.04);
  opacity: 0;
  transform: translateY(18px);
  animation: tl-tc-rise 0.7s ease forwards;
}

.tl-tc-dress-type:nth-child(1) { animation-delay: 0.05s; }
.tl-tc-dress-type:nth-child(2) { animation-delay: 0.1s; }
.tl-tc-dress-type:nth-child(3) { animation-delay: 0.15s; }
.tl-tc-dress-type:nth-child(4) { animation-delay: 0.2s; }
.tl-tc-dress-type:nth-child(5) { animation-delay: 0.25s; }
.tl-tc-dress-type:nth-child(6) { animation-delay: 0.3s; }
.tl-tc-dress-type:nth-child(7) { animation-delay: 0.35s; }
.tl-tc-dress-type:nth-child(8) { animation-delay: 0.4s; }

.tl-tc-dress-type:hover {
  border-color: rgba(201, 162, 74, 0.45);
  background: #fffcf7;
  box-shadow: 0 16px 36px rgba(26, 16, 8, 0.08);
}

.tl-tc-dress-type__media {
  position: relative;
  aspect-ratio: 2 / 3;
  margin: -26px -22px 22px;
  overflow: hidden;
  background: #eadbc6;
}

.tl-tc-dress-type__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(139, 105, 20, 0.14);
}

.tl-tc-dress-type__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.tl-tc-dress-type:hover .tl-tc-dress-type__media img {
  transform: scale(1.025);
}

.tl-tc-dress-type__num {
  display: block;
  margin-bottom: 14px;
  color: var(--tc-gold);
  font-family: var(--tc-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.tl-tc-dress-type h3 {
  margin: 0 0 4px;
  font-family: var(--tc-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
}

.tl-tc-dress-type__th {
  display: block;
  margin-bottom: 12px;
  color: var(--tc-crimson);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tl-tc-dress-type__when {
  margin: 0 0 10px;
  color: var(--tc-saffron);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tl-tc-dress-type p {
  margin: 0;
  color: var(--tc-muted);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-tc-dress__note {
  margin: 36px 0 0;
  max-width: 52em;
  color: var(--tc-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ——— Close ——— */
.tl-tc-close {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 440px;
  padding: 72px 40px;
  color: #f8ecd8;
  background-color: var(--tc-teak);
  background-image:
    linear-gradient(
      105deg,
      rgba(26, 16, 8, 0.88) 0%,
      rgba(26, 16, 8, 0.48) 48%,
      rgba(122, 46, 46, 0.28) 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: var(--tc-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(248, 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 24px;
  border-radius: 2px;
  background: rgba(26, 16, 8, 0.55);
  color: #faf3e6 !important;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.65);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.25s ease, color 0.25s ease;
}

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

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

@keyframes tl-tc-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-tc-hero__inner,
  .tl-tc-hero .tl-tc-script,
  .tl-tc-dress-type {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .tl-tc-row:hover .tl-tc-shot img,
  .tl-tc-row:hover .tl-tc-quote img {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .tl-tc-dress__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-tc-topics__inner {
    grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(140px, 0.7fr);
  }
}

@media (max-width: 980px) {
  .tl-tc-hero,
  .tl-tc-close,
  .tl-tc-dress {
    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;
    -webkit-overflow-scrolling: touch;
  }

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

  .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;
  }

  .tl-tc-copy::before {
    left: 24px;
  }

  .tl-tc-dress__head {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }
}

@media (max-width: 640px) {
  .tl-tc-hero {
    min-height: var(--tl-cover-min-height, 340px);
    padding-top: var(--tl-cover-pad-top, 56px);
    padding-bottom: var(--tl-cover-pad-bottom, 48px);
  }

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

  .tl-tc-dress {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .tl-tc-dress__grid {
    grid-template-columns: 1fr;
  }

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