/* Skytrain & Bangkok Rail Guide — shared hub + stub skin */

.tl-page--skytrain {
  --sk-navy: #1a3a6b;
  --sk-navy-deep: #0f2748;
  --sk-ink: #1e2a3a;
  --sk-muted: #5a6a7a;
  --sk-paper: #f7f9fc;
  --sk-cream: #ffffff;
  --sk-line: rgba(26, 58, 107, 0.12);
  --sk-card: #ffffff;
  --sk-green: #1a9e4a;
  --sk-blue: #1a6bb5;
  --sk-red: #c62828;
  --sk-orange: #e67e22;
  --sk-sticky: #ffe566;
  --sk-accent: var(--sk-navy);
  background: var(--sk-paper);
  color: var(--sk-ink);
}

.tl-rail--bts { --sk-accent: var(--sk-green); }
.tl-rail--mrt { --sk-accent: var(--sk-blue); }
.tl-rail--srt { --sk-accent: var(--sk-red); }
.tl-rail--arl { --sk-accent: #1a6bb5; }

.tl-main--skytrain {
  padding: 0;
  background: var(--sk-paper);
}

.tl-sk {
  font-family: "Bricolage Grotesque", sans-serif;
}

.tl-sk__wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* —— Hero (no cover) —— */
.tl-sk-hero {
  position: relative;
  padding: 36px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 50% at 90% 10%, rgba(26, 107, 181, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 40% at 5% 90%, rgba(26, 158, 74, 0.07), transparent 50%),
    linear-gradient(180deg, #eef3f9 0%, var(--sk-paper) 100%);
}

.tl-sk-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--sk-muted);
  font-size: 12px;
}

.tl-sk-crumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  opacity: 0.55;
}

.tl-sk-crumb a {
  color: inherit;
  text-decoration: none;
}

.tl-sk-crumb a:hover {
  color: var(--sk-navy);
}

.tl-sk-brandline {
  margin: 0 0 12px;
  color: var(--sk-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tl-sk-brandline span {
  color: var(--sk-ink);
  font-weight: 500;
}

.tl-sk-hero h1 {
  margin: 0 0 12px;
  max-width: 18ch;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--sk-navy);
}

.tl-sk-hero__sub {
  margin: 0 0 16px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--sk-blue);
}

.tl-sk-hero__intro {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--sk-muted);
}

/* —— Sections —— */
.tl-sk-section {
  padding: 56px 0;
  background: var(--sk-cream);
}

.tl-sk-section--soft {
  background: #eef3f9;
}

.tl-sk-section--accent {
  background:
    linear-gradient(180deg, #e8f0fa 0%, #f7f9fc 100%);
}

.tl-sk-head {
  margin-bottom: 32px;
}

.tl-sk-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--sk-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-sk-num::before {
  content: attr(data-num);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sk-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.tl-sk-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sk-navy);
}

.tl-sk-head p {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--sk-muted);
}

.tl-sk-script {
  font-family: Caveat, "Segoe Script", cursive;
  font-weight: 600;
  color: var(--sk-navy);
}

/* —— Intro layout (Part 1) —— */
.tl-sk-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.tl-sk-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.tl-sk-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--sk-cream);
  border: 1px solid var(--sk-line);
}

.tl-sk-benefit__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--sk-navy);
}

.tl-sk-benefit__icon svg {
  width: 100%;
  height: 100%;
}

.tl-sk-benefit h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sk-ink);
}

.tl-sk-benefit p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sk-muted);
}

.tl-sk-polaroid {
  position: relative;
  margin: 0;
  padding: 12px 12px 36px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 39, 72, 0.12);
  transform: rotate(2deg);
}

.tl-sk-polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tl-sk-polaroid figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  font-family: Caveat, "Segoe Script", cursive;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--sk-navy);
}

.tl-sk-sticky {
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 2;
  max-width: 140px;
  padding: 10px 12px;
  background: var(--sk-sticky);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.08);
  font-family: Caveat, "Segoe Script", cursive;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: #3a3200;
  transform: rotate(6deg);
}

.tl-sk-media-wrap {
  position: relative;
}

/* —— Steps (Part 2) —— */
.tl-sk-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.tl-sk-step {
  margin: 0;
}

.tl-sk-step__media {
  position: relative;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #dce6f2;
}

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

.tl-sk-step__badge {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--sk-navy);
  font-size: 12px;
  font-weight: 700;
}

.tl-sk-step h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sk-ink);
}

.tl-sk-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sk-muted);
}

.tl-sk-step__note {
  display: block;
  margin-top: 8px;
  font-family: Caveat, "Segoe Script", cursive;
  font-size: 16px;
  font-weight: 600;
  color: var(--sk-blue);
}

.tl-sk-tickets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tl-sk-ticket {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f0fa;
  color: var(--sk-navy);
  font-size: 11px;
  font-weight: 600;
}

/* —— Etiquette (Part 3) —— */
.tl-sk-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tl-sk-rule {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0 0 20px;
  border-radius: 14px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.tl-sk-rule__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 200px;
  padding: 16px 12px 0;
  background: #000;
}

.tl-sk-rule__media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 180px;
  object-fit: contain;
}

.tl-sk-rule h3 {
  margin: 16px 14px 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.tl-sk-rule p {
  margin: 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.tl-sk-rule__note {
  display: block;
  margin: 10px 14px 0;
  font-family: Caveat, "Segoe Script", cursive;
  font-size: 17px;
  font-weight: 600;
  color: #7ee08a;
}

.tl-sk-rule__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 24px auto 14px;
  border-radius: 50%;
  background: #e8f0fa;
  color: var(--sk-navy);
}

.tl-sk-rule__icon svg {
  width: 36px;
  height: 36px;
}

/* —— Vocabulary (Part 4) —— */
.tl-sk-vocab {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(200px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.tl-sk-glossary {
  width: 100%;
  border-collapse: collapse;
  background: var(--sk-cream);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 39, 72, 0.06);
}

.tl-sk-glossary th,
.tl-sk-glossary td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--sk-line);
}

.tl-sk-glossary th {
  background: var(--sk-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-sk-glossary tbody tr:nth-child(even) {
  background: #f0f5fb;
}

.tl-sk-glossary tbody tr:hover {
  background: #e4eef8;
}

.tl-sk-glossary td:nth-child(1) {
  font-weight: 600;
  color: var(--sk-ink);
}

.tl-sk-glossary td:nth-child(2) {
  font-size: 15px;
  color: var(--sk-navy);
}

.tl-sk-glossary td:nth-child(3) {
  font-style: italic;
  color: var(--sk-muted);
}

.tl-sk-speech {
  position: relative;
  padding: 28px 24px;
  border-radius: 18px;
  background: #dff0ff;
  text-align: center;
}

.tl-sk-speech p {
  margin: 0;
  font-family: Caveat, "Segoe Script", cursive;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sk-navy);
}

.tl-sk-speech::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 40%;
  border: 12px solid transparent;
  border-top-color: #dff0ff;
  border-bottom: 0;
}

/* —— Rail cards (Part 5) —— */
.tl-sk-rails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tl-sk-rail {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sk-cream);
  box-shadow: 0 6px 20px rgba(15, 39, 72, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tl-sk-rail:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 39, 72, 0.14);
}

.tl-sk-rail__head {
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.tl-sk-rail--bts .tl-sk-rail__head { background: var(--sk-green); }
.tl-sk-rail--mrt .tl-sk-rail__head { background: var(--sk-blue); }
.tl-sk-rail--srt .tl-sk-rail__head { background: var(--sk-red); }
.tl-sk-rail--arl .tl-sk-rail__head { background: linear-gradient(90deg, #c62828 0%, #1a6bb5 100%); }

.tl-sk-rail__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dce6f2;
}

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

.tl-sk-rail__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 18px;
}

.tl-sk-rail__body ul {
  margin: 0 0 16px;
  padding: 0 0 0 18px;
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sk-muted);
}

.tl-sk-rail__body li + li {
  margin-top: 4px;
}

.tl-sk-rail__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.tl-sk-rail--bts .tl-sk-rail__cta { background: var(--sk-green); }
.tl-sk-rail--mrt .tl-sk-rail__cta { background: var(--sk-blue); }
.tl-sk-rail--srt .tl-sk-rail__cta { background: var(--sk-red); }
.tl-sk-rail--arl .tl-sk-rail__cta { background: #1a6bb5; }

.tl-sk-explore-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: 28px;
  margin-top: 36px;
  align-items: center;
}

.tl-sk-checklist {
  margin: 0;
  padding: 20px 24px;
  border-radius: 12px;
  background: #e8f0fa;
  list-style: none;
}

.tl-sk-checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sk-navy);
}

.tl-sk-checklist li + li {
  margin-top: 10px;
}

.tl-sk-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sk-green);
  font-weight: 700;
}

/* —— Closing (Part 6) —— */
.tl-sk-tips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.tl-sk-tip {
  text-align: center;
  padding: 20px 12px;
}

.tl-sk-tip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e8f0fa;
  color: var(--sk-navy);
}

.tl-sk-tip__icon svg {
  width: 28px;
  height: 28px;
}

.tl-sk-tip h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--sk-ink);
}

.tl-sk-quote {
  max-width: 36rem;
  margin: 0 auto 32px;
  padding: 20px 28px;
  border-radius: 20px;
  background: #dff0ff;
  text-align: center;
  font-family: Caveat, "Segoe Script", cursive;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--sk-navy);
}

.tl-sk-cta {
  text-align: center;
  padding-bottom: 8px;
}

.tl-sk-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--sk-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.tl-sk-btn:hover {
  background: var(--sk-navy-deep);
}

.tl-sk-btn--accent {
  background: var(--sk-accent);
}

.tl-sk-btn--accent:hover {
  filter: brightness(0.92);
  background: var(--sk-accent);
}

/* —— Stub pages —— */
.tl-sk-stub {
  padding: 36px 0 64px;
}

.tl-sk-stub__media {
  margin: 28px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 39, 72, 0.1);
}

.tl-sk-stub__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tl-sk-stub__lines {
  margin: 0 0 28px;
  padding: 20px 24px;
  border-radius: 12px;
  border-left: 4px solid var(--sk-accent);
  background: var(--sk-cream);
  box-shadow: 0 2px 12px rgba(15, 39, 72, 0.06);
}

.tl-sk-stub__lines h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--sk-accent);
}

.tl-sk-stub__lines ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--sk-muted);
  font-size: 15px;
  line-height: 1.6;
}

.tl-sk-stub__lines li + li {
  margin-top: 6px;
}

.tl-sk-stub__note {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sk-muted);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .tl-sk-intro,
  .tl-sk-vocab,
  .tl-sk-explore-aside {
    grid-template-columns: 1fr;
  }

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

  .tl-sk-rules,
  .tl-sk-rails,
  .tl-sk-tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .tl-sk-polaroid {
    max-width: 360px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .tl-sk__wrap {
    width: calc(100% - 32px);
  }

  .tl-sk-benefits,
  .tl-sk-steps,
  .tl-sk-rules,
  .tl-sk-rails,
  .tl-sk-tips {
    grid-template-columns: 1fr;
  }

  .tl-sk-glossary th,
  .tl-sk-glossary td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .tl-sk-sticky {
    right: 0;
    max-width: 110px;
    font-size: 13px;
  }
}
