/* Text-size control - Parker PC Pros. Sizes in px so the control itself does not grow with the page text. */
.ts { position: fixed; z-index: 70; left: 20px; bottom: 20px; font-family: var(--body, "DM Sans", system-ui, sans-serif); color: #f4f7f4; }
.ts button { font-family: inherit; cursor: pointer; }
.ts__open {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 16px;
  border: 2px solid var(--hero-brass, #48ff89); border-radius: 999px;
  background: rgba(4, 10, 6, .96); color: #ffffff; font-size: 18px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.ts__open:hover { background: #0d1f14; }
.ts__glyph { font-family: Georgia, serif; font-size: 16px; color: var(--hero-brass, #48ff89); }
.ts__glyph span { font-size: 24px; }
.ts.is-open .ts__open { display: none; }
.ts__panel {
  width: 320px; padding: 16px 18px 14px; border: 2px solid var(--hero-brass, #48ff89); border-radius: 18px;
  background: rgba(4, 10, 6, .98); box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.ts__panel[hidden] { display: none; }
.ts__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ts__title { font-size: 20px; font-weight: 700; }
.ts__close { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; font-size: 26px; line-height: 1; }
.ts__row { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px; }
.ts__btn {
  min-height: 60px; border: 2px solid rgba(255,255,255,.55); border-radius: 12px; background: #13261a; color: #fff;
  font-size: 24px; font-weight: 700;
}
.ts__level { font-size: 20px; border-color: var(--hero-brass, #48ff89); color: var(--hero-brass, #48ff89); }
.ts__btn:hover:not(:disabled), .ts__close:hover { background: #1e3a27; border-color: var(--hero-brass, #48ff89); }
.ts__btn:disabled { opacity: .4; cursor: not-allowed; }
.ts__labels { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px; margin-top: 6px; text-align: center; font-size: 14px; color: #cfdad3; }
.ts__tip { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: #dce6df; }
.ts__tip kbd { display: inline-block; padding: 1px 7px; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; font: 600 14px/1.4 inherit; background: #1a2b20; color: #fff; }
.ts__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ts button:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--hero-brass, #48ff89); }
/* Mobile: sit above the floating Call/Text/Book bar */
@media (max-width: 820px) {
  .ts { left: 12px; bottom: calc(.65rem + 3.55rem + 12px); }
  .ts__open { min-height: 46px; font-size: 16px; padding: 0 16px 0 12px; }
  .ts__panel { width: min(320px, calc(100vw - 24px)); }
}
@media print { .ts { display: none; } }

/* Scaling: zoom the page content (header stays put so the nav never crowds or wraps). */
html[data-textsize="115"] :is(main, .colophon) { zoom: 1.15; }
html[data-textsize="130"] :is(main, .colophon) { zoom: 1.3; }
html[data-textsize="150"] :is(main, .colophon) { zoom: 1.5; }
html[data-textsize="175"] :is(main, .colophon) { zoom: 1.75; }
/* Keep enlarged content inside the screen */
html[data-textsize] body { overflow-x: visible; }
html[data-textsize] :is(main, .colophon) :is(p, li, dd, dt, h1, h2, h3, h4, a) { overflow-wrap: break-word; }
html[data-textsize] :is(main, .colophon) :is(img, video, iframe, svg) { max-width: 100%; height: auto; }
/* At big sizes, stack the wide two-column layouts (same as the site's tablet layout) */
html:is([data-textsize="130"], [data-textsize="150"], [data-textsize="175"]) main .split { grid-template-columns: 1fr; }
html:is([data-textsize="130"], [data-textsize="150"], [data-textsize="175"]) main .rail { position: static; }
html:is([data-textsize="150"], [data-textsize="175"]) main :is(.svc, .reviews-showcase__grid, .location-grid) { grid-template-columns: 1fr; }
html:is([data-textsize="150"], [data-textsize="175"]) body main .split,
html:is([data-textsize="150"], [data-textsize="175"]) body main .services { grid-template-columns: 1fr; }
@media (hover: none) and (pointer: coarse) { .ts__tip { display: none; } }
/* Big display headlines are already large: keep them at their normal size so they never run off the screen */
html[data-textsize="115"] main h1 { zoom: calc(1 / 1.15); }
html[data-textsize="130"] main h1 { zoom: calc(1 / 1.3); }
html[data-textsize="150"] main h1 { zoom: calc(1 / 1.5); }
html[data-textsize="175"] main h1 { zoom: calc(1 / 1.75); }
html:is([data-textsize="150"], [data-textsize="175"]) body main .ledger__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html:is([data-textsize="150"], [data-textsize="175"]) body main .ledger__item:nth-child(2) { border-right: 0; }
html:is([data-textsize="150"], [data-textsize="175"]) body main .ledger__item:nth-child(-n+2) { border-bottom: 1px solid var(--hero-rule); }
html:is([data-textsize="150"], [data-textsize="175"]) body main .ledger__item:nth-child(odd) { padding-left: 0; }
/* v8: keep the floating control from covering the page end and the keyboard area on phones */
@media (max-width: 820px) {
  body { padding-bottom: calc(4.3rem + 46px + 24px); }
  body:has(input:focus, textarea:focus, select:focus) .ts { display: none; }
}
