/* The new look of the comparison page (SPEC section 5): the top section, the best box, the tiles, the offer tables. */

/* ==================================================================================================================
   The top (engine/render/look.ts): the page's picture on a panel in the site's tint beside the heading, the answer
   sentence, the box of the cheapest offer and its facts as tiles. From 1040px two columns; below them one, in the
   order heading, answer, box, picture, tiles.
   ================================================================================================================== */

.lead {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 8px 40px;
}

.lead__text {
  display: contents;
}

.lead__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  order: 1;
  padding: 28px;
  border-radius: 22px;
  background: var(--tint);
}

.lead__card {
  display: grid;
  place-items: center;
  width: min(240px, 100%);
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--paper);
}

.lead__card img {
  display: block;
  width: 81%;
  height: 81%;
  object-fit: contain;
}

/* A page without a photo of its own shows the site's object straight on the tint. */
.lead__object {
  display: block;
  width: min(260px, 100%);
  height: auto;
}

.lead__credit {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}

.lead .answer__text {
  max-width: 700px;
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 26px;
  text-wrap: pretty;
}

.lead .answer__text strong {
  color: var(--ink);
  font-weight: 700;
}

.lead .answer__line {
  max-width: 700px;
  margin-block-start: -8px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 24px;
}

.lead .deals-line {
  max-width: 700px;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  opacity: 1;
}

.lead .deals-line a {
  color: var(--ink);
  font-weight: 600;
}

.lead .tiles {
  order: 2;
}

@media (min-width: 720px) {
  .lead .answer__text {
    font-size: 18px;
    line-height: 28px;
  }
}

@media (min-width: 1040px) {
  .lead {
    flex-direction: row;
    gap: 56px;
    padding-block: 24px 56px;
  }

  .lead__text {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
  }

  .lead__panel {
    flex: 0 0 clamp(320px, 34%, 440px);
    order: 0;
    padding: 36px;
    border-radius: 28px;
  }

  /* The page of whether storage pays (solar/worth-page.ts): its text runs long, so its panel keeps its own height at
     the top of its column instead of stretching beside the text. */
  .lead--worth > .lead__panel {
    align-self: start;
  }

  .lead__card {
    width: min(320px, 100%);
    border-radius: 22px;
  }

  .lead__object {
    width: min(340px, 100%);
  }
}

/* The page of whether storage pays (solar/worth-page.ts): the row labels of its tables of figures are long single
   words ("Anschaffungskosten", "Selbstverbrauchsanteil"), so on a phone they break with hyphens instead of pushing
   the table past its box. Both properties: older iPhones read only the prefixed one. */
.lead--worth ~ .part .calc-table tbody th {
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* The box of the cheapest offer: rank, label, the total as the page's biggest number and the button to the shop.
   The button's side wraps under the numbers where the box is too narrow for both. */
.best {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 22px 20px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
}

.best__main {
  display: flex;
  flex: 999 1 300px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.best__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--signal);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.best .rank {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--signal);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  font-stretch: 78%;
  line-height: 22px;
  letter-spacing: 0;
}

.best__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.best__total {
  color: var(--paper);
  font-size: clamp(3rem, 2rem + 3.6vw, 4.75rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.best__with {
  color: #c5ccd2;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.best__detail {
  color: var(--faint);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.best__side {
  display: flex;
  flex: 1 1 290px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.best .btn--main {
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: 14px;
  white-space: normal;
}

.best__note {
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}

.best__note a {
  color: var(--paper);
  font-weight: 600;
}

/* The way from a question's answer to all offers of its product, under the button: no longer pulled up to it. */
.best__note .answer__more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -14px 0 -14px;
  font-size: 14px;
}

/* From a tablet's width the button keeps its words on one line and its side is as wide as that line; where the box
   has no room for the numbers beside it, the side goes under them at full width. */
@media (min-width: 720px) {
  .best {
    padding: 26px 28px;
    border-radius: 22px;
  }

  .best__side {
    flex: 1 1 auto;
  }

  .best .btn--main {
    white-space: nowrap;
  }
}

/* Up to three facts of the lead, each on a tile. */
.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tile {
  display: flex;
  flex: 1 1 150px;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.tile__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tile__value {
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 30px;
  font-variant-numeric: tabular-nums;
}

.tile__value small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-stretch: 100%;
  line-height: 18px;
}

/* ==================================================================================================================
   The heading row of all offers: the heading, the filter chips beside it and the sort at the end (ink.js shows them).
   ================================================================================================================== */

.part:has(> .filters) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}

.part:has(> .filters) > * {
  flex: 1 1 100%;
}

.part:has(> .filters) > h2 {
  flex: none;
}

.part > .filters {
  flex: 1 1 auto;
  gap: 12px 24px;
  margin-top: 0;
  padding-block: 8px;
}

.filters__makes,
.filters__sort {
  gap: 8px;
}

.filters__label {
  margin-inline-end: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* A filter chip is a pill: drawn 36px high, the target 44px. */
.filters .chip {
  position: relative;
  min-height: 36px;
  padding-inline: 15px;
  border-color: var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.filters .chip::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}

.filters .chip__n {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
}

.filters .chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.part > .filters__none {
  margin-top: 16px;
  border-radius: 16px;
  color: var(--muted);
}

/* ==================================================================================================================
   The offer tables of the sign pages (table.offers): quiet head labels, rows on hairlines, the lead's row on the soft
   yellow with its rank as a badge and a dark button, the total in the narrow bold face, outline buttons. A phone keeps
   each table's own fold of a row into a block (site.css); the lead's block is a card. The rules reach every
   table.offers of a page that has the new top (section.lead before it): the ink sites' pages, and those of AHK,
   Steckersolar and Lampen Charts, which each finish their own tables in a block of their own at the end of this
   file.
   ================================================================================================================== */

.lead ~ * .offers {
  margin-top: 18px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

.lead ~ * .offers thead th {
  padding-block: 0 10px;
  border-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lead ~ * .offers tr[data-offer] > * {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.lead ~ * .offers .offers__rank {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  font-stretch: 78%;
  line-height: 28px;
}

.lead ~ * .offers .offers__seller {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

.lead ~ * .offers .offers__plan {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
}

.lead ~ * .offers small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
}

.lead ~ * .offers td.num {
  color: var(--ink-2);
  font-weight: 500;
}

.lead ~ * .offers tbody .offers__price,
.lead ~ * .offers .total__sum {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 28px;
}

.lead ~ * .offers tbody .offers__price small {
  font-stretch: 100%;
}

.lead ~ * .offers .offers__chk {
  color: var(--muted);
  font-size: 13px;
}

/* The total of the lead was marked like a line run over with a highlighter: its row is marked now. */
.lead ~ * .offers tr[data-offer] .offers__lead {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  font-weight: inherit;
}

/* The shop's mark before its name (engine/render/seller-mark.ts): its initials on a small field. */
.with-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.with-mark > span:last-child {
  min-width: 0;
}

.lead ~ * .offers .smark {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--field);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.lead ~ * .offers .smark::before {
  content: attr(data-i);
}

/* The buttons of the rows: outline, the lead's dark, each with the arrow out to the shop. */
.lead ~ * .offers .offers__go .btn {
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 0 18px;
  border-width: 1.5px;
  border-radius: 11px;
  font-size: 14px;
  line-height: 18px;
}

.lead ~ * .offers .offers__go .btn[href^="/go/"]::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: var(--arrow-up) center / contain no-repeat;
  mask: var(--arrow-up) center / contain no-repeat;
}

.lead ~ * .offers .offers__go .btn--ink[href^="/go/"]::after {
  background: var(--signal);
}

[dir="rtl"] .lead ~ * .offers .offers__go .btn[href^="/go/"]::after {
  transform: scaleX(-1);
}

.lead ~ * .offers tr[data-offer]:has(.offers__lead) .smark {
  background: var(--paper);
}

@media (min-width: 900px) {
  .lead ~ * .offers thead th:first-child,
  .lead ~ * .offers tr[data-offer] > :first-child {
    padding-inline-start: 20px;
  }

  .lead ~ * .offers thead th:last-child,
  .lead ~ * .offers tr[data-offer] > :last-child {
    padding-inline-end: 20px;
  }

  .lead ~ * .offers th,
  .lead ~ * .offers td {
    padding-inline-end: 16px;
  }

  .lead ~ * .offers tr[data-offer]:has(.offers__lead) > * {
    padding-block: 16px;
    border-bottom-color: transparent;
    background: var(--signal-soft);
  }

  .lead ~ * .offers tr[data-offer]:has(.offers__lead) > :first-child {
    border-start-start-radius: 16px;
    border-end-start-radius: 16px;
  }

  .lead ~ * .offers tr[data-offer]:has(.offers__lead) > :last-child {
    border-start-end-radius: 16px;
    border-end-end-radius: 16px;
  }

  /* The rank of the lead on a yellow badge, drawn behind the cell's number so a filter can renumber it (ink.js). */
  .lead ~ * .offers tr[data-offer]:has(.offers__lead) > .offers__rank {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Crect width='36' height='36' rx='9' fill='%23ffd500'/%3E%3C/svg%3E")
        left 20px center / 36px 36px no-repeat,
      var(--signal-soft);
    text-align: center;
  }

  [dir="rtl"] .lead ~ * .offers tr[data-offer]:has(.offers__lead) > .offers__rank {
    background-position: right 20px center, 0 0;
  }
}

@media (max-width: 899px) {
  .lead ~ * .offers tbody tr:first-child {
    border-top: 0;
  }

  .lead ~ * .offers tr[data-offer] {
    padding: 16px 12px;
  }

  .lead ~ * .offers tr[data-offer] > * {
    padding-block: 0;
    border-bottom: 0;
  }

  .lead ~ * .offers tr[data-offer]:has(.offers__lead) {
    border-bottom-color: transparent;
    border-radius: 16px;
    background: var(--signal-soft);
  }

  .lead ~ * .offers tr[data-offer]:has(.offers__lead) > .offers__rank {
    display: grid;
    place-items: center;
    align-self: start;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 7px;
    background: var(--signal);
    font-size: 18px;
    line-height: 1;
  }

  .lead ~ * .offers .offers__seller {
    font-size: 17px;
  }

  .lead ~ * .offers .offers__price {
    font-size: 22px;
  }

  /* The values that carry their name in front of them stay quiet. */
  .lead ~ * .offers td[data-label] {
    color: var(--muted);
  }
}

/* ==================================================================================================================
   The ink sites' two tables: the cartridge page's (offers--ink) and the family and printer pages' (offers--ink-pics).
   ================================================================================================================== */

/* The cartridge page shows price and delivery in columns of their own: the bar that drew their parts goes. */
.offers--ink .total--stack .bar {
  display: none;
}

.offers--ink .total--stack {
  display: block;
  text-align: end;
}

/* Delivery reads "kostenlos" or "keine Angabe": it may wrap rather than run into the total beside it. */
.offers--ink .offers__ship {
  white-space: normal;
}

@media (min-width: 1184px) {
  .offers.offers--ink {
    table-layout: fixed;
  }

  /* Position, shop (the rest), cartridge, yield, price, delivery, total, cost per page, checked, button. */
  .offers.offers--ink thead th:nth-child(1) { width: 64px; }
  .offers.offers--ink thead th:nth-child(2) { width: auto; }
  .offers.offers--ink thead th:nth-child(3) { width: 14%; }
  .offers.offers--ink thead th:nth-child(4) { width: 9%; }
  .offers.offers--ink thead th:nth-child(5) { width: 8%; }
  .offers.offers--ink thead th:nth-child(6) { width: 8.5%; }
  .offers.offers--ink thead th:nth-child(7) { width: 10%; }
  .offers.offers--ink thead th:nth-child(8) { width: 8%; }
  .offers.offers--ink thead th:nth-child(9) { width: 6.5%; }
  .offers.offers--ink thead th:nth-child(10) { width: 156px; }
}

@media (min-width: 1184px) and (max-width: 1359px) {
  .offers.offers--ink .offers__seller {
    font-size: 16px;
  }
}

/* Between the phone's cards and the full table the ten columns have no room. Price and delivery, which the total
   holds, and the time of the check, which the strip under the header states, leave there. */
@media (min-width: 900px) and (max-width: 1183px) {
  .offers.offers--ink thead th:nth-child(5),
  .offers.offers--ink thead th:nth-child(6),
  .offers.offers--ink thead th:nth-child(9),
  .offers.offers--ink .offers__cost,
  .offers.offers--ink .offers__ship,
  .offers.offers--ink .offers__chk {
    display: none;
  }
}

/* Up to the width from which the columns that stay have room, they sit closer and the shop's name stands without
   its mark, as on a phone. */
@media (min-width: 900px) and (max-width: 1039px) {
  .offers.offers--ink th,
  .offers.offers--ink td {
    padding-inline-end: 10px;
  }

  .offers.offers--ink .smark {
    display: none;
  }

  /* The rank's badge at the phone's size in the middle of its cell, whose padding keeps the gap to the shop's name
     that the mark no longer gives. */
  .lead ~ * .offers.offers--ink thead th:first-child,
  .lead ~ * .offers.offers--ink tr[data-offer] > .offers__rank {
    padding-inline: 20px;
    text-align: center;
  }

  .lead ~ * .offers.offers--ink tr[data-offer]:has(.offers__lead) > .offers__rank {
    background-position: center, 0 0;
    background-size: 28px 28px, auto;
  }
}

/* A phone gives the shop's name the room beside its total: the mark stays on the wide table. */
@media (max-width: 899px) {
  .offers.offers--ink .smark {
    display: none;
  }
}

/* The family and printer table: the pair of one cartridge keeps its rows close, the lead's pair stays parted from
   its second row by the yellow. */
.offers--ink-pics .total {
  gap: 4px 12px;
}

.offers--ink-pics .bar {
  height: 10px;
  border-radius: 5px;
}

.offers--ink-pics .total--lead .bar__price {
  box-shadow: none;
  background: var(--ink);
}

.offers--ink-pics .offers__shop {
  color: var(--ink);
  font-weight: 600;
}

.offers--ink-pics .offers__seller a {
  text-decoration: none;
}

.offers--ink-pics .offers__seller a:hover {
  text-decoration: underline;
}

/* The button's column holds the button with the row's end padding. */
@media (min-width: 1040px) {
  .offers.offers--ink-pics thead th:last-child {
    width: 164px;
  }
}

/* Between the phone's cards and the widths the columns are set for, the eight columns sit closer, and the bar keeps
   a length one can read where its column has no room to spare. */
@media (min-width: 900px) and (max-width: 1039px) {
  .offers.offers--ink-pics th,
  .offers.offers--ink-pics td {
    padding-inline-end: 8px;
  }

  .offers.offers--ink-pics .offers__price,
  .offers.offers--ink-pics thead th:nth-child(5) {
    padding-inline: 4px 8px;
  }

  .offers.offers--ink-pics .total {
    grid-template-columns: minmax(28px, 1fr) auto;
    column-gap: 8px;
  }

  /* The yield leaves: the cost of a page, which it leads to, stays. */
  .offers.offers--ink-pics thead th:nth-child(4),
  .offers.offers--ink-pics .offers__yield {
    display: none;
  }
}

@media (min-width: 900px) {
  .offers.offers--ink-pics tbody tr:not(:last-child) > * {
    padding-bottom: 6px;
    border-bottom-color: transparent;
  }

  .offers.offers--ink-pics tbody tr + tr > * {
    padding-top: 6px;
  }
}

/* ==================================================================================================================
   The sections under the top of a comparison page: headings in the new scale, their contents on cards with a
   hairline, related pages as cards.
   ================================================================================================================== */

.lead ~ .part {
  padding-top: 56px;
}

/* The top keeps its own room below it. */
.lead + .part {
  padding-top: 0;
}

.lead ~ .part > h2,
.lead ~ .part .part__head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  font-stretch: 82%;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lead ~ .part .part__note {
  max-width: 72ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}

.lead ~ .part .group > h3 {
  font-size: 22px;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 28px;
}

.lead ~ .part .how {
  margin-top: 16px;
  color: var(--muted);
}

/* The cheapest per kind of cartridge: a small table on a card, the lead's row on the soft yellow. */
.lead ~ .part .bysize {
  max-width: 760px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 20px;
  overflow: hidden;
}

.lead ~ .part .bysize thead th {
  padding-block: 14px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lead ~ .part .bysize .offers__lead {
  margin: 0;
  padding: 0;
  background: none;
  font-weight: 800;
}

@media (min-width: 600px) {
  .lead ~ .part .bysize th,
  .lead ~ .part .bysize td {
    padding-block: 14px;
    padding-inline: 20px 0;
  }

  .lead ~ .part .bysize th:last-child,
  .lead ~ .part .bysize td:last-child {
    padding-inline-end: 20px;
  }

  .lead ~ .part .bysize tbody tr:last-child > * {
    border-bottom: 0;
  }

  .lead ~ .part .bysize tr:has(.offers__lead) > * {
    background: var(--signal-soft);
  }
}

/* Just past the phone's blocks the four columns sit closer, and a head label may take two lines. */
@media (min-width: 600px) and (max-width: 699px) {
  .lead ~ .part .bysize th,
  .lead ~ .part .bysize td {
    padding-inline-start: 14px;
  }

  .lead ~ .part .bysize th:last-child,
  .lead ~ .part .bysize td:last-child {
    padding-inline-end: 14px;
  }

  .lead ~ .part .bysize thead th {
    white-space: normal;
  }
}

/* A phone folds each row into a block (site.css): the card keeps them, the lead's block on the soft yellow. */
@media (max-width: 599px) {
  .lead ~ .part .bysize tr {
    padding: 14px 20px;
  }

  .lead ~ .part .bysize tbody tr:first-child {
    border-top: 0;
  }

  .lead ~ .part .bysize tbody tr:last-child {
    border-bottom: 0;
  }

  .lead ~ .part .bysize tr:has(.offers__lead) {
    background: var(--signal-soft);
  }
}

/* The price trend on a card. */
.lead ~ .part .trend {
  padding: 24px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* Product data, the printers a cartridge fits, facts and questions: each on a card with hairlines inside. */
.lead ~ .part .specs {
  padding: 8px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.lead ~ .part .specs div:last-child {
  border-bottom: 0;
}

@media (min-width: 760px) {
  .lead ~ .part .specs div:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
}

.lead ~ .part .specs dt {
  color: var(--muted);
}

.lead ~ .part .facts {
  gap: 16px;
  border-top: 0;
}

.lead ~ .part .fact {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.lead ~ .part .fact h3,
.lead ~ .part .faq h3 {
  font-size: 18px;
  font-weight: 700;
  font-stretch: 100%;
  line-height: 24px;
}

.lead ~ .part .fact .source {
  color: var(--muted);
}

.lead ~ .part .faq {
  max-width: 880px;
  padding: 4px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.lead ~ .part .faq > div:last-child {
  border-bottom: 0;
}

/* The printers of a maker or a line, by group, each group's list on a card. */
.lead ~ .part .board {
  padding-inline: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

@media (min-width: 760px) {
  .lead ~ .part .board {
    column-gap: 32px;
  }
}

.lead ~ .part .board li:last-child,
.lead ~ .part .board li:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

@media (max-width: 759px) {
  .lead ~ .part .board li:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid var(--line);
  }
}

/* Related pages: a card each. */
.lead ~ .part .plates {
  gap: 10px;
}

.lead ~ .part .plates a {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  font-size: 16px;
  font-weight: 700;
}

.lead ~ .part .plates a:hover {
  border-color: var(--ink);
  background: var(--paper);
}

/* ==================================================================================================================
   eSIM Charts, Booster Charts and Protein Charts: the comparison pages of the friendly skin (div.soft) in the same look,
   by stylesheet alone. Their markup stays (engine/render/esim/page.ts and need-page.ts, cards/page.ts and
   question-page.ts, protein/parts.ts): the top (div.lede) is laid out as .lead above, the offer of the price box
   (.buybox__offer) is drawn as .best, the key facts (dl.keyfacts) as .tiles, the offer rows (table.orows) as the rows
   of table.offers, with the values of the blocks above. The scripts hold on to tr[data-offer], div.ofilter, .sizechips
   and the hidden attribute, and the Emirates script hides rows and folds by class: no rule here gives a display to a
   row, a group, a list, a part of the filter, a small price line or a fold's summary, so their own rules still hide
   them. eSIM's two provider pages (esim/provider-page.ts, providers-page.ts) sit in div.soft with the same top, rows
   and folds, so these rules dress them too: the sentence without its card, the rows on hairlines.
   ================================================================================================================== */

/* The top. A phone reads it in the order of the HTML: heading, answer, box, picture, facts, then the cards that run
   under both (eSIM's trips, Protein's pack sizes). The price box (section.buybox) hands its parts to the text column,
   so the answer stands plain on white and the box's offer is the dark box; the side hands the picture and the facts to
   the top. The text column is the container the dark box measures itself against; a container takes no width from
   its content, so the column is stretched (site.css put the top's parts at their start from 960px). */
.soft .lede {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding-block: 8px 40px;
}

.soft .lede__main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  container: lede / inline-size;
}

.soft .lede .buybox,
.soft .lede__side {
  display: contents;
}

/* eSIM's phone order put the offer above the sentence: the sentence comes first again. */
.soft .lede .buybox > * {
  order: 0;
}

.soft .lede + .part {
  padding-block-start: 0;
}

/* eSIM's chooser of a second currency under the heading: no dot of a status line to stand after any more. */
.soft .lede .altcur {
  margin-block-start: 12px;
  padding-inline-start: 0;
  color: var(--muted);
  font-size: 14px;
}

.soft .lede .altcur select {
  border-color: var(--line-2);
  border-radius: 12px;
  font-size: 14px;
}

.soft .lede .answer__text {
  max-width: 700px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 26px;
  text-wrap: pretty;
}

.soft .lede .answer__text strong {
  color: var(--ink);
  font-weight: 700;
}

.soft .lede .deals-line {
  max-width: 700px;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  opacity: 1;
}

.soft .lede .deals-line a {
  color: var(--ink);
  font-weight: 600;
}

/* The box of the cheapest offer, drawn as .best: the label in yellow behind the rank badge (the box shows the first
   offer of its page, so the badge's "1" is drawn here), the price as the page's biggest number, what it buys and from
   whom, the notes, the yellow button. One column; where the text column has room, the button stands beside the rest. */
.soft .lede .buybox__offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 22px 20px;
  border: 0;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
}

.soft .lede .buybox__offer > * {
  min-width: 0;
  margin: 0;
}

.soft .lede .buybox__offer > .buybox__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--signal);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.soft .lede .buybox__offer > .buybox__label::before {
  content: "1";
  content: "1" / "";
  flex: none;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--signal);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  font-stretch: 78%;
  line-height: 22px;
  letter-spacing: 0;
}

/* The price, and on Protein Charts and a question page of Booster Charts its unit after it, as "mit Versand" there. */
.soft .lede .buybox__offer > .buybox__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  margin-block-start: 10px;
  color: var(--paper);
  font-size: clamp(3rem, 2rem + 3.6vw, 4.75rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.soft .lede .buybox__offer > .buybox__price:is(:lang(el), :lang(ru)) {
  letter-spacing: 0;
}

.soft .lede .buybox__per {
  margin: 0;
  color: #c5ccd2;
  font-size: 16px;
  font-weight: 500;
  font-stretch: 100%;
  line-height: 20px;
  letter-spacing: 0;
  white-space: normal;
}

/* What the offer buys, then the shop with its logo on its plate. */
.soft .lede .buybox__offer > .buybox__what {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-block-start: 14px;
  color: #c5ccd2;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.soft .lede .buybox__what strong {
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
}

/* A part of the product's name kept on one line, and the shop's name beside its sign, in the colour of their line
   (site.css gave every span of the line the quiet grey). */
.soft .lede .buybox__what :is(strong, span) span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.soft .lede .buybox__what > span {
  gap: 10px;
  color: #c5ccd2;
  font-size: 15px;
  font-weight: 500;
}

.soft .lede .buybox__what .slogo {
  width: 84px;
  height: 30px;
  padding: 3px 7px;
  border-color: transparent;
  border-radius: 8px;
}

.soft .lede .buybox__what .slogo.slogo--sign {
  width: auto;
}

.soft .lede .buybox__offer > .gobtn--main {
  order: 1;
  width: 100%;
  min-height: 60px;
  margin-block-start: 20px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 17px;
  line-height: 22px;
  white-space: normal;
}

.soft .lede .gobtn--main::after {
  width: 16px;
  height: 16px;
  -webkit-mask-image: var(--arrow-up);
  mask-image: var(--arrow-up);
}

.soft .lede .gobtn--main:hover {
  transform: none;
}

/* The notes: how the price adds up, when it was read, the price per unit; parted by small dots, which close a line
   where it wraps. eSIM's second note names the cheapest plan of all, with its link. */
.soft .lede .buybox__offer > .buybox__note {
  margin-block-start: 12px;
  color: var(--faint);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.soft .lede .buybox__offer > .buybox__note + .buybox__note {
  margin-block-start: 4px;
}

/* A part longer than the box's line (a long partner note on a small phone) wraps inside it. */
.soft .lede .buybox__offer > .buybox__note span {
  max-width: 100%;
  margin-inline-end: 0;
  white-space: normal;
}

.soft .lede .buybox__offer > .buybox__note span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-inline: 8px 4px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}

.soft .lede .buybox__note a {
  color: var(--paper);
  font-weight: 600;
}

@container lede (min-width: 680px) {
  .soft .lede .buybox__offer {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 32px;
    padding: 26px 28px;
    border-radius: 22px;
  }

  .soft .lede .buybox__offer > * {
    grid-column: 1;
  }

  .soft .lede .buybox__offer > .gobtn--main {
    grid-column: 2;
    grid-row: 1 / span 6;
    width: auto;
    margin: 0;
    white-space: nowrap;
  }
}

/* eSIM's network and hotspot rule of the shown plan, a quiet line under the box. */
.soft .lede .buybox__specs {
  gap: 6px 20px;
  margin: -6px 0 0;
  padding: 0;
  border: 0;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 20px;
}

/* The way down to all offers (on a question page: to the product's own page), a quiet link under the box. */
.soft .lede :is(.buybox__all, .buybox__more) {
  display: block;
  align-self: flex-start;
  min-height: 44px;
  margin: -6px 0 0;
  padding: 12px 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-align: start;
  text-decoration: none;
}

.soft .lede :is(.buybox__all, .buybox__more):hover {
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.soft .lede .buybox__all::after {
  display: inline-block;
  width: 10px;
  height: 6px;
  margin-inline-start: 8px;
  vertical-align: middle;
  -webkit-mask-image: var(--chevron);
  mask-image: var(--chevron);
}

.soft .lede .buybox__more::after {
  content: "";
  display: inline-block;
  margin-inline-start: 8px;
  background: currentColor;
  vertical-align: middle;
  -webkit-mask: var(--arrow-on) center / contain no-repeat;
  mask: var(--arrow-on) center / contain no-repeat;
}

/* A question page names two ways down: to its own table, then to the product's page; the second sits close under the
   first. */
.soft .lede .buybox__all + .buybox__more {
  margin-block-start: -18px;
}

.soft .lede :is(.buybox__all:not([href^="#"]), .buybox__more)::after {
  width: 14px;
  height: 14px;
  -webkit-mask-image: var(--arrow-on);
  mask-image: var(--arrow-on);
}

[dir="rtl"] .soft .lede :is(.buybox__all:not([href^="#"]), .buybox__more)::after {
  transform: scaleX(-1);
}

/* A trading card page with nothing in stock: the search on eBay is no offer of the comparison, so it stands on a quiet
   card and not on the dark box. */
.soft .lede .buybox__ebay {
  margin: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.soft .lede .buybox__ebay .buybox__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.07em;
}

.soft .lede .buybox__ebay .buybox__note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.soft .lede .buybox__ebay .tag {
  border-color: var(--line-2);
  color: var(--muted);
}

/* The picture on a panel in the site's tint: a product's photo on a white card with its credit under it, eSIM's photo
   of the destination as the card itself, a drawing on its card. */
.soft .lede :is(.picslot, .placephoto) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 28px;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  background: var(--tint);
}

.soft .lede .picslot > .scene--photo {
  display: contents;
}

.soft .lede .scene--photo img {
  box-sizing: border-box;
  width: min(240px, 100%);
  max-width: none;
  height: auto;
  max-height: none;
  aspect-ratio: 1;
  padding: 23px;
  border-radius: 18px;
  background: var(--paper);
  object-fit: contain;
}

.soft .lede .picslot > .scene:not(.scene--photo) {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
}

.soft .lede .placephoto img {
  width: min(440px, 100%);
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-fit: cover;
}

.soft .lede :is(.scene__credit, .placephoto figcaption) {
  margin: 0;
  padding: 0;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}

.soft .lede .placephoto figcaption a {
  color: inherit;
}

/* The key facts as tiles: label, then the value in the narrow bold face. */
.soft .lede .keyfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.soft .lede .keyfact {
  display: flex;
  flex: 1 1 150px;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

/* A fact the box or the strip states already (when the price was read, how much is compared) is not repeated; on a
   trading card page with a price per booster the limit per customer stays with its row, so three tiles remain. */
.soft .lede .keyfact:has(.icon-clock, .icon-price),
.soft .lede .keyfacts:has(.icon-booster) .keyfact:has(.icon-limit) {
  display: none;
}

.soft .lede .keyfact dt {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.soft .lede .keyfact .icon {
  display: none;
}

.soft .lede .keyfact dd {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 30px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.soft .lede .keyfact dd small {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-stretch: 100%;
  line-height: 18px;
}

/* The cards under the top (eSIM's cheapest plan per trip, Protein's per pack size): tiles that lead to the shop. */
.soft .lede > .trips {
  padding-block-start: 22px;
}

.soft .lede .trips a {
  padding: 16px 18px;
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: none;
}

.soft .lede .trips a:hover {
  border-color: var(--ink);
  box-shadow: none;
}

.soft .lede .trip__for {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.soft .lede .trip__price {
  margin-block-start: 6px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 30px;
  letter-spacing: 0;
}

.soft .lede .trip__plan {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.soft .lede .trip__seller {
  border-block-start-color: var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 720px) {
  .soft .lede .answer__text {
    font-size: 18px;
    line-height: 28px;
  }
}

/* From 1040px the picture's panel at the start, as wide as .lead__panel, beside the text column; the facts under the
   box, the cards under both. */
@media (min-width: 1040px) {
  .soft .lede {
    padding-block: 24px 56px;
  }

  .soft .lede__main {
    gap: 22px;
  }

  .soft .lede:has(> .lede__side > :is(.picslot, .placephoto)) {
    display: grid;
    grid-template-columns: clamp(320px, 34%, 440px) minmax(0, 1fr);
    grid-template-areas: none;
    align-items: start;
    gap: 0 56px;
  }

  .soft .lede:has(> .lede__side > :is(.picslot, .placephoto)) > .lede__main {
    grid-column: 2;
    grid-row: 1;
  }

  .soft .lede__side > :is(.picslot, .placephoto) {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
    padding: 36px;
    border-radius: 28px;
  }

  .soft .lede__side > .keyfacts {
    grid-column: 2;
    grid-row: 2;
    margin-block-start: 22px;
  }

  .soft .lede > .trips {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-block-start: 56px;
  }

  .soft .lede .scene--photo img {
    width: min(320px, 100%);
    padding: 30px;
    border-radius: 22px;
  }

  .soft .lede .picslot > .scene:not(.scene--photo) {
    border-radius: 22px;
  }

  .soft .lede .placephoto img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
  }
}

/* The offers: a group's name with its count, its rows on hairlines without a card around them, the marked row (the
   one with the badge: on eSIM the cheapest of each group) on the soft yellow with round corners and the dark button.
   eSIM's flat table of the filter marks no row (look.css), so neither is its badge's row marked here. */
.soft .ogroup__head h3 {
  font-size: 22px;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 28px;
}

.soft .ogroup__head p,
.soft .ogroup__note {
  color: var(--muted);
}

.soft .olist {
  margin-block-start: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}

.soft .orows tr {
  border-block-start: 0;
  border-block-end: 1px solid var(--line);
  border-radius: 0;
  transition: none;
}

.soft .orows tbody tr:hover {
  background: none;
}

.soft .orows tbody tr:has(.obadge):not(.ofilter__list *),
.soft .orows tbody tr:has(.obadge):not(.ofilter__list *):hover {
  border-block-end-color: transparent;
  border-radius: 16px;
  background: var(--signal-soft);
  box-shadow: none;
}

/* The shop: its logo on a plate as tall as the drawing's tile, or its initials on a tile. */
.soft .orows .orow__seller .slogo {
  border-color: var(--line);
}

.soft .orows .orow__seller .smark {
  background: var(--field);
  color: var(--ink);
  letter-spacing: 0;
}

.soft .orows tbody tr:has(.obadge) .smark {
  background: var(--paper);
}

/* What the row sells, the badge beside it, the notes as one quiet line parted by small dots. */
.soft .orows .orow__what strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.soft .obadge {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.07em;
}

.soft .orows .pills {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.soft .orows .pill {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
}

/* The dot closes a line where the notes wrap, as in the box's notes (site.css put a middle dot before each note). */
.soft .orows .pill + .pill::before {
  content: none;
}

.soft .orows .pill:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-block: 0;
  margin-inline: 7px;
  border-radius: 50%;
  background: var(--faint);
  vertical-align: middle;
}

.soft .orows .pill--yes {
  color: var(--ok);
  font-weight: 600;
}

.soft .orows .pill--no {
  color: #a8261c;
  font-weight: 600;
}

/* The total in the narrow bold face, its small lines quiet under it. */
.soft .orows .orow__sum {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 28px;
  letter-spacing: 0;
}

.soft .orows .orow__price small {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.soft .orows .orow__go .gobtn {
  border-width: 1.5px;
  border-radius: 11px;
  font-size: 14px;
  line-height: 18px;
}

.soft .orows .gobtn:hover {
  transform: none;
}

.soft .orows tbody tr:has(.obadge) .gobtn:not(.ofilter__list *)::after {
  background: var(--signal);
}

/* The rows past the first few, and the flat table's next rows: the fold as the drawing's bar. */
.soft .omore summary,
.soft .ofilter__more {
  min-height: 56px;
  margin-block-start: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.soft .omore summary:hover,
.soft .ofilter__more:hover {
  background: var(--line);
}

.soft .omore summary::after,
.soft .ofilter__more::after {
  width: 10px;
  height: 6px;
  -webkit-mask-image: var(--chevron);
  mask-image: var(--chevron);
}

.soft .omore[open] summary {
  margin-block-end: 8px;
}

@media (min-width: 900px) {
  .soft .orows tr {
    padding-block: 14px;
    padding-inline: 20px;
  }

  .soft .orows .orow__seller .slogo {
    height: 36px;
    border-radius: 9px;
  }

  .soft .orows .orow__seller .smark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 15px;
  }

  /* Booster and Protein Charts name the shop beside its plate, as the drawing names it beside its tile; eSIM shows
     the plate alone (site.css). */
  html:not([data-site="esim"]) .soft .orows tr {
    grid-template-columns: 248px minmax(0, 1fr) auto 150px;
  }

  html:not([data-site="esim"]) .soft .orows .orow__seller:has(.slogo) {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
  }

  html:not([data-site="esim"]) .soft .orows .orow__seller .slogo {
    width: 96px;
  }

  .soft .orows .orow__go .gobtn {
    gap: 8px;
    min-height: 44px;
    padding-block: 0;
    padding-inline: 18px;
  }
}

/* The size groups to jump to, and eSIM's pages per data volume: quiet pills with their lowest price. The row stays at
   the top of the screen while the offers scroll (site.css, look.css). */
.soft .sizechips {
  gap: 8px;
  margin-block-start: 16px;
  padding-block: 8px;
}

.soft .sizechips a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding-block: 0;
  padding-inline: 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}

.soft .sizechips a::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}

.soft .sizechips a:hover {
  border-color: var(--ink);
  transform: none;
}

.soft .sizechips strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.soft .sizechips span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

/* eSIM's filter (esim-filter.js builds it): no card around it, its chips as the pills of the ink page's filter, its
   lists as the drawing's sort control, on a phone one quiet button that opens it. */
.soft .ofilter {
  margin-block-start: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.soft .ofilter__toggle {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--paper);
}

/* While a control is set the button has the look of a chosen chip. */
.soft .ofilter__toggle--set {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.soft .ofilter__label,
.soft .ofilter__select span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.soft .ofilter__chip span {
  min-block-size: 36px;
  padding-inline: 15px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 18px;
}

.soft .ofilter__select select {
  padding-inline: 14px 32px;
  border-color: var(--line-2);
  border-radius: 999px;
  background: var(--paper) var(--chevron) right 14px center / 10px 6px no-repeat;
}

[dir="rtl"] .soft .ofilter__select select {
  background-position: left 14px center;
}

.soft .ofilter__select select:hover {
  border-color: var(--ink);
}

.soft .ofilter__count {
  color: var(--muted);
  font-size: 14px;
}

.soft .ofilter__reset {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.soft .ofilter__reset:enabled:hover {
  border-color: var(--ink);
  background: var(--field);
  color: var(--ink);
}

.soft .ofilter__reset:disabled {
  border-color: var(--line);
  color: var(--faint);
}

.soft .ofilter__none {
  border-color: var(--line);
  border-radius: 16px;
  color: var(--muted);
}

@media (max-width: 599px) {
  .soft .ofilter--open .ofilter__toggle {
    border-radius: 12px;
  }

  .soft .ofilter--open .ofilter__body {
    padding-inline: 0;
    border-block-start: 0;
  }
}

@media (min-width: 760px) {
  .soft .ofilter__select select {
    font-size: 14px;
  }
}

/* ==================================================================================================================
   Steckersolar Charts (solar): the balcony drawing in the top, the five offer tables (a storage unit's shops, the
   kits, the kits with storage, the storage models, the calculator's sets) and the parts only its pages have.
   ================================================================================================================== */

/* A page without a photo of its unit shows the balcony drawing: it fills its card edge to edge, at its own shape. */
.lead__card:has(> .scene--solar) {
  display: block;
  width: min(420px, 100%);
  aspect-ratio: auto;
  overflow: hidden;
}

.lead__card > .scene--solar {
  width: 100%;
  border: 0;
  border-radius: 0;
}

/* The calculator's second sentence (what the set yields and saves) stands apart under the price's, inside the same
   paragraph, for a reader to quote both. */
.lead .calc-say {
  display: block;
  margin-block-start: 8px;
}

/* The quiet line after the answer's lines: which offers a kit class holds, what the rules page is. */
.lead .hero__note {
  max-width: 700px;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* An offer's title (the kits, the calculator's sets) is longer than a shop's name: a step smaller. */
.lead ~ * .offers--solar-kit .offers__seller,
.lead ~ * .offers--solar-calc .offers__seller {
  font-size: 15px;
  line-height: 20px;
}

.lead ~ * .offers--solar-models .offers__seller a {
  text-decoration: none;
}

.lead ~ * .offers--solar-models .offers__seller a:hover {
  text-decoration: underline;
}

/* What a shop cannot deliver stays a warning; its other notes are quiet. */
.lead ~ * .offers--solar .solar-stock--out {
  color: var(--no);
  font-weight: 600;
}

/* The bars as on the ink sites' tables: rounded, the lead's in ink like the others, its row being yellow. */
.lead ~ * .offers--solar .bar {
  height: 10px;
  border-radius: 5px;
}

.lead ~ * .offers--solar .total--lead .bar__price {
  box-shadow: none;
  background: var(--ink);
}

/* From 900px a table sizes itself to its content. The old rules gave each column a fixed share from 1040px; the
   new labels over the columns, the rank's badge and the button with its arrow do not fit those shares, and labels
   and totals ran into each other. A column now never gets less than its content needs: the rank's column holds the
   badge, the title's column keeps a share of the width, the labels wrap between their words. */
@media (min-width: 900px) {
  .lead ~ * .offers.offers--solar {
    table-layout: auto;
  }

  .lead ~ * .offers.offers--solar thead th {
    width: auto;
    white-space: normal;
  }

  .lead ~ * .offers.offers--solar thead th:nth-child(1) {
    width: 64px;
    min-width: 64px;
  }

  .lead ~ * .offers.offers--solar-kit thead th:nth-child(2),
  .lead ~ * .offers.offers--solar-calc thead th:nth-child(2) {
    width: 24%;
  }

  .lead ~ * .offers.offers--solar-set thead th:nth-child(2),
  .lead ~ * .offers.offers--solar-models thead th:nth-child(2) {
    width: 22%;
  }
}

/* Between the fold and the width where every column fits, what a row states elsewhere leaves: price and shipping
   (the line under the total), the time of the check (the strip under the header). The columns sit closer, the
   labels are a size smaller, a total stands over its bar and its line, and an offer's title is a step smaller and
   may break inside a long word rather than push the table past the screen. */
@media (min-width: 900px) and (max-width: 1183px) {
  .lead ~ * .offers.offers--solar-storage thead th:nth-child(3),
  .lead ~ * .offers.offers--solar-storage thead th:nth-child(4),
  .lead ~ * .offers.offers--solar-storage thead th:nth-child(7),
  .lead ~ * .offers.offers--solar-models thead th:nth-child(5),
  .lead ~ * .offers.offers--solar-models thead th:nth-child(8),
  .lead ~ * .offers.offers--solar-kit thead th:nth-child(8),
  .lead ~ * .offers.offers--solar .offers__cost,
  .lead ~ * .offers.offers--solar .offers__ship,
  .lead ~ * .offers.offers--solar .offers__chk {
    display: none;
  }

  .lead ~ * .offers--solar th,
  .lead ~ * .offers--solar td {
    padding-inline-end: 12px;
  }

  .lead ~ * .offers--solar thead th {
    font-size: 11px;
    letter-spacing: 0.03em;
  }

  .lead ~ * .offers--solar-kit .offers__seller,
  .lead ~ * .offers--solar-calc .offers__seller {
    font-size: 14px;
    line-height: 19px;
    overflow-wrap: anywhere;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .lead ~ * .offers--solar .total {
    grid-template-columns: 1fr;
    justify-items: end;
    gap: 6px;
    min-width: 0;
  }

  .lead ~ * .offers--solar .total .bar {
    order: 1;
    justify-self: stretch;
  }

  .lead ~ * .offers--solar .total small {
    order: 2;
    text-align: end;
  }

  .lead ~ * .offers--solar .offers__go .btn {
    padding: 0 14px;
  }
}

/* A phone: the shop's name gets the room beside its rank (the mark stays on the wide table), the name over the bar
   and the "per kWh" after a number in the size of the other labels. */
@media (max-width: 899px) {
  .lead ~ * .offers--solar .smark {
    display: none;
  }

  .lead ~ * .offers--solar td.offers__price[data-label] {
    font-size: 14px;
  }

  .lead ~ * .offers--solar .offers__per {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    font-stretch: 100%;
  }
}

/* A chart of up to eight columns beside its sentence leaves each column less room than a shop's name or a price
   needs: from 900px to past 1366px they ran into each other. The sentence stands over the chart, as on a phone. */
.lead ~ .part .unit:has(> .solar-cols) {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

/* The figures of the calculator, its case pages and a pair of models on a card, as the ink pages' small tables. */
html[data-site="solar"] .lead ~ .part .calc-table {
  border: 1px solid var(--line);
  border-radius: 20px;
}

html[data-site="solar"] .lead ~ .part .calc-table thead th {
  padding-block: 14px 10px;
}

html[data-site="solar"] .lead ~ .part .calc-table :is(th, td):first-child {
  padding-inline-start: 20px;
}

html[data-site="solar"] .lead ~ .part .calc-table :is(th, td):last-child {
  padding-inline-end: 20px;
}

html[data-site="solar"] .lead ~ .part .calc-table tbody tr:last-child > * {
  border-bottom: 0;
}

/* The rules of a topic and the sources of the calculator on a card, as the questions are, each numbered on a
   hairline inside it. */
.lead ~ .part .solar-rules__list {
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.lead ~ .part .solar-rules__list > li:last-child {
  border-bottom: 0;
}

/* ==================================================================================================================
   AHK Charts and Lampen Charts (wave 3, C2). The top shows the page's own drawing (AHK's car with the hitch, the
   lamp's night scene) as a picture on the white card, without its numbers; AHK's points are tiles with their link
   and lines, the ones left over a quiet list right after the top. Then the two sites' tables: room for the rank
   badge and the buttons, a head rule where no lead row opens a table, the lead marked by its row, not a highlighter.
   ================================================================================================================== */

/* A drawing fills the card edge to edge at its own proportions; the card rounds it. */
:is(html[data-site="ahk"], html[data-site="lampen"]) .lead__card:has(> .scene) {
  width: 100%;
  aspect-ratio: auto;
  overflow: hidden;
}

:is(html[data-site="ahk"], html[data-site="lampen"]) .lead__card > .scene {
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* AHK's studio shot loses its steel: the car stands on the white of the card, on a floor in the field grey. */
html[data-site="ahk"] .lead__card #sc-sky stop:nth-child(-n + 2) {
  stop-color: var(--paper);
}

html[data-site="ahk"] .lead__card #sc-sky stop:nth-child(n + 3) {
  stop-color: var(--field);
}

/* An AHK tile: the price links to its offers, the seller's lines stand under it. The start page's four points
   (.start-tiles, look-start.css) are drawn the same. */
html[data-site="ahk"] .lead .tile__value small,
html[data-site="ahk"] .start-tiles .tile__value small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 17px;
}

/* On a phone a Lampen tile is half the width: its note ("der Preis gilt für das Paar") stands under the value
   instead of wrapping beside it on the value's tall lines. */
@media (max-width: 599px) {
  html[data-site="lampen"] .lead .tile__value small {
    display: block;
    margin-top: 4px;
  }
}

html[data-site="ahk"] .lead .tile__link,
html[data-site="ahk"] .start-tiles .tile__link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

html[data-site="ahk"] .lead .tile__link:hover,
html[data-site="ahk"] .start-tiles .tile__link:hover {
  text-decoration-color: var(--ink);
}

html[data-site="ahk"] .lead .tile__link--none,
html[data-site="ahk"] .lead .tile__none,
html[data-site="ahk"] .start-tiles .tile__none {
  color: var(--ink-2);
  font-size: 18px;
  font-weight: 700;
  font-stretch: 100%;
}

/* The points no tile holds, the lead's among them: one quiet row each, on hairlines, right after the top. */
html[data-site="ahk"] .lead + .points--rest {
  display: block;
  margin: -16px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

html[data-site="ahk"] .points--rest .point {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label price"
    "meta  meta";
  gap: 4px 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

html[data-site="ahk"] .points--rest .point:last-child {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

html[data-site="ahk"] .points--rest .point__label {
  grid-area: label;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.07em;
}

html[data-site="ahk"] .points--rest .point__price {
  grid-area: price;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 24px;
  text-align: end;
}

html[data-site="ahk"] .points--rest a.point__price {
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

html[data-site="ahk"] .points--rest a.point__price:hover {
  text-decoration-color: var(--ink);
}

html[data-site="ahk"] .points--rest .point__price--none {
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 700;
  font-stretch: 100%;
}

html[data-site="ahk"] .points--rest .point__meta {
  grid-area: meta;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* From a tablet's width a row reads across: what, how much, then the lines. */
@media (min-width: 760px) {
  html[data-site="ahk"] .points--rest .point {
    grid-template-columns: minmax(140px, 13rem) 9rem minmax(0, 1fr);
    grid-template-areas: "label price meta";
  }

  html[data-site="ahk"] .points--rest .point__price {
    text-align: start;
  }
}

@media (min-width: 1040px) {
  html[data-site="ahk"] .lead + .points--rest {
    margin-top: -32px;
  }
}

/* The cost page's sentences after the first stand under the top as running text. */
html[data-site="ahk"] .lead ~ .summary {
  max-width: 72ch;
  margin-top: 0;
  font-size: 16px;
}

html[data-site="ahk"] .lead + .points--rest + .summary {
  margin-top: 24px;
}

/* ------------------------------------------------------------------------------------------------------------------
   The tables. A row of offers keeps the shared look; these finish what differs on the two sites.
   ------------------------------------------------------------------------------------------------------------------ */

/* A table whose first row is not the lead's (a group of other offers, the work, the tables by car and by type) has
   a rule under its head, as the lead's yellow row does not stand there to part them. */
.lead ~ * .offers:is(.offers--ahk, .offers--ahk-match, .offers--ahk-cars, .offers--ahk-costwork, .offers--lampen):not(:has(tbody > tr:first-child .offers__lead)) thead th {
  border-bottom: 1px solid var(--line-2);
}

/* Tables without offer rows: their rows take the same air and hairlines as an offer's. The lead's number loses the
   highlighter; its row takes the soft yellow. */
.lead ~ * .offers:is(.offers--ahk-cars, .offers--ahk-costwork) tbody tr > * {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.lead ~ * .offers.offers--ahk-cars .offers__lead {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  font-weight: 800;
}

@media (min-width: 900px) {
  .lead ~ * .offers:is(.offers--ahk-cars, .offers--ahk-costwork) tbody tr > :first-child {
    padding-inline-start: 20px;
  }

  .lead ~ * .offers:is(.offers--ahk-cars, .offers--ahk-costwork) tbody tr > :last-child {
    padding-inline-end: 20px;
  }

  .lead ~ * .offers.offers--ahk-cars tbody tr:has(.offers__lead) > * {
    border-bottom-color: transparent;
    background: var(--signal-soft);
  }

  .lead ~ * .offers.offers--ahk-cars tbody tr:has(.offers__lead) > :first-child {
    border-start-start-radius: 16px;
    border-end-start-radius: 16px;
  }

  .lead ~ * .offers.offers--ahk-cars tbody tr:has(.offers__lead) > :last-child {
    border-start-end-radius: 16px;
    border-end-end-radius: 16px;
  }
}

@media (max-width: 899px) {
  .lead ~ * .offers:is(.offers--ahk-cars, .offers--ahk-costwork) tbody tr > * {
    padding-block: 0;
    border-bottom: 0;
  }

  .lead ~ * .offers:is(.offers--ahk-cars, .offers--ahk-costwork) tbody tr:first-child {
    border-top: 0;
  }

  .lead ~ * .offers.offers--ahk-cars tbody tr:has(.offers__lead) {
    padding-inline: 12px;
    border-bottom-color: transparent;
    border-radius: 16px;
    background: var(--signal-soft);
  }
}

/* The rank's column holds the lead's badge: it starts 20px in and is 36px wide. */
@media (min-width: 900px) {
  .lead ~ * .offers:is(.offers--ahk, .offers--lampen) thead th:first-child {
    width: 64px;
  }
}

/* Lamp totals: price and shipping have columns of their own and the line under the total says how it adds up, so
   the bar goes; the total stands right, as the column's head. */
.lead ~ * .offers--lampen .bar {
  display: none;
}

.lead ~ * .offers--lampen .total {
  display: block;
  min-width: 0;
  text-align: end;
}

/* A phone gives the total a line of its own under the shop: it starts where the shop's name does. The name in
   front of it ("Mit Versand") is as quiet as the other names there, not set in the total's size. */
@media (max-width: 899px) {
  .lead ~ * .offers--lampen .total {
    text-align: start;
  }

  .lead ~ * .offers--lampen .offers__price::before {
    display: block;
    font-size: 14px;
    font-weight: 400;
    font-stretch: 100%;
    line-height: 20px;
  }
}

/* A hitch table between the phone's fold and the fixed columns (a generation's nine columns, a model's seven) has
   836 to 975px: the columns sit closer, the seller and the total a size smaller, the button without its arrow, and
   the seller's fit, which takes the rest, may break inside a long word. */
@media (min-width: 900px) and (max-width: 1039px) {
  .lead ~ * .offers:is(.offers--ahk, .offers--ahk-match) :is(th, td) {
    padding-inline-end: 8px;
  }

  .lead ~ * .offers:is(.offers--ahk, .offers--ahk-match) .offers__seller {
    font-size: 15px;
  }

  .lead ~ * .offers:is(.offers--ahk, .offers--ahk-match) tbody .offers__price {
    font-size: 17px;
  }

  .lead ~ * .offers:is(.offers--ahk, .offers--ahk-match) .offers__fit {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .lead ~ * .offers:is(.offers--ahk, .offers--ahk-match) .offers__go .btn {
    padding: 0 12px;
  }

  .lead ~ * .offers:is(.offers--ahk, .offers--ahk-match) .offers__go .btn[href^="/go/"]::after {
    display: none;
  }
}

/* The buttons' column holds "Zum Händler" and "Zum Shop" with the arrow and the row's end padding. */
@media (min-width: 1040px) {
  .lead ~ * .offers.offers--ahk thead th:last-child,
  .lead ~ * .offers.offers--ahk-match thead th:last-child,
  .lead ~ * .offers.offers--ahk-costwork thead th:last-child {
    width: 176px;
  }

  .lead ~ * .offers.offers--lampen thead th:last-child {
    width: 156px;
  }

  .lead ~ * .offers.offers--lampen-lamp thead th:nth-child(6),
  .lead ~ * .offers.offers--lampen-base thead th:nth-child(5) {
    width: 15%;
  }
}
