/* Pha Thai — Thai Textiles. Do not reuse on other pages. */

.tl-main.tl-main--pha {
  padding: 0;
  background: #eef3f8;
}

.tl-pha {
  --pha-navy: #0d2e4d;
  --pha-blue: #10508e;
  --pha-blue-soft: #3d7ab5;
  --pha-sky: #d6e4f2;
  --pha-mist: #eef3f8;
  --pha-paper: #f7fafc;
  --pha-white: #ffffff;
  --pha-red: #b91c2c;
  --pha-red-deep: #8b1520;
  --pha-red-soft: #e8a0a6;
  --pha-ink: #142433;
  --pha-muted: #5a6b7c;
  --pha-line: rgba(16, 80, 142, 0.16);
  --pha-serif: "Cormorant Garamond", "Times New Roman", serif;
  --pha-script: Caveat, "Segoe Script", cursive;
  color: var(--pha-ink);
  background: var(--pha-mist);
}

/* ——— Intro cover: deep blood-red + soft TL blue ——— */
.tl-pha-intro {
  position: relative;
  padding: calc(var(--tl-cover-pad-top, 88px) + 12px) 40px 56px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(ellipse 70% 55% at 88% 12%, rgba(16, 80, 142, 0.42), transparent 58%),
    radial-gradient(ellipse 55% 50% at 8% 80%, rgba(13, 46, 77, 0.35), transparent 55%),
    linear-gradient(145deg, #3a0710 0%, #6b101c 38%, #8a1424 62%, #4a0c18 100%);
  border-bottom: 0;
}

.tl-pha-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(214, 228, 242, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 228, 242, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

.tl-pha-intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #3d7ab5 18%,
    #d6e4f2 48%,
    #3d7ab5 78%,
    transparent 100%
  );
  opacity: 0.9;
}

.tl-pha-intro__inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}

.tl-pha-crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.tl-pha-crumb li + li::before {
  content: "·";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.tl-pha-crumb a {
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none !important;
}

.tl-pha-crumb a:hover,
.tl-pha-crumb a:focus-visible {
  color: #d6e4f2 !important;
}

.tl-pha-crumb [aria-current="page"] {
  color: #ffffff;
}

.tl-pha-intro .tl-pha-kicker {
  margin: 0 0 14px;
  color: #b8d0e8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tl-pha-intro h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-family: var(--pha-serif);
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.tl-pha-intro .tl-pha-thai {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--pha-serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  font-weight: 500;
}

.tl-pha-intro__lead {
  max-width: 38em;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 300;
  line-height: 1.6;
}

/* Default kicker (used in close etc.) */
.tl-pha-kicker {
  margin: 0 0 14px;
  color: var(--pha-red-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tl-pha-thai {
  margin: 0 0 16px;
  color: var(--pha-red);
  font-family: var(--pha-serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  font-weight: 500;
}

/* ——— Section nav ——— */
.tl-pha-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 252, 0.94);
  border-bottom: 1px solid var(--pha-line);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(13, 46, 77, 0.05);
}

.tl-pha-nav__inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 12px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tl-pha-nav a {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: var(--pha-ink) !important;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none !important;
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease;
}

.tl-pha-nav a:hover,
.tl-pha-nav a:focus-visible {
  color: var(--pha-red) !important;
  background: rgba(16, 80, 142, 0.08);
}

/* ——— Shared section shell ——— */
.tl-pha-section {
  padding: 64px 40px 72px;
  scroll-margin-top: 64px;
}

.tl-pha-section--mist {
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgba(185, 28, 44, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 92% 10%, rgba(16, 80, 142, 0.1), transparent 50%),
    linear-gradient(180deg, #f7fafc 0%, #e8eef5 100%);
}

.tl-pha-section--paper {
  background: var(--pha-white);
  border-top: 1px solid var(--pha-line);
  border-bottom: 1px solid var(--pha-line);
}

.tl-pha-section--sky {
  background:
    linear-gradient(180deg, #f0f5fa 0%, #e4ecf5 100%);
}

.tl-pha-section__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.tl-pha-section__head {
  max-width: 44em;
  margin-bottom: 36px;
}

.tl-pha-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--pha-blue);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tl-pha-ornament::before,
.tl-pha-ornament::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pha-red));
}

.tl-pha-ornament::after {
  background: linear-gradient(90deg, var(--pha-red), transparent);
}

.tl-pha-section h2 {
  margin: 0 0 10px;
  font-family: var(--pha-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pha-navy);
}

.tl-pha-section__th {
  display: block;
  margin-bottom: 12px;
  color: var(--pha-red);
  font-family: var(--pha-serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
}

.tl-pha-section__head > p {
  margin: 0;
  color: var(--pha-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

/* ——— Intro split ——— */
.tl-pha-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: stretch;
}

.tl-pha-split--flip {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.tl-pha-split--flip .tl-pha-split__media {
  order: 2;
}

.tl-pha-split__copy p {
  margin: 0 0 14px;
  color: var(--pha-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
}

.tl-pha-split__copy p:last-child {
  margin-bottom: 0;
}

.tl-pha-pull {
  margin-top: 8px !important;
  color: var(--pha-navy) !important;
  font-family: var(--pha-script);
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

/* ——— Image slots (placeholders) ——— */
.tl-pha-slot {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  background-color: #c5d4e4;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 48%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(13, 46, 77, 0.06) 11px,
      rgba(13, 46, 77, 0.06) 12px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      rgba(185, 28, 44, 0.05) 11px,
      rgba(185, 28, 44, 0.05) 12px
    ),
    linear-gradient(160deg, #d4e0ed 0%, #b8c9db 55%, #c9a0a4 100%);
  border: 1px solid var(--pha-line);
  min-height: 280px;
  aspect-ratio: 4 / 3;
}

.tl-pha-slot--tall {
  aspect-ratio: 3 / 4;
  min-height: 360px;
}

.tl-pha-slot--wide {
  aspect-ratio: 21 / 9;
  min-height: 200px;
}

.tl-pha-slot--fill {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

.tl-pha-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-pha-slot__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  color: var(--pha-navy);
  text-align: center;
  background: rgba(247, 250, 252, 0.72);
  border: 1px solid rgba(16, 80, 142, 0.18);
  backdrop-filter: blur(4px);
}

.tl-pha-slot__label strong {
  font-family: var(--pha-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tl-pha-slot__label span {
  color: var(--pha-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tl-pha-slot:has(img) .tl-pha-slot__label {
  display: none;
}

/* ——— Region profiles (long-form) ——— */
.tl-pha-regions {
  display: grid;
  gap: 28px;
}

.tl-pha-region {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0;
  background: var(--pha-white);
  border: 1px solid var(--pha-line);
  box-shadow: 0 10px 28px rgba(13, 46, 77, 0.04);
  overflow: hidden;
}

.tl-pha-region--flip {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.tl-pha-region--flip .tl-pha-region__media {
  order: 2;
}

.tl-pha-region__media {
  margin: 0;
  min-height: 100%;
  border-right: 1px solid var(--pha-line);
}

.tl-pha-region--flip .tl-pha-region__media {
  border-right: 0;
  border-left: 1px solid var(--pha-line);
}

.tl-pha-region__media .tl-pha-slot {
  height: 100%;
  min-height: 320px;
  aspect-ratio: auto;
  border: 0;
}

.tl-pha-region__body {
  padding: 32px 34px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tl-pha-region__body h3 {
  margin: 0 0 4px;
  font-family: var(--pha-serif);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--pha-navy);
}

.tl-pha-region__lead {
  margin: 0 0 14px !important;
  color: var(--pha-ink) !important;
  font-size: 15.5px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

.tl-pha-region__body > p {
  margin: 0 0 12px;
  color: var(--pha-muted);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.75;
}

.tl-pha-region__body > p:last-of-type {
  margin-bottom: 18px;
}

.tl-pha-region__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.tl-pha-region__tags li {
  padding: 7px 12px;
  color: var(--pha-navy);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  background: rgba(16, 80, 142, 0.06);
  border: 1px solid rgba(16, 80, 142, 0.14);
  border-left: 2px solid var(--pha-red);
}

.tl-pha-region__tags em {
  font-style: italic;
  color: var(--pha-blue);
  font-weight: 500;
}

/* ——— Shared grids ——— */
.tl-pha-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tl-pha-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tl-pha-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tl-pha-card {
  display: flex;
  flex-direction: column;
  background: var(--pha-white);
  border: 1px solid var(--pha-line);
  border-top: 3px solid var(--pha-red);
  box-shadow: 0 10px 28px rgba(13, 46, 77, 0.04);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tl-pha-card:hover {
  border-color: rgba(16, 80, 142, 0.35);
  box-shadow: 0 16px 36px rgba(13, 46, 77, 0.09);
}

.tl-pha-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #c5d4e4;
}

.tl-pha-card__media .tl-pha-slot {
  aspect-ratio: auto;
  min-height: 100%;
  height: 100%;
  border: 0;
}

.tl-pha-card__body {
  padding: 22px 22px 26px;
  flex: 1;
}

.tl-pha-card__region {
  display: block;
  margin-bottom: 8px;
  color: var(--pha-blue);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tl-pha-card h3 {
  margin: 0 0 4px;
  font-family: var(--pha-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--pha-navy);
}

.tl-pha-card__th {
  display: block;
  margin-bottom: 14px;
  color: var(--pha-red);
  font-size: 13px;
  font-weight: 500;
}

.tl-pha-card p {
  margin: 0 0 12px;
  color: var(--pha-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.tl-pha-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-pha-card li {
  position: relative;
  padding: 8px 0 8px 16px;
  color: var(--pha-ink);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.55;
  border-top: 1px solid rgba(16, 80, 142, 0.1);
}

.tl-pha-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pha-red);
  opacity: 0.75;
}

.tl-pha-card li em {
  color: var(--pha-blue);
  font-style: normal;
  font-weight: 500;
}

/* ——— Fiber / process panels ——— */
.tl-pha-panel {
  padding: 26px 24px 28px;
  background: var(--pha-white);
  border: 1px solid var(--pha-line);
  border-left: 3px solid var(--pha-blue);
  box-shadow: 0 8px 24px rgba(13, 46, 77, 0.03);
}

.tl-pha-panel--red {
  border-left-color: var(--pha-red);
}

.tl-pha-panel__num {
  display: block;
  margin-bottom: 10px;
  color: var(--pha-red);
  font-family: var(--pha-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.tl-pha-panel h3 {
  margin: 0 0 4px;
  font-family: var(--pha-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--pha-navy);
}

.tl-pha-panel__th {
  display: block;
  margin-bottom: 12px;
  color: var(--pha-red);
  font-size: 13px;
  font-weight: 500;
}

.tl-pha-panel__tag {
  margin: 0 0 12px;
  color: var(--pha-blue);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tl-pha-panel p {
  margin: 0;
  color: var(--pha-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

/* ——— Technique bands ——— */
.tl-pha-tech {
  display: grid;
  gap: 18px;
}

.tl-pha-tech__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  background: var(--pha-white);
  border: 1px solid var(--pha-line);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(13, 46, 77, 0.03);
}

.tl-pha-tech__row:nth-child(even) {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.tl-pha-tech__row:nth-child(even) .tl-pha-tech__media {
  order: 2;
}

.tl-pha-tech__media .tl-pha-slot {
  aspect-ratio: 5 / 4;
  min-height: 240px;
  border: 0;
  height: 100%;
}

.tl-pha-tech__body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tl-pha-tech__body h3 {
  margin: 0 0 4px;
  font-family: var(--pha-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--pha-navy);
}

.tl-pha-tech__body .tl-pha-card__th {
  margin-bottom: 14px;
}

.tl-pha-tech__body p {
  margin: 0 0 12px;
  color: var(--pha-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.tl-pha-tech__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-pha-tech__body li {
  position: relative;
  padding: 7px 0 7px 14px;
  color: var(--pha-ink);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.55;
  border-top: 1px solid rgba(16, 80, 142, 0.1);
}

.tl-pha-tech__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pha-blue);
}

.tl-pha-banner {
  margin: 36px 0 0;
}

.tl-pha-banner .tl-pha-slot {
  width: 100%;
}

.tl-pha-note {
  margin: 32px auto 0;
  max-width: 48em;
  color: var(--pha-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
}

.tl-pha-callout {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--pha-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(214, 228, 242, 0.65));
  border-left: 3px solid var(--pha-red);
}

.tl-pha-callout p {
  margin: 0;
  color: var(--pha-navy);
  font-family: var(--pha-script);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.tl-pha-callout span {
  display: block;
  margin-top: 10px;
  color: var(--pha-muted);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.65;
  font-style: normal;
}

/* ——— Close ——— */
.tl-pha-close {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 280px;
  padding: 64px 40px;
  color: #eef5fb;
  background:
    radial-gradient(ellipse 70% 80% at 90% 50%, rgba(185, 28, 44, 0.35), transparent 55%),
    linear-gradient(105deg, var(--pha-navy) 0%, #13406a 55%, #6b1a28 100%);
}

.tl-pha-close__inner {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.tl-pha-close h2 {
  margin: 0 0 12px;
  font-family: var(--pha-serif);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.08;
}

.tl-pha-close p:not(.tl-pha-kicker) {
  max-width: 34em;
  margin: 0 0 24px;
  color: rgba(238, 245, 251, 0.82);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.tl-pha-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tl-pha-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 2px;
  background: rgba(185, 28, 44, 0.85);
  color: #f7fbff !important;
  box-shadow: inset 0 0 0 1px rgba(232, 160, 166, 0.45);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.25s ease;
}

.tl-pha-btn:hover,
.tl-pha-btn:focus-visible {
  background: var(--pha-red-deep);
  color: #fff !important;
}

.tl-pha-btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(214, 228, 242, 0.55);
}

.tl-pha-btn--ghost:hover,
.tl-pha-btn--ghost:focus-visible {
  background: rgba(16, 80, 142, 0.45);
}

@media (max-width: 980px) {
  .tl-pha-split,
  .tl-pha-split--flip,
  .tl-pha-tech__row,
  .tl-pha-tech__row:nth-child(even),
  .tl-pha-region,
  .tl-pha-region--flip {
    grid-template-columns: 1fr;
  }

  .tl-pha-split--flip .tl-pha-split__media,
  .tl-pha-tech__row:nth-child(even) .tl-pha-tech__media,
  .tl-pha-region--flip .tl-pha-region__media {
    order: 0;
  }

  .tl-pha-region__media,
  .tl-pha-region--flip .tl-pha-region__media {
    border: 0;
    border-bottom: 1px solid var(--pha-line);
  }

  .tl-pha-region__media .tl-pha-slot {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }

  .tl-pha-region__body {
    padding: 24px 22px 28px;
  }

  .tl-pha-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .tl-pha-intro,
  .tl-pha-section,
  .tl-pha-close {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tl-pha-grid,
  .tl-pha-grid--3,
  .tl-pha-grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .tl-pha-section {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .tl-pha-tech__body {
    padding: 22px 20px;
  }
}
