/* Pueblo Connect – Train Alerts. All classes start with pt- so they won't clash with the site's own CSS. */
:root {
  --pt-ink: #1A1D21;
  --pt-ground: #F5F2EA;
  --pt-card: #FFFFFF;
  --pt-line: #E2DCCD;
  --pt-muted: #5E5A50;
  --pt-body: #45423B;
  --pt-link: #1F5FAD;
  --pt-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pt-body { margin: 0; background: var(--pt-ground); color: var(--pt-ink); font-family: var(--pt-font); }
.pt-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }

.pt-topbar { background: var(--pt-ink); color: var(--pt-ground); }
.pt-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.pt-logo { color: var(--pt-ground); text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.pt-lang { display: flex; border: 1px solid #4A4F57; border-radius: 999px; overflow: hidden; }
.pt-lang a { min-width: 48px; min-height: 36px; display: flex; align-items: center; justify-content: center; color: #D9D4C7; text-decoration: none; font-size: 14px; }
.pt-lang a[aria-current] { background: var(--pt-ground); color: var(--pt-ink); font-weight: 700; }

.pt-page { font-family: var(--pt-font); color: var(--pt-ink); padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.pt-page a, .pt-widget a, .pt-brief a { color: var(--pt-link); }

.pt-card { background: var(--pt-card); border: 1px solid var(--pt-line); border-radius: 12px; padding: 20px 24px; box-sizing: border-box; }
.pt-card--dark { background: var(--pt-ink); border-color: var(--pt-ink); color: var(--pt-ground); display: flex; flex-direction: column; gap: 12px; }
.pt-page .pt-card--dark a { color: #9CC3F0; }
.pt-muted { color: var(--pt-muted); }
.pt-small { font-size: 13px; line-height: 1.5; margin: 0; }
.pt-center { text-align: center; }

.pt-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; background: var(--pt-card); border: 1px solid var(--pt-line); border-radius: 16px; padding: 24px 32px; overflow: hidden; }
.pt-hero__text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.pt-hero__img { flex: 0 1 440px; width: 440px; max-width: 100%; height: auto; display: block; }
.pt-kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pt-muted); }
.pt-h1 { margin: 0; font-size: clamp(36px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.pt-sub { margin: 0; font-size: 17px; line-height: 1.5; color: var(--pt-body); max-width: 520px; }
.pt-updated { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--pt-body); }
.pt-dot { width: 8px; height: 8px; border-radius: 50%; background: #1F7A4D; }

.pt-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.pt-status__item { display: flex; align-items: center; gap: 16px; }
.pt-status__text { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pt-status__name { font-weight: 600; font-size: 17px; }

.pt-badge { width: 36px; height: 36px; border-radius: 50%; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.pt-badge--small { font-size: 13px; }
.pt-badge--lg { width: 48px; height: 48px; font-size: 22px; }
.pt-badge--lg.pt-badge--small { font-size: 16px; }

.pt-pill, .pt-tag { font-weight: 600; font-size: 13px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.pt-pill--good, .pt-tag--cleared { background: #DDF0E4; color: #175C3A; }
.pt-pill--delay, .pt-tag--delay { background: #FCEFD9; color: #8A3B00; }
.pt-pill--change, .pt-tag--change { background: #FBE1DC; color: #9B2C1C; }
.pt-tag--planned, .pt-tag--info { background: #E6EEF8; color: #163F73; }

.pt-columns { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.pt-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pt-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.pt-h3 { margin: 0; font-size: 18px; }

.pt-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-page .pt-filters a { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid #CFC7B4; background: var(--pt-card); color: var(--pt-ink); text-decoration: none; font-size: 15px; }
.pt-page .pt-filters a[aria-current] { background: var(--pt-ink); border-color: var(--pt-ink); color: #FFFFFF; font-weight: 600; }

.pt-alert { display: flex; flex-direction: column; gap: 10px; }
.pt-alert__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pt-line-tag { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 6px; color: #FFFFFF; }
.pt-alert__time { margin-left: auto; font-size: 13px; }
.pt-alert__head { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.pt-alert__body { margin: 0; font-size: 15px; line-height: 1.55; color: var(--pt-body); overflow-wrap: anywhere; }
.pt-alert__link { font-size: 14px; font-weight: 600; }
.pt-empty { margin: 0; font-size: 16px; color: var(--pt-body); }

/* Homepage box */
.pt-widget { font-family: var(--pt-font); color: var(--pt-ink); display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.pt-widget__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pt-widget__row { display: flex; align-items: center; gap: 12px; }
.pt-widget__name { flex-grow: 1; font-weight: 600; font-size: 16px; }
.pt-widget__note { margin: -4px 0 0 48px; font-size: 14px; line-height: 1.5; color: var(--pt-body); }
.pt-widget__planned { margin: 0; background: var(--pt-ground); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--pt-body); }
.pt-widget__planned strong { color: var(--pt-ink); }
.pt-rule { border: 0; height: 1px; background: #ECE6D8; margin: 0; }
.pt-widget .pt-button { min-height: 44px; display: flex; align-items: center; justify-content: center; background: var(--pt-ink); color: #FFFFFF; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; }

/* Morning Brief block */
.pt-brief { font-family: var(--pt-font); color: var(--pt-ink); display: flex; flex-direction: column; gap: 12px; }
.pt-brief__title { margin: 0; font-size: 24px; border-bottom: 2px solid var(--pt-ink); padding-bottom: 10px; }
.pt-brief__row { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; }
.pt-brief__line { font-weight: 700; flex-shrink: 0; width: 84px; }
.pt-brief a { font-size: 14px; font-weight: 600; }

/* Inside the Pueblo Connect site layout: use the site's own font and spacing. */
.pt-page.pt-in-site { font-family: inherit; padding-top: 8px; padding-bottom: 24px; }
.pt-in-site .pt-h1, .pt-in-site .pt-h3, .pt-in-site .pt-alert__head { font-family: inherit; color: var(--pt-ink); }
.pt-in-site h1, .pt-in-site h2, .pt-in-site h3 { text-transform: none; }
.pt-in-site p { margin-bottom: 0; }
.pt-in-site .pt-card--dark .pt-h3 { color: #F5F2EA; }

/* Homepage strip */
.pt-home { padding: 36px 0 8px; }
.pt-strip { font-family: inherit; color: var(--pt-ink); background: var(--pt-card); border: 1px solid var(--pt-line); border-radius: 14px; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.pt-strip__head { display: flex; align-items: center; gap: 12px; flex: 0 1 220px; }
.pt-strip__icon { font-size: 30px; line-height: 1; }
.pt-strip__title { margin: 0 0 2px; font-size: 22px; line-height: 1.2; color: var(--pt-ink); text-transform: none; }
.pt-strip__lines { flex: 1 1 420px; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.pt-strip__line { flex: 1 1 260px; display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.pt-strip__text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pt-strip__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-strip__name { font-weight: 600; font-size: 16px; }
.pt-strip__note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--pt-body); }
.pt-strip .pt-strip__btn { flex: 0 0 auto; min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; border-radius: 10px; background: var(--pt-ink); color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 15px; }
.pt-strip .pt-strip__btn:hover { color: #FFFFFF; opacity: .9; }
