/* Device check. This page has to stay readable in Chrome 49, so it uses
   flexbox with margins instead of gap, and no grid. */
.check-body .brand {
  gap: 0;
}
.check-body .brand img {
  margin-right: 10px;
}
.check-body .info-nav {
  gap: 0;
  margin-bottom: 24px;
}
.check-body .info-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 6px 6px 0;
}
.check-body .footer nav {
  gap: 0;
  flex-wrap: wrap;
}
.check-body .footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 22px;
}
.check-body .topbar .brand,
.check-body .topbar .button {
  min-height: 44px;
}
.check-body .footer nav a:last-child {
  margin-right: 0;
}
.check-body a:focus,
.check-body button:focus,
.check-body summary:focus {
  outline: 3px solid #ad7b20;
  outline-offset: 4px;
}
.check-body input:focus,
.check-body select:focus,
.check-body textarea:focus {
  outline: 3px solid #ad7b20;
  outline-offset: 1px;
}
.check-body a:focus:not(:focus-visible),
.check-body button:focus:not(:focus-visible),
.check-body summary:focus:not(:focus-visible) {
  outline: none;
}
.check-page .button {
  min-height: 44px;
}

/* Shown only if the script never starts: it removes this straight away. */
.check-stalled {
  visibility: hidden;
  margin: 26px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--error);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  animation: check-reveal 0s linear 10s forwards;
}
@keyframes check-reveal {
  to {
    visibility: visible;
  }
}

/* Verdict */
.check-page .check-verdict {
  display: flex;
  align-items: flex-start;
  margin: 26px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: 10px;
  background: #f5f8f3;
}
.check-page .check-verdict.is-running {
  border-left-color: #9fb3a6;
}
.check-page .check-verdict.is-works {
  border-left-color: #2f6b4f;
  background: #eaf3ec;
}
.check-page .check-verdict.is-issues {
  border-left-color: #b7791f;
  background: #fbf3de;
}
.check-page .check-verdict.is-blocked {
  border-left-color: #a72d36;
  background: #f9e9ea;
}
.check-verdict-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-right: 16px;
}
.check-verdict-body {
  flex: 1 1 auto;
  min-width: 0;
}
.check-page .check-verdict h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 6px 0 8px;
}
.check-page .check-verdict p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 8px;
}
.check-page .check-next {
  margin: 4px 0 8px;
  padding-left: 20px;
}
.check-page .check-next li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.check-bar {
  height: 8px;
  margin: 16px 0 8px;
  border-radius: 4px;
  background: #dfe7dc;
  overflow: hidden;
}
.check-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: var(--forest);
  transition: width 0.3s ease;
}
.check-verdict:not(.is-running) .check-bar {
  display: none;
}
.check-page .check-verdict .check-progress {
  font-size: 13px;
  color: var(--muted);
}
.check-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 14px;
}
.check-actions .button {
  margin: 0 10px 10px 0;
}
.check-page .check-verdict .check-copy-status {
  font-size: 14px;
  margin: 0;
}
.check-copy-status:empty,
.check-report-status:empty,
.check-hint:empty {
  display: none;
}
.check-copy-fallback {
  margin-top: 12px;
}
.check-copy-fallback label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.check-copy-fallback textarea {
  font-family: Menlo, Consolas, monospace;
  font-size: 12px;
}

/* Results */
.check-page .check-section {
  margin-top: 40px;
}
.check-page .check-results {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.check-page .check-row {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.check-row .check-icon {
  flex-shrink: 0;
  margin: 1px 14px 0 0;
}
.check-row-body {
  flex: 1 1 auto;
  min-width: 0;
}
.check-page .check-row-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.check-row-label {
  font-weight: 600;
  margin-right: 12px;
}
.check-row-state {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}
.check-row.is-pass .check-row-state {
  color: #2f6b4f;
}
.check-row.is-warn .check-row-state {
  color: #85560c;
}
.check-row.is-fail .check-row-state {
  color: #a72d36;
}
.check-page .check-row-text {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #536558;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.check-row.is-pending .check-row-label {
  color: var(--muted);
}

/* Icons: each status has its own shape as well as its own colour. */
.check-icon {
  display: block;
  color: #7d8c83;
}
.check-icon.is-pass {
  color: #2f6b4f;
}
.check-icon.is-warn {
  color: #d69a2d;
}
.check-icon.is-fail {
  color: #a72d36;
}
.check-icon .icon-shape,
.check-icon .icon-dot {
  fill: currentColor;
  stroke: none;
}
.check-icon .icon-mark {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.check-icon.is-warn .icon-mark {
  stroke: #3a2a06;
}
.check-icon.is-warn .icon-dot {
  fill: #3a2a06;
}
.check-icon .icon-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.check-icon.is-skip .icon-outline {
  stroke-dasharray: 3 3;
}
.check-icon .icon-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.check-icon .icon-arc {
  fill: none;
  stroke: var(--forest);
  stroke-width: 2.6;
  stroke-linecap: round;
}
.check-icon.is-running {
  color: #c4d0c7;
  animation: check-spin 1s linear infinite;
}
.check-icon.is-pending {
  color: #c4d0c7;
}
@keyframes check-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .check-icon.is-running {
    animation: none;
  }
}

/* Device summary */
.check-page .check-device {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  border-top: 1px solid var(--line);
}
.check-device-item {
  width: 50%;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
}
.check-page .check-device dt {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.check-page .check-device dd {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Report form */
.check-send {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.check-page .check-send h2 {
  margin-top: 0;
}
.check-field {
  margin-bottom: 20px;
}
.check-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.check-field input,
.check-field select,
.check-field textarea {
  display: block;
  min-height: 46px;
}
.check-honey,
.check-probe {
  position: absolute;
  top: 0;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.check-probe {
  width: 600px;
  height: auto;
  visibility: hidden;
}
/* Holds the text while it is copied; a hidden field can't be selected. */
.check-offscreen {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 1px;
  height: 1px;
}
.check-gap-probe {
  display: flex;
  flex-direction: column;
  row-gap: 1px;
  width: 10px;
}
.check-gap-probe div {
  height: 0;
  margin: 0;
  padding: 0;
}
.check-speed-row {
  display: flex;
  padding: 4px 8px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}
.check-page .check-disclosure {
  font-size: 14px;
  line-height: 1.6;
  color: #536558;
  margin: 0 0 16px;
}
.check-page .check-hint,
.check-page .check-report-status {
  font-size: 14px;
  line-height: 1.6;
  margin: 4px 0 0;
}
.check-page .check-hint {
  color: var(--muted);
}
.check-page .check-field-hint {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 6px 0 0;
}
.check-page .check-report-status.is-sent {
  color: #2f6b4f;
  font-weight: 600;
}
.check-page .check-report-status.is-error {
  color: var(--error);
  font-weight: 600;
}
.check-page details {
  padding: 8px 0;
}
.check-page summary {
  padding: 11px 0;
}
.check-page details p {
  margin: 4px 0 12px;
}
.check-page .check-beta {
  margin: 36px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 780px) {
  .check-page .check-verdict {
    padding: 18px 16px;
  }
  .check-verdict-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
  }
  .check-verdict-icon svg {
    width: 32px;
    height: 32px;
  }
  .check-page .check-verdict h2 {
    font-size: 21px;
    margin-top: 2px;
  }
  .check-send {
    padding: 18px 16px;
  }
  .check-device-item {
    width: 100%;
    padding-right: 0;
  }
}
@media (max-width: 420px) {
  .check-page .check-verdict {
    display: block;
  }
  .check-verdict-icon {
    display: block;
    margin: 0 0 10px;
  }
}
