/*
 * Petri Art pair: FLAMENCO and RESIN TINT as two equal colour routes.
 * Presentation only. Markup: template-parts/components/petri-pair.php.
 * Both routes have the same size, border and hover; the only difference is the
 * one-line description each carries. Targets are at least 44px high.
 */
.em26-petri-pair {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  color: var(--em26-ink, #16353d);
}

.em26-petri-pair__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.em26-petri-pair__list {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.em26-petri-pair__list li {
  display: flex;
  min-width: 0;
  margin: 0;
}

.em26-petri-pair .em26-petri-pair__list a {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) 3rem;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  min-height: 4.5rem;
  margin: 0;
  padding: 0.75rem 0 0.75rem 1rem;
  border: 0.0625rem solid var(--em26-ink, #16353d);
  border-radius: var(--em26-radius-control, 0.5rem);
  color: var(--em26-ink, #16353d);
  background: var(--em26-paper, #fffdf8);
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.em26-petri-pair .em26-petri-pair__list a::before,
.em26-petri-pair .em26-petri-pair__list a::after {
  content: none;
}

.em26-petri-pair__text {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.em26-petri-pair__text strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.em26-petri-pair__text small {
  color: var(--em26-muted, #4f6269);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}

.em26-petri-pair__list a b {
  justify-self: center;
  font-size: 1.125rem;
  font-weight: 700;
}

.em26-petri-pair .em26-petri-pair__list a:hover,
.em26-petri-pair .em26-petri-pair__list a:focus-visible {
  color: var(--em26-paper, #fffdf8);
  background: var(--em26-ink, #16353d);
}

.em26-petri-pair .em26-petri-pair__list a:hover small,
.em26-petri-pair .em26-petri-pair__list a:focus-visible small {
  color: inherit;
}

.em26-petri-pair .em26-petri-pair__list a:focus-visible,
.em26-petri-pair .em26-petri-pair__white a:focus-visible {
  outline: 0.1875rem solid var(--em26-cobalt, #1d5dbb);
  outline-offset: 0.125rem;
}

/* The page you are on keeps its link but reads as the chosen one. */
.em26-petri-pair .em26-petri-pair__list a[aria-current="page"] {
  border-width: 0.125rem;
  background: color-mix(in srgb, var(--em26-turquoise, #129a9a) 12%, var(--em26-paper, #fffdf8));
}

.em26-petri-pair .em26-petri-pair__list a[aria-current="page"]:hover,
.em26-petri-pair .em26-petri-pair__list a[aria-current="page"]:focus-visible {
  color: var(--em26-paper, #fffdf8);
  background: var(--em26-ink, #16353d);
}

.em26-petri-pair__white {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.em26-petri-pair__white span {
  max-width: 62ch;
}

/* White ink: the third route, same grammar as the pair but a quieter border. */
.em26-petri-pair .em26-petri-pair__white a {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) 3rem;
  align-items: center;
  column-gap: 0.75rem;
  min-height: 3.5rem;
  margin: 0;
  padding: 0.5rem 0 0.5rem 1rem;
  border: 0.0625rem solid color-mix(in srgb, var(--em26-ink, #16353d) 40%, transparent);
  border-radius: var(--em26-radius-control, 0.5rem);
  color: var(--em26-ink, #16353d);
  background: color-mix(in srgb, var(--em26-surface, #f4efe3) 70%, var(--em26-paper, #fffdf8));
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.em26-petri-pair .em26-petri-pair__white a::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  border: 0.0625rem solid var(--em26-ink, #16353d);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 38%, #ece8dd 100%);
}

.em26-petri-pair .em26-petri-pair__white a::after {
  content: "→";
  justify-self: center;
  font-size: 1.125rem;
}

.em26-petri-pair .em26-petri-pair__white a:hover,
.em26-petri-pair .em26-petri-pair__white a:focus-visible {
  color: var(--em26-paper, #fffdf8);
  background: var(--em26-ink, #16353d);
}

/* Under the hero of the FLAMENCO and RESIN TINT categories. */
.em26-petri-pair-band {
  margin-block: 0 clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 0.0625rem solid var(--em26-border, #d8d2c4);
  border-radius: var(--em26-radius-card, 0.75rem);
  background: color-mix(in srgb, var(--em26-paper, #fffdf8) 70%, var(--em26-surface, #f4efe3));
}

.em26-colour-landing > .em26-petri-pair {
  margin-block-start: var(--em26-space-4, 1rem);
}

/* Inside the Petri card of the inks landing: spans the row, no extra frame. */
.em26-colour-landing__petri {
  grid-column: 1 / -1;
}

.em26-colour-landing__options > article.em26-colour-landing__petri .em26-petri-pair {
  margin-block-start: var(--em26-space-3, 0.75rem);
}

.em26-colour-landing__options .em26-petri-pair__list a {
  min-height: 4.5rem;
  color: var(--em26-ink, #16353d);
  background: var(--em26-paper, #fffdf8);
  text-align: left;
}

.em26-colour-landing__options .em26-petri-pair__list a:hover,
.em26-colour-landing__options .em26-petri-pair__list a:focus-visible {
  color: var(--em26-paper, #fffdf8);
  background: var(--em26-ink, #16353d);
}

/* Inks landing: equal cards per row, actions pinned to the bottom edge. */
.em26-colour-landing--inks .em26-colour-landing__options {
  align-items: stretch;
}

.em26-colour-landing--inks .em26-colour-landing__options > article {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.em26-colour-landing--inks .em26-colour-landing__options > article > h3,
.em26-colour-landing--inks .em26-colour-landing__options > article > p {
  margin: 0;
}

.em26-colour-landing--inks .em26-colour-landing__options > article > p {
  max-width: none;
}

.em26-colour-landing--inks .em26-colour-landing__options > article > a,
.em26-colour-landing--inks .em26-colour-landing__options > article > nav,
.em26-colour-landing--inks .em26-colour-landing__options > article > .em26-petri-pair {
  margin-top: auto;
}

.em26-colour-landing--inks .em26-colour-landing__options > article > nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.em26-colour-landing--inks .em26-colour-landing__options > article > nav a {
  min-height: 3rem;
  white-space: normal;
}

.em26-colour-landing--inks .em26-colour-landing__options > article {
  min-height: 0;
}

.em26-colour-landing--inks .em26-colour-landing__options > article > a {
  align-self: stretch;
  width: 100%;
  margin-inline: 0;
}

.em26-colour-landing--inks .em26-colour-landing__options > article > nav {
  width: 100%;
  margin-inline: 0;
}

/* Ink Art, the least-asked technique, closes the landing as one calm row. */
@media (min-width: 48rem) {
  .em26-colour-landing--inks .em26-colour-landing__options > article:last-child:nth-child(4) {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
    align-items: center;
    column-gap: 2rem;
    row-gap: 0.375rem;
  }

  .em26-colour-landing--inks .em26-colour-landing__options > article:last-child:nth-child(4) > h3,
  .em26-colour-landing--inks .em26-colour-landing__options > article:last-child:nth-child(4) > p {
    grid-column: 1;
  }

  .em26-colour-landing--inks .em26-colour-landing__options > article:last-child:nth-child(4) > a {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    margin-top: 0;
  }
}

.em26-colour-landing .em26-colour-landing__note {
  max-width: none;
}

/* Colour root: the two finder links share one row of equal weight. */
.em26-finder__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.em26-finder__ctas .em26-finder__cta {
  flex: 1 1 11rem;
  text-align: center;
}















/* The picker keeps the compact text link; the swatch row is for the inks page. */








/* Product page: one quiet note under the purchase window, one route plus the white ink. */
.em26-petri-pair--product {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 0.0625rem solid color-mix(in srgb, var(--em26-ink, #16353d) 18%, transparent);
  border-radius: var(--em26-radius-card, 0.75rem);
  background: color-mix(in srgb, var(--em26-surface, #f4efe3) 60%, var(--em26-paper, #fffdf8));
}

.em26-product--colour-effects .summary > .em26-petri-pair--product {
  order: 5;
}

.em26-petri-pair--product .em26-petri-pair__list {
  grid-template-columns: minmax(0, 1fr);
}

.em26-petri-pair--product .em26-petri-pair__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

@media (max-width: 40rem) {
  .em26-petri-pair__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .em26-petri-pair .em26-petri-pair__list a {
    transition: none;
  }
}

/* Home «Petri Art» row: the pair and the white ink as chips, same chip as «Спеціальні задачі» (owner-approved 22 Oct). */
.em26-home-real .em26-petri-pair--chips,
.em26-home-real .em26-petri-pair--chips .em26-petri-pair__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.em26-home-real .em26-petri-pair--chips .em26-petri-pair__list li { display: flex; }
.em26-home-real .em26-petri-pair--chips .em26-petri-pair__white { display: flex; width: auto; margin: 0; }
.em26-home-real .em26-petri-pair.em26-petri-pair--chips .em26-petri-pair__list a,
.em26-home-real .em26-petri-pair--chips .em26-petri-pair__white a {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--em26-home-ink, #16353d);
  border-radius: 0.5rem;
  color: var(--em26-home-ink, #16353d);
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.em26-home-real .em26-petri-pair--chips .em26-petri-pair__white a::before,
.em26-home-real .em26-petri-pair--chips .em26-petri-pair__white a::after { content: none; }
.em26-home-real .em26-petri-pair.em26-petri-pair--chips .em26-petri-pair__list a:hover,
.em26-home-real .em26-petri-pair.em26-petri-pair--chips .em26-petri-pair__list a:focus-visible,
.em26-home-real .em26-petri-pair--chips .em26-petri-pair__white a:hover,
.em26-home-real .em26-petri-pair--chips .em26-petri-pair__white a:focus-visible { color: var(--em26-home-paper, #f7f4ec); background: var(--em26-home-ink, #16353d); }

