/* Comparison of the offers: the section.sec, .sec-head, .kicker, h2.h, .lead, .glow, .pill.pro, .cmp and
   .cmp-legend rules of the Unisson « Tarifs » model, with its 700 px tier, selectors moved into the shadow tree and
   colours read from the --pack-* tokens. The model's tint of the highlighted column, --hl, is --pack-c2 at 9 % in
   dark and 7 % in light. The masks only read alpha, so any opaque token stands in for the model's black. No motion. */
:host {
  --hl: light-dark(color-mix(in oklch, var(--pack-c2) 7%, transparent), color-mix(in oklch, var(--pack-c2) 9%, transparent));
  display: block;
  color: var(--pack-ink);
  font:
    16px / 1.6 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-feature-settings: normal;
  letter-spacing: normal;
  vertical-align: baseline;
  -webkit-font-smoothing: antialiased;
}
:host([hidden]) {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
h2,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--pack-focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Section and its head. */
[part="root"] {
  inline-size: min(1200px, 100% - 32px);
  margin-inline: auto;
  padding-block-start: 96px;
}
.sec-head {
  margin-block-end: 34px;
}
[part="kicker"] {
  font:
    700 12px ui-monospace,
    "JetBrains Mono",
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pack-link);
}
[part="heading"] {
  margin-block-start: 10px;
  font:
    800 clamp(30px, 4.4vw, 48px) / 1.1 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  letter-spacing: -0.035em;
}
[part="lead"] {
  margin-block-start: 14px;
  max-inline-size: 64ch;
  color: var(--pack-mut);
  font-size: 17px;
}

/* The lit card. */
.glow {
  position: relative;
  border-radius: 18px;
  background: var(--pack-panel);
  border: 1px solid var(--pack-line);
  box-shadow: var(--pack-shadow);
}
.glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(in srgb 140deg, var(--pack-c1), transparent 35%, transparent 65%, var(--pack-c2));
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(var(--pack-ink) 0 0) content-box,
    linear-gradient(var(--pack-ink) 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(var(--pack-ink) 0 0) content-box exclude,
    linear-gradient(var(--pack-ink) 0 0);
}
.cmp {
  border-radius: 20px;
  overflow: hidden;
}
[part="scroll"] {
  overflow-inline: auto;
}
[part="scroll"]:focus-visible {
  outline-offset: -2px;
  border-radius: 20px;
}
table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
col.fc {
  inline-size: 44%;
}
col.hl {
  background: var(--hl);
}
thead th {
  padding: 22px 16px 18px;
  text-align: center;
  vertical-align: bottom;
  border-block-end: 1px solid var(--pack-line2);
}
thead th:first-child {
  text-align: start;
}
.pn {
  display: block;
  font:
    800 19px / 1.2 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  letter-spacing: -0.02em;
  color: var(--pack-ink);
}
.pp {
  display: block;
  margin-block-start: 6px;
  font:
    600 12px ui-monospace,
    "JetBrains Mono",
    Menlo,
    Consolas,
    monospace;
  color: var(--pack-mut);
}
.lbl {
  font:
    700 12px ui-monospace,
    "JetBrains Mono",
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pack-mut);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: 24px;
  padding: 0 9px;
  border-radius: 99px;
  font:
    700 11px / 1 ui-monospace,
    "JetBrains Mono",
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--pack-btnink);
  background: linear-gradient(in srgb 120deg, var(--pack-btn1), var(--pack-btn2));
}
thead .pill {
  margin-block-end: 8px;
}
tbody th[scope="row"] {
  padding: 14px 16px;
  text-align: start;
  font-weight: 500;
  color: var(--pack-ink);
}
tbody th[scope="row"] .pill {
  margin-inline-start: 8px;
  vertical-align: 1px;
  min-block-size: 20px;
  padding: 0 7px;
  font-size: 10.5px;
}
tbody td {
  padding: 14px 12px;
  text-align: center;
  vertical-align: middle;
}
tbody tr + tr > * {
  border-block-start: 1px solid var(--pack-line);
}
tr.grp th {
  padding: 22px 16px 10px;
  border-block-start: 1px solid var(--pack-line2);
  text-align: start;
  font:
    700 11.5px ui-monospace,
    "JetBrains Mono",
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pack-link);
  background: var(--pack-panel2);
}
tbody:first-of-type tr.grp:first-child th {
  border-block-start: 0;
}
.v {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font:
    600 12.5px ui-monospace,
    "JetBrains Mono",
    Menlo,
    Consolas,
    monospace;
  color: var(--pack-mut);
}
.v.yes {
  color: var(--pack-c3);
}
.v.target {
  color: var(--pack-link);
}
.v.no {
  color: var(--pack-mut);
  opacity: 0.75;
}
.v.tbd {
  font-style: italic;
}

/* Legend under the card. */
[part="legend"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-block-start: 14px;
  font-size: 13.5px;
  color: var(--pack-mut);
}
[part="legend"] > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 700px) {
  [part="root"] {
    padding-block-start: 72px;
  }
  table {
    font-size: 13.5px;
  }
  thead th {
    padding: 16px 3px 14px;
  }
  thead th:first-child {
    padding-inline-start: 14px;
  }
  col.fc {
    inline-size: auto;
  }
  .lbl {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .pn {
    font-size: 12.5px;
    letter-spacing: -0.01em;
  }
  .pp {
    font-size: 10.5px;
  }
  thead .pill {
    display: none;
  }
  tbody th[scope="row"] {
    padding: 12px 8px 12px 14px;
  }
  tbody th[scope="row"] .pill {
    display: inline-flex;
    margin: 4px 0 0;
  }
  tbody td {
    padding: 12px 3px;
  }
  .v {
    font-size: 11px;
    flex-direction: column;
    gap: 2px;
  }
  tr.grp th {
    padding: 18px 14px 8px;
  }
}
/* Forced colours: the ring and the tint are dropped, the card and the badges keep a visible edge. */
@media (forced-colors: active) {
  .glow::after {
    display: none;
  }
  .glow,
  .pill {
    border: 1px solid CanvasText;
  }
  col.hl {
    background: none;
  }
}
