/* ==========================================================================
   Windhorse Tours – Travel Updates
   Shared styles for the News & Updates page (template-all-news.php)
   and each news post (single-news_events_wht.php).
   Everything is scoped under .wtu so it will not clash with the WordPress theme.
   Fonts are the trip pages' own: Miller Display (theme font files, below)
   for headings and Merriweather Sans (enqueued in functions.php) for text.
   ========================================================================== */

@font-face { font-family: "Miller Display"; src: url('../fonts/MillerDisplay-Roman.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Miller Display"; src: url('../fonts/MillerDisplay-Semibold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Miller Display"; src: url('../fonts/MillerDisplay-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

.wtu {
  --wtu-paper: var(--wh-page-bg, #fdfbf7);
  --wtu-sand: #f4eee4;
  --wtu-ink: #1d1718;
  --wtu-body: #3b3133;
  --wtu-muted: #5e5254;
  --wtu-rule: #d9d0c4;
  --wtu-maroon: #791e30;
  --wtu-maroon-dark: #4f1320;
  --wtu-tag-bg: #f3e6e8;
  --wtu-alert: #8f1717;
  --wtu-alert-rule: #e8b4ae;
  --wtu-open: #1f5a2a;
  --wtu-serif: "Miller Display", "Miller Display Bold", Georgia, "Times New Roman", serif;
  --wtu-sans: "Merriweather Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wtu-gutter: 96px;

  background: var(--wtu-paper);
  color: var(--wtu-ink);
  font-family: var(--wtu-sans);
  line-height: 1.6;
}

.wtu *,
.wtu *::before,
.wtu *::after { box-sizing: border-box; }

.wtu a { color: var(--wtu-maroon); }
.wtu a:hover { color: var(--wtu-maroon-dark); }
.wtu h1, .wtu h2, .wtu h3, .wtu p { margin: 0; }
/* The theme sets every heading in Open Sans; the classes below pick the serif where the design wants it. */
.wtu h1, .wtu h2, .wtu h3 { font-family: var(--wtu-sans); color: var(--wtu-ink); text-transform: none; }

/* The theme centres every <nav> and gives some a position; ours sit in the flow, left-aligned. */
.wtu nav { position: static; justify-content: flex-start; align-self: auto; width: auto; padding-top: 0; padding-bottom: 0; transform: none; }
.wtu .wtu-label { text-transform: uppercase; }

.wtu-wrap { padding-left: var(--wtu-gutter); padding-right: var(--wtu-gutter); max-width: 1440px; margin-left: auto; margin-right: auto; }

/* ---------- Small shared pieces ---------- */
.wtu-kicker,
.wtu-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.wtu-kicker { color: var(--wtu-maroon); }

.wtu-dateline {
  border-top: 3px double var(--wtu-ink);
  border-bottom: 1px solid var(--wtu-ink);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.wtu-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wtu-maroon);
  background: var(--wtu-tag-bg);
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.4;
}
.wtu-tag--alert { color: #ffffff; background: var(--wtu-alert); }
.wtu-tag--plain { background: none; color: #4a3f41; padding-left: 0; padding-right: 0; }
.wtu-tag--plain-alert { color: var(--wtu-alert); }

/* Alerts: a red rule down the side in the list, and across the top of the post. */
.wtu-item--alert { position: relative; background: linear-gradient(90deg, #fbeeec, rgba(251, 238, 236, 0) 70%); }
.wtu-item--alert::before { content: ""; position: absolute; left: -16px; top: 16px; bottom: 16px; width: 3px; border-radius: 2px; background: var(--wtu-alert); }
.wtu-article--alert { border-top: 4px solid var(--wtu-alert); padding-top: 18px; }
.wtu-card .wtu-tag--alert { font-size: 10px; }

.wtu-status { font-size: 13px; color: var(--wtu-muted); }
.wtu-status strong { color: var(--wtu-open); }
.wtu-status--disrupted strong { color: #8a5a00; }
.wtu-status--closed strong { color: var(--wtu-alert); }

.wtu-pill {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--wtu-ink) !important;
  border: 1px solid var(--wtu-rule);
  border-radius: 999px;
  padding: 10px 14px;
  background: none;
  font-family: inherit;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}
.wtu-pill:hover { border-color: var(--wtu-ink); }
.wtu-pill.is-active { background: var(--wtu-ink); color: #ffffff !important; border-color: var(--wtu-ink); font-weight: 700; }
.wtu-pill--alert { color: var(--wtu-alert) !important; border-color: var(--wtu-alert-rule); }
.wtu-pill--alert.is-active { background: var(--wtu-alert); border-color: var(--wtu-alert); }

.wtu-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 6px;
  background: var(--wtu-maroon);
  color: #ffffff !important;
  text-align: center;
}
.wtu-btn:hover { background: var(--wtu-maroon-dark); }
.wtu-btn--dark { background: var(--wtu-ink); }
.wtu-btn--dark:hover { background: #000000; }

.wtu-box {
  background: var(--wtu-sand);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wtu-box h2 { font-family: var(--wtu-serif); font-size: 22px; font-weight: 700; }
.wtu-box p { font-size: 15px; color: var(--wtu-body); }

.wtu-footer {
  border-top: 3px double var(--wtu-ink);
  padding-top: 40px;
  padding-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  font-size: 14px;
  color: #4a3f41;
}
.wtu-footer p { max-width: 720px; }
.wtu-footer a { font-weight: 700; flex-shrink: 0; }

/* ==========================================================================
   LIST PAGE
   ========================================================================== */
.wtu-masthead { padding-top: 56px; display: flex; flex-direction: column; gap: 18px; }
.wtu-masthead h1 {
  font-family: var(--wtu-serif);
  font-size: 76px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wtu-masthead__intro { max-width: 720px; font-size: 18px; color: #4a3f41; }
.wtu-masthead .wtu-dateline { margin-top: 10px; }
.wtu-jump { display: none; gap: 8px; flex-wrap: wrap; }

.wtu-news {
  padding-top: 48px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: 48px;
}

.wtu .wtu-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }

.wtu-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--wtu-rule);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 24px;
}
.wtu-item:last-of-type { border-bottom: none; }
.wtu-item__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wtu-item__date { font-size: 13px; font-weight: 700; }
.wtu-item__body { display: flex; flex-direction: column; gap: 8px; }
.wtu-item h3 { font-family: var(--wtu-serif); font-size: 28px; line-height: 1.2; font-weight: 700; }
.wtu-item h3 a { color: var(--wtu-ink); text-decoration: none; }
.wtu-item h3 a:hover { color: var(--wtu-maroon); text-decoration: underline; text-underline-offset: 4px; }
.wtu-item p { font-size: 16px; line-height: 1.65; color: var(--wtu-body); }
.wtu-item[hidden], .wtu-empty[hidden] { display: none; }
.wtu-empty { padding: 24px 0; color: var(--wtu-muted); }
.wtu-more-btn { margin-top: 16px; }
.wtu-more-btn[hidden] { display: none; }

.wtu-rail { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; }
.wtu-rail__links { display: flex; flex-direction: column; gap: 4px; }
.wtu-rail__links a {
  font-family: var(--wtu-serif);
  font-size: 22px;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--wtu-rule);
}
.wtu-rail .wtu-btn { align-self: flex-start; padding: 12px 20px; }

.wtu-country {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid var(--wtu-ink);
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-margin-top: 24px;
}
.wtu-country__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.wtu-country h2 { font-family: var(--wtu-serif); font-size: 44px; font-weight: 700; }

.wtu-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--wtu-rule);
  border-bottom: 1px solid var(--wtu-rule);
}
.wtu-fact { padding: 20px 24px; border-left: 1px solid var(--wtu-rule); display: flex; flex-direction: column; gap: 6px; }
.wtu-fact:first-child { padding-left: 0; border-left: none; }
.wtu-fact__label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wtu-muted); font-weight: 700; }
.wtu-fact__value { font-family: var(--wtu-serif); font-size: 30px; line-height: 1.2; }
.wtu-fact__note { font-size: 14px; line-height: 1.5; color: var(--wtu-body); }

.wtu-country__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.wtu-country__foot p { max-width: 720px; font-size: 16px; line-height: 1.65; color: var(--wtu-body); }
.wtu-country__links { display: flex; gap: 24px; font-size: 15px; font-weight: 600; flex-shrink: 0; }
.wtu-country__links a { padding: 10px 0; }

.wtu-mobile-cta { display: none; }

/* ==========================================================================
   SINGLE UPDATE PAGE
   ========================================================================== */
.wtu-detail {
  padding-top: 40px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: 48px;
}
.wtu-article { display: flex; flex-direction: column; gap: 22px; }
.wtu-crumbs { font-size: 13px; display: flex; gap: 8px; color: var(--wtu-muted); }
.wtu-crumbs a { font-weight: 600; }
.wtu-article__tags { display: flex; gap: 10px; align-items: center; }
.wtu-article h1 {
  font-family: var(--wtu-serif);
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wtu-share { display: flex; gap: 8px; align-items: center; }
.wtu-share__label { color: var(--wtu-muted); margin-right: 4px; }
.wtu-share .wtu-pill { padding: 8px 14px; }
.wtu-lead { font-size: 21px; line-height: 1.7; color: #2a2123; max-width: 720px; }
.wtu-body { font-size: 17px; line-height: 1.75; color: var(--wtu-body); max-width: 720px; }
.wtu .wtu-body > * + * { margin-top: 1em; }
.wtu-body h2, .wtu-body h3 { font-family: var(--wtu-serif); font-weight: 700; margin-top: 1.4em; }
.wtu-body h2 { font-size: 28px; }
.wtu-body h3 { font-size: 22px; }
.wtu-body ul, .wtu-body ol { padding-left: 1.3em; }
.wtu-body--first { font-size: 19px; color: #2a2123; }
.wtu-body img, .wtu-figure img { max-width: 100%; height: auto; border-radius: 6px; }
.wtu-body figure, .wtu-body .wp-caption { max-width: 100%; margin: 1.2em 0; }
.wtu-body figcaption, .wtu-body .wp-caption-text { font-size: 13px; color: var(--wtu-muted); margin-top: 6px; }
.wtu-body a { text-underline-offset: 3px; }
.wtu-figure { margin: 0; max-width: 720px; }
.wtu-article .wtu-btn--dark { align-self: flex-start; }
.wtu-article .wtu-box { margin-top: 16px; flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
.wtu-article .wtu-box .wtu-btn { flex-shrink: 0; }
.wtu-back { align-self: flex-start; font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 0; }

.wtu-side { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; }
.wtu-side__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--wtu-ink);
  padding-bottom: 10px;
}
.wtu-side__head h2 { font-family: var(--wtu-serif); font-size: 24px; font-weight: 700; }
.wtu-side .wtu-fact { padding: 0 0 14px; border-left: none; border-bottom: 1px solid var(--wtu-rule); gap: 4px; }
.wtu-side .wtu-fact__value { font-size: 22px; }
.wtu-side .wtu-fact__note { font-size: 13px; }
.wtu-side > a { font-weight: 700; font-size: 14px; padding: 6px 0; }

.wtu-more { padding-top: 48px; padding-bottom: 56px; border-top: 1px solid var(--wtu-ink); }
.wtu-more .wtu-label { display: block; margin-bottom: 16px; }
.wtu-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.wtu-card {
  text-decoration: none;
  color: var(--wtu-ink) !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--wtu-rule);
}
.wtu-card__meta { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; }
.wtu-card__title { font-family: var(--wtu-serif); font-size: 22px; line-height: 1.25; }
.wtu-card:hover .wtu-card__title { color: var(--wtu-maroon); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   TABLET
   ========================================================================== */
@media (max-width: 1100px) {
  .wtu { --wtu-gutter: 48px; }
  .wtu-masthead h1 { font-size: 60px; }
  .wtu-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wtu-fact { border-left: none; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--wtu-rule); }
  .wtu-facts .wtu-fact:nth-last-child(-n+2) { border-bottom: none; }
  .wtu-country__foot { flex-direction: column; gap: 12px; }
  .wtu-article h1 { font-size: 46px; }
}

/* ==========================================================================
   PHONE
   ========================================================================== */
@media (max-width: 760px) {
  .wtu { --wtu-gutter: 20px; }

  .wtu-masthead { padding-top: 32px; gap: 14px; }
  .wtu-masthead h1 { font-size: 44px; line-height: 1.02; }
  .wtu-masthead__intro { font-size: 16px; }
  .wtu-kicker, .wtu-label { font-size: 12px; }
  .wtu-dateline { font-size: 12px; padding: 10px 0; }
  .wtu-dateline__countries { display: none; }
  .wtu-jump { display: flex; }
  .wtu-jump .wtu-pill { font-size: 14px; padding: 12px 14px; }

  .wtu-news { display: block; padding-top: 32px; padding-bottom: 40px; }
  .wtu .wtu-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: calc(var(--wtu-gutter) * -1);
    padding-right: var(--wtu-gutter);
    -webkit-overflow-scrolling: touch;
  }
  .wtu-filters .wtu-pill { padding: 11px 14px; }
  .wtu-item { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; }
  .wtu-item--alert { padding-left: 12px; }
  .wtu-item--alert::before { left: 0; }
  .wtu-item__meta { flex-direction: row; align-items: center; gap: 10px; }
  .wtu-item__meta .wtu-item__date { order: 2; font-size: 12px; }
  .wtu-item h3 { font-size: 22px; line-height: 1.25; }
  .wtu-item p { font-size: 15px; line-height: 1.6; }
  .wtu-rail { display: none; }

  .wtu-country { padding-top: 36px; padding-bottom: 36px; gap: 18px; }
  .wtu-country__head { flex-direction: column; gap: 6px; }
  .wtu-country h2 { font-size: 34px; }
  .wtu-status { font-size: 12px; }
  .wtu-facts { column-gap: 16px; border-bottom: none; }
  .wtu-fact, .wtu-fact:first-child { padding: 16px 0; border-bottom: 1px solid var(--wtu-rule); }
  .wtu-facts .wtu-fact:nth-last-child(-n+2) { border-bottom: 1px solid var(--wtu-rule); }
  .wtu-fact__label { font-size: 11px; }
  .wtu-fact__value { font-size: 24px; }
  .wtu-fact__note { font-size: 13px; }
  .wtu-country__foot p { font-size: 15px; line-height: 1.6; }
  .wtu-country__links { flex-direction: column; gap: 0; }

  .wtu-mobile-cta { display: block; margin: 0 var(--wtu-gutter) 32px; }
  .wtu-mobile-cta .wtu-btn { display: block; }
  .wtu-box { padding: 22px 20px; }

  .wtu-footer { flex-direction: column; gap: 12px; padding-top: 24px; padding-bottom: 32px; font-size: 13px; }

  /* single update */
  .wtu-detail { display: block; padding-top: 28px; padding-bottom: 36px; }
  .wtu-crumbs { display: none; }
  .wtu-article { gap: 18px; }
  .wtu-article h1 { font-size: 36px; line-height: 1.12; }
  .wtu-article .wtu-dateline { flex-direction: column; align-items: flex-start; gap: 12px; }
  .wtu-share { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .wtu-share__label { grid-column: 1 / -1; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
  .wtu-share .wtu-pill { text-align: center; padding: 12px 0; }
  .wtu-lead { font-size: 18px; }
  .wtu-body { font-size: 16px; }
  .wtu-article .wtu-btn--dark { align-self: stretch; }
  .wtu-article .wtu-box { flex-direction: column; align-items: stretch; margin-top: 8px; }
  .wtu-side { padding-top: 36px; }
  .wtu-side__head h2 { font-size: 26px; }
  .wtu-more { padding-top: 28px; padding-bottom: 36px; }
  .wtu-more__grid { display: block; }
  .wtu-card { border-top: none; border-bottom: 1px solid var(--wtu-rule); gap: 8px; }
  .wtu-card__title { font-size: 20px; }
}
