:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #4f4f4f;
  --line: #e4e4e4;
  --paper: #ffffff;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 5.5rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

h2 {
  margin: 2.75rem 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

p {
  margin: 0 0 1rem;
}

.brand {
  margin: 0 0 3rem;
  font-size: 0.95rem;
}

.brand a {
  font-weight: 600;
  text-decoration: none;
}

.brand a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.entries {
  margin-top: 0.5rem;
}

.entries a {
  display: block;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  text-underline-offset: 0.18em;
}

.entries a:last-child {
  border-bottom: 1px solid var(--line);
}

.lead {
  margin: 0 0 1.25rem;
}

.flow {
  margin: 0.25rem 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.flow li {
  position: relative;
  margin: 0;
  padding: 0.9rem 0 0.9rem 2.15rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

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

.flow li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.page-wide {
  max-width: 50rem;
}

.bids {
  width: 100%;
  margin: 1.75rem 0 0;
  border-collapse: collapse;
}

.bids th {
  padding: 0 1.25rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  text-align: left;
  vertical-align: bottom;
}

.bids td {
  padding: 1.15rem 1.25rem 1.15rem 0;
  vertical-align: middle;
}

.bids tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.bids tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.bids th:last-child,
.bids td:last-child {
  padding-right: 0;
  text-align: right;
}

.bid-label {
  display: none;
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.bid-price,
.bid-who,
.bid-score,
.who {
  margin: 0;
}

.bid-price {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.bid-who {
  font-weight: 600;
}

.bid-who a {
  text-underline-offset: 0.18em;
}

.bids .who {
  margin-top: 0.15rem;
  font-weight: 400;
}

.loads p {
  margin: 0;
}

.loads .bid-label {
  margin-bottom: 0.15rem;
}

.load {
  display: none;
}

.load:target {
  display: block;
}

body:not(:has(.load:target)) #soja-young {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.facts {
  margin: 0;
}

.facts div + div {
  margin-top: 1.35rem;
}

.facts dt,
.label,
.scale legend,
.field-name {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.facts dd {
  margin: 0;
}

.note {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.who {
  margin: 0.25rem 0 1.15rem;
  color: var(--muted);
}

.price {
  margin: 0 0 1.15rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.score {
  margin: 0;
}

.offer {
  padding: 1.6rem 0 1.7rem;
  border-top: 1px solid var(--line);
}

.offer:last-of-type {
  border-bottom: 1px solid var(--line);
}

.choose {
  display: inline-block;
  margin-top: 1rem;
  text-underline-offset: 0.18em;
}

.score-large {
  margin: 0 0 0.35rem;
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.score-large span {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
}

.review {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.review:last-child {
  border-bottom: 1px solid var(--line);
}

.review p:last-child {
  margin-bottom: 0;
}

.review-meta,
.review-score {
  color: var(--muted);
  font-size: 0.95rem;
}

.field {
  margin: 0 0 1.7rem;
}

.field-name {
  display: block;
  margin-bottom: 0.35rem;
}

input[type="text"],
textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid #c8c8c8;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.4;
  appearance: none;
}

textarea {
  min-height: 7.5rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  resize: vertical;
}

.scale {
  margin: 0 0 1.7rem;
  padding: 0;
  border: 0;
}

.scale legend {
  margin-bottom: 0.7rem;
  padding: 0;
}

.scale-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.scale-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
}

.button {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.8rem 1.15rem;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #2c2c2c;
}

.aside {
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.aside a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

#lista,
#enviada {
  display: none;
}

#lista:target,
#enviada:target {
  display: block;
}

body:has(#lista:target) #escribir,
body:has(#enviada:target) #formulario {
  display: none;
}

@media (max-width: 47.99rem) {
  .bids thead {
    display: none;
  }

  .bids,
  .bids tbody,
  .bids tr,
  .bids td {
    display: block;
    width: 100%;
  }

  .bids td {
    padding: 0.4rem 0;
    border: 0;
    text-align: left;
  }

  .bids tbody tr {
    padding: 1.15rem 0 1.25rem;
    border-top: 1px solid var(--line);
  }

  .bids tbody tr:last-child {
    border-bottom: 1px solid var(--line);
  }

  .bids tbody tr + tr td,
  .bids tbody tr:last-child td {
    border: 0;
  }

  .bid-label {
    display: block;
  }

  .bids td:last-child {
    padding-top: 0.85rem;
  }

  .bid-price {
    font-size: 1.45rem;
  }

  .button {
    display: block;
    width: 100%;
  }
}

@media (min-width: 48rem) {
  .page {
    padding: 6.5rem 1.5rem 8rem;
  }

  h1 {
    font-size: 2rem;
  }

  .bids .col-price,
  .bids td:first-child,
  .bids th:first-child {
    width: 8.5rem;
  }
}
