/* Loaded after the existing styles on all routes except the owner's excluded /book/. */

/* Two-tone focus stays visible against red, ink, cream and image backgrounds. */
:focus-visible,
.field :is(input, select, textarea):focus-visible,
.block-button:focus-visible,
.svc-card:focus-visible,
.faq-item summary:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 7px #141111 !important;
}
.skip:focus { position: fixed; left: 1rem; top: 1rem; }
main:focus { outline: none; }

/* Red is retained on light surfaces; a light red is used for small text on ink. */
.on-ink :is(.accent, .stars-big, .pd-icon svg),
.on-ink .big-phone .num { color: #ff9aa5; }
.on-ink .lede { color: #fbf7ee; }
.topbar .block-button { color: #fff; }
/* Light cards inside a dark service band must not inherit its cream text. */
.service-band--dark .junk-item-category :is(h3, li),
.service-band--dark .junk-subtypes .junk-service-links a:not(.block-button) { color: #141111; }
.service-band--dark .junk-subtypes .junk-service-links a:is(:hover, :focus-visible) { color: #fff; }

/* Body links have a non-color cue. Button/card/chip and navigation treatment stays. */
:is(p, li, address, figcaption, .consent) a:not(.block-button):not(.chip):not(.svc-card):not(.sa-card):not(.sa-home-card):not(.blog-card-link) {
  text-decoration: underline;
  text-underline-offset: .18em;
}
.sa-card-go, .blog-card-more {
  text-decoration: underline;
  text-underline-offset: .18em;
}
.footer nav a { display: inline-flex; align-items: center; min-height: 24px; }
.footer nav ul { gap: .65rem; }
.crumbs a, .textlink, .consent a { display: inline-block; min-height: 24px; }
.consent input { min-width: 24px; min-height: 24px; }

/* Do not hide overflow to pass reflow: let owned text and grids actually fit. */
body { overflow-x: visible !important; }
:is(main, .wrap, .fgrid, .fgrid > *, .form-card, .footer-grid > *) { min-width: 0; }
:is(h1, h2, h3, p, li, address, .block-button__label, .legal) { overflow-wrap: anywhere; }
body .display, body .hero-h1 { line-height: 1.08 !important; }
body .hero-big { line-height: 1.05 !important; margin-top: 1.25rem; }
:is(input, select, textarea) { max-width: 100%; min-width: 0; box-sizing: border-box; }
.form-card { max-width: calc(100% - 10px); }
body .ph .ph-tint { background: linear-gradient(rgba(142, 18, 32, .86), rgba(142, 18, 32, .86)), rgba(20, 17, 17, .28); }
body .final-tint { background: rgba(142, 18, 32, .86); }
.final .ink-t { color: var(--cream); }
@media (max-width: 1023px) {
  /* Extra text size may need a second header row instead of clipping controls. */
  .site-header .wrap { flex-wrap: wrap; }
  .site-header .mobile-phone { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: normal; }
  .site-header .mobile-phone .block-button__label { white-space: normal; }
  .site-header .mobile-header-book { max-width: 100%; }
}
@media (max-width: 430px) {
  .site-header .wrap { gap: .4rem; padding-inline: .75rem; }
  .site-header .logo-slot { max-width: 92px; }
  .mobile-header-book { padding-inline: .5rem; font-size: .9rem; }
  .menu-toggle { flex-shrink: 0; }
  .hero-big { font-size: clamp(3rem, 16vw, 4.2rem); }
  .hero-grid { padding-inline: 1rem; }
  .form-card { padding: 1rem; }
  .form-head { flex-wrap: wrap; gap: .75rem; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
