/* Site Check page widget. Brand: navy #01386C, cyan #00AEEE. Navy on cyan, never white on
   cyan (white on #00AEEE is 2.5:1 and fails WCAG AA; navy on it is 5.0:1). */
.tpsc { --navy: #01386C; --cyan: #00AEEE; --ink: #1c2733; --muted: #4a5868; --line: #cfd8e3;
  --good: #1a7f37; --warn: #8a5a00; --bad: #b3261e; font-family: Montserrat, system-ui, sans-serif; color: var(--ink); text-align: left; max-width: 760px; }
.tpsc *, .tpsc *::before, .tpsc *::after { box-sizing: border-box; }
.tpsc-label { display: block; font-family: Poppins, system-ui, sans-serif; font-weight: 600; color: var(--navy); margin: 0 0 6px; }
.tpsc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tpsc-input { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 17px; padding: 13px 14px; border: 2px solid var(--navy); border-radius: 8px; background: #fff; color: var(--ink); }
.tpsc-input::placeholder { color: #5b6878; opacity: 1; }
.tpsc-btn { display: inline-block; font-family: Poppins, system-ui, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.2; padding: 14px 22px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center; }
.tpsc-btn-primary { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.tpsc-btn-primary:hover { background: #33c0f3; border-color: #33c0f3; color: var(--navy); }
.tpsc-btn-secondary { background: var(--navy); color: #fff; border-color: var(--navy); }
.tpsc-btn-secondary:hover { background: #024a8f; color: #fff; }
.tpsc-btn[disabled] { opacity: 1; background: #e3e9f0; border-color: #e3e9f0; color: #3d4a59; cursor: progress; }
.tpsc :focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.tpsc-hint { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.tpsc-status { margin: 16px 0 0; padding: 14px 16px; border-left: 5px solid var(--navy); background: #eef4fa; border-radius: 6px; color: var(--ink); }
.tpsc-status.is-error { border-left-color: var(--bad); background: #fdf0ef; }
.tpsc-result { margin-top: 26px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.tpsc-result:focus { outline: none; }
.tpsc-h { font-family: Poppins, system-ui, sans-serif; color: var(--navy); font-size: 26px; margin: 0 0 4px; }
.tpsc-h3 { font-family: Poppins, system-ui, sans-serif; color: var(--navy); font-size: 20px; margin: 26px 0 8px; }
.tpsc-checked { margin: 0 0 18px; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.tpsc-summary { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.tpsc-ring { --pct: 0; --ring: var(--good); width: 150px; height: 150px; border-radius: 50%; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--ring) calc(var(--pct) * 1%), #e3e9f0 0); }
.tpsc-score { font-family: Poppins, system-ui, sans-serif; font-weight: 700; font-size: 46px; line-height: 1; color: var(--navy); }
.tpsc-outof { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tpsc-counts { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.tpsc-count { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); border-top: 5px solid var(--muted); min-width: 104px; }
.tpsc-count b { display: block; font-family: Poppins, system-ui, sans-serif; font-size: 28px; line-height: 1.1; color: var(--ink); }
.tpsc-count.tpsc-error { border-top-color: var(--bad); } .tpsc-count.tpsc-warning { border-top-color: var(--warn); } .tpsc-count.tpsc-notice { border-top-color: var(--navy); }
.tpsc-top { margin: 0; padding: 0 0 0 22px; }
.tpsc-top li { margin: 0 0 14px; padding-left: 4px; }
.tpsc-sev { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 4px; margin-right: 8px; color: #fff; }
.tpsc-sev.error { background: var(--bad); } .tpsc-sev.warning { background: var(--warn); } .tpsc-sev.notice { background: var(--navy); }
.tpsc-issue-title { font-weight: 700; }
.tpsc-issue-why, .tpsc-issue-eg { margin: 4px 0 0; }
.tpsc-issue-eg { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.tpsc-more, .tpsc-speed-note { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.tpsc-speed { margin-top: 12px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tpsc-speed-box { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.tpsc-speed-box h4 { font-family: Poppins, system-ui, sans-serif; color: var(--navy); font-size: 17px; margin: 0 0 8px; }
.tpsc-speed-box dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.tpsc-speed-box dt { font-weight: 400; } .tpsc-speed-box dd { margin: 0; }
.tpsc-gauge { display: inline-block; min-width: 44px; text-align: center; font-weight: 700; padding: 3px 6px; border-radius: 6px; color: #fff; }
.tpsc-gauge.ok { background: var(--good); } .tpsc-gauge.mid { background: var(--warn); } .tpsc-gauge.badc { background: var(--bad); }
.tpsc-email { margin-top: 26px; padding: 18px; background: #eef4fa; border-radius: 10px; }
.tpsc-email .tpsc-h3 { margin-top: 0; }
.tpsc-email p { margin: 0 0 12px; }
.tpsc-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0 !important; font-size: 15px; }
.tpsc-check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--navy); }
.tpsc-check a { color: var(--navy); text-decoration: underline; }
.tpsc-email-status:not(:empty) { margin-top: 12px; font-weight: 600; }
.tpsc-email-status.is-error { color: var(--bad); }
.tpsc-cta { margin-top: 26px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tpsc-cta-box { border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.tpsc-cta-box .tpsc-h3 { margin-top: 0; }
.tpsc-cta-box p { margin: 0 0 14px; }
.tpsc-soon { font-weight: 600; color: var(--navy); }
@media (prefers-reduced-motion: no-preference) { .tpsc-btn { transition: background-color .15s; } }

/* ---- the "working on it" panel, shown while a check runs ---- */
.tpsc-working { margin-top: 18px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.tpsc-working[hidden] { display: none; }
.tpsc-scan { position: relative; width: 112px; height: 112px; flex: none; }
.tpsc-scan-ring { position: absolute; inset: 0; border-radius: 50%; border: 8px solid #e3e9f0; border-top-color: var(--cyan); border-right-color: var(--navy); }
.tpsc-scan-page { position: absolute; inset: 30px 34px; border: 2px solid var(--navy); border-radius: 4px; background: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: space-evenly; padding: 5px; }
.tpsc-scan-page i { display: block; height: 4px; border-radius: 2px; background: #c3d0de; }
.tpsc-scan-page i:nth-child(1) { width: 60%; background: var(--navy); }
.tpsc-scan-page i:nth-child(3) { width: 80%; }
.tpsc-scan-page::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cyan); box-shadow: 0 0 8px 2px rgba(0, 174, 238, .55); }
.tpsc-steps { list-style: none; margin: 0; padding: 0; flex: 1 1 240px; display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tpsc-steps li { position: relative; padding: 4px 0 4px 26px; color: var(--muted); }
.tpsc-steps li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid #b4c2d2; background: #fff; }
.tpsc-steps li.is-on { color: var(--navy); font-weight: 600; }
.tpsc-steps li.is-on::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 174, 238, .22); }
@media (prefers-reduced-motion: no-preference) {
  .tpsc-scan-ring { animation: tpsc-spin 1.1s linear infinite; }
  .tpsc-scan-page::after { animation: tpsc-sweep 1.8s ease-in-out infinite alternate; }
  .tpsc-steps li, .tpsc-steps li::before { transition: color .3s, background-color .3s, border-color .3s, box-shadow .3s; }
}
@keyframes tpsc-spin { to { transform: rotate(360deg); } }
@keyframes tpsc-sweep { from { top: 0; } to { top: calc(100% - 3px); } }
