@media (max-width: 767px) {
  :root {
    --abc-mobile-content-rail: min(300px, calc(100vw * 30 / 37));
  }

  html .motion-story .about-heading,
  .site-frame .section-hero.shippers-opening .shippers-hero__title,
  .carrier-opening .carrier-opening-copy,
  .muni-hero .muni-hero-copy,
  .company-art .company-art__opening .company-art__hero-title,
  .abc-preview .site-frame .abc-thanks-result .abc-thanks-result__copy,
  .carrier-review .booking-copy > p,
  .company-art__profile-flow > .company-art__profile-copy,
  .muni-body .muni-section > h2,
  .muni-body .muni-section.muni-contact-full > h2 + p,
  .abc-preview[data-page="privacy"] .site-frame [data-section="privacy"] .abc-privacy-document,
  .abc-preview[data-page="privacy"] .site-frame [data-section="privacy"] .abc-privacy-head > .abc-privacy-title,
  .abc-preview[data-page="privacy"] .site-frame [data-section="privacy"] .abc-privacy-head > .abc-privacy-lead {
    inline-size: min(100%, var(--abc-mobile-content-rail));
    max-inline-size: var(--abc-mobile-content-rail);
    margin-inline: auto;
  }

  html .motion-story .about-heading,
  .site-frame .section-hero.shippers-opening .shippers-hero__title,
  .carrier-opening .carrier-opening-copy,
  .muni-hero .muni-hero-copy {
    inset-inline: 0;
  }

  .site-frame .section-contact .shippers-contact__inner > :is(h2, p) {
    inset-inline-start: auto;
  }

  .site-frame .section-contact .shippers-contact__inner > .c-button {
    margin-inline: auto;
  }

  .muni-body .muni-section.muni-network > h2 {
    text-wrap: balance;
    word-break: keep-all;
  }

  .abc-preview[data-page="privacy"] .site-frame [data-section="privacy"] .abc-privacy-head > .abc-privacy-title {
    letter-spacing: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .abc-preview[data-page="privacy"] .abc-privacy-list > li {
    padding-inline: 0;
  }

  .abc-preview[data-page="privacy"] .abc-privacy-list > li > h2::before {
    inset-inline-start: calc(var(--privacy-number-inset) - 40px);
  }
}

dialog#fv-menu.fv-menu {
  border-radius: 6px;
}

@media (max-width: 767px) {
  #site-menu.c-header__nav.is-open {
    border-radius: 6px;
  }
}

@media (min-width: 768px) {
  #site-menu.c-header__nav.is-open .c-header__mobile-links {
    border-radius: 6px;
  }
}

/* Service title anchor for photo heroes. The labelled copy can rise above
   the stable fixed dock on short mobile viewports without changing its type. */
:is(.shippers-opening, .carrier-opening, .muni-hero) {
  --abc-photo-title-desktop: 392;
  --abc-photo-title-mobile: 520;
}

@media (min-width: 768px) {
  .site-frame .section-hero.shippers-opening .shippers-hero__title {
    top: max(254px, calc((var(--abc-photo-title-desktop) - 1) * var(--art-unit)));
  }

  .carrier-opening .carrier-opening-copy {
    top: calc(var(--abc-photo-title-desktop) * var(--scene));
  }

  .muni-hero .muni-hero-copy {
    top: calc(var(--abc-photo-title-desktop) * var(--scene-unit));
  }
}

@media (max-width: 767px) {
  .shippers-opening .shippers-hero__title {
    --abc-photo-unit: var(--art-unit);
    /* 1.2 vs 1.0 line box for the same 66px headline. */
    --abc-photo-title-leading: calc(6.6 * var(--art-unit));
  }

  .carrier-opening .carrier-opening-copy {
    --abc-photo-unit: var(--scene);
    --abc-photo-dock: var(--fixed-top, 608px);
    --abc-photo-copy: var(--copy-height, 110px);
  }

  .muni-hero .muni-hero-copy {
    --abc-photo-unit: var(--scene-unit);
    --abc-photo-dock: var(--muni-fixed-top, 608px);
    --abc-photo-copy: var(--muni-copy-height, 100px);
  }

  :is(.site-frame .section-hero.shippers-opening .shippers-hero__title,
      .carrier-opening .carrier-opening-copy,
      .muni-hero .muni-hero-copy) {
    top: min(
      calc(var(--abc-photo-title-mobile) * var(--abc-photo-unit) - var(--abc-photo-title-leading, 0px)),
      calc(var(--abc-photo-dock, 100svh - 52px) - var(--abc-photo-copy, 108px) - 8px)
    );
  }

  /* Match the left edge of the Solution prose column. Keep the two authored lengths. */
  .site-frame .section-solution[data-section] .c-highlight.c-highlight--left-rail {
    margin-inline: 0 auto;
  }

  /* The existing outline and text scale together; adjacent artwork stays in its own box. */
  .abc-mobile-benefit-bubble {
    transform-origin: top left;
    translate: 18px 0;
    scale: .8;
  }
}

@media (360px <= width <= 767px) {
  .site-frame [data-section] .c-highlight--even-inset > .c-highlight__line,
  .site-frame [data-section] .c-highlight--even-inset .c-highlight__continuation > .c-highlight__line {
    padding-inline-start: 8px;
  }
}

/* Keep the observed box full-height while its line grows. */
[data-abc-comparison-connector]::before {
  content: "";
  display: block;
  inline-size: 100%;
  block-size: 100%;
  background: #232323;
  transform-origin: top;
}

@media (prefers-reduced-motion: no-preference) {
  [data-abc-comparison-connector="waiting"]::before {
    transform: scaleY(0);
  }

  [data-abc-comparison-connector="running"]::before {
    animation: abc-comparison-grow .46s .14s cubic-bezier(.22,1,.36,1) both;
  }

  @keyframes abc-comparison-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
  }
}

/* Use the actual TOP relay measure for unboxed running copy. Geometry of
   cards, photographs, diagrams and fixed-size visual titles stays local. */
@media (max-width: 767px) {
  :root {
    --abc-mobile-copy-gutter: calc(100vw * 7 / 74);
    --abc-mobile-copy-rail: calc(100vw - 2 * var(--abc-mobile-copy-gutter));
  }

  .fv-relay__inner {
    margin-inline: var(--abc-mobile-copy-gutter);
  }

  .abc-continuation .top-supplies__copy,
  .site-frame .shippers-problem__copy > .c-prose-frame,
  .site-frame .shippers-problem__distance > .c-prose-frame,
  .site-frame .shippers-solution__copy > .c-prose-frame,
  .site-frame .shippers-process__inner > .c-prose-frame,
  .carrier-review .booking-copy > p,
  .carrier-review #solution .solution-copy > .carrier-analogy,
  .carrier-review .summary-surface > p,
  .muni-body .muni-section > p:not(.muni-contact-full > picture + p),
  .company-art .company-art__intro .shippers-intro__body,
  .company-art .company-art__concept-copy,
  .company-art__profile-flow > .company-art__profile-copy,
  .abc-preview[data-page="contact"] .site-frame [data-section] .abc-contact-panel,
  .abc-preview[data-page="privacy"] .site-frame [data-section="privacy"] .abc-privacy-document {
    inline-size: var(--abc-mobile-copy-rail);
    max-inline-size: none;
    margin-inline: calc((100% - var(--abc-mobile-copy-rail)) / 2);
  }

  .abc-continuation .top-supplies__copy > :is(h2, p),
  .site-frame :is(.shippers-problem__copy, .shippers-problem__distance,
                   .shippers-solution__copy, .shippers-process__inner) > .c-prose-frame > .c-prose,
  .company-art__profile-flow > .company-art__profile-copy > .c-prose,
  .abc-preview[data-page="privacy"] .site-frame [data-section="privacy"] .abc-privacy-head > .abc-privacy-lead,
  .abc-preview[data-page="privacy"] .site-frame [data-section="privacy"] .abc-privacy-list > li > .c-prose {
    inline-size: 100%;
    max-inline-size: none;
    margin-inline: 0;
  }

  /* Align the already-left-aligned Solution bands to the expanded prose. */
  .site-frame .section-solution[data-section] .c-highlight.c-highlight--left-rail {
    margin-inline-start: calc((100% - var(--abc-mobile-copy-rail)) / 2);
  }

  .abc-preview[data-page="contact"] .fv-actions > .fv-actions__download:only-child {
    margin-inline-end: max(8px, env(safe-area-inset-right, 0px));
  }
}

/* Center only the live lettering within its fixed-width SVG plate. */
.site-frame [data-section] .freight-diagram
  .c-diagram__label[data-source-id-pc="pc-text-4395"][data-source-id-sp="sp-text-4409"] {
  justify-items: center;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -.0875em;
}
