/* Lessons built from lekce2/obsah (see lekce2/build): lesson pages, the
   ročník page, the lesson list in the panel. Colours follow the site: its
   navy, light blue and green; the four-colour suits; calls in the colours
   of a bidding box (pas green, X red, XX blue). */

.lekce-clanek,
.lekce-panel {
  --navy: #000080;
  --ink: #1a1a1a;
  --muted: #566074;
  --line: #cfdaea;
  --table: #e6eefb;
  --table-edge: #b9d3ee;
  --tint: #f5f8fc;
  --action: #007f00;
  --action-dark: #005e00;
  --ok: #1d7a1d;
  --bad: #b3261e;
  --pass: #2e8b3d;
  --double: #c62828;
  --redouble: #1f4fb3;
  --note: #fff4d6;
  --note-edge: #d9a400;
  --note-ink: #6b4b00;
  --spades: #2e2e94;
  --hearts: #d40000;
  --diamonds: #c45f00;
  --clubs: #22800a;
  --back: #23408f;
  --back-2: #2f55b5;
  color: var(--ink);
}

.lekce-clanek {
  line-height: 1.6;
  text-align: left;
}

.lekce-clanek p,
.lekce-clanek li {
  font-size: 16px;
}

.lekce-clanek p {
  margin: 0.7em 0;
}

.lekce-clanek a,
.lekce-panel a {
  color: var(--navy);
  font-size: inherit;
  font-weight: inherit;
}

.lekce-clanek h2 {
  margin: 1.6em 0 0.5em;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.3;
  text-align: left;
}

.lekce-clanek h3 {
  margin: 1.2em 0 0.4em;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.35;
  text-align: left;
}

.lekce-clanek :focus-visible {
  outline: 3px solid var(--redouble);
  outline-offset: 2px;
}

.suit--s { color: var(--spades); }
.suit--h { color: var(--hearts); }
.suit--d { color: var(--diamonds); }
.suit--c { color: var(--clubs); }

/* ---- Buttons ---- */

.lekce-clanek .lekce-button {
  min-height: 40px;
  padding: 0.35em 1.1em;
  border: 0;
  border-radius: 6px;
  background: var(--action);
  color: #fff;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.lekce-clanek .lekce-button:hover {
  background: var(--action-dark);
}

.lekce-clanek .lekce-button:disabled {
  background: #9aa3b2;
  cursor: default;
}

.lekce-clanek .lekce-link {
  padding: 0.2em 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---- Lesson header ---- */

.lesson-head {
  position: relative;
  margin-bottom: 1.5em;
  padding-bottom: 1.2em;
  border-bottom: 2px solid var(--table-edge);
}

.lekce-clanek .lesson-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 1em;
  padding: 0.3em 0.9em 0.3em 0.75em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tint);
  color: var(--navy);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.lekce-clanek .lesson-back:hover {
  border-color: var(--navy);
  background: #fff;
}

.lesson-back__chevron {
  width: 0.45em;
  height: 0.45em;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}


.lekce-clanek .lesson-head__title {
  margin: 0;
  color: var(--navy);
  font-size: 27px;
  line-height: 1.3;
  text-align: left;
}

/* room above the title for the háček of Š, Č, Ř */
.lesson-head__number,
.rocnik-head__number {
  display: block;
  margin-bottom: 0.35em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.3;
}

.lekce-clanek .lesson-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em 0.9em;
  margin: 0.7em 0 0;
  color: var(--muted);
  font-size: 14px;
}

.kind {
  display: inline-block;
  padding: 0.1em 0.6em;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.6;
}

.kind--drazba { background: #e7e9fb; color: var(--spades); }
.kind--sehravka { background: #e3f3df; color: #1d6b0b; }
.kind--obrana { background: #fbe7e5; color: #9b211a; }
.kind--bridge-master { background: #fdecd9; color: #8f4500; }

/* Video: a picture and a link until clicked, so YouTube loads only then. */

.lesson-video {
  display: block;
  margin-top: 1em;
}

.lesson-video__link {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.4em 1em 0.4em 0.4em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.lekce-clanek a.lesson-video__link {
  color: var(--ink);
  text-decoration: none;
}

.lesson-video__link:hover {
  background: var(--tint);
}

.lesson-video__thumb {
  display: block;
  width: 128px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: #0b1530;
}

.lesson-video__text {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.lesson-video__title {
  font-weight: bold;
}

.lesson-video__play {
  position: relative;
  padding-left: 1.3em;
  color: var(--navy);
  font-size: 15px;
}

.lesson-video__play::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 0.4em 0 0.4em 0.7em;
  border-color: transparent transparent transparent var(--hearts);
}

.lesson-video.is-playing {
  max-width: 640px;
}

.lesson-video__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}

/* Trainer notes: one switch in the header, amber notes in the text. */

.lektor-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 0.8em;
  padding: 0.25em 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.lektor-switch__track {
  position: relative;
  width: 2em;
  height: 1.1em;
  border-radius: 999px;
  background: #dde1e7;
  transition: background 0.15s;
}

.lektor-switch__track::after {
  content: "";
  position: absolute;
  top: 0.15em;
  left: 0.15em;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.lektor-switch[aria-pressed="true"] .lektor-switch__track {
  background: var(--note-edge);
}

.lektor-switch[aria-pressed="true"] .lektor-switch__track::after {
  transform: translateX(0.9em);
}

.lekce-clanek .lektor {
  margin: 1em 0;
  padding: 0.35em 0.9em;
  border-left: 4px solid var(--note-edge);
  border-radius: 0 6px 6px 0;
  background: var(--note);
}

.lektor > summary {
  color: var(--note-ink);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.lektor__body > :first-child {
  margin-top: 0.4em;
}

/* ---- Examples ---- */

.examples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1.8rem 1.5rem;
  margin: 1.4rem 0 2rem;
}

.example {
  grid-column: 1 / -1;
  min-width: 0;
}

.example--compact {
  grid-column: auto;
}

/* room for a whole row of the bidding box */
.examples:has(> .example--bidding) {
  grid-template-columns: repeat(auto-fill, minmax(19.5rem, 1fr));
}

.lekce-clanek .example__heading {
  margin: 0 0 0.6em;
  padding-top: 0.6em;
  border-top: 2px solid var(--table-edge);
  font-size: 16px;
}

/* ---- Board: the hands around a duplicate board ---- */

bridge-deal {
  display: block;
}

.board__table {
  display: inline-flex;
  flex-direction: column;
  gap: 0.7em;
  padding: 0.8em 1em;
  border: 1px solid var(--table-edge);
  border-radius: 12px;
  background: var(--table);
}

.board--full .board__table {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  grid-template-areas:
    ".  n  ."
    "w  c  e"
    ".  s  .";
  gap: 0.5em 1.1em;
  align-items: center;
  padding: 1em 1.2em;
}

.board--full .hand__seat {
  display: none;
}

.hand--n { grid-area: n; }
.hand--s { grid-area: s; }
.hand--w { grid-area: w; }
.hand--e { grid-area: e; }

.hand {
  position: relative;
  min-width: 0;
}

.lekce-clanek .hand__suits {
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.lekce-clanek .hand__suits li {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.hand__suits .suit {
  display: inline-block;
  width: 1.2em;
}

.hand__void {
  color: var(--muted);
}

.hand__seat {
  display: inline-block;
  min-width: 1.7em;
  margin-bottom: 0.25em;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
}

/* The board in the middle: seats on its edges, the example's number in it. */

.board__center {
  grid-area: c;
  display: grid;
  grid-template-columns: 1.6em 1fr 1.6em;
  grid-template-rows: 1.5em 1fr 1.5em;
  grid-template-areas:
    ".  n  ."
    "w  x  e"
    ".  s  .";
  place-items: center;
  width: 5.4em;
  height: 5.4em;
  border: 1px solid var(--table-edge);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
}

.board__seat--n { grid-area: n; }
.board__seat--s { grid-area: s; }
.board__seat--w { grid-area: w; }
.board__seat--e { grid-area: e; }
.board__seat.is-vul { color: var(--double); }
.board__seat.is-dealer {
  padding: 0 0.3em;
  border-radius: 3px;
  line-height: 1.4;
  background: var(--navy);
  color: #fff;
}
.board__seat.is-dealer.is-vul { background: var(--double); }

.board__number {
  grid-area: x;
  color: var(--navy);
  font-size: 22px;
}

.lekce-clanek .board__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 1.6em;
  margin: 0.7em 0 0;
}

.board__facts dt {
  display: inline;
  margin-right: 0.4em;
  color: var(--muted);
  font-size: 14px;
}

.board__facts dd {
  display: inline;
  margin: 0;
  font-weight: bold;
}

.board__fact.is-concealed {
  display: none;
}

.lekce-clanek .board__note {
  margin: 0.5em 0 0;
  color: var(--muted);
  font-style: italic;
}

.lekce-clanek .board__reveal {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 36px;
  margin-top: 0.7em;
  padding: 0.25em 1em 0.25em 0.8em;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.lekce-clanek .board__reveal:hover {
  background: var(--tint);
}

/* a small card back, like the hidden hands */
.board__reveal::before {
  content: "";
  width: 0.75em;
  height: 1em;
  border-radius: 2px;
  background: repeating-linear-gradient(45deg, var(--back) 0 2px, var(--back-2) 2px 4px);
}

/* Hidden hands: one card back each, the same size whatever they hide. */

.hand.is-concealed .hand__suits {
  display: none;
}

.hand.is-concealed::after {
  content: attr(data-seat);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 3.4em;
  height: 4.6em;
  border: 3px solid #fff;
  border-radius: 7px;
  background: repeating-linear-gradient(45deg, var(--back) 0 5px, var(--back-2) 5px 10px);
  box-shadow: 0 0 0 1px var(--table-edge);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-shadow: 0 0 3px var(--back);
}

.board--full .hand.is-concealed {
  justify-self: center;
}

/* N/S boards already label the seat above the card */
.board--ns .hand.is-concealed::after,
.board--hand .hand.is-concealed::after {
  content: "";
}

/* Picking a card for a question */

.hand.is-picking .rank {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 0.15em;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--table-edge);
  background: #fff;
}

.hand.is-picking .rank:hover {
  box-shadow: inset 0 0 0 2px var(--navy);
}

@media (pointer: coarse) {
  .hand.is-picking .rank {
    min-width: 1.9em;
    margin: 0.1em 0;
    line-height: 1.8;
  }
}

.hand .rank.is-picked.is-right {
  background: var(--ok);
  color: #fff;
  box-shadow: none;
}

.hand .rank.is-picked.is-wrong {
  background: var(--bad);
  color: #fff;
  box-shadow: none;
}

/* ---- Calls: bidding-box cards ---- */

.call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5em;
  height: 1.75em;
  padding: 0 0.35em;
  border: 1px solid #c3cbd8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 0 #c3cbd8;
  color: var(--ink);
  font-size: 15px;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

.call .suit {
  margin-left: 0.05em;
}

.call__nt {
  margin-left: 0.1em;
  color: var(--navy);
  font-size: 0.85em;
}

.call--pass {
  border-color: var(--pass);
  background: var(--pass);
  box-shadow: 0 1px 0 #1d6a2b;
  color: #fff;
  font-weight: normal;
}

.call--double {
  border-color: var(--double);
  background: var(--double);
  box-shadow: 0 1px 0 #8f1c1c;
  color: #fff;
}

.call--redouble {
  border-color: var(--redouble);
  background: var(--redouble);
  box-shadow: 0 1px 0 #163a85;
  color: #fff;
}

.call--unknown {
  border: 2px dashed var(--navy);
  box-shadow: none;
  color: var(--navy);
}

.call-group {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.call-group__or {
  color: var(--muted);
  font-size: 12px;
}

/* ---- Auction ---- */

.lekce-clanek .auction {
  margin-top: 0.8em;
  margin-left: -0.25em;
  border-collapse: separate;
  border-spacing: 0.25em 0.3em;
}

.lekce-clanek .auction th {
  padding: 0 0 0.1em;
  border-bottom: 2px solid var(--table-edge);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.lekce-clanek .auction th.is-dealer {
  color: var(--navy);
}

.lekce-clanek .auction th.is-vul {
  color: var(--double);
}

.lekce-clanek .auction td {
  min-width: 2.6em;
  padding: 0;
  text-align: center;
}

.auction td.is-pending > * {
  visibility: hidden;
}

.auction td.is-current {
  border-radius: 6px;
  outline: 2px dashed var(--navy);
  outline-offset: -1px;
}

.auction td.is-right .call {
  box-shadow: 0 0 0 2px var(--ok);
}

.auction td.is-wrong .call {
  box-shadow: 0 0 0 2px var(--bad);
}

/* ---- Bidding box ---- */

.bidding-box {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin: 0.6em 0;
}

.bidding-box__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
}

.lekce-clanek .bid-card {
  min-width: 2.3em;
  min-height: 40px;
  padding: 0 0.5em;
  border: 1px solid #c3cbd8;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 0 #c3cbd8;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.lekce-clanek .bid-card:hover:not(:disabled) {
  border-color: var(--navy);
}

.lekce-clanek .bid-card:disabled {
  opacity: 0.3;
  cursor: default;
}

.lekce-clanek .bid-card--level[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.lekce-clanek .bid-card--pass {
  min-width: 4em;
  border-color: var(--pass);
  background: var(--pass);
  color: #fff;
  font-weight: normal;
}

.lekce-clanek .bid-card--double {
  border-color: var(--double);
  background: var(--double);
  color: #fff;
}

.lekce-clanek .bid-card--redouble {
  border-color: var(--redouble);
  background: var(--redouble);
  color: #fff;
}

.practice {
  margin-top: 0.4em;
}

.lekce-clanek .practice__intro {
  margin: 0.6em 0 0.2em;
  font-size: 15px;
}

.lekce-clanek .practice__status,
.lekce-clanek .question__feedback {
  margin: 0.4em 0;
  font-size: 15px;
}

.lekce-clanek .question__feedback:empty {
  display: none;
}

.lekce-clanek [data-tone="ok"] { color: var(--ok); }
.lekce-clanek [data-tone="bad"] { color: var(--bad); }
.lekce-clanek [data-tone="info"] { color: var(--muted); }

[data-tone] .call {
  height: 1.6em;
  font-size: 13px;
  vertical-align: middle;
}

/* ---- Questions ---- */

.question {
  display: block;
  margin: 1em 0;
  padding: 0.6em 1em 0.7em;
  border-left: 4px solid var(--navy);
  border-radius: 0 8px 8px 0;
  background: var(--tint);
}

.question.is-solved {
  border-left-color: var(--ok);
}

.question__prompt > :first-child {
  margin-top: 0.2em;
}

.lekce-clanek .question__prompt p {
  color: var(--navy);
}

.question__answer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

.lekce-clanek .question__number {
  width: 4em;
  min-height: 40px;
  padding: 0 0.4em;
  border: 1px solid #aab4c4;
  border-radius: 6px;
  font: inherit;
  font-size: 18px;
  text-align: center;
}

.lekce-clanek .question__hint {
  margin: 0.3em 0;
  color: var(--muted);
  font-size: 14px;
}

.lekce-clanek .question__options {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  margin: 0.5em 0;
  padding: 0;
  list-style: none;
}

.lekce-clanek .question__options li {
  margin: 0;
}

.lekce-clanek .question__option {
  width: 100%;
  min-height: 40px;
  padding: 0.4em 0.8em;
  border: 1px solid #aab4c4;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lekce-clanek .question__option:hover:not(:disabled) {
  border-color: var(--navy);
}

.lekce-clanek .question__option.is-right {
  border-color: var(--ok);
  background: #e6f4e3;
}

.lekce-clanek .question__option.is-wrong {
  border-color: var(--bad);
  background: #fbe9e7;
}

.lekce-clanek .question__option:disabled {
  cursor: default;
}

.lekce-clanek .question__option p {
  margin: 0;
}

/* ---- Solutions ---- */

.lekce-clanek .solution {
  margin-top: 0.6em;
}

.solution > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--navy);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}

.solution > summary::-webkit-details-marker {
  display: none;
}

.solution > summary::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.32em 0 0.32em 0.5em;
  border-color: transparent transparent transparent currentColor;
  transition: transform 0.15s;
}

.solution[open] > summary::before {
  transform: rotate(90deg);
}

.solution__body {
  margin-top: 0.3em;
  padding-left: 0.9em;
  border-left: 3px solid var(--table-edge);
}

.solution__body > :first-child {
  margin-top: 0.3em;
}

/* ---- System tables, quiz, literature, suit combinations ---- */

.bids {
  margin: 1em 0 1.4em;
}

.lekce-clanek .bids__title {
  margin-bottom: 0.4em;
  color: var(--navy);
  font-weight: bold;
}

.bids dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35em 1.1em;
  margin: 0;
}

.bids dt {
  font-weight: bold;
  white-space: nowrap;
}

.bids dd {
  margin: 0;
}

.lekce-clanek .bids dd p {
  margin: 0;
}

.lekce-clanek .quiz {
  padding-left: 1.4em;
}

.lekce-clanek .quiz > li {
  margin-bottom: 1em;
  padding-left: 0.3em;
}

.literature {
  margin-top: 2.4em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}

.lekce-clanek .literature h2 {
  font-size: 17px;
}

.lekce-clanek .literature ol {
  padding-left: 1.5em;
}

.lekce-clanek .literature li {
  margin: 0.2em 0;
  font-size: 15px;
}

.suit-combo {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25em;
  margin: 0.4em 0;
  padding: 0.5em 0.9em;
  border: 1px solid var(--table-edge);
  border-radius: 10px;
  background: var(--table);
}

.suit-combo .hand__seat {
  margin: 0 0.5em 0 0;
}

.lekce-clanek table:not(.auction) {
  border-collapse: collapse;
}

.lekce-clanek table:not(.auction) td,
.lekce-clanek table:not(.auction) th {
  padding: 0.25em 0.7em;
  border: 1px solid var(--line);
}

/* ---- Bridge Master ---- */

.bm__frame {
  display: block;
  width: 100%;
  max-width: 640px;
  height: 540px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* ---- Lesson navigation ---- */

.lekce-clanek .lesson-print {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  margin: 2.5em 0 0.8em;
}

.lesson-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8em;
  margin: 1em 0;
}

.lesson-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  padding: 0.7em 1em;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lekce-clanek a.lesson-nav__link {
  color: var(--navy);
  text-decoration: none;
}

a.lesson-nav__link:hover {
  background: var(--tint);
}

.lesson-nav__link--next {
  text-align: right;
}

.lesson-nav__link--empty {
  border: 0;
}

.lesson-nav__label {
  color: var(--muted);
  font-size: 13px;
}

.lesson-nav__title {
  font-weight: bold;
  line-height: 1.35;
}

/* ---- Ročník page and the landing page ---- */

.lekce-clanek .rocnik-extra {
  display: grid;
  gap: 0.9em;
  margin: 1.6em 0 1em;
  padding: 0;
  list-style: none;
}

.lekce-clanek .rocnik-extra li {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  margin: 0;
}

.lekce-clanek .rocnik-extra a {
  font-weight: bold;
}

.lekce-clanek .rocnik-extra span {
  color: var(--muted);
  font-size: 14px;
}

.lekce-clanek .lekce-uvod__old {
  color: var(--muted);
  font-size: 14px;
}

.rocnik-head {
  position: relative;
  margin-bottom: 1.2em;
  padding-bottom: 1em;
  border-bottom: 2px solid var(--table-edge);
}

.lekce-clanek .rocnik-head__title {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.3;
  text-align: left;
}

.lekce-clanek .rocnik-head__motto {
  margin: 0.3em 0 0;
  color: var(--navy);
  font-size: 19px;
  font-style: italic;
}

.lekce-clanek .rocnik-head__summary {
  margin: 0.6em 0 0;
  color: var(--muted);
  font-size: 15px;
}

.lesson-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 1.6em 0 0.8em;
}

.lesson-filter[hidden] {
  display: none;
}

.lekce-clanek .lesson-filter button {
  min-height: 36px;
  padding: 0.2em 0.9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.lekce-clanek .lesson-filter button[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.lekce-clanek .lesson-list {
  margin: 0.4em 0 1.5em;
  padding: 0;
  list-style: none;
}

.lekce-clanek .lesson-list > li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.lesson-list__link {
  display: grid;
  grid-template-columns: 2.2em 1fr auto;
  align-items: baseline;
  gap: 0.2em 0.6em;
  padding: 0.65em 0.3em;
}

.lekce-clanek a.lesson-list__link {
  color: var(--ink);
  text-decoration: none;
}

a.lesson-list__link:hover {
  background: var(--tint);
}

.lesson-list__number {
  color: var(--muted);
  font-weight: bold;
  text-align: right;
}

.lesson-list__title {
  color: var(--navy);
  font-weight: bold;
}

.lesson-list__info {
  grid-column: 2 / 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.8em;
  color: var(--muted);
  font-size: 13px;
}

.lesson-list .kind {
  grid-row: 1;
  grid-column: 3;
}

.lekce-clanek .rocniky {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.8em;
  margin: 1.4em 0;
  padding: 0;
  list-style: none;
}

.lekce-clanek .rocniky > li {
  margin: 0;
}

.rocniky__link {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  box-sizing: border-box;
  height: 100%;
  padding: 0.8em 1em;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.lekce-clanek a.rocniky__link {
  color: var(--ink);
  text-decoration: none;
}

a.rocniky__link:hover {
  border-color: var(--navy);
}

.rocniky__link.is-new {
  border-color: var(--table-edge);
  background: var(--table);
}

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

.rocniky__name {
  color: var(--navy);
  font-size: 19px;
  font-weight: bold;
}

.rocniky__motto {
  font-style: italic;
}

.rocniky__status {
  margin-top: 0.4em;
  color: var(--muted);
  font-size: 13px;
}

.rocniky__link.is-new .rocniky__status {
  color: var(--action-dark);
  font-weight: bold;
}

/* ---- Panel ---- */

.lekce-panel {
  margin: 0 10px 20px;
  text-align: left;
}

.lekce-panel__title {
  margin: 1.2em 0 0.5em;
  color: var(--navy);
  font-size: 14px;
  font-weight: bold;
}

.lekce-panel__rocniky {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lekce-panel__rocniky li {
  margin: 0;
}

.lekce-panel__rocniky a {
  display: block;
  padding: 6px 0;
  border: 1px solid var(--table-edge);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.lekce-panel__rocniky a:hover {
  border-color: var(--navy);
}

.lekce-panel__rocniky a.is-new {
  background: var(--table);
}

.lekce-panel__rocniky a[aria-current] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.lekce-panel__lekce {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.lekce-panel__lekce li {
  margin: 0;
}

.lekce-panel__lekce a {
  display: grid;
  grid-template-columns: 1.9em 1fr;
  gap: 0.3em;
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--ink);
  line-height: 1.35;
  text-decoration: none;
}

.lekce-panel__lekce a:hover {
  background: #fff;
}

.lekce-panel__lekce a[aria-current] {
  background: var(--navy);
  color: #fff;
}

.lekce-panel__lekce a span:first-child {
  color: var(--muted);
  text-align: right;
}

.lekce-panel__lekce a[aria-current] span:first-child {
  color: #c9d3ff;
}


/* ---- Small screens ---- */

@media (max-width: 600px) {
  .lekce-clanek .lesson-head__title {
    font-size: 23px;
  }

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

  .lesson-nav__link--next {
    text-align: left;
  }

  .examples {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 1.6rem 1rem;
  }

  .board--full .board__table {
    gap: 0.4em 0.7em;
    padding: 0.8em 0.7em;
  }

  .lekce-clanek .board--full .hand__suits li {
    font-size: 15px;
  }

  .board__center {
    width: 4.8em;
    height: 4.8em;
  }
}

@media (max-width: 370px) {
  .lekce-clanek .board--full .hand__suits li {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lektor-switch__track,
  .lektor-switch__track::after,
  .solution > summary::before {
    transition: none;
  }
}

/* ---- Print: the lesson alone, as a worksheet or with the answers ---- */

@media print {
  body {
    background: #fff !important;
  }

  .stranka-lekce2 > :not(.content) {
    display: none !important;
  }

  .stranka-lekce2 {
    width: auto !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .stranka-lekce2 .content {
    float: none !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .lesson-video,
  .bm,
  .lektor-switch,
  .lesson-print,
  .lesson-nav,
  .board__reveal,
  .practice,
  .question__answer,
  .question__hint,
  .question__feedback,
  .lesson-filter {
    display: none !important;
  }

  .lekce-clanek .lektor:not([open]),
  .lekce-clanek .solution:not([open]),
  .lesson-back {
    display: none;
  }

  .example,
  .question,
  bridge-deal {
    break-inside: avoid;
  }

  .tisk-s-resenim .hand.is-concealed .hand__suits {
    display: block;
  }

  .tisk-s-resenim .auction td.is-pending > * {
    visibility: visible;
  }

  .tisk-s-resenim .hand.is-concealed::after {
    display: none;
  }

  .tisk-s-resenim .auction tr[hidden] {
    display: table-row;
  }

  .tisk-s-resenim .board__fact.is-concealed {
    display: block;
  }

  .board__table,
  .call,
  .hand.is-concealed::after {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* an alerted call; its explanation is under the diagram */
.call--alert::after {
  content: "*";
  margin-left: 0.1em;
  color: var(--double);
}

.bids dd.bids__note {
  grid-column: 1 / -1;
}

.lekce-clanek .bids--next {
  margin: 0.4em 0 0.2em;
  padding-left: 0.8em;
  border-left: 2px solid var(--table-edge);
}

.lekce-clanek .auction__alerts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15em 0.6em;
  margin: 0.4em 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auction__alerts dt {
  font-weight: bold;
  white-space: nowrap;
}

.auction__alerts dd {
  margin: 0;
}
