/* SkyStayTravel — article pages: layout + editorial look (does not change page copy) */

/* home-bundle sets html to footer blue (#04408f) for overscroll — that reads as a
   blue frame around light article pages. Match canvas to the page background. */
html:has(body.sst-page-article),
html:has(body.sst-page-articles-hub) {
  background-color: #f8f9fa !important;
}

body.sst-page-article {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f8f9fa;
  color: #111827;
  line-height: 1.7;
  font-size: 16px;
}

/* Stop sideways page drag on mobile (footer/legal padding overflow, wide media) */
@media (max-width: 680px) {
  html:has(body.sst-page-article),
  html:has(body.sst-page-articles-hub),
  body.sst-page-article,
  body.sst-page-articles-hub {
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  body.sst-page-article,
  body.sst-page-articles-hub {
    width: 100%;
    max-width: 100%;
  }

  body.sst-page-article .article-wrap,
  body.sst-page-article .article-wrap > .wrap,
  body.sst-page-article .article-header,
  body.sst-page-article .article-body,
  body.sst-page-article .article-hero,
  body.sst-page-article img,
  body.sst-page-article table,
  body.sst-page-article pre {
    max-width: 100% !important;
  }

  body.sst-page-article img {
    height: auto;
  }
}

/* Scope article link colour to content — never override header pills / footer */
body.sst-page-article .article-wrap a {
  color: #0770e3;
  text-decoration: none;
}

body.sst-page-article .article-wrap a:hover {
  text-decoration: underline;
}

body.sst-page-article nav .nav-links a {
  color: #fff;
  text-decoration: none;
}

body.sst-page-article nav .nav-links a:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
}

body.sst-page-article nav .nav-links a.act {
  color: #0770e3;
}

body.sst-page-article .article-wrap {
  width: 100%;
  max-width: 100%;
  padding-top: calc(var(--sst-nav-h, 58px) + 40px);
  padding-bottom: 48px;
}

body.sst-page-article .article-wrap,
body.sst-page-article .article-wrap .wrap,
body.sst-page-article .article-header,
body.sst-page-article .article-header-content,
body.sst-page-article .article-body,
body.sst-page-article .breadcrumb,
body.sst-page-article .disclosure {
  text-align: left;
}

/* Same ~1120 rail as commercial pages; copy stays left-aligned inside */
body.sst-page-article .article-wrap > .wrap {
  max-width: min(1120px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

body.sst-page-article .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.86rem;
  color: #64748b;
  margin-bottom: 16px;
}

body.sst-page-article .breadcrumb a {
  color: #0770e3;
  font-weight: 700;
}

body.sst-page-article .disclosure {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.86rem;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 22px;
}

/* Hero + title — articles only: full-bleed hero in card, left-led title stack */
body.sst-page-article .article-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  margin: 0 0 22px;
  text-align: left;
}

body.sst-page-article .article-hero {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 220px;
  margin: 0 !important;
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
  object-position: center;
  display: block !important;
  align-self: stretch;
  border-radius: 0;
}

body.sst-page-article .article-header-content {
  width: 100%;
  box-sizing: border-box;
  padding: 22px 22px 24px;
  text-align: left !important;
}

body.sst-page-article .article-tag,
body.sst-page-article .article-header h1,
body.sst-page-article .article-meta,
body.sst-page-article .article-intro {
  text-align: left !important;
  margin-left: 0;
  margin-right: 0;
}

body.sst-page-article .article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  color: #0770e3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

body.sst-page-article .article-header h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 12px;
  max-width: 100%;
}

body.sst-page-article .article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 650;
  margin-bottom: 14px;
}

body.sst-page-article .article-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #374151;
}

body.sst-page-article .article-body {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 26px 24px 32px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

body.sst-page-article .article-body h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 28px 0 12px;
}

body.sst-page-article .article-body h2:first-child {
  margin-top: 0;
}

body.sst-page-article .article-body h3 {
  font-size: 1.05rem;
  color: #0f172a;
  margin: 20px 0 8px;
}

body.sst-page-article .article-body p,
body.sst-page-article .article-body li {
  color: #374151;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

body.sst-page-article .article-body ul,
body.sst-page-article .article-body ol {
  padding-left: 1.2em;
  margin: 0 0 14px;
}

body.sst-page-article .article-body li + li {
  margin-top: 6px;
}

body.sst-page-article .sst-knote,
body.sst-page-article .sst-tip {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #1e3a8a;
}

body.sst-page-article .sst-knote {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #0770e3;
}

body.sst-page-article .sst-tip {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  color: #78350f;
}

body.sst-page-article .cta-box {
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0447a0, #0770e3);
  color: #fff;
}

body.sst-page-article .cta-box h3 {
  color: #fff !important;
  margin-top: 0;
}

body.sst-page-article .cta-box p,
body.sst-page-article .cta-box a {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* CTA pills: white on blue — exempt from blanket white-text rule */
body.sst-page-article .cta-box a.cta-btn,
body.sst-page-article .cta-box a.cta-btn:link,
body.sst-page-article .cta-box a.cta-btn:visited,
body.sst-page-article .cta-box a.cta-btn:hover,
body.sst-page-article .cta-box a.cta-btn:active {
  display: inline-flex;
  align-items: center;
  margin: 6px 4px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff !important;
  color: #075fc0 !important;
  -webkit-text-fill-color: #075fc0 !important;
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(3, 20, 50, 0.18);
}

/* Continue planning: stacked rows (never run-on links) */
body.sst-page-article .cta-box .related-links a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
}
body.sst-page-article .cta-box .related-links a:first-of-type {
  border-top: 0;
  padding-top: 0;
}
body.sst-page-article .cta-box .related-links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.sst-page-article .related,
body.sst-page-article .sst-related-block {
  margin-top: 28px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

@media (min-width: 681px) {
  body.sst-page-article .article-wrap > .wrap {
    max-width: min(1120px, calc(100% - 44px)) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    box-sizing: border-box !important;
  }

  body.sst-page-article .article-header,
  body.sst-page-article .article-body {
    width: 100%;
    max-width: 100%;
  }

  body.sst-page-article .article-hero {
    min-height: 280px;
    aspect-ratio: 21 / 9;
  }

  body.sst-page-article .article-header-content,
  body.sst-page-article .article-body {
    padding-left: 28px;
    padding-right: 28px;
  }

  body.sst-page-article .article-header-content,
  body.sst-page-article .article-header h1,
  body.sst-page-article .article-tag,
  body.sst-page-article .article-meta,
  body.sst-page-article .article-intro {
    text-align: left !important;
  }
}

@media (max-width: 680px) {
  body.sst-page-article .article-wrap {
    padding-top: calc(var(--sst-nav-h, 54px) + 28px);
  }

  body.sst-page-article .article-wrap > .wrap {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  body.sst-page-article .article-hero {
    min-height: 200px;
    max-height: 260px;
    aspect-ratio: 16 / 10;
  }

  /* Mobile: keep left-led editorial (not centred masthead) */
  body.sst-page-article .article-header-content,
  body.sst-page-article .article-header h1,
  body.sst-page-article .article-tag,
  body.sst-page-article .article-meta,
  body.sst-page-article .article-intro {
    text-align: left !important;
  }

  body.sst-page-article .article-header-content {
    padding: 18px 16px 20px;
  }

  body.sst-page-article .article-body {
    padding: 20px 16px 26px;
  }
}

/* Legacy hotel articles — inline 720px shells */
body.sst-page-article .art-body {
  text-align: left;
}

@media (min-width: 681px) {
  body.sst-page-article div[style*="max-width:720px"] {
    max-width: min(1120px, calc(100% - 44px)) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    box-sizing: border-box !important;
  }

  body.sst-page-article div[style*="padding:28px 20px 40px"] {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}

@media (max-width: 680px) {
  body.sst-page-article div[style*="max-width:720px"] {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}
