.ontap {
  padding: 70px 0 50px;
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) { .ontap { padding: 40px 0 30px; } }

.ontap .section__meta {
  font-size: clamp(15px, 1.3vw, 17px);
  opacity: .85;
}

.ontap__tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ontap__tab {
  appearance: none;
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color .2s ease,
    color .2s ease,
    transform .15s ease,
    border-color var(--fade) var(--ease);
}
.ontap__tab:hover { transform: translateY(-1px); }
.ontap__tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}
.ontap__tab-count {
  font-weight: 600;
  opacity: .7;
  margin-left: 4px;
}

.ontap__panel { animation: ontap-fade .35s ease both; }
.ontap__panel.is-hidden { display: none; }
@keyframes ontap-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ontap__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* No column-gap. With a gap, each row's border-bottom would be a short
   * segment per column with empty space between them — visually that looks
   * like the rules don't reach the section's top border. With the gap at 0,
   * the per-row underlines from both columns butt together and read as one
   * continuous rule that lines up with the top border. */
  column-gap: 0;
  transition: border-color var(--fade) var(--ease);
}
@media (max-width: 820px) {
  .ontap__list { grid-template-columns: 1fr; }
}

/* Rows align edge-to-edge with the section's rule above and the tab pills.
 * Padding is internal only — no negative margin bleed — so the hover
 * background fills exactly the same width as the rule and tabs. */
.ontap__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 22px 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 0;            /* explicit — never round these underlines */
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background-color .2s ease, border-color var(--fade) var(--ease);
}
/* Visual breathing room between the two columns now that column-gap is 0:
 * push the right column's left border in so the hover backgrounds don't
 * touch each other while the underlines still meet at the seam. */
@media (min-width: 821px) {
  .ontap__row:nth-child(even) { padding-left: 38px; }
  .ontap__row:nth-child(odd)  { padding-right: 38px; }
}
.ontap__row::before {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--p1);
  transition: right .3s cubic-bezier(.2,.7,.2,1), background-color var(--fade) var(--ease);
}
.ontap__row:not(.ontap__row--static):hover,
.ontap__row:not(.ontap__row--static):focus-visible {
  background: color-mix(in srgb, var(--p1) 8%, transparent);
  outline: none;
}
.ontap__row:not(.ontap__row--static):hover::before,
.ontap__row:not(.ontap__row--static):focus-visible::before {
  right: 0;
}
.ontap__row:not(.ontap__row--static):hover .ontap__chev,
.ontap__row:not(.ontap__row--static):focus-visible .ontap__chev {
  transform: translateX(4px);
  opacity: 1;
}

.ontap__copy { min-width: 0; }
.ontap__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 4px;
  line-height: 1;
}
.ontap__style {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
}

.ontap__abv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
  transition:
    background-color var(--fade) var(--ease),
    color var(--fade) var(--ease);
}

.ontap__chev {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  width: 22px;
  text-align: right;
  opacity: .35;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .2s ease;
}

@media (max-width: 720px) {
  .ontap__row {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 18px 12px;
  }
  .ontap__name { font-size: 19px; }
}

.ontap__empty {
  padding: 24px 0;
  font-style: italic;
  opacity: .7;
}

.ontap__anchor {
  display: block;
  position: relative;
  top: -80px;
  height: 0;
  visibility: hidden;
}
