:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #18382b;
  background: #faf9f6;
  font-synthesis: none;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 1100px;
  margin: auto;
  padding: 28px 32px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #cbd8cf;
  gap: 16px;
}
.brand {
  font-size: 26px;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.08em;
}
.brand span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.badge {
  background: #e4eee6;
  border: 1px solid #b5cbb9;
  border-radius: 30px;
  padding: 5px 12px;
  font-size: 13px;
  color: #245133;
}
main {
  padding-top: 52px;
  padding-bottom: 52px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  color: #116530;
}
h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 20px 0;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 0 0 20px;
}
.intro {
  max-width: 640px;
  font-size: 19px;
  color: #485e50;
  margin-bottom: 36px;
}
.panel {
  background: #fff;
  border: 1px solid #cbd8cf;
  border-radius: 16px;
  padding: 30px;
  margin: 24px 0;
  box-shadow: 0 8px 32px #16332205;
}
label {
  font-weight: 700;
  display: block;
}
.help,
.small {
  font-size: 14px;
  color: #4d6255;
}
.help {
  margin-top: 4px;
}
.input-row {
  display: flex;
  gap: 12px;
}
input {
  font: inherit;
  padding: 13px 16px;
  min-width: 0;
  flex: 1;
  border: 1px solid #728879;
  border-radius: 7px;
  color: #18382b;
  background: #fff;
}
button {
  font: inherit;
  font-weight: 700;
  border: 2px solid #116530;
  background: #116530;
  color: #fff;
  padding: 12px 22px;
  border-radius: 7px;
  cursor: pointer;
  min-height: 48px;
}
button:disabled {
  opacity: 0.7;
  cursor: wait;
}
.secondary {
  background: #fff;
  color: #116530;
  margin-top: 24px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ab4a08;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px;
  background: #fff;
  color: #116530;
  z-index: 1;
}
.skip:focus {
  top: 10px;
}
#error {
  color: #9d2020;
  font-weight: 650;
}
#error:empty,
#status:empty {
  display: none;
}
.result-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  margin: 28px 0;
}
.metrics div {
  border-left: 3px solid #b6d7bc;
  padding-left: 18px;
}
dt {
  font-size: 14px;
}
dd {
  margin: 8px 0;
  font-size: 36px;
  font-weight: 750;
  line-height: 1.2;
}
dd small {
  font-size: 16px;
  font-weight: 500;
}
.wrap {
  overflow-wrap: anywhere;
}
details {
  border-top: 1px solid #d3ded6;
  padding-top: 18px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
}
.explanation {
  max-width: 690px;
  margin-top: 42px;
}
.explanation p {
  color: #4d6255;
}
footer {
  border-top: 1px solid #cbd8cf;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #4d6255;
}
[hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  header,
  main,
  footer {
    padding: 22px 20px;
  }
  .panel {
    padding: 22px;
  }
  .input-row {
    flex-direction: column;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .result-heading {
    flex-direction: column;
  }
  footer {
    display: block;
  }
  .badge {
    font-size: 12px;
  }
  header .badge {
    max-width: 115px;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
/* Grade colours carry text labels too; pale backgrounds retain dark readable text. */
.tone-aplus {
  background: #116530;
  color: #fff;
}
.tone-a {
  background: #237b40;
  color: #fff;
}
.tone-b {
  background: #d9edbd;
  color: #18382b;
}
.tone-c {
  background: #f8e477;
  color: #493b00;
}
.tone-d {
  background: #ffd1a2;
  color: #653000;
}
.tone-e {
  background: #f8a178;
  color: #61210c;
}
.tone-f {
  background: #b42326;
  color: #fff;
}
.tone-neutral {
  background: #edf0ee;
  color: #43544a;
}
.result-summary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin: 20px 0 30px;
}
.grade-badge {
  border-radius: 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px;
  border: 1px solid #18382b30;
}
.grade-caption {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
#grade {
  font-size: 86px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.06em;
}
#grade-note {
  font-size: 12px;
}
.page-address {
  font-size: 14px;
  margin: 0 0 10px;
  color: #4d6255;
}
.result-copy h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
#result-description {
  margin: 0 0 20px;
}
.hosting-block {
  border-top: 1px solid #d3ded6;
  padding-top: 14px;
}
.hosting-heading {
  margin: 0;
  display: flex;
  gap: 9px;
  align-items: baseline;
}
#hosting-icon {
  width: 23px;
  min-width: 23px;
  height: 23px;
  border-radius: 50%;
  text-align: center;
  line-height: 23px;
  font-weight: 800;
}
.hosting-verified {
  background: #116530;
  color: #fff;
}
.hosting-unknown {
  background: #f8e477;
  color: #493b00;
}
#hosting-provider,
#hosting-description {
  margin: 5px 0;
}
.rating-scale {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.rating-scale li {
  text-align: center;
  padding: 9px 2px;
  border-radius: 5px;
  font-weight: 750;
  border: 1px solid #18382b30;
}
.rating-scale [aria-current] {
  outline: 3px solid #18382b;
  outline-offset: 3px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.measurement-scope {
  font-size: 14px;
  color: #4d6255;
  margin: 0;
}
.metrics dd {
  font-size: clamp(28px, 3.3vw, 38px);
}
.findings {
  border-left: 4px solid #986000;
  background: #fff5db;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #503b12;
}
.findings h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.findings ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}
.findings li + li {
  margin-top: 7px;
}
.status-partial,
.status-blocked,
.status-failed {
  background: #fff0c7;
  color: #62420b;
  border-color: #d4ae60;
}
.result-heading .eyebrow {
  margin: 4px 0 0;
}
details a {
  color: #116530;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .result-summary {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .grade-badge {
    width: 148px;
    min-height: 148px;
    border-radius: 18px;
  }
  #grade {
    font-size: 66px;
  }
  .result-copy h2 {
    font-size: 29px;
  }
  .rating-scale {
    gap: 5px;
  }
  .rating-scale li {
    font-size: 13px;
  }
  .metrics dd {
    font-size: 34px;
  }
}
.performance-mode {
  border-top: 1px solid #cbd8cf;
  padding-top: 1rem;
  margin-top: 2rem;
}
.performance-score {
  font-size: 2.5rem;
  font-weight: 750;
  line-height: 1.2;
}
.performance-mode table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.performance-mode caption {
  text-align: left;
  margin-bottom: 0.5rem;
}
.performance-mode th,
.performance-mode td {
  padding: 0.6rem 0.3rem;
  border-bottom: 1px solid #cbd8cf;
}
.performance-mode th {
  font-weight: 600;
}
.performance-mode p {
  overflow-wrap: anywhere;
}
