/* Website check UI. Kept separate from the site's existing forms and scripts. */
.check-block.checker {
  padding: clamp(24px, 3vw, 40px);
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 28px 40px;
  align-items: start;
}
.checker .checker-heading { min-width: 0; padding-top: 4px; }
.checker .checker-heading h2 {
  max-width: 540px;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.08;
  letter-spacing: -.045em;
  overflow-wrap: normal;
  hyphens: auto;
  text-wrap: balance;
}
.checker .checker-heading p { max-width: 470px; margin-top: 16px; font-size: 16px; line-height: 1.5; }
.checker-form { min-width: 0; padding-top: 2px; }
.checker-form > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.checker-input-row { display: flex; align-items: stretch; gap: 8px; }
.checker-input-row input {
  min-width: 0;
  width: 100%;
  flex: 1;
  min-height: 60px;
  padding: 16px 18px;
  border: 1px solid #d5cd67;
  border-radius: 10px;
  background: #fffef6;
  color: #161713;
  font-size: 16px;
  line-height: 1.4;
}
.checker-input-row input::placeholder { color: #686b60; opacity: 1; }
.checker-input-row .button { flex: 0 0 auto; max-width: 52%; min-height: 60px; gap: 20px; }
.checker-input-row .button span { min-width: 0; overflow-wrap: anywhere; }
.checker .checker-status { font-size: 14px; font-weight: 500; }
.checker input:focus-visible, .checker button:focus-visible, .checker summary:focus-visible { outline-color: #111; }
.checker-progress { height: 3px; margin-top: 12px; overflow: hidden; background: #1112; border-radius: 4px; }
.checker-progress span { display: block; height: 100%; width: 34%; background: #111; animation: checker-progress 1.2s ease-in-out infinite alternate; }
@keyframes checker-progress { to { transform: translateX(195%); } }

.checker-results {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 2px;
  padding: 28px;
  border-radius: 14px;
  background: #f7f7f0;
  color: #161713;
  --checker-good: #147348;
  --checker-warning: #9a6508;
  --checker-poor: #bb392c;
  --checker-tone: var(--checker-good);
}
.checker-results[data-level="warning"] { --checker-tone: var(--checker-warning); }
.checker-results[data-level="poor"] { --checker-tone: var(--checker-poor); }
.checker-results[data-level="unavailable"] { --checker-tone: #636861; }
.checker-result-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #dedfd5; }
.checker-result-heading h3 { flex: 0 0 auto; max-width: 55%; font-size: clamp(22px, 2.5vw, 29px); line-height: 1.15; }
.checker-result-heading p { min-width: 0; max-width: 55%; font-size: 12px; line-height: 1.45; text-align: right; }
.checker-result-heading p > span { display: block; color: #65695e; margin-bottom: 4px; }
.checker-result-heading strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.checker-overview { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.6fr); gap: 28px; margin-top: 24px; align-items: stretch; }
.checker-score-card { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-width: 0; padding: 25px; border-radius: 12px; background: #191c17; color: #fffef7; }
.checker-score-label { font-size: 13px; font-weight: 500; line-height: 1.45; color: #bec4b6; }
.checker-score-number { display: flex; align-items: baseline; min-width: 0; width: 100%; gap: 5px; margin: 5px 0 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checker-score-number strong { font-size: clamp(68px, 7vw, 96px); line-height: 1.08; font-weight: 750; letter-spacing: -.06em; }
.checker-score-number > span { font-size: 23px; letter-spacing: -.045em; color: #bfc6b6; }
.checker-grade { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.4; color: #c0ecd0; }
.checker-grade::before { content: ''; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.checker-results[data-level="warning"] .checker-grade { color: #ffcf69; }
.checker-results[data-level="poor"] .checker-grade { color: #ffada3; }
.checker-results[data-level="unavailable"] .checker-grade { color: #d3d8cd; }
.checker-results[data-level="unavailable"] .checker-score-number strong { font-size: 68px; font-weight: 500; letter-spacing: 0; }
.checker-verdict { align-self: center; min-width: 0; padding: 5px 0; }
.checker h4 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.03em; line-height: 1.22; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
.checker-verdict > h4 { font-size: clamp(22px, 2.25vw, 29px); }
.checker-verdict > p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: #575d50; }
.checker-scale { margin-top: 22px; }
.checker-scale-bar { position: relative; width: 100%; height: 9px; border-radius: 20px; background: linear-gradient(to right, #d76f63 0% 59.5%, #e8be58 59.5% 84.5%, #70ad86 84.5% 100%); }
.checker-scale-marker { position: absolute; left: clamp(1%, var(--checker-score, 0%), 99%); top: -4px; width: 4px; height: 17px; border-radius: 3px; background: #20251b; box-shadow: 0 0 0 2px #f7f7f0; transform: translateX(-50%); }
.checker-scale-labels { position: relative; height: 22px; margin-top: 6px; font-size: 11px; font-variant-numeric: tabular-nums; color: #64695e; }
.checker-scale-labels span { position: absolute; }
.checker-scale-labels span:nth-child(1) { left: 0; }
.checker-scale-labels span:nth-child(2) { left: 60%; transform: translateX(-50%); }
.checker-scale-labels span:nth-child(3) { left: 85%; transform: translateX(-50%); }
.checker-scale-labels span:nth-child(4) { right: 0; }
.checker-scale-legend { display: flex; flex-wrap: wrap; gap: 6px 15px; font-size: 11px; line-height: 1.4; color: #64695e; }
.checker-scale-legend span { display: inline-flex; align-items: center; gap: 5px; }
.checker-scale-legend span::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #bb392c; }
.checker-scale-legend span:nth-child(2)::before { background: #a67410; }
.checker-scale-legend span:nth-child(3)::before { background: #147348; }
.checker-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.checker-count { min-width: 0; padding: 11px 12px; border: 1px solid #dcdfd3; border-radius: 9px; background: #fffef8; }
.checker-count strong { display: block; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.checker-count span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.35; hyphens: auto; overflow-wrap: anywhere; }
.checker-count[data-status="pass"] strong { color: var(--checker-good); }
.checker-count[data-status="warn"] strong { color: var(--checker-warning); }
.checker-count[data-status="fail"] strong { color: var(--checker-poor); }
.checker-next { margin-top: 28px; padding-top: 23px; border-top: 1px solid #dedfd5; }
.checker-next ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checker-next li { display: flex; align-items: start; gap: 10px; min-width: 0; padding: 15px; border-radius: 9px; background: #ebece3; }
.checker-issue-index { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; background: #fffef8; color: #5d6353; font-size: 11px; font-variant-numeric: tabular-nums; }
.checker-next li > div { min-width: 0; }
.checker-next li strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.4; }
.checker-next li p { margin-top: 5px; color: #535b4c; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.checker-next > p { margin-top: 12px; color: #475940; font-size: 15px; line-height: 1.5; }
.checker-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px; border-radius: 11px; margin-top: 24px; background: #e5ecdd; }
.checker-help > div { min-width: 0; }
.checker-help h4 { font-size: 19px; }
.checker-help p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: #535f48; }
.checker-help .button { flex: 0 0 auto; max-width: 44%; min-height: 56px; font-size: 14px; gap: 18px; }
.checker-help .button span { min-width: 0; }
.checker-details { margin-top: 24px; }
.checker-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; cursor: pointer; list-style: none; border-top: 1px solid #dedfd5; font-weight: 650; font-size: 16px; line-height: 1.4; }
.checker-details > summary::-webkit-details-marker { display: none; }
.checker-details-toggle { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #c5c9bb; border-radius: 50%; font-weight: 400; font-size: 20px; }
.checker-details[open] .checker-details-toggle { transform: rotate(45deg); }
.checker-check-list { list-style: none; padding: 0; margin: 0; }
.checker-check-list > li { display: grid; grid-template-columns: 24px minmax(130px, .8fr) minmax(0, 1.8fr); align-items: start; gap: 12px; padding: 18px 0; border-top: 1px solid #e1e3d8; }
.checker-check-icon { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: #e0eee1; color: #166842; font-size: 13px; line-height: 1; font-weight: 700; }
.checker-check-list li[data-status="warn"] .checker-check-icon { color: #805105; background: #f5e8bd; }
.checker-check-list li[data-status="fail"] .checker-check-icon { color: #a52d22; background: #f8dfd9; }
.checker-check-list li[data-status="info"] .checker-check-icon,
.checker-check-list li[data-status="unknown"] .checker-check-icon { color: #57624e; background: #e5e8dd; }
.checker-check-name { display: block; font-size: 14px; font-weight: 650; line-height: 1.4; }
.checker-check-status { display: block; margin-top: 5px; color: #68705e; font-size: 11px; line-height: 1.4; }
.checker-check-value { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.checker-check-advice { margin-top: 7px; font-size: 13px; line-height: 1.5; color: #5e6655; overflow-wrap: anywhere; }
.checker-method { margin-top: 10px; padding-top: 14px; border-top: 1px solid #dedfd5; font-size: 12px; line-height: 1.5; color: #606955; }
.checker-method summary { cursor: pointer; padding: 5px 0; }
.checker-method p { margin-top: 9px; max-width: 900px; }

@media (max-width: 1050px) {
  .check-block.checker { grid-template-columns: 1fr; gap: 22px; }
  .checker .checker-heading h2 { max-width: 680px; font-size: clamp(32px, 4.3vw, 43px); text-wrap: pretty; }
  .checker .checker-heading p { max-width: 620px; }
  .checker-overview { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 22px; }
  .checker-score-card { padding: 20px; }
  .checker-score-number strong { font-size: 74px; }
  .checker-score-number > span { font-size: 20px; }
  .checker-results { padding: 24px; }
  .checker-count { padding: 10px; }
}
@media (max-width: 700px) {
  .check-block.checker { display: block; padding: 22px 16px; margin-top: 32px; }
  .checker .checker-heading { padding: 0 2px; }
  .checker .checker-heading h2 { font-size: clamp(31px, 8.6vw, 43px); line-height: 1.08; }
  .checker .checker-heading p { font-size: 15px; margin-top: 12px; line-height: 1.45; }
  .checker-form { margin-top: 22px; padding: 0 2px; }
  .checker-input-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .checker-input-row input { min-height: 56px; padding: 14px; }
  .checker-input-row .button { width: 100%; max-width: none; min-height: 54px; font-size: 15px; }
  .checker-results { margin-top: 24px; padding: 20px 16px; border-radius: 11px; }
  .checker-result-heading { display: block; padding-bottom: 17px; }
  .checker-result-heading h3 { max-width: none; font-size: 24px; }
  .checker-result-heading p { margin-top: 10px; max-width: none; text-align: left; }
  .checker-result-heading p > span { display: inline; margin-right: 5px; }
  .checker-result-heading strong { font-size: 12px; margin-top: 3px; }
  .checker-overview { display: block; margin-top: 18px; }
  .checker-score-card { padding: 19px 20px; }
  .checker-score-number { margin: 1px 0 9px; }
  .checker-score-number strong { font-size: clamp(68px, 22vw, 100px); }
  .checker-score-number > span { font-size: clamp(20px, 5.8vw, 25px); }
  .checker-score-label { font-size: 13px; }
  .checker-grade { font-size: 13px; }
  .checker-verdict { margin-top: 22px; padding: 0; }
  .checker-verdict > h4 { font-size: 23px; }
  .checker-verdict > p { font-size: 14px; }
  .checker-scale { margin-top: 20px; }
  .checker-scale-legend { gap: 6px 12px; font-size: 11px; }
  .checker-counts { gap: 6px; margin-top: 16px; }
  .checker-count { padding: 11px 8px; }
  .checker-count strong { font-size: 25px; }
  .checker-count span { font-size: 11px; }
  .checker-next { margin-top: 22px; padding-top: 20px; }
  .checker h4 { font-size: 20px; }
  .checker-next ul { grid-template-columns: 1fr; gap: 8px; }
  .checker-next li { padding: 12px; gap: 8px; }
  .checker-next li strong { font-size: 14px; }
  .checker-next li p { font-size: 13px; }
  .checker-help { display: block; margin-top: 20px; padding: 16px; }
  .checker-help h4 { font-size: 19px; }
  .checker-help p { font-size: 13px; }
  .checker-help .button { margin-top: 15px; min-height: 54px; width: 100%; max-width: none; padding: 14px 15px; font-size: 14px; }
  .checker-details { margin-top: 18px; }
  .checker-details > summary { font-size: 15px; gap: 12px; }
  .checker-check-list > li { grid-template-columns: 24px minmax(0, 1fr); gap: 5px 9px; padding: 16px 0; }
  .checker-check-name { font-size: 14px; }
  .checker-check-status { margin-top: 3px; }
  .checker-check-body { grid-column: 2; }
  .checker-check-value { font-size: 14px; margin-top: 5px; }
  .checker-check-advice { font-size: 12px; }
  .checker-method { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .checker-progress span { animation: none; width: 100%; opacity: .55; }
}
