/* =====================================================================
   Documented corrections of genuine layout defects (loaded after generated page CSS).
   Each rule lists the defect observed on the live WordPress site or the rebuild.
   ===================================================================== */

/* Flex children default to min-width:auto, so wide content (scroll tables in custom blocks) could stretch a
   whole section past the viewport. Scroll containers keep their own horizontal scrolling.
   (.in keeps its own max-width — the boxed content width, e.g. 1140/1182 px.) */
.c > .in { min-width: 0; }
.custom, .custom > * { min-width: 0; max-width: 100%; }

/* Boxed containers: Elementor centres the inner box with margin: 0 auto. The extractor recorded the computed
   margins at 1440 px (e.g. 119px), which are only right at that one width — restore auto (all 1,380 pairs were
   symmetric, i.e. computed auto). */
.c > .in { margin-left: auto; margin-right: auto; }
.custom table { max-width: none; }

/* Same defect one level up: fare tables in plain text widgets and custom blocks sit inside nested flex columns whose
   min-width:auto lets the table's intrinsic width push the section past a phone viewport (320–390 px). Only
   containers that actually hold a table are released, and a bare text-widget table scrolls inside its widget. */
.c:has(table), .w:has(table) { min-width: 0; max-width: 100%; }
.w.txt:has(> table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.w.txt > table { min-width: 560px; }

/* Live defect: the decorative "24/7 AVAILABLE" footer badge is clipped off the right edge on tablet (768–1024 px).
   It is already hidden on mobile; on tablet its circle is removed (the same information appears in the top bar and footer). */
@media (min-width: 768px) and (max-width: 1024px) {
  /* keep the badge's (narrow) box so the footer columns sit exactly where they do on live; drop the clipped circle */
  .site-footer .e-4bd0c56 { visibility: hidden; }
  .site-footer .e-17e2869 { display: none; }
}

/* Safety net: never allow decorative overflow to create a horizontal scrollbar. `clip` (not hidden) keeps
   position:sticky working and does not create a scroll container. */
html, body { overflow-x: clip; }

/* Header breadcrumb row. The header CSS was extracted from the home page, where live hides this row
   (body.home … :has(.at247-breadcrumbs) { display:none }); on every other page it is visible.
   Typography/colours below are the live widget's custom CSS (post-14.css, element 9079908). */
body:not(.home) .e-ba0c620 { display: flex; padding-left: 10px; padding-right: 10px; }
.e-9079908 { width: 100%; color: #4b5563; font-size: 13px; line-height: 1.6; }
.e-9079908 .crumbs { max-width: 1200px; margin: 0 auto; }
.e-9079908 .crumbs ol { font-size: inherit; gap: 0; overflow-wrap: anywhere; }
.e-9079908 .crumbs li + li::before { content: "\00BB"; margin: 0 .3em; color: inherit; }
.e-9079908 .crumbs a { color: #265b49; text-decoration: underline; text-underline-offset: 3px; }
.e-9079908 .crumbs a:hover { color: #172c25; }
@media (max-width: 767px) { .e-9079908 { font-size: 12px; } }

/* Header menu: the header was extracted on the home page, where "Home" is the current item, so its active colour
   was recorded for every item. Live: items rgb(0,0,0), current item rgb(121,85,32) (kept by the [aria-current] rule). */
.e-10cbb76 .nav-l1>li>a { color: rgb(0, 0, 0); }

/* Footer "24/7 AVAILABLE" badge: Elementor --width:120px (a circle). The extractor stored a percentage, which
   rendered an ellipse at most widths. (Hidden at tablet/mobile — see above.) */
@media (min-width: 1025px) { .site-footer .e-17e2869 { width: 120px; flex-shrink: 0; } }

/* Page-specific footer variations on live (e.g. Heathrow wraps the footer at tablet; ~23 route pages use a
   two-column grid) are ported per page by tools/hover.py into hover/<slug>.css. */


/* Home, phones: the two "CALL 020 8191 4025" buttons are full width on live (Elementor mobile custom width resolving
   to 100% through the parent's --container-widget-width); verified with tools/align_check.py. */
@media (max-width: 767px) { .e-2a5e5aba, .e-7b9bf6ed { width: 100%; max-width: 100%; } }

/* Footer columns: Elementor declares flex bases (post-57.css) and lets flex-shrink fit them into one no-wrap row,
   so the rendered widths change continuously with the viewport. Port the declared bases instead of the
   percentages measured at 1440/768 px, so every width between matches live. */
@media (min-width: 768px) {
  .site-footer .c.e-2fc10920 { width: 30%; }
  .site-footer .c.e-f4df118 { width: 20%; }
  .site-footer .c.e-560ba1c1 { width: 18%; }
  .site-footer .c.e-673c98c2 { width: 22%; }
  .site-footer .c.e-4bd0c56 { width: 120px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .site-footer .c.e-2fc10920, .site-footer .c.e-673c98c2 { width: 100%; }
  .site-footer .c.e-f4df118, .site-footer .c.e-560ba1c1 { width: 48%; }
}

/* Elementor containers are width:100% unless given a custom width (.e-con { width: var(--width, 100%) }). The
   extractor only writes widths that differ from the parent, so a full-width container under a centring parent
   (align-items:center) shrank to its content. Zero-specificity default: every measured/ported width still wins. */
:where(.c) { width: 100%; }
