/* =========================================================
   Global Story — pattern กลาง (label / title / meta)
   ใช้ร่วมกันหลาย section ปรับขนาด/สีต่อ section ด้วย custom properties
   ที่ตั้งบน section นั้น (ค่า default = ค่าเดิมของ newsletter)

   --global-story-color         สี label + title
   --global-story-muted         สี meta
   --global-story-label-size    / --global-story-label-gap
   --global-story-title-size    / --global-story-title-lh
   --global-story-title-max     / --global-story-title-gap
   --global-story-meta-size     / --global-story-meta-gap
   --global-story-sep-height    / --global-story-sep-offset
   ========================================================= */

.global-story {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---------- Label ---------- */
.global-story__label {
  align-self: flex-start;
  margin-bottom: var(--global-story-label-gap, 12px);
  font-size: var(--global-story-label-size, 14px);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--global-story-color, var(--global-black));
  text-decoration: none;
  font-family: var(--fontBody);
}

a.global-story__label:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Title ---------- */
.global-story__title {
  margin: 0 0 var(--global-story-title-gap, 22px);
  max-width: var(--global-story-title-max, 12em);
  font-family: var(--fontHeadline);
  font-weight: 400;
  font-size: var(--global-story-title-size, 40px);
  line-height: var(--global-story-title-lh, 1.2);
  color: var(--global-story-color, var(--global-black));
}

.global-story__title a {
  color: inherit;
  text-decoration: none;
}

.global-story__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .1em;
}

/* ---------- Meta ---------- */
.global-story__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--global-story-meta-gap, 18px);
  font-size: var(--global-story-meta-size, 13px);
  line-height: 1.3;
  color: var(--global-story-muted, var(--global-muted));
  font-family: var(--fontBody);
}

.global-story__sep {
  flex-shrink: 0;
  width: 1px;
  height: var(--global-story-sep-height, 8px);
  margin-top: var(--global-story-sep-offset, 6px);
  background: currentColor;
}

/* ---------- Focus ---------- */
.global-story a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- Modifier: ตัวอักษรขาวบนพื้นมืด ---------- */
.global-story--inverse {
  --global-story-color: #fff;
  --global-story-muted: rgba(255, 255, 255, .5);
}
