.md body {
    font-size: 0.3rem;
}

.md-typeset blockquote {
  color: var(--md-default-fg-color)
}

.md-typeset .footnote {
  font-size: .74rem;
  color: var(--md-default-fg-color--light);
}

.md-grid {
  max-width: 65rem; /* Rozšíření vnitřního bloku - na stránku se vleze více informací horizontálně, default je 61rem */
}

table:not([class]) {
    font-size: px5rem(14.7px);
}

.md-typeset table:not([class]) {
    font-size: .74rem;
}

.md-typeset .admonition, .md-typeset details {
    font-size: .74rem;
}

.md-nav__title {
  font-size: .84rem;
}

.md-nav__link .md-ellipsis  { 
  font-size: .84rem;
}

.md-nav__link .md-typeset  { 
  font-size: .84rem;
}

.md-tabs .md-tabs__link {
  font-size: .74rem;
}

.md-typeset {
  font-size: .84rem;
}

:root {
    --md-primary-fg-color:#315399;
    --md-primary-fg-color--dark:#00AEEF;
}

.done {
    color: #16e639;
}

.notdone {
    color: #e5e8e6;
}

.inprogress {
    color: #5154b2;
}

.invariant {
    color: #0b9f24;
}

.green {
  color: #0b9f24;
}

/*
.ending {
    background-color: rgba(192, 187, 187, 0.173);
}
*/

.noun-ending {
    background-color: rgba(192, 187, 187, 0.173);
}

.pronoun-ending {
    background-color: rgba(192, 187, 187, 0.173);
}

.numeral-ending {
    background-color: rgba(192, 187, 187, 0.173);
}

.adjective-ending {
    background-color: rgba(192, 187, 187, 0.173);
}

.verb-ending {
    background-color: rgba(192, 187, 187, 0.173);
}

.preposition {
    background-color: rgba(192, 187, 187, 0.173);
}

.emphasis {
    background-color: rgba(192, 187, 187, 0.173);
}


.date-picker-wrapper {
    display: inline-block;
    cursor: pointer; /* Ensure the pointer shows over the entire wrapper */
}

#datePicker {
  cursor: inherit;
}

.output {
    margin-top: 10px;
    font-size: 2em;
    font-weight: bold;
}

.error {
    color: red;
    font-size: 1em;
    margin-top: 10px;
}

.output-table {
  margin-top: 20px;
  border-collapse: collapse;
  width: 80%;
}

.output-table, .output-table th, .output-table td {
  border: 1px solid black;
}

.output-table th, .output-table td {
  padding: 8px;
  text-align: center;
}

:root {
  --md-admonition-icon--exercise: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-cpu-fill" viewBox="0 0 16 16"><path d="M5.5.5a.5.5 0 0 0-1 0V2A2.5 2.5 0 0 0 2 4.5H.5a.5.5 0 0 0 0 1H2v1H.5a.5.5 0 0 0 0 1H2v1H.5a.5.5 0 0 0 0 1H2v1H.5a.5.5 0 0 0 0 1H2A2.5 2.5 0 0 0 4.5 14v1.5a.5.5 0 0 0 1 0V14h1v1.5a.5.5 0 0 0 1 0V14h1v1.5a.5.5 0 0 0 1 0V14h1v1.5a.5.5 0 0 0 1 0V14a2.5 2.5 0 0 0 2.5-2.5h1.5a.5.5 0 0 0 0-1H14v-1h1.5a.5.5 0 0 0 0-1H14v-1h1.5a.5.5 0 0 0 0-1H14v-1h1.5a.5.5 0 0 0 0-1H14A2.5 2.5 0 0 0 11.5 2V.5a.5.5 0 0 0-1 0V2h-1V.5a.5.5 0 0 0-1 0V2h-1V.5a.5.5 0 0 0-1 0V2h-1zm1 4.5h3A1.5 1.5 0 0 1 11 6.5v3A1.5 1.5 0 0 1 9.5 11h-3A1.5 1.5 0 0 1 5 9.5v-3A1.5 1.5 0 0 1 6.5 5"/></svg>')
}
.md-typeset .admonition.exercise,
.md-typeset details.exercise {
  border-color: rgb(43, 155, 70) !important;
}
.md-typeset .exercise > .admonition-title,
.md-typeset .exercise > summary {
  background-color: rgba(43, 155, 70, 0.1);
}
.md-typeset .exercise > .admonition-title::before,
.md-typeset .exercise > summary::before {
  background-color: rgb(43, 155, 70);
  -webkit-mask-image: var(--md-admonition-icon--exercise);
          mask-image: var(--md-admonition-icon--exercise);
}

/* Pro audio soubory, aby se ikona zobrazila s kurzorem jako odkaz */

.play-sound {
  cursor: pointer;
  color: var(--md-typeset-a-color);
  text-decoration: underline;
}
.play-sound:hover {
  color: var(--md-accent-fg-color);
}

/* ========== ENDINGS TOGGLES ========== */

.ending {
  transition: all 0.2s ease;
}

/* Toggle 1: highlight endings */
.endings-highlight .ending {
  font-weight: 700;
}

/* Toggle 2: gender colors */
.endings-gender .ending {
  font-weight: 700;
}

.endings-gender .ending[data-gender="Ma"] { color: #65b0ed; }
.endings-gender .ending[data-gender="Mi"] { color: #1971be; }
.endings-gender .ending[data-gender="F"]  { color: #ec407a; }
.endings-gender .ending[data-gender="N"]  { color: #66bb6a; }

/* Toggle 3: hide endings */
.endings-hide .ending {
  color: transparent;
  position: relative;
}

.endings-hide .ending::after {
  content: attr(data-hidden);
  position: absolute;
  left: 0;
  top: 0;
  color: black;           /* <-- explicitly set visible color */
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* Toggle buttons */
.ending-toggles {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.ending-toggles button {
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--md-default-fg-color--light);
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
}

.ending-toggles button.active {
  background: var(--md-primary-fg-color);
  color: white;
  border-color: var(--md-primary-fg-color);
}

/* For highlighting all words */
/* Gender colors */
:root{
  --gender-ma: #65b0ed;  /* light blue */
  --gender-mi: #1971be;  /* dark blue */
  --gender-f:  #ec407a; /* red */
  --gender-n:  #66bb6a;  /* green */
}

/* Make all gender words bold when gender mode is active */
body.endings-gender .gender-word {
  font-weight: 700;
}

/* Apply colors */
body.endings-gender .gender-ma { color: var(--gender-ma); }
body.endings-gender .gender-mi { color: var(--gender-mi); }
body.endings-gender .gender-f  { color: var(--gender-f); }
body.endings-gender .gender-n  { color: var(--gender-n); }



/* Nový test pro zvětšování písma v tabulce - ChatGPT*/

/* Your original small font for all tables without custom classes */

.table-font-wrapper {
  margin-bottom: 1rem;
}

.table-font-controls {
  margin-bottom: 0.3rem;
}

.table-font-controls button {
  font-size: 0.85rem;
  padding: 0.15em 0.4em;
  margin-right: 0.2em;
  cursor: pointer;
  border: 1px solid var(--md-default-fg-color--light);
  background: transparent;
}

.table-font-controls button:hover {
  background: var(--md-default-fg-color--lightest);
}

/* Default scale */
.resizable-table {
  --table-scale: 1;
}

.md-typeset .resizable-table table:not([class]) {
  font-size: calc(.74rem * var(--table-scale));
}

.table-font-controls button {
  font-size: 0.85rem;           /* base size */
  padding: 0.15em 0.4em;
  margin-right: 0.2em;
  cursor: pointer;
  border: 1px solid var(--md-default-fg-color--light);
  background: transparent;
  line-height: 1;
}

/* Visual meaning */
.table-font-controls button[data-scale="0.9"] {
  font-size: 0.7rem;
}

.table-font-controls button[data-scale="1.0"] {
  font-size: 0.85rem;
}

.table-font-controls button[data-scale="1.2"] {
  font-size: 1.05rem;
}

.table-font-controls button.active {
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  border-color: var(--md-primary-fg-color);
}

/* Pro newsletter form */

/* --- Newsletter container --- */


/* --- Label styling --- */
.md-newsletter label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--md-default-fg-color--light);
  margin-bottom: 0.25rem;
}

/* --- Email input --- */
.md-newsletter input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.md-newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 0 0 2px rgba(41, 98, 255, 0.15);
}


/* --- Result / status message --- */
.md-newsletter #phplist-result {
  margin-top: 0.75rem;
  font-size: 0.84rem;
}

/* --- Success & error states --- */
.md-newsletter .success {
  color: #2e7d32;
}

.md-newsletter .error {
  color: #d32f2f;
}

/* --- Input + button layout --- */
.md-newsletter-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* --- Limit input width --- */
.md-newsletter-row input[type="email"] {
  max-width: 260px;
  flex: 1;
}

/* --- Button alignment --- */
.md-newsletter-row button {
  white-space: nowrap;
}

/* Space between input row and button */
.md-newsletter .md-newsletter-row {
  margin-bottom: 0.75rem;
}

/* Sticky Prirucka Mode toggle in bottom-right corner */
#priruckaToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 9999;
  cursor: pointer;
}

#priruckaToggle input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}

/* Tooltip styling */
#priruckaToggle .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 4px;
  padding: 6px 10px;
  position: absolute;
  bottom: 100%;  /* above the toggle */
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;  /* space above */
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 0.85rem;
}

#priruckaToggle:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Testing Aspectual pairs */
#aspect-search {
  margin: 1.5em 0;
}

#aspect-search input {
  width: 100%;
  padding: 0.5em 1.2em;
  font-size: 1.25em;
  font-weight: 500;
  border-radius: 12px;
  border: 2px solid var(--md-accent-fg-color);
  background: var(--md-default-bg-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

#aspect-search input:focus {
  outline: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

#aspect-search input::placeholder {
  opacity: 0.6;
  font-weight: 400;
}

.result-item {
  padding: 0.4em;
  cursor: pointer;
  font-size: 1.3em;
  font-weight: bold;
}

.result-item:hover {
  background: var(--md-accent-fg-color--transparent);
}

.related-verb {
  margin: 0 0.25em 0.25em 0;
  padding: 0.2em 0.5em;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.related-verb:hover {
  opacity: 0.85;
}

.no-pair-label {
  margin-left: 0.5em;
  font-size: 0.85em;
  opacity: 0.7;
  font-style: italic;
}

/* Keyboard selection highlight */
.result-item.selected {
  background: var(--md-accent-fg-color--transparent);
  outline: 2px solid var(--md-accent-fg-color);
  border-radius: 6px;
}

/* Two-column layout for IMPF/PF */
.pair-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;

  /* Newly for card style */
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 0.5rem;
}

@media (max-width: 700px) {
  .pair-columns {
    grid-template-columns: 1fr;
  }
}

.pair-col {
  padding: 0.2rem 0.6rem;
  /* border-radius: 10px; */
}

/* --- MOBILE (stacked) → horizontal divider --- */
.pair-col + .pair-col {
  border-top: 1px solid var(--md-default-fg-color--lighter);
  padding-top: 1rem;
}

/* --- DESKTOP (2 columns) --- */
@media (min-width: 768px) {
  .pair-columns {
    grid-template-columns: 1fr 1fr;
  }

  /* Remove horizontal divider */
  .pair-col + .pair-col {
    border-top: none;
    padding-top: 0;
  }

  /* Add vertical divider */
  .pair-col + .pair-col {
    border-left: 1px solid var(--md-default-fg-color--lighter);
    padding-left: 1rem;
  }
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* pushes button right */
  gap: 1rem;
  flex-wrap: wrap;
}

.copy-link-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--md-default-fg-color--lighter);
  background: transparent;
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.15s ease;
}

.copy-link-btn:hover {
  opacity: 1;
  background: var(--md-accent-fg-color--transparent);
  border-color: var(--md-accent-fg-color);
}

.copy-link-btn:active {
  transform: scale(0.96);
}



/* To display cardinal or ordinal numeral word */

  #vysledek {
    font-size: 1.6em;
    font-weight: bold;
    margin-top: 0.5em;
  }


/* For sorting vocabulary lists */
/* CZ/EN toggle ONLY (does not touch A A A) */
.table-font-wrapper .cz-en-toggle,
.cz-en-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 10px;

  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  box-shadow: inset 0 0 0 1px var(--md-default-fg-color--light);
}

/* Hover */
.table-font-wrapper .cz-en-toggle:hover,
.cz-en-toggle:hover {
  background: var(--md-default-fg-color--lightest);
}

/* “On” state (when button shows EN) */
.table-font-wrapper .cz-en-toggle[data-state="en"],
.cz-en-toggle[data-state="en"] {
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  box-shadow: none;
}

/* Prevent sticky focus color */
.table-font-wrapper .cz-en-toggle:focus,
.cz-en-toggle:focus {
  outline: none;
}





