/**
 * Singapore Insiders — editorial blog typography
 * Montserrat (headings) + Lato (body). Scoped to body.sginsiders-editorial
 */

:root {
  --sg-brand: #d31515;
  --sg-brand-dark: #a81010;
  --sg-heading: #1a1a1a;
  --sg-body: #333333;
  --sg-muted: #5c5c5c;
  --sg-prose-width: 42rem;
  --sg-font-heading: "Montserrat", "Segoe UI", sans-serif;
  --sg-font-body: "Lato", "Segoe UI", sans-serif;
}

/* —— Header navigation (Astra) —— */
/* Active menu item should match brand red, and overall nav slightly smaller/tighter. */
.main-header-menu > .menu-item > .menu-link,
.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link {
  font-size: 0.9rem !important;
  padding-left: 0.55em !important;
  padding-right: 0.55em !important;
  white-space: nowrap;
}

@media (min-width: 922px) {
  .ast-primary-header-bar .main-header-menu,
  .main-header-menu {
    flex-wrap: nowrap !important;
    justify-content: flex-end;
    gap: 0.15rem;
  }

  .main-header-menu > .menu-item.menu-item-has-children > .sub-menu {
    min-width: 12.5rem;
  }

  .main-header-menu .sub-menu .menu-link {
    font-size: 0.875rem !important;
    padding: 0.55em 1em !important;
    white-space: normal;
  }
}

.main-header-menu > .current-menu-item > .menu-link,
.main-header-menu > .current_page_item > .menu-link,
.main-header-menu > .current-menu-ancestor > .menu-link,
.main-header-menu > .current-menu-parent > .menu-link,
.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link:hover {
  color: var(--sg-brand) !important;
}

.main-header-menu > .current-menu-item > .menu-link:after,
.main-header-menu > .current_page_item > .menu-link:after,
.main-header-menu > .current-menu-ancestor > .menu-link:after,
.main-header-menu > .current-menu-parent > .menu-link:after {
  background-color: var(--sg-brand) !important;
}

/* —— Footer guide links (inside red small footer) —— */
.ast-small-footer-wrap .sginsiders-footer-guides {
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  padding-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.92);
}

.ast-small-footer-wrap .sginsiders-footer-guides + .sginsiders-footer-guides {
  padding-bottom: 0.4rem;
}

.sginsiders-footer-guides-label {
  font-weight: 700;
  margin-right: 0.35rem;
}

.sginsiders-footer-guides a {
  color: #fff !important;
  text-decoration: none;
  padding: 0 0.25rem;
}

.sginsiders-footer-guides a:hover {
  text-decoration: underline;
}

.sginsiders-footer-guides-sep {
  opacity: 0.55;
  margin: 0 0.35rem;
}

@media (max-width: 544px) {
  .ast-small-footer-wrap .sginsiders-footer-guides {
    font-size: 0.75rem;
    line-height: 1.7;
  }
}

/* GSC TL;DR snippet block on high-traffic posts */
.sg-gsc-tldr {
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  background: #faf8f8;
  border-left: 4px solid var(--sg-brand);
  font-size: 1rem;
  line-height: 1.6;
}

.sg-gsc-tldr p {
  margin: 0;
}

.sg-gsc-tldr-links {
  margin: 0.65rem 0 0 !important;
  padding-top: 0.5rem;
  border-top: 1px solid #e8e4e4;
  font-size: 0.92rem;
}

.sg-gsc-tldr-links a {
  font-weight: 600;
}

/* —— Prose column (readable measure) —— */
.sginsiders-editorial.single-post .elementor-widget-text-editor .elementor-widget-container,
.sginsiders-editorial.single-post .elementor-widget-heading:not(:has(+ .elementor-widget-image-carousel)) .elementor-widget-container {
  max-width: var(--sg-prose-width);
  margin-left: auto;
  margin-right: auto;
}

/* Full-width sections (hero carousel, dividers) stay full width */
.sginsiders-editorial.single-post .elementor-section.elementor-section-stretched,
.sginsiders-editorial.single-post .elementor-widget-image-carousel,
.sginsiders-editorial.single-post .elementor-widget-slides,
.sginsiders-editorial.single-post .elementor-widget-gallery,
.sginsiders-editorial.single-post .elementor-widget-image {
  max-width: none;
}

/* —— H1 (post title / hero) —— */
.sginsiders-editorial.single-post .entry-content > h1:first-child,
.sginsiders-editorial.single-post .elementor-widget-heading h1.elementor-heading-title,
.sginsiders-editorial.single-post .elementor-widget-text-editor h1,
.sginsiders-editorial h1.elementor-heading-title {
  font-family: var(--sg-font-heading) !important;
  font-size: clamp(1.65rem, 4vw, 2rem) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  text-align: center !important;
  color: var(--sg-brand) !important;
  margin: 1.25rem auto 1.5rem !important;
  max-width: var(--sg-prose-width);
}

/* —— H2 section headings —— */
.sginsiders-editorial.single-post .elementor-widget-heading h2.elementor-heading-title,
.sginsiders-editorial.single-post .elementor-widget-text-editor h2,
.sginsiders-editorial.single-post .entry-content h2 {
  font-family: var(--sg-font-heading) !important;
  font-size: clamp(1.25rem, 2.5vw, 1.375rem) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: left !important;
  color: var(--sg-heading) !important;
  margin: 2.25rem 0 0.85rem !important;
  max-width: 100%;
}

/* —— H3 / H4 —— */
.sginsiders-editorial.single-post .elementor-widget-heading h3.elementor-heading-title,
.sginsiders-editorial.single-post .elementor-widget-text-editor h3,
.sginsiders-editorial.single-post .entry-content h3 {
  font-family: var(--sg-font-heading) !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-align: left !important;
  color: var(--sg-heading) !important;
  margin: 1.5rem 0 0.5rem !important;
}

.sginsiders-editorial.single-post .elementor-widget-heading h4.elementor-heading-title,
.sginsiders-editorial.single-post .elementor-widget-text-editor h4,
.sginsiders-editorial.single-post .entry-content h4 {
  font-family: var(--sg-font-heading) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-align: left !important;
  color: var(--sg-muted) !important;
  margin: 1.25rem 0 0.4rem !important;
}

/* —— Body copy —— */
.sginsiders-editorial.single-post .elementor-widget-text-editor,
.sginsiders-editorial.single-post .elementor-widget-text-editor p,
.sginsiders-editorial.single-post .elementor-widget-text-editor li,
.sginsiders-editorial.single-post .entry-content p,
.sginsiders-editorial.single-post .entry-content li {
  font-family: var(--sg-font-body) !important;
  font-size: 1.0625rem !important;
  line-height: 1.75 !important;
  color: var(--sg-body) !important;
  text-align: left !important;
}

.sginsiders-editorial.single-post .elementor-widget-text-editor p,
.sginsiders-editorial.single-post .entry-content p {
  margin: 0 0 1.1rem !important;
}

.sginsiders-editorial.single-post .elementor-widget-text-editor strong,
.sginsiders-editorial.single-post .entry-content strong {
  font-weight: 700;
  color: var(--sg-heading);
}

/* —— Lists —— */
.sginsiders-editorial.single-post .elementor-widget-text-editor ul,
.sginsiders-editorial.single-post .elementor-widget-text-editor ol,
.sginsiders-editorial.single-post .entry-content ul,
.sginsiders-editorial.single-post .entry-content ol {
  margin: 0 0 1.25rem !important;
  padding-left: 1.35rem !important;
  text-align: left !important;
  max-width: 100%;
}

.sginsiders-editorial.single-post .elementor-widget-text-editor li,
.sginsiders-editorial.single-post .entry-content li {
  margin-bottom: 0.45rem !important;
}

.sginsiders-editorial.single-post .elementor-widget-text-editor ul {
  list-style: disc !important;
}

.sginsiders-editorial.single-post .elementor-widget-text-editor ol {
  list-style: decimal !important;
}

/* —— Links —— */
.sginsiders-editorial.single-post .elementor-widget-text-editor a,
.sginsiders-editorial.single-post .entry-content a {
  color: var(--sg-brand) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sginsiders-editorial.single-post .elementor-widget-text-editor a:hover,
.sginsiders-editorial.single-post .entry-content a:hover {
  color: var(--sg-brand-dark) !important;
}

/* —— Images in article —— */
.sginsiders-editorial.single-post .elementor-widget-text-editor img,
.sginsiders-editorial.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  display: block;
}

/* —— Elementor heading widgets (override theme giant sizes) —— */
.sginsiders-editorial.single-post .elementor-widget-heading .elementor-heading-title {
  font-family: var(--sg-font-heading) !important;
}

/* —— Pages (partnership, whats-new) — lighter touch —— */
.sginsiders-editorial.page .elementor-widget-text-editor p,
.sginsiders-editorial.page .elementor-widget-text-editor li {
  font-family: var(--sg-font-body) !important;
  font-size: 1.0625rem !important;
  line-height: 1.75 !important;
  color: var(--sg-body) !important;
}

.sginsiders-editorial.page .elementor-widget-heading h1.elementor-heading-title {
  font-family: var(--sg-font-heading) !important;
  font-weight: 600 !important;
  color: var(--sg-brand) !important;
}

.sginsiders-editorial.page .elementor-widget-heading h2.elementor-heading-title {
  font-family: var(--sg-font-heading) !important;
  font-size: 1.375rem !important;
  font-weight: 600 !important;
  color: var(--sg-heading) !important;
}

/* What's New filters: visible on live (5779) and draft clone (11967). */

/* —— Homepage: “Ready to Eat?” section title —— */
.sginsiders-editorial.home .elementor-element-0dad770,
.sginsiders-editorial.home .elementor-element-0dad770 .elementor-widget-container,
.sginsiders-editorial.home .elementor-element-9b973f7,
.page-id-10229 .elementor-element-0dad770,
.page-id-10229 .elementor-element-0dad770 .elementor-widget-container {
  text-align: center !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.sginsiders-editorial.home .elementor-element-0dad770 h2.elementor-heading-title,
.page-id-10229 .elementor-element-0dad770 h2.elementor-heading-title {
  font-family: var(--sg-font-heading) !important;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: center !important;
  color: var(--sg-heading) !important;
  max-width: 22rem;
  margin: 0.35rem auto 0.75rem !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

@media (max-width: 767px) {
  .elementor-element-0dad770 .elementor-widget-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .elementor-element-0dad770 h2.elementor-heading-title {
    display: block !important;
    width: auto !important;
    max-width: 17.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    font-size: 0.9375rem !important;
  }
}

/* Elementor page CSS often sets nowrap on headings — win on all viewports for this widget */
.elementor-element-0dad770 h2.elementor-heading-title {
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

/* —— “Follow Us” footer heading (global template) —— */
.elementor-element-75850c83,
.elementor-element-75850c83 .elementor-widget-container,
.sginsiders-editorial .elementor-element-75850c83,
.sginsiders-editorial .elementor-widget-global.elementor-global-3077.elementor-widget-heading {
  text-align: center !important;
}

.elementor-element-75850c83 h2.elementor-heading-title,
.elementor-widget-global.elementor-global-3077 h2.elementor-heading-title {
  font-family: var(--sg-font-heading, "Montserrat", sans-serif) !important;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem) !important;
  font-weight: 600 !important;
  text-align: center !important;
  color: var(--sg-brand) !important;
  margin: 0.5rem auto 0.75rem !important;
}

/* —— Post footer: hide “What's new” title only; keep divider + See More —— */
.sginsiders-editorial.single-post .elementor-element-41f64f9 {
  display: none !important;
}

.sginsiders-editorial .elementor-element-3021798d,
.sginsiders-editorial .elementor-element-3021798d .elementor-widget-divider,
.sginsiders-editorial .elementor-element-3021798d .elementor-widget-button,
.sginsiders-editorial .elementor-element-78f409ca {
  text-align: center !important;
}

/* Homepage “What's New” block heading (keep visible) */
.sginsiders-editorial .elementor-element-0d8b2f1 .elementor-widget-container,
.sginsiders-editorial .elementor-element-0d8b2f1 h2.elementor-heading-title,
.sginsiders-editorial .elementor-element-10fb0e38 .elementor-widget-heading h2.elementor-heading-title {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Homepage right-column "What's New" heading (Elementor widget wrapper). */
.sginsiders-editorial.home .elementor-element-0d8b2f1,
.sginsiders-editorial.home .elementor-element-0d8b2f1 * {
  color: var(--sg-brand) !important;
}

/* Fever button: slightly smaller label */
.sginsiders-editorial .elementor-button.elementor-size-sm {
  font-size: 15px !important;
}

/* —— Remove heavy shadow on “See More” buttons (Elementor kit default) —— */
.sginsiders-editorial .elementor-element-1f6e70ba .elementor-button,
.sginsiders-editorial .elementor-element-f41fd19 .elementor-button,
.sginsiders-editorial .elementor-element-3021798d .elementor-button,
.sginsiders-editorial .elementor-widget-global.elementor-global-5807 .elementor-button {
  box-shadow: none !important;
  filter: none !important;
}

/* —— Mobile —— */
@media (max-width: 767px) {
  :root {
    --sg-prose-width: min(100%, 36rem);
  }

  .sginsiders-editorial.single-post .elementor-widget-text-editor,
  .sginsiders-editorial.single-post .elementor-widget-text-editor p,
  .sginsiders-editorial.single-post .elementor-widget-text-editor li {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  .sginsiders-editorial.single-post .elementor-widget-heading h2.elementor-heading-title,
  .sginsiders-editorial.single-post .elementor-widget-text-editor h2 {
    font-size: 1.2rem !important;
    margin-top: 1.75rem !important;
  }
}
