/* Mike's Map: styles shared by the map app and the garage.
   Text size: the root font size is set here, and every other size on both pages is in rem.
   125% of the browser's default 16px is 20px, the body size. Bigger and Biggest are about 115% and 130%
   of that. Percentages (not px) so a browser or phone text setting still scales on top. */
html{font-size:125%}
html[data-text="bigger"]{font-size:143.75%}
html[data-text="biggest"]{font-size:162.5%}
body{overflow-wrap:break-word}

/* Text Size buttons and the Tips switch. Each page can set --mm-on-bg and --mm-on-fg for the chosen button. */
.mm-seg{display:flex;flex-wrap:wrap;gap:.5rem}
.mm-seg button,.mm-switch{min-height:56px;padding:.35rem 1rem;border:2px solid currentColor;border-radius:8px;background:transparent;
  color:inherit;font:inherit;font-weight:700;cursor:pointer}
.mm-seg button[aria-pressed="true"],.mm-switch[aria-pressed="true"]{background:var(--mm-on-bg,#1f3d2e);color:var(--mm-on-fg,#fff);border-color:var(--mm-on-bg,#1f3d2e)}
.mm-settings{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}

/* The "?" mark: a small visible circle inside a tap area at least 44px square. */
.tip-q{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:-8px -4px -8px 0;padding:0;
  vertical-align:middle;background:transparent;border:0;color:inherit;cursor:pointer;
  font:700 .9rem/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-transform:none;letter-spacing:0}
.tip-dot{display:inline-flex;align-items:center;justify-content:center;width:1.45em;height:1.45em;border-radius:50%;
  border:2px solid currentColor;opacity:.85}
.tip-q:hover .tip-dot,.tip-q[aria-expanded="true"] .tip-dot{opacity:1;background:rgba(127,127,127,.18)}
html[data-tips="off"] .tip-q{display:none}

/* The card. Light paper with dark ink on both pages, so it reads the same in sunlight and in the garage. */
.tip-card{position:fixed;z-index:10000;left:8px;top:8px;box-sizing:border-box;width:max-content;
  max-width:min(24rem,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;
  background:#fffdf6;color:#14201a;border:2px solid #1f3d2e;border-radius:10px;padding:.8rem 1rem;
  box-shadow:0 6px 22px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:.6rem;
  font:400 1rem/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-align:left;text-transform:none;letter-spacing:0}
.tip-title{font-weight:800;font-size:1.05rem}
.tip-text{margin:0;max-width:none}
.tip-ok{align-self:flex-start;min-height:56px;padding:.35rem 1.2rem;border:0;border-radius:8px;background:#1f3d2e;color:#fff;
  font:inherit;font-weight:700;cursor:pointer}
.tip-ok:focus-visible{outline:3px solid #a8720c;outline-offset:2px}
