:root {
  --jj-cream: #eff7cf;
  --jj-sage: #bad9b5;
  --jj-gold: #aba361;
  --jj-wine: #732c2c;
  --jj-burgundy: #420c14;
  --jj-paper: #fffdf6;
  --jj-ink: #2d211d;
  --jj-muted: #6d6259;
  --jj-line: rgba(66, 12, 20, 0.18);
  --jj-shadow: 0 18px 45px rgba(66, 12, 20, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id^="sekcja_"] {
  scroll-margin-top: 82px;
}

.jj-legacy-anchor {
  display: block;
  height: 0;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(186, 217, 181, 0.4), transparent 34rem),
    #f7f4e8;
  color: var(--jj-ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--jj-wine);
}

a:focus-visible {
  outline: 3px solid var(--jj-gold);
  outline-offset: 3px;
}

.jj-skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--jj-burgundy);
  color: #fff;
}

.jj-skip-link:focus {
  top: 16px;
}

.sevenba-back-link {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 100;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: var(--jj-burgundy);
  box-shadow: 0 6px 20px rgba(66, 12, 20, 0.24);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.sevenba-back-link:hover {
  background: var(--jj-wine);
}

.jj-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.jj-hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(220px, 360px) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 50px clamp(24px, 6vw, 90px) 36px;
  overflow: hidden;
  border-bottom: 8px solid var(--jj-gold);
  background:
    linear-gradient(115deg, rgba(239, 247, 207, 0.97), rgba(186, 217, 181, 0.92)),
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(66, 12, 20, 0.03) 14px, rgba(66, 12, 20, 0.03) 15px);
}

.jj-hero__identity h1 {
  margin: 0;
  color: var(--jj-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.jj-eyebrow {
  margin: 0 0 6px;
  color: var(--jj-wine);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jj-subtitle {
  margin: 14px 0 0;
  color: var(--jj-muted);
  font-size: 1.08rem;
}

.jj-crest {
  width: min(100%, 330px);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 15px 15px rgba(66, 12, 20, 0.15));
  mix-blend-mode: multiply;
}

.jj-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.jj-players p {
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(66, 12, 20, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 246, 0.68);
}

.jj-players span,
.jj-players strong {
  display: block;
}

.jj-players p > span {
  color: var(--jj-wine);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jj-players strong {
  color: var(--jj-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.jj-ampersand {
  color: var(--jj-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}

.jj-main-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 2px;
  padding: 8px clamp(16px, 4vw, 56px);
  overflow: visible;
  background: var(--jj-burgundy);
  box-shadow: 0 8px 24px rgba(66, 12, 20, 0.18);
  scrollbar-width: none;
}

.jj-main-nav::-webkit-scrollbar {
  display: none;
}

.jj-main-nav__item {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.jj-main-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 7px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.jj-main-nav__item--has-children > a {
  padding-right: 7px;
  border-radius: 7px 0 0 7px;
}

.jj-main-nav__toggle {
  align-self: stretch;
  min-width: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 0 7px 7px 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jj-main-nav__toggle:hover,
.jj-main-nav__toggle:focus-visible,
.jj-main-nav__item.is-open > .jj-main-nav__toggle {
  background: var(--jj-gold);
  color: var(--jj-burgundy);
}

.jj-main-nav__toggle:focus-visible {
  outline: 3px solid var(--jj-gold);
  outline-offset: 2px;
}

.jj-main-nav__toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: transform 150ms ease, background 150ms ease;
}

.jj-main-nav__toggle-icon svg {
  display: block;
  transition: transform 150ms ease;
}

.jj-main-nav__toggle[aria-expanded="true"] .jj-main-nav__toggle-icon {
  transform: none;
}

.jj-main-nav__toggle[aria-expanded="true"] .jj-main-nav__toggle-icon svg {
  transform: rotate(180deg);
}

.jj-main-nav__dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 80;
  width: max-content;
  min-width: 250px;
  max-width: 360px;
  max-height: min(65vh, 560px);
  display: none;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: var(--jj-burgundy);
  box-shadow: 0 18px 40px rgba(66, 12, 20, 0.28);
}

.jj-main-nav__item.is-open > .jj-main-nav__dropdown {
  display: grid;
  gap: 2px;
}

.jj-main-nav .jj-main-nav__dropdown a {
  padding: 9px 11px;
  border-radius: 7px;
  color: #fff;
  font-size: 0.83rem;
  line-height: 1.35;
  white-space: normal;
}

.jj-main-nav .jj-main-nav__dropdown a:hover,
.jj-main-nav .jj-main-nav__dropdown a:focus-visible {
  background: var(--jj-gold);
  color: var(--jj-burgundy);
}

.jj-main-nav a:hover,
.jj-main-nav a[aria-current="page"] {
  background: var(--jj-gold);
  color: var(--jj-burgundy);
}

.jj-category {
  padding: clamp(38px, 6vw, 86px) clamp(20px, 6vw, 90px) 90px;
}

.jj-home {
  background: linear-gradient(180deg, rgba(239, 247, 207, 0.3), transparent 24rem);
}

.jj-home .jj-card {
  min-height: 126px;
}

.jj-home .jj-card p {
  display: none;
}

.jj-page-title {
  max-width: 920px;
  margin: 0;
  color: var(--jj-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.jj-lead {
  max-width: 780px;
  margin: 18px 0 42px;
  color: var(--jj-muted);
  font-size: 1.18rem;
}

.jj-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
}

.jj-card {
  position: relative;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--jj-line);
  border-radius: 18px;
  background: var(--jj-paper);
  box-shadow: 0 10px 28px rgba(66, 12, 20, 0.07);
  color: var(--jj-ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.jj-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -45px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--jj-sage);
  opacity: 0.45;
}

.jj-card:hover {
  transform: translateY(-4px);
  border-color: var(--jj-gold);
  box-shadow: var(--jj-shadow);
}

.jj-card__number {
  color: var(--jj-wine);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.jj-card h2 {
  margin: 11px 0 7px;
  color: var(--jj-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.14;
}

.jj-card p {
  margin: 0 0 12px;
  color: var(--jj-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.jj-card__cta {
  z-index: 1;
  margin-top: auto;
  color: var(--jj-wine);
  font-weight: 750;
  font-size: 0.88rem;
}

.jj-accordion-menu {
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--jj-line);
  border-radius: 22px;
  background: rgba(255, 253, 246, 0.82);
  box-shadow: 0 16px 40px rgba(66, 12, 20, 0.08);
}

.jj-accordion-menu > h2 {
  max-width: 760px;
  margin: 0;
  color: var(--jj-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.jj-accordion-menu__lead {
  margin: 12px 0 28px;
  color: var(--jj-muted);
}

.jj-accordion {
  display: grid;
  gap: 8px;
}

.jj-accordion details {
  border: 1px solid var(--jj-line);
  border-radius: 12px;
  background: var(--jj-paper);
}

.jj-accordion summary {
  position: relative;
  padding: 13px 48px 13px 16px;
  color: var(--jj-burgundy);
  font-weight: 750;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.jj-accordion summary::-webkit-details-marker {
  display: none;
}

.jj-accordion summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--jj-cream);
  color: var(--jj-wine);
  font-size: 1.15rem;
}

.jj-accordion details[open] > summary::after {
  content: "−";
  background: var(--jj-gold);
  color: var(--jj-burgundy);
}

.jj-accordion__group[open] > summary {
  background: var(--jj-burgundy);
  color: #fff;
  border-radius: 11px 11px 0 0;
}

.jj-accordion__content {
  padding: 12px 16px 18px;
  border-top: 1px solid var(--jj-line);
}

.jj-accordion__subgroups {
  display: grid;
  gap: 7px;
}

.jj-accordion .jj-accordion__subgroup {
  background: rgba(239, 247, 207, 0.28);
}

.jj-accordion__open-page {
  display: inline-block;
  margin: 7px 10px 8px;
  color: var(--jj-wine);
  font-size: 0.88rem;
  font-weight: 750;
}

.jj-accordion__links {
  margin: 4px 0 8px;
  padding: 0 12px 0 30px;
  columns: 2 280px;
  column-gap: 32px;
}

.jj-accordion__links li {
  break-inside: avoid;
  margin: 0 0 4px;
  color: var(--jj-gold);
}

.jj-accordion__links a {
  color: var(--jj-ink);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.jj-accordion__links a:hover {
  color: var(--jj-wine);
}

.jj-accordion__level-3 {
  margin-left: 12px !important;
}

.jj-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.jj-page-toc {
  position: sticky;
  top: 59px;
  max-height: calc(100vh - 59px);
  padding: 24px 16px 50px;
  overflow-y: auto;
  background: var(--jj-cream);
  border-right: 1px solid var(--jj-line);
}

.jj-page-toc__title {
  margin: 0 0 12px;
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--jj-line);
  color: var(--jj-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.jj-page-toc nav {
  display: grid;
  gap: 2px;
}

.jj-page-toc a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--jj-burgundy);
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.35;
  text-decoration: none;
}

.jj-page-toc a:hover,
.jj-page-toc a[aria-current="location"] {
  background: var(--jj-wine);
  color: #fff;
}

.jj-page-toc__level-3 {
  margin-left: 13px;
  color: #6b3a3a !important;
  font-size: 0.84rem !important;
  font-weight: 560 !important;
}

.jj-page-toc__level-3:hover,
.jj-page-toc__level-3[aria-current="location"] {
  color: #fff !important;
}

.jj-page-toc__auction-group {
  margin: 3px 0 3px 13px;
  border: 1px solid rgba(123, 47, 47, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
}

.jj-page-toc__auction-group summary {
  position: relative;
  padding: 9px 30px 9px 12px;
  color: var(--jj-burgundy);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.jj-page-toc__auction-group summary::-webkit-details-marker {
  display: none;
}

.jj-page-toc__auction-group summary::after {
  position: absolute;
  top: 50%;
  right: 11px;
  content: "›";
  font-size: 1.15rem;
  transform: translateY(-52%) rotate(90deg);
  transition: transform 0.16s ease;
}

.jj-page-toc__auction-group[open] summary::after {
  transform: translateY(-52%) rotate(-90deg);
}

.jj-page-toc__auction-group[open] summary {
  border-bottom: 1px solid rgba(123, 47, 47, 0.13);
  background: rgba(255, 255, 255, 0.34);
}

.jj-page-toc__auction-children {
  display: grid;
  gap: 1px;
  padding: 4px 5px 6px 7px;
}

.jj-page-toc .jj-page-toc__auction-link {
  margin-left: 0;
  padding: 7px 9px 7px 17px;
  font-size: 0.8rem !important;
  line-height: 1.3;
}

.jj-content {
  width: min(100%, 980px);
  min-height: 70vh;
  padding: clamp(34px, 5vw, 70px) clamp(20px, 6vw, 80px) 80px;
}

.jj-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin-bottom: 22px;
  color: var(--jj-muted);
  font-size: 0.86rem;
}

.jj-breadcrumbs a {
  color: var(--jj-wine);
  font-weight: 650;
}

.jj-document {
  margin-top: 38px;
}

.jj-document h1,
.jj-document h2 {
  margin: 52px 0 22px;
  padding: 15px 20px;
  border-left: 7px solid var(--jj-gold);
  border-radius: 0 12px 12px 0;
  background: var(--jj-cream);
  color: var(--jj-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.18;
}

.jj-document h3 {
  margin: 38px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--jj-sage);
  color: var(--jj-wine);
  font-size: 1.28rem;
  line-height: 1.28;
}

.jj-document strong {
  color: var(--jj-wine);
  font-weight: 720;
}

.jj-auction-lead {
  position: relative;
  margin: 28px 0 18px;
  padding: 13px 16px 13px 20px;
  border: 1px solid rgba(115, 44, 44, 0.2);
  border-left: 5px solid var(--jj-gold);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(
    90deg,
    rgba(239, 247, 207, 0.72),
    rgba(255, 253, 246, 0.9)
  );
}

.jj-auction-lead > :first-child {
  margin-top: 0;
}

.jj-auction-lead > :last-child {
  margin-bottom: 0;
}

.jj-auction-lead strong {
  line-height: 1.45;
}

.jj-opponent-bid {
  display: inline-block;
  margin: 0 0.08em;
  padding: 0.02em 0.3em;
  border: 1px solid #c8c5bd;
  border-radius: 0.32em;
  background: #e8e7e2;
  color: inherit;
  line-height: 1.35;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.jj-document table {
  max-width: 100%;
  border-collapse: collapse;
  background: var(--jj-paper);
}

.jj-document th,
.jj-document td {
  border: 1px solid var(--jj-line);
  padding: 7px 9px;
}

.jj-document img {
  max-width: 100%;
  height: auto;
}

.jj-page-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid var(--jj-line);
}

.jj-page-nav a {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--jj-line);
  border-radius: 12px;
  background: var(--jj-paper);
  text-decoration: none;
}

.jj-page-nav a:last-child {
  text-align: right;
}

.jj-page-nav span {
  color: var(--jj-muted);
  font-size: 0.8rem;
}

.jj-page-nav strong {
  color: var(--jj-burgundy);
}

@media (max-width: 1050px) {
  .jj-hero {
    grid-template-columns: 1fr minmax(180px, 260px);
  }

  .jj-players {
    grid-column: 1 / -1;
    width: min(620px, 100%);
    justify-self: center;
  }
}

@media (max-width: 820px) {
  .sevenba-back-link {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .jj-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 70px 20px 28px;
    text-align: center;
  }

  .jj-crest {
    width: min(230px, 65vw);
    grid-row: 1;
  }

  .jj-hero__identity {
    grid-row: 2;
  }

  .jj-players {
    grid-row: 3;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .jj-ampersand {
    font-size: 1.35rem;
    line-height: 1;
  }

  .jj-main-nav {
    top: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .jj-main-nav__dropdown {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 58px;
    width: auto;
    max-width: none;
    max-height: min(70vh, 560px);
  }

  .jj-layout {
    display: block;
  }

  .jj-page-toc {
    position: relative;
    top: auto;
    max-height: 310px;
    border-right: 0;
    border-bottom: 1px solid var(--jj-line);
  }

  .jj-content {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .jj-category,
  .jj-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .jj-card {
    min-height: 142px;
    padding: 17px;
  }

  .jj-accordion-menu {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .jj-accordion__content {
    padding: 10px;
  }

  .jj-accordion__links {
    columns: 1;
    padding-left: 26px;
  }

  .jj-document {
    font-size: 0.96rem;
  }

  .jj-document h1,
  .jj-document h2 {
    padding: 12px 14px;
  }

  .jj-document table {
    display: block;
    overflow-x: auto;
  }

  .jj-page-nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .jj-card {
    transition: none;
  }
}

.jj-suit-club { color: #2f7d3a; }
.jj-suit-diamond { color: #c1591a; }
.jj-suit-heart { color: #b0261d; }
.jj-suit-spade { color: #1b2a4a; }

.jj-main-nav .jj-suit-club,
.jj-main-nav .jj-suit-diamond,
.jj-main-nav .jj-suit-heart,
.jj-main-nav .jj-suit-spade {
  -webkit-text-stroke: 0.6px #fff;
  text-stroke: 0.6px #fff;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.55);
}

/* === Zapis sekwencji (porządkowanie 2026) === */
.jj-seq { margin: 28px 0 18px; }
.jj-seq .jj-seq__head { margin: 0 0 8px; font-weight: 700; line-height: 1.45; }
.jj-seq__rows { list-style: none; margin: 0 0 0 2.2em; padding: 2px 0 2px 0.9em; border-left: 2px solid rgba(171, 163, 97, 0.55); }
.jj-seq__rows li { margin: 0 0 4px; padding-left: 0; }
.jj-seq__call { display: inline-block; min-width: 3.2em; font-weight: 700; white-space: nowrap; }
.jj-seq__note { margin: 8px 0 0 3.1em; color: var(--jj-muted); }
.jj-seq__notelist { margin: 4px 0 0 4.4em; padding-left: 1.1em; color: var(--jj-muted); list-style: disc; }
.jj-seq__notelist li { margin: 2px 0; }
.jj-seq { scroll-margin-top: 82px; }
.jj-seq__also { margin: 2px 0 10px; font-size: 0.92em; }
.jj-seq__also > summary { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 1px solid rgba(171, 163, 97, 0.55); border-radius: 999px; color: var(--jj-muted); font-weight: 600; cursor: pointer; list-style: none; }
.jj-seq__also > summary::-webkit-details-marker { display: none; }
.jj-seq__also > summary::before { content: "▸"; color: var(--jj-wine); transition: transform 120ms ease; }
.jj-seq__also[open] > summary::before { transform: rotate(90deg); }
.jj-seq__also > summary:hover { background: rgba(186, 217, 181, 0.25); }
.jj-seq__also > summary:focus-visible { outline: 2px solid var(--jj-gold); outline-offset: 2px; }
.jj-seq__also-list { list-style: none; margin: 6px 0 0 0.6em; padding: 2px 0 2px 0.9em; border-left: 2px solid rgba(171, 163, 97, 0.35); }
.jj-seq__also-list li { margin: 0 0 4px; font-weight: 700; color: var(--jj-ink); line-height: 1.9; }
@media (prefers-reduced-motion: reduce) { .jj-seq__also > summary::before { transition: none; } }
.jj-seq__head { padding-top: 9px; padding-bottom: 9px; }
.jj-document .jj-auc { border-collapse: collapse; background: transparent; margin: 0; }
.jj-document .jj-auc th, .jj-document .jj-auc td { border: 0; padding: 1px 26px 1px 0; text-align: left; vertical-align: top; }
.jj-auc__desc { font-size: 0.78em; font-weight: 400; color: var(--jj-muted); }
.jj-auc th { color: var(--jj-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding-bottom: 3px !important; }
.jj-auc td { min-width: 3.4em; font-weight: 700; }
.jj-auc__implicit { color: var(--jj-muted); font-weight: 400; }
.jj-seq__who { margin: 0 0 3px 2.2em; color: var(--jj-muted); font-size: 0.85rem; font-weight: 600; }
.jj-page-toc__seq-label { display: block; margin: 8px 0 2px 25px; color: var(--jj-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.jj-page-toc a.jj-page-toc__seq { margin-left: 25px; padding: 5px 12px; font-weight: 700 !important; white-space: nowrap; border-left: 2px solid rgba(171, 163, 97, 0.55); border-radius: 0 8px 8px 0; }
@media (max-width: 520px) { .jj-seq__rows { margin-left: 1em; } .jj-seq__note { margin-left: 1.9em; } .jj-seq__who { margin-left: 1em; } .jj-document .jj-auc th, .jj-document .jj-auc td { padding-right: 14px; } }
.jj-seq__rows .jj-seq__variants-title { margin: 4px 0 2px 3.2em; }
.jj-document .jj-seq__rows .jj-seq__variants { margin: 0 0 8px 3.2em; }
.jj-seq__variants-title { margin: 6px 0 2px 2.2em; color: var(--jj-wine); font-size: 0.9rem; font-weight: 700; }
.jj-document .jj-seq__variants { margin: 0 0 0 2.2em; padding: 2px 0 2px 0.9em; border-left: 2px solid rgba(171, 163, 97, 0.55); list-style: none; counter-reset: wariant; }
.jj-seq__variants li { margin: 0 0 4px; padding-left: 1.8em; text-indent: -1.8em; }
.jj-seq__variants li::before { counter-increment: wariant; content: counter(wariant) ") "; display: inline-block; width: 1.8em; text-indent: 0; font-weight: 700; }
.jj-seq__note::before { content: "Uwaga: "; font-weight: 700; color: var(--jj-wine); }

/* Narzędzia J&J – pasek kafelków na stronie startowej (dodawane przez budowanie.js) */
.jj-tools { margin: -14px 0 42px; padding: clamp(18px, 3vw, 28px); border: 1px solid rgba(171, 163, 97, 0.45); border-radius: 22px; background: linear-gradient(135deg, #f6fadf, #e9f2cf); color: var(--jj-ink); box-shadow: 0 10px 28px rgba(66, 12, 20, 0.07); }
.jj-tools__eyebrow { margin: 0 0 12px; color: var(--jj-wine); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.jj-tools__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jj-tools__grid > .jj-tool:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 640px) { .jj-tools__grid { grid-template-columns: 1fr; } }
.jj-tools { scroll-margin-top: 90px; }
.jj-main-nav { gap: 4px; align-items: center; }
.jj-main-nav > a, .jj-main-nav__item { border: 1px solid rgba(171, 163, 97, 0.7); border-radius: 8px; }
.jj-main-nav > a { border-radius: 8px; }
.jj-main-nav__item > a { border-radius: 7px 0 0 7px; }
.jj-main-nav__item:not(.jj-main-nav__item--has-children) > a { border-radius: 7px; }
.jj-main-nav > a[aria-current="page"], .jj-main-nav__item:has(> a[aria-current="page"]) { border-color: var(--jj-gold); background: var(--jj-gold); }
.jj-main-nav__item:has(> a[aria-current="page"]) > .jj-main-nav__toggle { color: var(--jj-burgundy); }
.jj-main-nav__item--tools { margin-left: 8px; }
.jj-main-nav__tool-mark { display: inline-block; width: 1.5em; color: var(--jj-gold); font-weight: 800; }
.jj-main-nav .jj-main-nav__dropdown a:hover .jj-main-nav__tool-mark, .jj-main-nav .jj-main-nav__dropdown a:focus-visible .jj-main-nav__tool-mark { color: var(--jj-burgundy); }
@media (min-width: 821px) {
  .jj-main-nav { flex-wrap: wrap; row-gap: 6px; padding-left: 16px; padding-right: 16px; justify-content: center; }
  .jj-main-nav > a, .jj-main-nav__item > a { padding-left: 8px; padding-right: 8px; }
  .jj-main-nav__item--has-children > a { padding-right: 4px; }
  .jj-main-nav__toggle { min-width: 24px; padding: 0 4px; }
  .jj-main-nav__item--tools { margin-left: 4px; }
  .sevenba-back-link { position: absolute; }
  .jj-main-nav__item--tools > .jj-main-nav__dropdown { left: auto; right: 0; }
}
.jj-tool { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 16px; border: 1px solid rgba(171, 163, 97, 0.5); border-radius: 16px; background: var(--jj-paper); color: var(--jj-ink); text-decoration: none; box-shadow: 0 2px 8px rgba(66, 12, 20, 0.04); transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.jj-tool:hover, .jj-tool:focus-visible { background: #fff; border-color: var(--jj-gold); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(66, 12, 20, 0.1); }
.jj-tool:focus-visible { outline: 2px solid var(--jj-gold); outline-offset: 2px; }
.jj-tool__mark { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--jj-gold); color: var(--jj-burgundy); font-size: 1.35rem; font-weight: 800; }
.jj-tool__body { flex: 1; min-width: 0; }
.jj-tool__body strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.2; color: var(--jj-burgundy); }
.jj-tool__body span { display: block; margin-top: 3px; font-size: 0.86rem; line-height: 1.4; color: var(--jj-muted); }
.jj-tool__go { flex: none; color: var(--jj-wine); font-weight: 800; }
.jj-main-nav .jj-main-nav__dropdown a.jj-main-nav__group { margin-top: 6px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, 0.18); border-radius: 0 0 7px 7px; font-weight: 750; }
.jj-main-nav .jj-main-nav__dropdown a.jj-main-nav__sub { padding-left: 24px; }
@media (max-width: 520px) { .jj-tools { margin-top: -20px; padding: 16px 12px; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .jj-tool { transition: none; } }

/* Drzewko J&J – /jj-system-rules/drzewko/ (strona tworzona przez budowanie.js) */
.jj-tree-page .jj-lead { margin-bottom: 26px; }
.jj-tree { --tree-line: rgba(171, 163, 97, 0.55); }
.jj-tree__search { padding: 18px; border: 1px solid var(--jj-line); border-radius: 18px; background: var(--jj-paper); box-shadow: 0 10px 28px rgba(66, 12, 20, 0.07); }
.jj-tree__search label { display: block; margin: 0 0 8px; color: var(--jj-burgundy); font-weight: 750; }
.jj-tree__row { display: flex; flex-wrap: wrap; gap: 8px; }
.jj-tree__row input { flex: 1 1 260px; min-width: 0; padding: 10px 12px; border: 1px solid var(--jj-line); border-radius: 10px; font: inherit; color: var(--jj-ink); background: #fff; }
.jj-tree button { padding: 9px 14px; border: 1px solid var(--jj-line); border-radius: 10px; background: #fff; color: var(--jj-burgundy); font: inherit; font-weight: 700; cursor: pointer; }
.jj-tree button[type="submit"] { background: var(--jj-wine); border-color: var(--jj-wine); color: #fff; }
.jj-tree button:hover { border-color: var(--jj-gold); }
.jj-tree button:focus-visible, .jj-tree input:focus-visible, .jj-tree summary:focus-visible { outline: 2px solid var(--jj-gold); outline-offset: 2px; }
.jj-tree__keys { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.jj-tree__keys button { min-width: 38px; padding: 6px 8px; font-size: 1rem; }
.jj-tree__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 6px; color: var(--jj-muted); font-size: 0.92rem; }
.jj-tree__tools label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--jj-ink); }
.jj-tree__tools span { margin-left: auto; }
#jj-tree-results { margin-top: 10px; }
.jj-tree__hits { list-style: none; margin: 6px 0 0; padding: 0; max-height: 320px; overflow: auto; border: 1px solid var(--jj-line); border-radius: 12px; background: var(--jj-paper); }
.jj-tree__hits li + li { border-top: 1px solid var(--jj-line); }
.jj-tree__hits button { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 0; background: transparent; text-align: left; font-weight: 400; color: var(--jj-ink); }
.jj-tree__hits button b { color: var(--jj-burgundy); margin-right: 6px; }
.jj-tree__hits button span { color: var(--jj-muted); }
.jj-tree__group { margin-top: 26px; }
.jj-tree__group > h2 { margin: 0 0 10px; color: var(--jj-burgundy); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.jj-tree__node > summary, .jj-tree__leaf { display: flex; align-items: baseline; gap: 10px; padding: 6px 8px; border-radius: 9px; list-style: none; }
.jj-tree__node > summary { cursor: pointer; }
.jj-tree__node > summary::-webkit-details-marker { display: none; }
.jj-tree__node > summary::before { content: "▸"; flex: none; width: 0.9em; color: var(--jj-wine); transition: transform 120ms ease; }
.jj-tree__node[open] > summary::before { transform: rotate(90deg); }
.jj-tree__leaf::before { content: ""; flex: none; width: 0.9em; }
.jj-tree__node > summary:hover, .jj-tree__leaf:hover { background: rgba(186, 217, 181, 0.25); }
.jj-tree__call { flex: none; min-width: 3.4em; font-weight: 800; white-space: nowrap; color: var(--jj-ink); }
.jj-tree__call--opp { color: var(--jj-muted); }
.jj-tree__body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.jj-tree__mean { display: block; }
.jj-tree__mean--many + .jj-tree__mean--many { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--jj-line); }
.jj-tree__desc, .jj-tree__muted { color: var(--jj-muted); }
.jj-tree__none { color: var(--jj-muted); font-style: italic; }
.jj-tree__src { margin-left: 2px; color: var(--jj-wine); font-size: 0.85em; text-decoration: none; }
.jj-tree__src:hover { text-decoration: underline; }
.jj-tree__var { margin: 3px 0 0; padding-left: 1.4em; color: var(--jj-muted); font-size: 0.9em; }
.jj-tree__count { flex: none; margin-left: auto; padding: 0 7px; border-radius: 999px; background: rgba(171, 163, 97, 0.22); color: var(--jj-burgundy); font-size: 0.75rem; font-weight: 700; }
.jj-tree__kids { margin: 0 0 4px 1.15em; padding-left: 0.9em; border-left: 2px solid var(--tree-line); }
.jj-tree__who { margin: 4px 0 2px 8px; color: var(--jj-wine); font-size: 0.8rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.jj-tree__notes { margin: 4px 8px; padding: 6px 10px; border-radius: 8px; background: rgba(239, 247, 207, 0.6); color: var(--jj-muted); font-size: 0.9em; }
.jj-tree__notes p { margin: 2px 0; }
.is-hit { background: rgba(171, 163, 97, 0.35) !important; outline: 2px solid var(--jj-gold); }
@media (max-width: 520px) {
  .jj-tree__search { padding: 14px 12px; }
  .jj-tree__kids { margin-left: 0.5em; padding-left: 0.6em; }
  .jj-tree__call { min-width: 2.9em; }
  .jj-tree__node > summary, .jj-tree__leaf { gap: 7px; padding: 6px 4px; }
  .jj-tree__tools span { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .jj-tree__node > summary::before { transition: none; } }

/* Wyszukiwarka sekwencji – strona startowa (dodawana przez budowanie.js) */
.jj-find { margin: 0 0 42px; padding: clamp(18px, 3vw, 28px); border: 1px solid rgba(171, 163, 97, 0.45); border-radius: 22px; background: var(--jj-paper); color: var(--jj-ink); box-shadow: 0 10px 28px rgba(66, 12, 20, 0.07); scroll-margin-top: 90px; }
.jj-find h2 { margin: 0 0 16px; color: var(--jj-burgundy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.2; }
.jj-find__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 900px) { .jj-find__grid { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; } .jj-find__in { position: sticky; top: 90px; } }
.jj-find button { font: inherit; cursor: pointer; }
.jj-find button:focus-visible, .jj-find input:focus-visible, .jj-find a:focus-visible { outline: 2px solid var(--jj-gold); outline-offset: 2px; }
.jj-find__modes, .jj-find__first { display: flex; gap: 0; margin: 0 0 10px; }
.jj-find__modes { display: grid; grid-template-columns: 1fr 1fr; }
.jj-find__modes button, .jj-find__first button { flex: 1 1 auto; padding: 8px 10px; white-space: nowrap; border: 1px solid var(--jj-line); background: #fff; color: var(--jj-burgundy); font-weight: 700; }
.jj-find__modes button:first-child, .jj-find__first span + button { border-radius: 10px 0 0 10px; }
.jj-find__modes button:last-child, .jj-find__first button:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.jj-find__modes button[aria-pressed="true"], .jj-find__first button[aria-pressed="true"] { background: var(--jj-wine); border-color: var(--jj-wine); color: #fff; }
.jj-find__first { align-items: center; font-size: 0.9rem; }
.jj-find__first[hidden] { display: none; }
.jj-find__first span { margin-right: 8px; color: var(--jj-muted); font-weight: 600; }
.jj-find__first button { flex: 0 1 auto; padding: 5px 12px; }
.jj-find__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jj-find__field { display: flex; gap: 6px; }
.jj-find__field input { flex: 1 1 auto; min-width: 0; padding: 11px 12px; border: 1px solid var(--jj-line); border-radius: 10px; background: #fff; color: var(--jj-ink); font: inherit; font-size: 1.1rem; font-weight: 700; }
.jj-find__field input::placeholder { font-weight: 400; font-size: 0.95rem; color: #9a8f86; }
.jj-find__field button { flex: none; width: 46px; border: 1px solid var(--jj-line); border-radius: 10px; background: #fff; color: var(--jj-burgundy); font-size: 1.15rem; font-weight: 700; }
.jj-find__field button:hover, .jj-find__box button:not(:disabled):hover, .jj-find__modes button:hover, .jj-find__first button:hover { border-color: var(--jj-gold); }
.jj-find__turn { margin: 8px 0 0; color: var(--jj-muted); font-size: 0.92rem; }
.jj-find__turn b { color: var(--jj-burgundy); }
.jj-find__turn b.is-opp { color: var(--jj-wine); }
.jj-find__turn[hidden] { display: none; }
.jj-find kbd { display: inline-block; padding: 0 5px; border: 1px solid var(--jj-line); border-bottom-width: 2px; border-radius: 5px; background: #fff; font: 600 0.82em/1.5 ui-monospace, Consolas, monospace; color: var(--jj-ink); }
.jj-find__box { display: grid; gap: 6px; margin-top: 12px; padding: 10px; border: 1px solid rgba(171, 163, 97, 0.45); border-radius: 14px; background: linear-gradient(135deg, #f6fadf, #e9f2cf); }
.jj-find__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.jj-find__row:nth-child(2) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jj-find__row--calls { grid-template-columns: 2fr 1fr 1fr; }
.jj-find__box button { min-height: 40px; padding: 4px 2px; border: 1px solid var(--jj-line); border-radius: 9px; background: #fff; color: var(--jj-ink); font-size: 1.1rem; font-weight: 800; touch-action: manipulation; }
.jj-find__box button:disabled { opacity: 0.32; cursor: default; }
.jj-find__box button.is-on { background: var(--jj-gold); border-color: var(--jj-gold); color: var(--jj-burgundy); }
.jj-find__box.is-pending [data-den]:not(:disabled), .jj-find__box button.is-flash { border-color: var(--jj-gold); box-shadow: 0 0 0 2px rgba(171, 163, 97, 0.35); }
.jj-find__box .jj-find__pas { background: #2f7d3a; border-color: #2f7d3a; color: #fff; }
.jj-find__box .jj-find__x { background: #b0261d; border-color: #b0261d; color: #fff; }
.jj-find__box .jj-find__xx { background: #1b4f8a; border-color: #1b4f8a; color: #fff; }
.jj-find__hint { margin: 10px 0 0; color: var(--jj-muted); font-size: 0.82rem; line-height: 1.7; }
@media (hover: none) and (pointer: coarse) { .jj-find__hint { display: none; } }
.jj-find__out { min-width: 0; }
.jj-find__out > p:first-child { margin-top: 0; }
.jj-find__muted { color: var(--jj-muted); }
.jj-find__err { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #fbeee9; color: #8a2a1a; }
.jj-find__steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--jj-line); border-radius: 14px; background: #fff; overflow: hidden; }
.jj-find__step { display: flex; align-items: baseline; gap: 12px; padding: 9px 12px; }
.jj-find__step + .jj-find__step { border-top: 1px solid rgba(66, 12, 20, 0.08); }
.jj-find__step.is-opp { background: rgba(239, 247, 207, 0.55); }
.jj-find__step.is-auto { padding-top: 4px; padding-bottom: 4px; font-size: 0.86rem; }
.jj-find__step.is-last { background: rgba(171, 163, 97, 0.2); box-shadow: inset 4px 0 0 var(--jj-gold); }
.jj-find__step.is-miss { background: #fbeee9; box-shadow: inset 4px 0 0 #b0261d; }
.jj-find__step.is-rest { opacity: 0.55; }
.jj-find__call { flex: none; min-width: 3.4em; font-weight: 800; white-space: nowrap; }
.jj-find__step.is-opp .jj-find__call { color: var(--jj-muted); }
.jj-find__body { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.jj-find__mean { display: block; }
.jj-find__mean + .jj-find__mean { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--jj-line); }
.jj-find__src { color: var(--jj-wine); font-size: 0.85em; text-decoration: none; white-space: nowrap; }
.jj-find__src:hover { text-decoration: underline; }
.jj-find__var { margin: 3px 0 0; padding-left: 1.4em; color: var(--jj-muted); font-size: 0.9em; }
.jj-find__alts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.jj-find__alts button { padding: 2px 9px; border: 1px solid var(--jj-line); border-radius: 999px; background: #fff; color: var(--jj-muted); font-size: 0.82rem; }
.jj-find__alts button.is-on { background: var(--jj-wine); border-color: var(--jj-wine); color: #fff; }
.jj-find__cut { flex: none; align-self: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--jj-wine); font-size: 1rem; }
.jj-find__cut:hover { border-color: var(--jj-line); background: #fff; }
.jj-find__links { margin: 10px 2px 0; font-size: 0.92rem; }
.jj-find__links a { color: var(--jj-wine); font-weight: 700; text-decoration: none; }
.jj-find__links a:hover { text-decoration: underline; }
.jj-find__h { margin: 18px 0 8px; color: var(--jj-wine); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.jj-find__out > .jj-find__h:first-child { margin-top: 0; }
.jj-find__opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-height: 420px; overflow: auto; overscroll-behavior: contain; }
.jj-find__opts button { display: flex; align-items: baseline; gap: 10px; width: 100%; height: 100%; padding: 8px 10px; border: 1px solid var(--jj-line); border-radius: 10px; background: #fff; color: var(--jj-ink); text-align: left; line-height: 1.35; }
.jj-find__opts button:hover, .jj-find__opts button:focus-visible { border-color: var(--jj-gold); background: #fbfdf0; }
.jj-find__opts .jj-find__call { min-width: 3em; }
.jj-find__opts .jj-find__body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9rem; }
.jj-find__opts.is-opp button { background: #fbfdf0; }
.jj-find__opts.is-opp .jj-find__call { color: var(--jj-muted); }
.jj-find__more { padding: 0 6px; border-radius: 999px; background: rgba(171, 163, 97, 0.25); color: var(--jj-burgundy); font-size: 0.75rem; font-weight: 700; }
.jj-find__end { margin: 14px 2px 0; }
@media (max-width: 520px) {
  .jj-find { padding: 16px 12px; border-radius: 16px; }
  .jj-find__box button { min-height: 44px; }
  .jj-find__step { gap: 8px; padding: 8px 10px; }
  .jj-find__call { min-width: 2.9em; }
  .jj-find__opts { grid-template-columns: 1fr; max-height: 360px; }
}
