/* Four Solutions shared presentation layer, v1, 23 September 2026.
   Additive only. Every rule is scoped under .fs-v1 (added to <body>) or
   .fs-guide (added to guide/article templates), so nothing applies unless the
   page opts in, and a failed request simply leaves the page as it is today.

   Deliberately NOT styled here:
     - bare <table> outside .article-body. The bed bug and car fumigation price
       tables are already styled with inline attributes inside a card and must
       not be flattened.
     - .faq, .pill, .card, .svc-grid, .proc-grid, hero and conversion panels,
       which already have a finished treatment.
   No colour, font or spacing token is invented: navy #000080, red #d81f2c,
   line #e6e8f2, soft #f6f7fc and Raleway all come from the existing pages. */

/* ------------------------------------------------ 1. keyboard focus
   Only 6 of 70 templates defined :focus-visible, so keyboard users had no
   reliable focus ring. Pointer focus is untouched. */
.fs-v1 a:focus-visible,
.fs-v1 button:focus-visible,
.fs-v1 summary:focus-visible,
.fs-v1 [tabindex]:focus-visible {
  outline: 3px solid #d81f2c;
  outline-offset: 3px;
  border-radius: 8px;
}
/* on the navy bands a red ring is hard to see, so use white there */
.fs-v1 footer a:focus-visible,
.fs-v1 .contact a:focus-visible,
.fs-v1 .guide-enquiry a:focus-visible {
  outline-color: #ffffff;
}

/* ------------------------------------------------ 2. reduced motion
   58 of 70 templates had no prefers-reduced-motion block, so the logo marquee
   and hover transforms kept animating for users who asked them not to. */
@media (prefers-reduced-motion: reduce) {
  .fs-v1 *,
  .fs-v1 *::before,
  .fs-v1 *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------ 3. tap targets
   Measured on a 390px viewport: FAQ toggles were 22px tall and some buttons
   36px. Only real controls are grown; inline links inside prose are left
   alone so body copy keeps its rhythm. */
.fs-v1 .faq summary {
  min-height: 44px;
  align-items: center;
}
/* the method disclosures on service pages measured 22px tall */
.fs-v1 .option-details summary {
  min-height: 44px;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
}
.fs-v1 .btn {
  min-height: 44px;
}
/* .pill chips measured 28px. They are inline chips inside a tag list and
   WCAG 2.5.8 AA asks for 24px, which they already pass, so they are nudged
   for comfort rather than grown to 44px and made to dominate the page. */
.fs-v1 .pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

/* ------------------------------------------------ 4. guide column alignment
   Measured before: on /mould-removal-cost-singapore/ at 1440px the H1 sat at
   x=164 while the article column sat at x=334 and the enquiry panel at x=358,
   so one page showed four different left edges. The article column is a direct
   child of <article>, so aligning it to the same 1160px grid the header, owner
   route and footer already use pulls the nested panels into line too. */
@media (min-width: 760px) {
  .fs-guide .wrap.article-body {
    margin-left: max(0px, calc((100% - 1160px) / 2));
    margin-right: auto;
  }
}

/* ------------------------------------------------ 5. article rhythm
   Light touch. The existing .article-body typography is kept; this only fixes
   the joins between blocks and gives headings an anchor offset clear of the
   sticky header. */
.fs-guide .article-body > *:first-child { margin-top: 0; }
.fs-guide .article-body h2,
.fs-guide .article-body h3 { scroll-margin-top: 96px; }
.fs-guide .article-body h2 + p,
.fs-guide .article-body h3 + p { margin-top: 0; }
.fs-guide .article-body li > strong:first-child { color: #000080; }
.fs-guide .article-body ul { list-style: none; padding-left: 0; }
.fs-guide .article-body ul > li {
  position: relative;
  padding-left: 22px;
}
.fs-guide .article-body ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d81f2c;
}
.fs-guide .article-body ol { padding-left: 22px; }
.fs-guide .article-body ol > li::marker {
  color: #000080;
  font-weight: 800;
}

/* ------------------------------------------------ 6. article tables
   The reason this pass exists. Measured before: cell padding 1px, no row
   borders, transparent header, table narrower than its column, so the price
   guide read as loose floating text. Scoped to .article-body only. */
.fs-guide .fs-table-scroll {
  margin: 0 0 22px;
  border: 1px solid #e6e8f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(4, 4, 63, .05);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fs-guide .fs-table-scroll > table,
.fs-guide .article-body table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 15.5px;
  margin: 0;
}
.fs-guide .article-body thead th {
  background: #f6f7fc;
  color: #000080;
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid #e6e8f2;
  white-space: nowrap;
}
.fs-guide .article-body td,
.fs-guide .article-body tbody th {
  padding: 14px 18px;
  border-bottom: 1px solid #eef0f7;
  color: #2f3247;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.fs-guide .article-body tbody th {
  text-align: left;
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 800;
  color: #1b1d29;
}
.fs-guide .article-body tbody tr:last-child td,
.fs-guide .article-body tbody tr:last-child th { border-bottom: 0; }
.fs-guide .article-body tbody tr:nth-child(even) { background: #fbfbfe; }
/* the second column in a two-column price table is the figure */
.fs-guide .article-body table td:last-child:not(:first-child) {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 800;
  color: #000080;
  white-space: nowrap;
}
.fs-guide .article-body table a { overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .fs-guide .article-body thead th,
  .fs-guide .article-body td,
  .fs-guide .article-body tbody th { padding: 12px 14px; }
  .fs-guide .article-body table { font-size: 14.5px; }
  .fs-guide .article-body table td:last-child:not(:first-child) { white-space: normal; }
}

/* ------------------------------------------------ 7. quick answer card
   The card already carries inline styles; these only add the parts the inline
   attributes do not set, so nothing is overridden. */
.fs-guide .fs-quick-answer > p:last-child { margin-bottom: 0; }
.fs-guide .fs-quick-answer strong:first-child {
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Keep the complete service menu usable on shorter screens. */
@media(min-width:760px){.fs-site-header .drop-menu{max-height:calc(100vh - 120px)!important;overflow-y:auto!important;}}
@media(max-width:759px){.fs-site-header .nav-links.open{max-height:calc(100vh - 90px);overflow-y:auto;}}

/* Phone enquiry controls: reuse the original links and event selectors.
   Keep desktop circles; align phone controls in one opaque bottom row. */
@media (max-width: 759px) {
  .fs-v1 .guide-enquiry > .btn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
  html:has(.fs-v1 > .wa-fab) {
    scroll-padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
  body.fs-v1:has(> .wa-fab) {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
  .fs-v1 > .wa-fab,
  .fs-v1 > .call-fab {
    top: auto;
    bottom: 0;
    width: 50%;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    min-height: 58px;
    box-sizing: border-box;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-family: Raleway, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 -3px 12px rgba(4, 4, 63, .12);
    transform: none;
  }
  .fs-v1 > .call-fab { left: 0; right: auto; }
  .fs-v1 > .wa-fab { left: auto; right: 0; }
  .fs-v1 > .call-fab::after { content: "Call us"; }
  .fs-v1 > .wa-fab::after { content: "WhatsApp us"; }
  .fs-v1 > .wa-fab svg { width: 25px; height: 25px; flex: none; }
  .fs-v1 > .call-fab svg { width: 22px; height: 22px; flex: none; }
  .fs-v1 > .wa-fab:focus-visible,
  .fs-v1 > .call-fab:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
    border-radius: 0;
  }
}
