/* Keep the page on one root scroll container. `hidden` on one axis makes
 * the other axis scrollable on html/body, which reintroduces the old nested
 * scrollbar problem. `clip` preserves horizontal clipping without creating a
 * second vertical scrollport. */
html[data-wooftech-site],
html[data-wooftech-site] body {
  overflow-x: clip;
}

/* Keep external-link arrows as a deterministic line icon. A Unicode `↗`
 * can switch to an emoji fallback on iPhone, which breaks the visual system. */
html[data-wooftech-site][data-visual-shell="9c33417b"] .external-arrow {
  display: inline-block;
  width: 0.86em;
  height: 0.86em;
  margin-left: 0.18em;
  overflow: visible;
  vertical-align: -0.08em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The final visual shell keeps these two emphasis lines on one line for
 * desktop art direction. Let them wrap inside the mobile content shell so
 * English and Arabic copy cannot be clipped by the root overflow guard. */
@media (max-width: 900px) {
  html[data-wooftech-site][data-visual-shell="9c33417b"] .risk-question span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* Treat the tablet portrait acceptance width as a compact layout too. The
   * desktop art direction has a 420px hero column and three 370px pricing
   * cards; neither can fit beside the copy at 834px. */
  html[data-wooftech-site][data-visual-shell="9c33417b"] .site-header {
    padding-block: 14px;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] .site-nav {
    grid-template-columns: 142px minmax(0, 1fr) auto;
    gap: 12px;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] .brand-link,
  html[data-wooftech-site][data-visual-shell="9c33417b"][lang="en"] .brand-link {
    box-sizing: border-box;
    flex-basis: 142px !important;
    width: 142px !important;
    min-width: 0;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] .brand-link-logo {
    width: 128px;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] .hero,
  html[data-wooftech-site][data-visual-shell="9c33417b"] .hero-grid {
    min-height: auto;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] .hero-copy {
    padding: 60px 0 18px;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] .hero-visual {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] .hero-doberman {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] #risk-title > span {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] .risk-points {
    grid-template-columns: 1fr;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] #support .support-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* The final visual shell sets a fixed desktop marquee height with !important.
   * On compact screens the support cards become a multi-row grid, so the
   * container must grow with every row instead of clipping the lower cards. */
  html[data-wooftech-site][data-visual-shell="9c33417b"] #support .support-marquee {
    height: auto !important;
    min-height: 0;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] #evidence .evidence-grid,
  html[data-wooftech-site][data-visual-shell="9c33417b"] .closing-cta-card {
    grid-template-columns: 1fr;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] #pricing > .page-shell {
    width: min(calc(100% - 32px), 540px) !important;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] #pricing .pricing-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-content: stretch !important;
    gap: 20px !important;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] #pricing .pricing-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 420px !important;
    height: auto !important;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] #pricing .pricing-card--hardware {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] #pricing .hardware-options {
    grid-template-columns: 1fr;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] .footer-grid--version-a {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
  }

  html[data-wooftech-site][data-visual-shell="9c33417b"] .footer-link-column {
    border-left: 0;
    padding-left: 0;
  }

  /* Keep the opened footer language panel and its flex rows inside narrow
   * viewports, including the longer English labels. */
  html[data-wooftech-site] .site-footer .footer-language-bar .language-menu {
    width: min(248px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  html[data-wooftech-site] .site-footer .footer-language-bar .language-menu a {
    min-width: 0;
    width: 100%;
    gap: 8px;
  }

  html[data-wooftech-site] .site-footer .footer-language-bar .language-menu small {
    min-width: 0;
    white-space: normal;
    text-align: right;
  }

  html[data-wooftech-site][lang="ar"] .site-footer .footer-language-bar {
    justify-content: center;
  }

  html[data-wooftech-site][lang="ar"] .site-footer .footer-language-bar .language-menu {
    right: 50%;
    left: auto;
    transform: translateX(50%);
  }
}
