/*
 * WEBSITE STYLING GUIDE
 * A selector such as .card targets elements with class="card" in the HTML.
 * Padding is inside a box; margin is outside it. rem/px set readable sizes.
 * Later rules override earlier rules with equal specificity. The final sections
 * contain the current design adjustments and mobile layouts.
 * @media blocks apply only at matching screen widths. Keep keyboard focus
 * outlines visible; they let keyboard users see which control is selected.
 * Font files are self-hosted. No visitor font request goes to a third party.
 */
@font-face {
  font-family: Avenir;
  src: url("../fonts/avenir.woff2");
}
@font-face {
  font-family: Avenir;
  src: url("../fonts/avenir-bold.woff2");
  font-weight: 700;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f3f6fa;
  color: #182b46;
  font-family: Avenir, Arial, sans-serif;
  font-size: 15px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  background: white;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  padding: 11px 16px;
  color: #203855;
}
button:hover {
  border-color: #2360ee;
  color: #1858e5;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: #0047ff;
  color: white;
  border: 0;
}
.primary:hover {
  background: #dc187f;
  color: white;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: #0c1b31;
  color: #98aac5;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 55px;
}
.brand img {
  width: 79px;
  background: white;
  padding: 5px;
  border-radius: 4px;
}
.brand span {
  font-size: 31px;
  font-weight: 400;
  color: #59708f;
}
aside small {
  font-size: 10px;
  letter-spacing: 1.7px;
  padding-left: 14px;
}
nav {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
nav button {
  text-align: left;
  color: #9bafca;
  background: none;
  border: 0;
  padding: 14px;
}
nav button.active {
  background: #21395d;
  color: white;
  box-shadow: inset 3px 0 #5991ff;
}
.aside-bottom {
  margin-top: auto;
  line-height: 1.8;
  font-size: 12px;
}
.aside-bottom strong {
  color: #d8e3f6;
}
.aside-bottom p {
  margin-top: 25px;
  color: #6f89ad;
}
.dot {
  display: inline-block;
  background: #4bdab1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
}
.shell {
  margin-left: 250px;
}
header {
  height: 80px;
  background: white;
  border-bottom: 1px solid #dfe6ef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  font-size: 11px;
  letter-spacing: 1px;
}
.muted {
  color: #8493a7;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 28px 40px;
}
.notice {
  font-size: 11px;
  letter-spacing: 0.7px;
  color: #62748e;
  margin-bottom: 30px;
}
.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  font-size: 10px;
  color: #2360e6;
  letter-spacing: 2px;
  font-weight: bold;
}
h1 {
  font-size: 36px;
  letter-spacing: -1.3px;
  margin: 10px 0;
}
p {
  color: #000000;
  line-height: 1.7;
  margin: 6px 0 20px;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 28px 0;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #61738c;
}
select,
input {
  border: 1px solid #d8e1ec;
  border-radius: 7px;
  padding: 11px;
  background: white;
  color: #243c5a;
  max-width: 100%;
}
.toolbar label:first-child {
  flex: 1;
}
.toolbar label:nth-child(2) {
  flex: 1;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.card,
.panel {
  background: white;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  padding: 22px;
}
.card small {
  color: #76849b;
  font-size: 11px;
  letter-spacing: 0.8px;
}
.card strong {
  display: block;
  font-size: 32px;
  margin: 13px 0 5px;
}
.card em {
  font-style: normal;
  font-size: 11px;
  color: #6d8097;
}
.mini {
  height: 5px;
  background: #edf1f7;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 16px;
}
.fill {
  height: 100%;
  background: #3769ef;
  border-radius: 4px;
}
.green .fill {
  background: #11ad89;
}
.pink .fill {
  background: #e95693;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 22px;
  margin-bottom: 22px;
}
h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
h3 {
  font-size: 15px;
}
.panel p {
  font-size: 12px;
}
.score-panel {
  background: #0f2342;
  color: white;
  position: relative;
}
.score-panel p {
  color: #9cafca;
}
.ring {
  width: 168px;
  height: 168px;
  margin: 24px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#62a5ff var(--score), #263e5e 0);
}
.ring div {
  border-radius: 50%;
  width: 139px;
  height: 139px;
  background: #0f2342;
  display: grid;
  place-content: center;
  text-align: center;
}
.ring strong {
  font-size: 44px;
}
.ring span {
  font-size: 11px;
  color: #91a7c4;
}
.legend {
  display: flex;
  justify-content: space-around;
  font-size: 11px;
  color: #9eb1cc;
}
.metric {
  display: grid;
  grid-template-columns: 135px 1fr 44px;
  align-items: center;
  gap: 15px;
  margin: 22px 0;
  font-size: 13px;
}
.metric .mini {
  margin: 0;
  height: 8px;
}
.metric b {
  text-align: right;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  color: #7d8da4;
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 12px;
  background: #f7f9fc;
  white-space: nowrap;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf1f7;
  min-width: 100px;
}
td:first-child {
  min-width: 185px;
  font-weight: bold;
}
td .mini {
  height: 4px;
  margin-top: 6px;
}
.tag {
  font-size: 10px;
  background: #eaf0ff;
  color: #3864cf;
  padding: 5px 8px;
  border-radius: 4px;
}
.statline {
  display: flex;
  gap: 20px;
  margin-top: 18px;
}
.statline strong {
  font-size: 22px;
  display: block;
}
.upload {
  border: 2px dashed #cbd8ee;
  padding: 40px;
  text-align: center;
  border-radius: 12px;
  background: #f8faff;
  margin: 20px 0;
}
.upload input {
  display: block;
  margin: 20px auto;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
textarea {
  width: 100%;
  min-height: 160px;
  border: 1px solid #ccd7e6;
  border-radius: 8px;
  padding: 14px;
  font: 12px monospace;
}
pre {
  white-space: pre-wrap;
  color: #a22d45;
  font-size: 12px;
}
.success {
  background: #e7f7f0;
  padding: 14px;
  border-radius: 7px;
  color: #167453;
}
.info {
  padding: 18px;
  background: #edf3ff;
  border-radius: 9px;
  margin: 18px 0;
  line-height: 1.8;
  font-size: 13px;
}
footer {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #7e8da3;
  margin: 30px 0;
}
footer a {
  margin-left: auto;
  color: #0047ff;
}
dialog {
  border: 1px solid #dde5ef;
  border-radius: 18px;
  padding: 40px;
  max-width: 500px;
  width: 92%;
}
dialog::backdrop {
  background: #07162cb8;
}
.close {
  float: right;
  margin-bottom: 25px;
}
dialog h2 {
  clear: both;
  font-size: 26px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #142f50;
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  display: none;
}
a {
  color: #0047ff;
}
code {
  overflow-wrap: anywhere;
}
.search {
  width: 240px;
}
@media (max-width: 1100px) {
  aside {
    width: 210px;
  }
  .shell {
    margin-left: 210px;
  }
  main {
    padding: 25px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 29px;
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: auto;
    padding: 18px;
  }
  .brand {
    margin-bottom: 15px;
  }
  aside small,
  .aside-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 2px;
    margin: 0;
  }
  nav button {
    white-space: nowrap;
    font-size: 12px;
    padding: 10px;
  }
  .shell {
    margin: 0;
  }
  header {
    padding: 0 20px;
    height: 64px;
  }
  header .muted {
    display: none;
  }
  main {
    padding: 20px 16px;
  }
  .title {
    align-items: start;
  }
  h1 {
    font-size: 27px;
  }
  .title > .primary {
    font-size: 12px;
    white-space: nowrap;
  }
  .toolbar label {
    min-width: 45%;
  }
  .card {
    padding: 16px;
  }
  .card strong {
    font-size: 28px;
  }
  .section-top {
    gap: 10px;
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
  }
}
@media print {
  aside,
  header,
  .toolbar,
  .notice,
  .actions,
  button {
    display: none;
  }
  .shell {
    margin: 0;
  }
  .grid,
  .cards {
    break-inside: avoid;
  }
  main {
    padding: 0;
  }
  .score-panel {
    color: #182b46;
    background: white;
  }
  .ring div {
    background: white;
  }
  .table-wrap {
    overflow: visible;
  }
  footer a {
    display: none;
  }
}
/* Light horizontal navigation and colourful dashboard */
body {
  background:
    radial-gradient(ellipse at 5% 0%, #fff4bf80, transparent 42%),
    radial-gradient(ellipse at 100% 18%, #dff0ff, transparent 45%), #f8faff;
  color: #172b4d;
}
.shell {
  margin-left: 0;
}
.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 90px;
  padding: 0 max(28px, calc((100vw - 1440px) / 2));
  background: #ffffffed;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e1e9f4;
  gap: 28px;
  letter-spacing: 0;
  font-size: 14px;
  box-shadow: 0 3px 20px #1d4e9c06;
}
.brand {
  margin: 0;
  color: #19345c;
  font-size: 16px;
  white-space: nowrap;
  gap: 15px;
}
.brand img {
  width: 113px;
  padding: 0;
}
.brand span {
  color: #b4c4da;
  font-size: 30px;
}
.top-nav nav {
  margin: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-nav nav > button,
.mega > summary {
  color: #3e526d;
  border: 0;
  background: none;
  border-radius: 8px;
  padding: 13px 17px;
  font-size: 14px;
  font-weight: 700;
}
.top-nav nav > button.active {
  background: #eaf1ff;
  color: #0047ff;
  box-shadow: none;
}
.top-nav nav > button:hover,
.mega > summary:hover,
.mega[open] > summary {
  background: #f0f5ff;
  color: #0047ff;
}
.top-nav #login {
  background: #0047ff;
  color: white;
  border: 0;
  font-size: 13px;
  padding: 12px 22px;
}
.mega summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 13px;
  align-items: center;
}
.mega summary::-webkit-details-marker {
  display: none;
}
.mega-panel {
  position: absolute;
  left: max(24px, calc((100vw - 1320px) / 2));
  right: max(24px, calc((100vw - 1320px) / 2));
  top: calc(100% - 1px);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 26px;
  background: white;
  border: 1px solid #dce7f5;
  border-top: 3px solid #3473ef;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 25px 60px #16386421;
}
.mega-panel small {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #778ca8;
}
.mega-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  margin-top: 10px;
  padding: 16px;
  background: #f5f8ff;
}
.mega-panel button b {
  display: block;
  color: #244f9b;
  font-size: 15px;
}
.mega-panel button span {
  display: block;
  margin-top: 7px;
  color: #77869d;
  font-size: 12px;
  font-weight: 400;
}
.mega-feature {
  background: linear-gradient(125deg, #fff1b1, #ffeff7);
  border-radius: 12px;
  padding: 20px;
}
.mega-feature strong {
  display: block;
  font-size: 24px;
  color: #243d66;
  line-height: 1.3;
  margin: 12px 0;
}
.mega-feature p {
  font-size: 12px;
}
.mega-feature a {
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
}
main {
  max-width: 1440px;
  padding: 26px 36px;
}
.notice {
  background: #eaf2ff;
  color: #52719b;
  border: 1px solid #dbe8ff;
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 10px;
  margin-bottom: 26px;
  width: fit-content;
}
h1 {
  font-size: 38px;
}
.eyebrow {
  color: #0047ff;
}
.title > .primary {
  box-shadow: 0 8px 20px #0047ff24;
}
.toolbar {
  margin: 23px 0 28px;
}
.stats-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 16px;
}
.stats-heading h2 {
  font-size: 17px;
  margin: 0;
}
.score-key {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
}
.great {
  --status: #15854a;
  color: var(--status);
}
.good {
  --status: #966600;
  color: var(--status);
}
.bad {
  --status: #ce3346;
  color: var(--status);
}
.unknown {
  --status: #7a899c;
  color: var(--status);
}
.stats-grid {
  gap: 17px;
  margin-bottom: 28px;
}
.stats-grid .card {
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e0e8f3;
  box-shadow: 0 5px 14px #284b8005;
  border-top: 3px solid var(--accent);
  min-height: 185px;
}
.accent-0 {
  --accent: #2e6cf2;
  --wash: #eef4ff;
}
.accent-1 {
  --accent: #ec3e8b;
  --wash: #fff0f7;
}
.accent-2 {
  --accent: #f2ba29;
  --wash: #fff9e3;
}
.accent-3 {
  --accent: #39aed7;
  --wash: #eafaff;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.stat-icon {
  height: 31px;
  min-width: 31px;
  display: grid;
  place-items: center;
  background: var(--wash);
  color: var(--accent);
  font-size: 20px;
  border-radius: 9px;
}
.card small {
  color: #556b87;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
}
.card strong {
  margin: 7px 0 3px;
  font-size: 34px;
  color: #25446d;
}
.card strong.score {
  color: var(--status);
}
.card em {
  font-size: 11px;
}
.status-label {
  font-size: 10px;
  font-weight: 700;
  margin-top: 12px;
}
.mini .fill {
  background: var(--status, #3769ef);
}
.mini.good .fill {
  background: #e4af17;
}
.mini.great .fill {
  background: #24ad69;
}
.mini.bad .fill {
  background: #e64b5b;
}
.stats-grid .mini {
  margin-top: 7px;
}
.score-panel {
  background: linear-gradient(130deg, #edf4ff, #ffffff 80%);
  color: #23426b;
  border: 1px solid #d9e6fb;
}
.score-panel p,
.legend {
  color: #7489a4;
}
.ring {
  background: conic-gradient(#3974f2 var(--score), #dfe9f9 0);
}
.ring div {
  background: #f8fbff;
}
.ring span {
  color: #7287a7;
}
.tag {
  background: #eaf1ff;
  color: #3b68c0;
}
.score-key .key {
  white-space: nowrap;
}
.panel {
  box-shadow: 0 5px 18px #284b8004;
}
.grid {
  gap: 22px;
}
.metric {
  margin: 24px 0;
}
.table-wrap .score {
  font-weight: 700;
}
@media (min-width: 1550px) {
  .top-nav {
    padding-left: calc((100vw - 1368px) / 2);
    padding-right: calc((100vw - 1368px) / 2);
  }
}
@media (max-width: 1000px) {
  .top-nav {
    gap: 12px;
    padding: 0 22px;
  }
  .brand {
    font-size: 13px;
    gap: 10px;
  }
  .brand img {
    width: 90px;
  }
  .top-nav nav > button,
  .mega > summary {
    padding: 12px 10px;
    font-size: 12px;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats-grid .card {
    padding: 15px;
    min-height: 180px;
  }
  .stat-icon {
    display: none;
  }
  .stats-heading {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  .top-nav {
    height: auto;
    min-height: 112px;
    flex-wrap: wrap;
    padding: 16px 18px;
    gap: 12px;
  }
  .brand {
    font-size: 14px;
  }
  .top-nav #login {
    margin-left: auto;
  }
  .top-nav nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: space-between;
    overflow: visible;
  }
  .top-nav nav > button,
  .mega > summary {
    font-size: 12px;
    padding: 10px 12px;
  }
  .mega-panel {
    top: 100%;
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr 1fr;
    padding: 18px;
    gap: 12px;
    max-height: 70vh;
    overflow: auto;
  }
  .mega-feature {
    grid-column: 1/-1;
  }
  .mega-feature strong {
    font-size: 20px;
  }
  .mega-feature p {
    display: none;
  }
  main {
    padding: 22px 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stats-grid .card {
    min-height: 170px;
  }
  .stats-heading {
    gap: 12px;
  }
  .score-key {
    gap: 7px 12px;
    font-size: 12px;
  }
  h1 {
    font-size: 28px;
  }
  .card small {
    font-size: 9px;
  }
  .brand span {
    font-size: 25px;
  }
  .ring {
    margin: 22px auto;
  }
}
@media print {
  .top-nav,
  .stats-heading .score-key {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats-grid .card {
    min-height: 150px;
  }
  .score-panel {
    background: white;
  }
  .card strong.score,
  .score {
    color: var(--status) !important;
  }
}
/* Solid surfaces and visitor/admin separation */
body {
  background: #f3f4f6;
}
.score-panel {
  background: #edf3fc;
}
.mega-feature {
  background: #fff4db;
}
.top-nav {
  background: #fff;
  backdrop-filter: none;
}
.brand {
  white-space: normal;
  max-width: 500px;
  font-size: 14px;
}
.brand b {
  max-width: 260px;
  line-height: 1.35;
}
.top-nav nav {
  flex-shrink: 0;
}
.mega-panel a {
  display: block;
  border-radius: 9px;
  padding: 14px 16px;
  text-decoration: none;
  margin-top: 10px;
  background: #f5f8ff;
}
.mega-panel a:hover {
  background: #eaf1ff;
}
.mega-panel a b {
  display: block;
  font-size: 14px;
  color: #244f9b;
}
.mega-panel a span {
  display: block;
  color: #657b96;
  font-size: 12px;
  margin-top: 5px;
}
.mega-feature a {
  background: #fffaf0;
}
.toolbar {
  flex-wrap: wrap;
}
.toolbar label {
  min-width: 200px;
}
.toolbar #report {
  white-space: nowrap;
}
.prose {
  line-height: 1.8;
}
.prose p {
  font-size: 14px;
}
.publish-choice,
.confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
  margin: 20px 0;
  font-size: 13px;
}
.publish-choice input,
.confirm-row input {
  margin-top: 5px;
  flex-shrink: 0;
}
.validation-error {
  color: #b72537;
  padding: 12px;
  background: #fff1f2;
  border-radius: 8px;
  font-size: 13px;
}
#domains {
  min-height: 210px;
}
#suggestForm label {
  font-size: 13px;
}
#suggestForm p {
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .brand {
    max-width: 70%;
    font-size: 12px;
  }
  .brand b {
    max-width: 190px;
  }
  .brand img {
    width: 85px;
  }
  .top-nav nav {
    justify-content: flex-start;
  }
  .top-nav #login {
    padding: 10px;
    font-size: 11px;
  }
  h1 {
    font-size: 27px;
  }
  .toolbar label {
    min-width: 40%;
  }
  .mega-panel {
    grid-template-columns: 1fr 1fr;
  }
  .mega-feature {
    grid-column: 1/-1;
  }
}
/* Routed detail pages, readable navigation and expanded footer */
.menu-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: 0 3px 4px 7px;
  transition: transform 0.18s;
}
.mega[open] .menu-chevron {
  transform: rotate(225deg);
  margin-top: 6px;
}
.top-nav nav > a {
  display: block;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 17px;
  border-radius: 8px;
  color: #3e526d;
}
.top-nav nav > a.active {
  color: #0047ff;
  background: #eaf1ff;
}
.mega-panel [aria-current="page"],
.mega-panel .active {
  background: #0047ff !important;
  color: #fff !important;
}
.mega-panel [aria-current="page"] b,
.mega-panel [aria-current="page"] span,
.mega-panel .active b,
.mega-panel .active span {
  color: white !important;
}
.mega-panel a b::before {
  content: "↗";
  display: inline-block;
  width: 22px;
  color: #3b6de0;
}
.mega-panel [data-view="countries"] b::before {
  content: "◎";
}
.mega-panel [data-view="method"] b::before {
  content: "ⓘ";
}
.mega-panel [data-view="researchers"] b::before {
  content: "⌕";
}
.mega-panel [data-view="suggest"] b::before {
  content: "＋";
}
.mega-panel [aria-current="page"] b::before {
  color: white;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
  font-size: 13px;
  color: #6e8098;
}
.breadcrumb a {
  text-decoration: none;
}
.stat-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.stat-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #23477816;
  border-color: #8caeeb;
}
.stat-link:focus-visible {
  outline: 3px solid #0047ff;
}
.drill-hint {
  display: block;
  font-size: 11px;
  color: #3264ca;
  margin-top: 11px;
  font-weight: 700;
}
.metric-link {
  grid-template-columns: 125px 1fr 95px 12px;
  text-decoration: none;
  color: #334e70;
  border-radius: 8px;
  padding: 9px 6px;
  margin: 7px 0;
}
.metric-link:hover {
  background: #f0f5ff;
}
.metric-link b {
  font-size: 12px;
}
.malware-row .mini .fill {
  background: #d9485c;
}
.education {
  margin-top: 24px;
}
.education h2 {
  font-size: 24px;
  line-height: 1.4;
  margin: 14px 0;
}
.education p {
  font-size: 15px;
  line-height: 1.85;
  max-width: 1050px;
}
.education h3 {
  font-size: 17px;
  margin-top: 24px;
}
.inline-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.inline-links a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.detail-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.detail-intro ~ .panel {
  margin-bottom: 22px;
}
.detail-intro ~ .panel h2 {
  margin-bottom: 15px;
}
.detail-intro ~ .panel p {
  font-size: 14px;
}
.vendor-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.vendor-stats > div {
  background: #f2f6fd;
  padding: 18px;
  border-radius: 10px;
}
.vendor-stats strong {
  display: block;
  font-size: 25px;
  color: #0047ff;
}
.vendor-stats span {
  display: block;
  font-size: 13px;
  margin-top: 8px;
}
.pill {
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
  background: #edf2fa;
}
.pill.great {
  background: #e9f8ef;
}
.pill.bad {
  background: #fff0f2;
}
.pill.neutral {
  color: #657892;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
}
.sample-warning {
  border-left: 4px solid #e7b31c;
  background: #fff8df;
}
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}
.dashboard-cards > a,
.dashboard-cards > div {
  padding: 24px;
  border-radius: 12px;
  background: #f2f6fe;
  text-decoration: none;
  color: #26466f;
}
.site-footer {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 38px 30px 20px;
  background: #eaf0f8;
  border: 1px solid #dce5f0;
  border-radius: 16px;
  margin: 38px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #526985;
}
.site-footer h2 {
  font-size: 22px;
  color: #213f67;
  margin: 14px 0;
}
.site-footer h3 {
  font-size: 15px;
  color: #29486f;
  margin: 0 0 18px;
}
.site-footer p {
  font-size: 14px;
  color: #617994;
  line-height: 1.8;
  margin: 12px 0;
}
.site-footer > div > a {
  display: block;
  color: #42628d;
  font-size: 14px;
  text-decoration: none;
  margin: 8px 0;
}
.site-footer > div > a:hover {
  color: #0047ff;
  text-decoration: underline;
}
.footer-about .footer-brand img {
  width: 125px;
}
.site-footer .footer-cta {
  display: inline-block;
  padding: 11px 18px;
  color: #fff;
  font-size: 13px;
  margin-top: 12px;
  text-decoration: none;
}
.footer-slogan {
  font-weight: bold;
}
.footer-bottom {
  grid-column: 1/-1;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #d2deec;
  padding-top: 20px;
  font-size: 12px;
}
.footer-bottom a {
  margin-left: 0 !important;
  font-size: 12px !important;
}
.toolbar[hidden] {
  display: none;
}
.grid .score-panel p {
  font-size: 13px;
}
@media (max-width: 1000px) {
  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-cards {
    grid-template-columns: 1fr;
  }
  .metric-link {
    grid-template-columns: 120px 1fr 90px 12px;
  }
  .mega-panel {
    gap: 15px;
  }
}
@media (max-width: 760px) {
  .top-nav nav > a {
    padding: 10px 12px;
    font-size: 12px;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 25px 20px;
  }
  .footer-about {
    grid-column: 1/-1;
  }
  .site-footer h2 {
    font-size: 21px;
  }
  .education h2 {
    font-size: 21px;
  }
  .education p {
    font-size: 14px;
  }
  .metric-link {
    grid-template-columns: 105px 1fr 86px 12px;
    font-size: 12px;
  }
  .pagination {
    font-size: 11px;
    gap: 8px;
  }
  .detail-intro {
    align-items: start;
    flex-direction: column;
  }
  .domain-panel .section-top label {
    width: 100%;
  }
  .footer-bottom {
    display: block;
  }
  .footer-bottom span {
    display: block;
    margin-bottom: 10px;
  }
}
@media print {
  .site-footer,
  .breadcrumb {
    display: none;
  }
  .drill-hint {
    display: none;
  }
}
/* Readable borderless surfaces and precise SVG menu icons */
.card em,
.card small,
.drill-hint {
  font-size: 14px;
}
.metric,
.metric-link,
.metric-link b {
  font-size: 14px;
}
table {
  font-size: 12px;
}
th {
  font-size: 12px;
}
.card,
.panel,
.stats-grid .card,
.score-panel,
.site-footer,
.dashboard-cards > a,
.dashboard-cards > div,
.vendor-stats > div {
  border: 0 !important;
}
.stats-grid .card {
  border-top: 0 !important;
}
.card-top {
  align-items: flex-start;
}
.card small {
  line-height: 1.5;
  letter-spacing: 0;
}
.stat-link:hover {
  box-shadow: 0 9px 30px #24466d12;
}
.site-footer .footer-cta {
  border-radius: 9px;
}
.mega-panel a b::before {
  display: none !important;
  content: none !important;
}
.mega-panel a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.menu-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
  color: #3064bc;
  margin-top: 1px;
  shape-rendering: geometricPrecision;
}
.mega-panel a > div {
  min-width: 0;
}
.mega-panel a b {
  font-size: 14px;
  line-height: 1.5;
}
.mega-panel a span {
  line-height: 1.55;
}
.mega-panel a.active .menu-icon {
  color: white;
}
.mega-panel {
  border: 0;
  box-shadow: 0 20px 55px #193d681a;
}
.top-nav {
  gap: 15px;
}
.top-nav nav {
  gap: 2px;
}
.mega > summary,
.top-nav nav > a {
  padding: 13px 11px;
}
.brand {
  max-width: 365px;
}
.brand b {
  font-size: 13px;
  max-width: 210px;
}
.brand img {
  width: 100px;
}
.quarter-inputs {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 15px;
}
.quarter-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.quarter-cards button {
  border: 0;
  background: #edf3fd;
  padding: 22px;
  text-align: left;
}
.quarter-cards strong {
  display: block;
  font-size: 23px;
  color: #0047ff;
}
.quarter-cards span {
  display: block;
  color: #7286a2;
  font-size: 13px;
  margin-top: 9px;
}
.revision-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.education {
  border: 0;
}
.upload {
  border: 2px dashed #b7c9e7;
}
.score-panel .ring span:empty {
  display: none;
}
#mode {
  font-size: 11px;
}
.metric-link {
  grid-template-columns: 140px 1fr 105px 12px;
}
.site-footer .footer-cta:hover {
  color: white;
  background: #d52b81;
  text-decoration: none;
}
@media (max-width: 1100px) {
  .top-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 24px;
  }
  .top-nav nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .top-nav #login {
    margin-left: auto;
  }
  .brand {
    max-width: 75%;
  }
  .mega-panel {
    top: 100%;
  }
  .metric-link {
    grid-template-columns: 135px 1fr 105px 12px;
  }
}
@media (max-width: 760px) {
  .top-nav nav {
    justify-content: flex-start;
    gap: 0;
    flex-wrap: wrap;
  }
  .mega > summary,
  .top-nav nav > a {
    font-size: 12px;
    padding: 10px 8px;
  }
  .mega-panel {
    grid-template-columns: 1fr 1fr;
  }
  .mega-panel > div:last-child {
    grid-column: 1/-1;
  }
  .menu-icon {
    width: 21px;
    height: 21px;
    min-width: 21px;
  }
  .quarter-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .quarter-inputs {
    grid-template-columns: 1fr;
  }
  .metric-link,
  .metric-link b,
  .metric {
    font-size: 14px;
  }
  .metric-link {
    grid-template-columns: 120px 1fr 95px 10px;
  }
  .card em,
  .card small {
    font-size: 14px;
  }
  .stat-icon {
    display: none;
  }
  th {
    font-size: 12px;
  }
  table {
    font-size: 12px;
  }
}

.notice,
.info,
.success {
  border: 0;
}
.quarter-inputs select {
  min-width: 0;
}
/* Comparison, mapping and publication workflow screens. */
.comparison-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.comparison-selects label {
  font-size: 14px;
}
.comparison-selects select {
  min-width: 0;
  max-width: 100%;
}
.mapping-card {
  margin-top: 22px;
  padding: 22px;
  background: #eef3fc;
  border-radius: 12px;
}
.mapping-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: center;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.mapping-row select {
  min-width: 0;
}
.review-card,
.activity-card {
  background: #f4f7fc;
  border-radius: 12px;
  padding: 23px;
  margin: 18px 0;
}
.review-card h3 {
  margin: 0;
  font-size: 17px;
}
.review-card p,
.activity-card p {
  font-size: 13px;
}
.status-chip {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 12px;
  background: #e5ebf6;
  color: #506b92;
  font-size: 12px;
  font-weight: 700;
}
.status-chip.pending,
.status-chip.warning {
  background: #fff2cc;
  color: #86620a;
}
.status-chip.approved,
.status-chip.info {
  background: #e1f6eb;
  color: #1e7d51;
}
.status-chip.rejected,
.status-chip.withdrawn,
.status-chip.high {
  background: #ffe6eb;
  color: #b12743;
}
.role-key {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  color: #557094;
  font-size: 13px;
}
.role-key span {
  padding: 10px 14px;
  background: #eaf1ff;
  border-radius: 8px;
}
.decision-dialog {
  max-width: 570px;
}
.decision-dialog h2 {
  margin-bottom: 18px;
}
.decision-dialog label {
  font-size: 14px;
}
.decision-dialog textarea {
  min-height: 120px;
}
.review-note {
  font-size: 13px;
  color: #795b19;
  padding: 8px 0;
}
.activity-card > span {
  font-size: 13px;
  color: #617995;
}
#mappingPanel .confirm-row {
  display: flex;
}
@media (max-width: 760px) {
  .comparison-selects,
  .mapping-row {
    grid-template-columns: 1fr;
  }
  .review-card,
  .activity-card {
    padding: 18px;
  }
  .role-key {
    gap: 8px;
  }
}

/* A whole country cell is a keyboard-accessible link, including its bar. */
.country-cell {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  padding: 8px;
  margin: -8px;
}
.country-cell:hover {
  background: #eef3ff;
  color: #0047ff;
}
.country-cell:focus-visible {
  outline: 3px solid #0047ff;
  outline-offset: 2px;
}
/* Bridge the space between the trigger and the wide, absolutely positioned panel.
   The bridge is a real hover target owned by the expanded details element. */
@media (hover: hover) and (min-width: 761px) {
  .mega[open]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 55px;
    height: 35px;
  }
  .mega-panel {
    z-index: 3;
  }
}
.staff-workspace {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px max(24px, calc((100vw - 1320px) / 2));
  background: #152e50;
  color: white;
}
.staff-workspace a {
  color: white;
  padding: 10px 14px;
  border-radius: 9px;
  text-decoration: none;
  background: #ffffff12;
}
.staff-workspace a:hover {
  background: #315d93;
}
.staff-workspace[hidden] {
  display: none;
}
.admin-area .top-nav nav > .mega {
  display: none;
}
.mapping-row small {
  display: block;
  font-weight: 400;
  overflow-wrap: anywhere;
  color: #54677f;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.comparison-card {
  background: #f4f6fa;
  padding: 22px;
  border-radius: 16px;
}
.comparison-card h3 {
  margin-top: 0;
}
.comparison-bar {
  display: grid;
  grid-template-columns: 75px 1fr 70px;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  font-size: 14px;
}
.comparison-track {
  background: #e0e6ee;
  border-radius: 6px;
  height: 13px;
  overflow: hidden;
}
.comparison-track i {
  display: block;
  height: 100%;
  background: #94a9cb;
  border-radius: 6px;
}
.comparison-bar:last-of-type i {
  background: #3569d5;
}
.movement {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 8px;
  background: #e1e7ef;
  color: #34445b;
}
.movement.better {
  background: #dbf4e7;
  color: #146442;
}
.movement.worse {
  background: #fce2e4;
  color: #a52c39;
}
@media (max-width: 700px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* High contrast reading: the footer remains light, with black text. */
p,
.panel p,
.education p,
.prose p,
.mega-feature p {
  color: #000000;
}
.site-footer {
  background: #e5e7eb;
  color: #000000;
  border: 0;
}
.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer > div > a,
.footer-bottom a {
  color: #000000;
}
.site-footer .footer-cta {
  color: #ffffff;
}
.site-footer > div > a:hover {
  color: #000000;
  text-decoration: underline;
}
.site-footer .footer-bottom {
  border-top-color: #b8bec7;
}
.research-form {
  max-width: 900px;
}
.research-form label:not(.confirm-row) {
  display: block;
  margin: 18px 0;
}
.research-form input:not([type="checkbox"]),
.research-form textarea {
  width: 100%;
  margin-top: 8px;
}
.calendar-space {
  background: #f1f3f6;
  border-radius: 16px;
  padding: 28px;
  margin: 24px 0;
  min-height: 260px;
}
.calendar-space iframe {
  width: 100%;
  height: 780px;
  border: 0;
  border-radius: 12px;
  background: white;
}
.dashboard-cards article {
  padding: 24px;
  background: #f3f6fa;
  border-radius: 16px;
}
.score-key {
  font-size: 12px;
}

/* The chart, its number and legend share the same live rating colour. */
.ring {
  --gap: #e6eaf0;
  background: conic-gradient(var(--status, #7a899c) var(--score), var(--gap) 0);
}
.ring.great {
  --gap: #e0f2e7;
}
.ring.good {
  --gap: #f6edcf;
}
.ring.bad {
  --gap: #f9e3e7;
}
.legend .coverage-key {
  color: var(--status);
  font-weight: 700;
}
.legend .gap-key {
  color: var(--status);
  opacity: 0.8;
}
.malware-count {
  font-weight: 800;
}
.stat-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}
/* Vivid G5 magenta and blue retain white text for readable menu states. */
.mega-panel a:hover,
.mega-panel a:focus-visible {
  background: #145af5;
  color: #ffffff;
}
.mega-panel a:hover b,
.mega-panel a:hover span,
.mega-panel a:hover .menu-icon,
.mega-panel a:focus-visible b,
.mega-panel a:focus-visible span,
.mega-panel a:focus-visible .menu-icon {
  color: #ffffff;
}
.mega-feature {
  background: #b60091;
  color: #ffffff;
}
.mega-feature small,
.mega-feature strong,
.mega-feature p,
.mega-feature a,
.mega-feature a b,
.mega-feature a span,
.mega-feature .menu-icon {
  color: #ffffff;
}
.mega-feature a {
  background: transparent;
}
.mega-feature a:hover,
.mega-feature a:focus-visible {
  background: #145af5;
  color: #ffffff;
}
.tag {
  background: #b0008e;
  color: #ffffff;
  font-weight: 700;
}
.primary:hover,
.primary:focus-visible,
.top-nav #login:hover,
.top-nav #login:focus-visible {
  background: #b60091;
  color: #ffffff;
}
.site-footer .footer-cta:hover {
  background: #b60091;
  color: #ffffff;
}
.services-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  background: #ffe7f6;
  padding: 36px;
  margin-top: 28px;
}
.services-cta h2 {
  font-size: 28px;
  max-width: 700px;
  margin: 16px 0;
}
.services-cta p {
  max-width: 800px;
  color: #000000;
}
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.service-chips span {
  background: white;
  color: #8f006f;
  font-weight: 700;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
}
.cta-buttons {
  display: grid;
  gap: 14px;
}
.cta-buttons a {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
}
.cta-buttons .primary {
  background: #b60091;
  color: white;
}
.cta-buttons .primary:hover {
  background: #145af5;
}
.meeting-button {
  background: white;
  color: #174bb5;
}
.meeting-button:hover {
  background: #145af5;
  color: white;
}
@media (max-width: 760px) {
  .services-cta {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .cta-buttons {
    justify-items: start;
  }
}

.toolbar #report:hover,
.toolbar #report:focus-visible {
  background: #b60091;
  color: #ffffff;
}
.legend .gap-key {
  opacity: 1;
}

/* Latest footer choice: white, with dark text for readable contrast. The
   services invitation above it provides the requested bold blue/white box. */
.site-footer {
  background: #ffffff;
  color: #000000;
}
.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer > div > a,
.footer-bottom a {
  color: #000000;
}
.site-footer .footer-cta {
  color: #ffffff;
  background: #0047ff;
}
.site-footer .footer-cta:hover {
  color: #ffffff;
  background: #b60091;
}
.services-cta {
  background: #0047ff;
  color: #ffffff;
}
.services-cta h2,
.services-cta p {
  color: #ffffff;
}
.services-cta .tag {
  background: #b60091;
  color: #ffffff;
}
.services-cta .meeting-button {
  background: #ffffff;
  color: #0047ff;
}
.services-cta .meeting-button:hover {
  background: #b60091;
  color: #ffffff;
}
