:root {
  --stsl-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --stsl-navy: #16324f;
  --stsl-deep-navy: #10263b;
  --stsl-yellow: #ffc547;
  --stsl-yellow-hover: #ffda82;
  --stsl-gold-soft: #fff2d6;
  --stsl-canvas: #f4f7fb;
  --stsl-surface: #fff;
  --stsl-line: #dce5ef;
  --stsl-text: #293d51;
  --stsl-muted: #45586c;
  --stsl-link: #20557c;
  --stsl-focus: #2b6089;
  --stsl-footer-text: #e2ebf4;
}

body,
#page,
.ast-mobile-popup-drawer {
  font-family: var(--stsl-font);
}

:is(#masthead, #content, #colophon, .ast-mobile-popup-drawer)
  :is(h1, h2, h3, h4, h5, h6, input, textarea, select, button, .menu-link, .wp-element-button) {
  font-family: var(--stsl-font);
}

#content.site-content {
  background-color: var(--stsl-canvas);
  background-image:
    radial-gradient(54rem 30rem at 86% 0%, rgb(255 197 71 / 20%), transparent 76%),
    linear-gradient(180deg, #fcfdff 0%, transparent 42rem);
  color: var(--stsl-text);
}

body.ast-separate-container #content .ast-article-single {
  background-color: var(--stsl-surface);
  border-radius: 20px;
}

body.home.ast-separate-container #content .ast-article-single {
  background-color: transparent;
}

#content .entry-content {
  font-size: 1rem;
  line-height: 1.65;
}

/* Apply the site font to blocks that have an explicit editor font family. */
#content .entry-content :is(h1, h2, h3, h4, h5, h6, p, li, blockquote):is([style*="font-family"], [class*="-font-family"]) {
  font-family: var(--stsl-font) !important;
}

.entry-title,
.entry-content .wp-block-heading:where(:not(.has-text-color, .has-text-color *)) {
  color: var(--stsl-navy);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#content .entry-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

#content .entry-content .wp-block-media-text__media img {
  border-radius: 16px;
}

#content #shared-taxi-routes {
  color: var(--stsl-navy) !important;
  border-width: 0 0 3px !important;
  border-style: solid;
  border-color: var(--stsl-yellow) !important;
  padding-block: 0.35em 0.55em;
  scroll-margin-top: 120px;
}

.stsl-seo-route-links {
  margin-block: 32px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--stsl-line);
  border-radius: 16px;
  background: var(--stsl-surface);
}

.stsl-seo-route-links h2 {
  margin-block: 0 12px;
  font-size: 1.25rem;
}

.stsl-seo-route-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 7px 24px;
  margin-block: 0;
  padding-inline-start: 1.25em;
}

/* The original route cards use this background in their saved block markup. */
#content .entry-content .wp-block-group.has-background[style*="#f4f7fb" i] {
  background-color: var(--stsl-surface) !important;
  border: 1px solid var(--stsl-line);
  box-shadow: 0 6px 18px rgb(22 50 79 / 7%);
}

#content .entry-content .wp-block-group.has-background[style*="#f4f7fb" i]:focus-within {
  border-color: var(--stsl-focus);
}

#content .entry-content a:where(:not(.wp-element-button, .wp-block-button__link, .button, .has-text-color, .has-text-color *)) {
  color: var(--stsl-link);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

#content .entry-content a:where(:not(.wp-element-button, .wp-block-button__link, .button, .has-text-color, .has-text-color *)):hover {
  color: var(--stsl-navy);
  text-decoration-thickness: 0.13em;
}

:is(#content, #colophon) .wp-block-button > .wp-block-button__link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72em 1.2em;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

:is(#content, #colophon) .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
  background: var(--stsl-yellow) !important;
  color: var(--stsl-navy) !important;
}

:is(#content, #colophon) .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
  background-color: var(--stsl-yellow-hover) !important;
}

#content :is(.entry-content a, .entry-content button):focus-visible {
  outline: 2px solid var(--stsl-focus);
  outline-offset: 3px;
}

#colophon.site-footer,
#colophon :is(.site-above-footer-wrap, .site-primary-footer-wrap, .site-below-footer-wrap, .ast-small-footer, .ast-footer-overlay) {
  background-color: var(--stsl-deep-navy);
  color: var(--stsl-footer-text);
}

#colophon :is(p, .ast-footer-copyright) {
  color: var(--stsl-footer-text);
}

#colophon :is(.widget-title, h2, h3, h4) {
  color: var(--stsl-surface);
}

#colophon a:where(:not(.wp-element-button, .wp-block-button__link, .button)) {
  color: var(--stsl-yellow);
  text-underline-offset: 0.18em;
}

#colophon a:where(:not(.wp-element-button, .wp-block-button__link, .button)):hover {
  color: var(--stsl-surface);
}

#colophon :is(a, button):focus-visible {
  outline: 2px solid var(--stsl-yellow);
  outline-offset: 3px;
}

.stsl-footer-details {
  padding: clamp(32px, 5vw, 60px) clamp(20px, 5vw, 54px) 0;
  background: var(--stsl-deep-navy);
  color: var(--stsl-footer-text);
  font-family: var(--stsl-font);
}

.stsl-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 48px);
  max-width: 1220px;
  margin-inline: auto;
  padding-block-end: clamp(28px, 4vw, 42px);
  border-block-end: 1px solid rgb(226 235 244 / 20%);
}

.stsl-footer-details h2 {
  margin: 0 0 12px;
  color: var(--stsl-surface);
  font: 700 1rem / 1.3 var(--stsl-font);
}

.stsl-footer-brand h2 {
  font-size: 1.25rem;
}

.stsl-footer-details p,
.stsl-footer-details address,
.stsl-footer-details ul {
  margin: 0;
}

.stsl-footer-details address {
  display: grid;
  gap: 7px;
  font-style: normal;
}

.stsl-footer-details ul {
  display: grid;
  gap: 7px;
  padding: 0;
  list-style: none;
}

.stsl-footer-details a {
  color: var(--stsl-footer-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.stsl-footer-details a:hover {
  color: var(--stsl-yellow);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.stsl-footer-details a:focus-visible {
  outline: 2px solid var(--stsl-yellow);
  outline-offset: 3px;
}

.stsl-footer-details .stsl-footer-whatsapp {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-block-end: 3px;
  padding: 8px 14px;
  border-radius: 10px;
  background-color: var(--stsl-yellow);
  color: var(--stsl-navy);
  font-weight: 700;
  line-height: 1.3;
}

.stsl-footer-details .stsl-footer-whatsapp:hover {
  background-color: var(--stsl-yellow-hover);
  color: var(--stsl-navy);
  text-decoration: none;
}

@media (max-width: 850px) {
  .stsl-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .stsl-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
