/*! SandboxAnalysis — homepage (Terminal identity).
    Needs sa-global.css first: it defines the tokens, .sa-wrap, .sa-btn and .sa-sr-only.
    Every rule is scoped to .sa-home, so nothing leaks out and Bricks' element styles cannot override it.
    The finder filters, the report tabs and the hash check are switched on by the home page script.
    Without it the page still reads correctly: the filters are hidden and the report parts are stacked. */

/* 1. Base ------------------------------------------------------------------ */

.sa-home {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.sa-home *,
.sa-home *::before,
.sa-home *::after {
  box-sizing: border-box;
}

.sa-home h1,
.sa-home h2,
.sa-home h3,
.sa-home h4,
.sa-home p,
.sa-home ul,
.sa-home ol,
.sa-home dl,
.sa-home dd,
.sa-home figure {
  margin: 0;
  padding: 0;
}

/* Layout rules below set display, so the hidden attribute has to win over them. */
.sa-home [hidden] {
  display: none !important;
}

/* Controls that only work with the script stay out of the way without it, and the fallback note the other way round.
   The sa-js class is set on <html> by the head snippet before the page paints, so nothing jumps. */
html:not(.sa-js) .sa-home [data-sa-needs-js],
html.sa-js .sa-home [data-sa-no-js] {
  display: none;
}

.sa-home [id] {
  scroll-margin-top: var(--space-6);
}

.sa-home ul,
.sa-home ol {
  list-style: none;
}

.sa-home :focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sa-home h1,
.sa-home h2,
.sa-home h3,
.sa-home h4 {
  text-wrap: balance;
}

/* 2. Shared pieces --------------------------------------------------------- */

.sa-home .sa-section {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}

.sa-home .sa-section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.sa-home .sa-section--tint {
  /* The highlight band. */
  background: var(--brand-tint);
  color: var(--ink);
  border-block: 1px solid var(--line);
}

.sa-home .sa-section__head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.sa-home .sa-section__intro {
  max-width: 40rem;
  margin-top: var(--space-4);
  color: var(--ink-muted);
}

.sa-home .sa-section__more {
  margin-top: var(--space-6);
}

.sa-home .sa-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

.sa-home .sa-eyebrow {
  margin-bottom: var(--space-2);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sa-home .sa-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.625rem);
  font-weight: 700;
  line-height: 1.3077;
  letter-spacing: -0.01em;
}

.sa-home .sa-h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.sa-home .sa-link {
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.sa-home .sa-link:hover {
  text-decoration-thickness: 2px;
}

/* Small label: mono capitals, used for sub-headings inside a component. */
.sa-home .sa-h4 {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Small bordered tag: "Sponsored", "Paid link", a technique number. */
.sa-home .sa-tag {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.sa-home .sa-hint {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.sa-home a.sa-btn {
  text-decoration: none;
}

.sa-home a.sa-btn--primary:hover {
  text-decoration: underline;
}

.sa-home .sa-btn--lg {
  min-height: 3rem;
  padding-inline: 1.25rem;
}

/* 3. Hero ------------------------------------------------------------------ */

.sa-home .sa-hero {
  padding-block: clamp(3rem, 1.5rem + 6vw, 6rem);
}

.sa-home .sa-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-12);
}

/* The hero's label opens with the brand prompt mark. Decorative: empty alternative text where supported. */
.sa-home .sa-hero__copy > .sa-eyebrow::before {
  content: "> ";
  content: "> " / "";
  color: var(--brand);
}

.sa-home .sa-hero__title {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 0.75rem + 3.7vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1154;
  letter-spacing: -0.02em;
}

.sa-home .sa-hero__title span {
  display: block;
}

.sa-home .sa-hero__lead {
  max-width: 34rem;
  margin-top: var(--space-6);
  font-size: 1.1875rem;
  line-height: 1.875rem;
}

.sa-home .sa-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: 2rem;
}

.sa-home .sa-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-6);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sa-home .sa-hero__facts li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sa-home .sa-hero__facts li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--brand);
}

/* The specimen: a report card held between the logo's square brackets. */
.sa-home .sa-specimen {
  --sa-bracket: 0.3125rem;
  --sa-arm: 1.125rem;
  width: 100%;
  max-width: 28rem;
  padding: 1rem 1.5rem;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / var(--sa-bracket) 100%,
    linear-gradient(var(--ink), var(--ink)) left top / var(--sa-arm) var(--sa-bracket),
    linear-gradient(var(--ink), var(--ink)) left bottom / var(--sa-arm) var(--sa-bracket),
    linear-gradient(var(--ink), var(--ink)) right top / var(--sa-bracket) 100%,
    linear-gradient(var(--ink), var(--ink)) right top / var(--sa-arm) var(--sa-bracket),
    linear-gradient(var(--ink), var(--ink)) right bottom / var(--sa-arm) var(--sa-bracket);
  background-repeat: no-repeat;
}

.sa-home .sa-specimen__card {
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.sa-home .sa-specimen__file {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5rem;
  overflow-wrap: anywhere;
}

.sa-home .sa-specimen__square {
  flex: 0 0 auto;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--brand);
}

.sa-home .sa-specimen__hash {
  margin-top: var(--space-1);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.25rem;
  overflow-wrap: anywhere;
}

.sa-home .sa-specimen__rows {
  margin-top: var(--space-4);
}

.sa-home .sa-specimen__rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.5rem;
}

.sa-home .sa-specimen__note {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.375rem;
}

/* Verdict tag: colour, word and shape together, never colour alone. */
.sa-home .sa-verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sa-home .sa-verdict svg {
  flex: 0 0 auto;
  width: 0.625rem;
  height: 0.625rem;
  fill: currentColor;
}

.sa-home .sa-verdict--benign { color: var(--benign); }
.sa-home .sa-verdict--suspicious { color: var(--suspicious); }
.sa-home .sa-verdict--malicious { color: var(--malicious); }

@media (min-width: 60rem) {
  .sa-home .sa-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .sa-home .sa-specimen {
    justify-self: end;
  }
}

/* 4. Cards (latest guides) ------------------------------------------------- */

.sa-home .sa-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--space-6);
}

.sa-home .sa-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.sa-home .sa-card:hover {
  border-color: var(--line-strong);
}

.sa-home .sa-card .sa-eyebrow {
  margin-bottom: 0;
}

.sa-home .sa-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.sa-home .sa-card__link {
  color: var(--ink);
  text-decoration: none;
}

/* The whole card is the link's target; the ring is drawn around the card. */
.sa-home .sa-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
}

.sa-home .sa-card:hover .sa-card__link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.sa-home .sa-card__link:focus-visible {
  outline: none;
}

.sa-home .sa-card__link:focus-visible::after {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sa-home .sa-card__text {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.625rem;
}

.sa-home .sa-card__cue,
.sa-home .sa-card__meta {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.sa-home .sa-card__cue {
  color: var(--brand);
  font-weight: 600;
}

.sa-home .sa-card__meta {
  color: var(--ink-muted);
}

/* 5. Sponsor and ad placements --------------------------------------------- */

/* Printed by the plugin, and only when a placement is on. Each one is a labelled band of its own. */
.sa-home .sa-slot {
  border-block: 1px solid var(--line);
  background: var(--ground);
}

/* Where a placement meets a band that already has a rule, keep one line, not two. */
.sa-home .sa-section--surface + .sa-slot,
.sa-home .sa-section--tint + .sa-slot,
.sa-home .sa-slot + .sa-section--surface,
.sa-home .sa-slot + .sa-section--tint,
.sa-home .sa-slot + .sa-slot,
.sa-home .sa-slot + #sa-find > .sa-section--surface:first-child {
  border-top: 0;
}

.sa-home .sa-slot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-4);
}

.sa-home .sa-slot--card .sa-slot__inner {
  padding-block: var(--space-6);
}

.sa-home .sa-slot__label {
  flex: 0 0 auto;
  padding: 0.125rem 0.375rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sa-home .sa-slot__image {
  display: block;
  flex: 0 1 auto;
  max-width: 100%;
  height: auto;
}

.sa-home .sa-slot--strip .sa-slot__image {
  max-width: min(100%, 12rem);
}

.sa-home .sa-slot__body {
  flex: 1 1 16rem;
  min-width: 0;
}

.sa-home .sa-slot__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
}

.sa-home .sa-slot--card .sa-slot__title {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.sa-home .sa-slot__link {
  display: inline-block;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.sa-home .sa-slot__link:hover {
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
}

.sa-home .sa-slot__text {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

/* 6. Sandbox finder -------------------------------------------------------- */

.sa-home .sa-disclosure {
  max-width: 44rem;
  margin-bottom: var(--space-6);
  padding-inline-start: var(--space-4);
  border-inline-start: 2px solid var(--line-strong);
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.sa-home .sa-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-4);
  margin: 0 0 var(--space-4);
}

.sa-home .sa-filters__set {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sa-home .sa-filters__legend {
  width: 100%;
  margin: 0 0 var(--space-2);
  padding: 0;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sa-home .sa-check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.sa-home .sa-check input {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--brand);
}

@supports selector(:has(*)) {
  .sa-home .sa-check:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-tint);
  }

  /* The ring is drawn around the whole chip, not just the small box. */
  .sa-home .sa-check:has(input:focus-visible) {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }

  .sa-home .sa-check input:focus-visible {
    outline: none;
  }
}

.sa-home .sa-finder__status {
  margin-bottom: var(--space-6);
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.sa-home .sa-finder__empty {
  padding: var(--space-6);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}

.sa-home .sa-finder__partner {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.9375rem;
  font-weight: 400;
}

.sa-home .sa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: start;
}

.sa-home .sa-table th,
.sa-home .sa-table td {
  padding: 0.875rem var(--space-4) 0.875rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.sa-home .sa-table th:last-child,
.sa-home .sa-table td:last-child {
  padding-inline-end: 0;
}

.sa-home .sa-table thead th {
  padding-block: 0 var(--space-2);
  border-bottom-color: var(--line-strong);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: bottom;
}

.sa-home .sa-table tbody th {
  font-weight: 600;
}

.sa-home .sa-table tbody th .sa-tag {
  margin-inline-start: var(--space-2);
}

/* Small screens: each sandbox becomes a block and each cell names its column.
   The table keeps its roles in the markup, so screen readers still read it as a table. */
@media (max-width: 39.99rem) {
  .sa-home .sa-table,
  .sa-home .sa-table tbody,
  .sa-home .sa-table tr,
  .sa-home .sa-table th,
  .sa-home .sa-table td {
    display: block;
  }

  .sa-home .sa-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .sa-home .sa-table tbody tr {
    padding-block: var(--space-4);
    border-top: 1px solid var(--line);
  }

  .sa-home .sa-table tbody th,
  .sa-home .sa-table tbody td {
    padding: 0;
    border: 0;
  }

  .sa-home .sa-table tbody th {
    margin-bottom: var(--space-2);
    font-size: 1.125rem;
  }

  .sa-home .sa-table td::before {
    content: attr(data-label) ": ";
    content: attr(data-label) ": " / "";
    color: var(--ink-muted);
  }
}

/* 7. Anatomy of a report --------------------------------------------------- */

.sa-home .sa-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.sa-home .sa-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  margin: 0;
  padding: 0 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.sa-home .sa-tabs__tab:hover {
  background: var(--surface);
}

/* The open tab is marked by the brand's cursor block as well as by colour. */
.sa-home .sa-tabs__tab[aria-selected="true"] {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.sa-home .sa-tabs__tab[aria-selected="true"]::before {
  content: "";
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.875rem;
  background: var(--brand);
}

.sa-home .sa-tabs__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4) var(--space-12);
}

/* Without the script the five parts are stacked, so they need separating. */
.sa-home .sa-tabs:not(.sa-tabs--on) .sa-tabs__panel + .sa-tabs__panel {
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--line);
}

.sa-home .sa-tabs__panel > .sa-h3 {
  grid-column: 1 / -1;
}

.sa-home .sa-report {
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.sa-home .sa-report__dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
}

.sa-home .sa-report__dl dt {
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sa-home .sa-report__dl dd,
.sa-home .sa-report__list li,
.sa-home .sa-tree li {
  overflow-wrap: anywhere;
}

.sa-home .sa-report__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  padding-block: var(--space-2);
}

.sa-home .sa-report__list li + li {
  border-top: 1px solid var(--line);
}

.sa-home .sa-report__note {
  margin-top: var(--space-4);
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.sa-home .sa-score {
  height: 0.625rem;
  margin-top: var(--space-4);
  border: 1px solid var(--line-strong);
  background: var(--ground);
}

.sa-home .sa-score__fill {
  display: block;
  width: 72%;
  height: 100%;
  background: var(--malicious);
}

.sa-home .sa-tree ul {
  margin-inline-start: 0.375rem;
  padding-inline-start: 0.875rem;
  border-inline-start: 1px solid var(--line-strong);
}

.sa-home .sa-tree li {
  padding-top: var(--space-1);
}

.sa-home .sa-tree__cmd {
  color: var(--ink-muted);
}

.sa-home .sa-explain .sa-h4 {
  margin-top: var(--space-6);
}

.sa-home .sa-explain .sa-h4:first-child {
  margin-top: 0;
}

.sa-home .sa-explain p {
  margin-top: var(--space-2);
}

.sa-home .sa-explain p:last-child {
  margin-top: var(--space-4);
}

@media (min-width: 52rem) {
  .sa-home .sa-tabs__panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* 8. Hash check ------------------------------------------------------------ */

.sa-home .sa-hash__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--space-6) var(--space-12);
}

.sa-home .sa-hash__grid .sa-section__head {
  margin-bottom: 0;
}

.sa-home .sa-hash__tool {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.sa-home .sa-hash__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
}

.sa-home .sa-label {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
}

.sa-home .sa-hash__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.sa-home .sa-input {
  display: block;
  flex: 1 1 14rem;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ground);
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

.sa-home .sa-input[aria-invalid="true"] {
  border-color: var(--malicious);
  box-shadow: inset 0 0 0 1px var(--malicious);
}

.sa-home .sa-hash__msg:empty {
  display: none;
}

.sa-home .sa-hash__msg {
  padding-inline-start: var(--space-4);
  border-inline-start: 2px solid var(--brand);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5rem;
}

.sa-home .sa-hash__msg--error {
  border-inline-start-color: var(--malicious);
  color: var(--malicious);
}

.sa-home .sa-hash__links li {
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
}

.sa-home .sa-hash__links li:last-child {
  border-bottom: 1px solid var(--line);
}

.sa-home .sa-hash__links .sa-link {
  overflow-wrap: anywhere;
}

.sa-home .sa-hash__about,
.sa-home .sa-hash__skip {
  display: block;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

@media (min-width: 60rem) {
  .sa-home .sa-hash__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

/* 9. Headline feed --------------------------------------------------------- */

.sa-home .sa-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  column-gap: var(--space-12);
}

.sa-home .sa-feed__item {
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}

.sa-home .sa-feed__link {
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.sa-home .sa-feed__link:hover {
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
}

.sa-home .sa-feed__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
  margin-top: var(--space-1);
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.375rem;
}

/* 10. How this site works --------------------------------------------------- */

.sa-home .sa-principles__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6) var(--space-12);
}

.sa-home .sa-principles__grid .sa-section__head {
  margin-bottom: 0;
}

.sa-home .sa-principles__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-6) var(--space-12);
}

.sa-home .sa-principles__list li {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-strong);
}

.sa-home .sa-principles__list p {
  margin-top: var(--space-2);
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.625rem;
}

@media (min-width: 60rem) {
  .sa-home .sa-principles__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

/* 11. Preferences and output ------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .sa-home .sa-card {
    transition: border-color 120ms ease-out;
  }

  .sa-home .sa-tabs__tab,
  .sa-home .sa-check {
    transition: background-color 120ms ease-out, border-color 120ms ease-out;
  }
}

@media (forced-colors: active) {
  .sa-home .sa-specimen { border: 1px solid CanvasText; }
  .sa-home .sa-section--tint { border-block: 1px solid CanvasText; }
  .sa-home .sa-hero__facts li::before,
  .sa-home .sa-specimen__square,
  .sa-home .sa-tabs__tab[aria-selected="true"]::before,
  .sa-home .sa-score__fill { background: Highlight; }
  .sa-home .sa-tabs__tab[aria-selected="true"] { border: 2px solid Highlight; }
}

@media print {
  .sa-home,
  .sa-home .sa-section--surface,
  .sa-home .sa-section--tint,
  .sa-home .sa-slot {
    background: none;
    color: #000;
  }

  .sa-home .sa-hero__actions,
  .sa-home .sa-card__cue,
  .sa-home .sa-filters,
  .sa-home .sa-tabs__list,
  .sa-home .sa-hash__form {
    display: none;
  }

  /* On paper every part of the report is shown, not only the open tab. */
  .sa-home .sa-tabs__panel[hidden] {
    display: grid !important;
    margin-top: var(--space-6);
  }
}
