/*
Theme Name: Leky Jasne Blue
Theme URI: https://lekyjasne.cz/
Author: Leky Jasne
Description: A fast responsive WordPress theme for medicine and medical device records.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lekyjasne-blue
*/

:root {
  --ink: #0d1b2a;
  --muted: #526276;
  --blue-950: #061a33;
  --blue-900: #073763;
  --blue-800: #0b4f86;
  --blue-700: #0967aa;
  --blue-600: #0879c9;
  --blue-500: #1397df;
  --cyan: #27c1d6;
  --aqua: #e7f7fb;
  --mist: #f4f9fd;
  --line: #d7e6f1;
  --panel: #ffffff;
  --green: #2aa876;
  --orange: #ff7a21;
  --shadow: 0 18px 50px rgba(7, 55, 99, 0.17);
  --soft-shadow: 0 10px 28px rgba(7, 55, 99, 0.105);
  --radius: 8px;
  --max: 1180px;
  --header-max: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(39, 193, 214, 0.16), transparent 34rem),
    linear-gradient(180deg, #f3f9fd 0, #ffffff 34rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-700);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-900);
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell,
.site-header__inner,
.site-footer__inner,
.theme-main {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header__inner {
  width: min(var(--header-max), calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(215, 230, 241, 0.95);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  color: var(--ink);
  text-decoration: none;
}

.site-branding__mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-900), var(--cyan));
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(8, 121, 201, 0.34);
  font-weight: 900;
}

.site-branding__text {
  display: grid;
  min-width: 0;
  line-height: 1.12;
}

.site-title {
  color: var(--blue-950);
  font-size: 1.2rem;
  font-weight: 900;
}

.site-tagline {
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  order: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu a {
  display: block;
  padding: 9px 10px;
  color: var(--ink);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
}

.site-menu a:hover,
.site-menu .current-menu-item > a,
.site-menu .current_page_item > a {
  color: var(--blue-900);
  background: #e6f3fb;
}

.lang-switch {
  position: relative;
  order: 2;
  margin: 0;
  margin-left: 8px;
}

.lang-switch__button {
  display: inline-flex;
  height: 40px;
  min-width: 92px;
  align-items: center;
  gap: 8px;
  padding: 0 34px 0 12px;
  color: var(--blue-950);
  background:
    linear-gradient(45deg, transparent 50%, var(--blue-900) 50%) calc(100% - 16px) 17px / 5px 5px no-repeat,
    linear-gradient(135deg, var(--blue-900) 50%, transparent 50%) calc(100% - 11px) 17px / 5px 5px no-repeat,
    #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(7, 55, 99, 0.08);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.lang-switch__button::-webkit-details-marker {
  display: none;
}

.lang-switch__button::marker {
  content: "";
}

.lang-switch[open] .lang-switch__button,
.lang-switch__button:focus {
  border-color: var(--blue-900);
  outline: 2px solid rgba(8, 121, 201, 0.16);
  outline-offset: 2px;
}

.lang-switch__flag {
  flex: 0 0 auto;
  width: 20px;
  height: 15px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(7, 55, 99, 0.16);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(7, 55, 99, 0.16);
  display: block;
  object-fit: cover;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 60;
  min-width: 112px;
  margin: 0;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(7, 55, 99, 0.21);
  list-style: none;
}

.lang-switch__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  color: var(--blue-950);
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
}

.lang-switch__option:hover,
.lang-switch__option:focus,
.lang-switch__option.is-active {
  color: #fff;
  background: var(--blue-700);
  outline: 0;
}

.site-menu-toggle {
  display: none;
  order: 3;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: var(--blue-900);
  background: #e7f3fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-menu-toggle span,
.site-menu-toggle::before,
.site-menu-toggle::after {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 92px) 0 56px;
}

.hero::after {
  position: absolute;
  inset: auto -14rem -16rem auto;
  z-index: 0;
  width: min(48rem, 56vw);
  height: min(48rem, 56vw);
  background: radial-gradient(circle, rgba(19, 151, 223, 0.24), rgba(19, 151, 223, 0.11) 42%, transparent 72%);
  content: "";
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 62px);
}

.eyebrow,
.hero__eyebrow,
.section-label {
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-title,
.entry-title {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(2.35rem, 5.7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.entry-title {
  font-size: clamp(1.85rem, 4.2vw, 3.45rem);
}

.hero p {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-search,
.search-form {
  display: flex;
  width: 100%;
  max-width: 720px;
  margin-top: 30px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-search input,
.search-form .search-field {
  min-width: 0;
  flex: 1;
  height: 52px;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.button,
.hero-search button,
.search-submit,
.wp-block-button__link,
.spotreba {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(8, 121, 201, 0.31);
  font-weight: 850;
  text-decoration: none !important;
  cursor: pointer;
}

.button.secondary {
  color: var(--blue-900) !important;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.hero-panel {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, #fff, #f6fbfe);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  position: absolute;
  inset: 14px 14px auto auto;
  width: 96px;
  height: 96px;
  background:
    linear-gradient(90deg, rgba(8, 121, 201, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 121, 201, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  content: "";
  mask-image: radial-gradient(circle, #000, transparent 70%);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.metric {
  min-height: 136px;
  padding: 18px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(7, 55, 99, 0.08);
}

.metric strong {
  display: block;
  color: var(--blue-900);
  font-size: clamp(1.75rem, 2.45vw, 2.35rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.theme-main {
  position: relative;
  z-index: 1;
  padding: 48px 0 76px;
}

.section {
  margin-top: 48px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-header h1,
.section-header h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.55rem, 3.2vw, 2.55rem);
  line-height: 1.12;
}

.section-header__description {
  max-width: 52ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.feature-grid,
.term-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.term-card,
.post-card,
.entry-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.feature-card,
.term-card,
.post-card {
  display: grid;
  align-content: start;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.feature-card {
  min-height: 260px;
  padding: 26px;
  overflow: hidden;
}

.feature-card strong {
  display: block;
  color: var(--blue-950);
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1;
}

.feature-card p {
  max-width: 44ch;
  margin: 14px 0 22px;
  color: var(--muted);
}

.feature-card--meds {
  background:
    linear-gradient(135deg, rgba(255, 122, 33, 0.14), transparent 46%),
    #fff;
}

.feature-card--devices {
  background:
    linear-gradient(135deg, rgba(19, 151, 223, 0.16), transparent 48%),
    #fff;
}

.feature-card--veterina {
  background:
    linear-gradient(135deg, rgba(30, 142, 93, 0.14), transparent 48%),
    #fff;
}

.term-card,
.post-card {
  min-height: 142px;
  padding: 20px;
}

.term-card:hover,
.post-card:hover,
.feature-card:hover {
  border-color: #acd6ef;
  transform: translateY(-2px);
}

.term-card strong,
.post-card__title {
  color: var(--blue-950);
  font-size: 1.05rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.term-card span,
.post-card__meta,
.entry-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.91rem;
}

.post-card__excerpt {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.entry-shell {
  padding: clamp(22px, 4vw, 46px);
}

.entry-header {
  margin-bottom: 26px;
}

.entry-content {
  color: #1b2d42;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
#textbody h2,
#textbody h3 {
  margin: 1.45em 0 0.55em;
  color: var(--blue-950);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.entry-content p,
#textbody p {
  margin: 0 0 1rem;
}

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  border: 1px solid var(--line);
}

.entry-shell #wrap {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  color: var(--ink);
}

#headline {
  padding: clamp(22px, 4vw, 42px);
  background: linear-gradient(135deg, #edf8fd, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

#headline h1 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

#toggleDetails,
.dostupnost {
  display: inline-flex;
  margin: 10px 8px 0 0;
  padding: 10px 13px;
  color: var(--blue-900) !important;
  background: #e7f4fb;
  border: 1px solid #c9e4f3;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

/* Revealed dosage form box (legacy #toggleDetails / .details toggle on medicine details). */
.details {
  margin: 12px 0 4px;
  padding: clamp(12px, 2.5vw, 18px);
  background: linear-gradient(135deg, #f3fbfe, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.details p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

#textbody {
  margin-top: 22px;
  padding: clamp(20px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.quick-facts {
  margin: 0 0 28px;
  padding: clamp(16px, 3vw, 24px);
  background: linear-gradient(135deg, #f3fbfe, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-facts h2 {
  margin-top: 0;
}

.entry-content .quick-facts table {
  display: table;
  width: 100%;
  overflow: visible;
  border-collapse: collapse;
}

.quick-facts th,
.quick-facts td {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(215, 230, 241, 0.9);
  vertical-align: top;
}

.quick-facts tr:last-child th,
.quick-facts tr:last-child td {
  border-bottom: 0;
}

.quick-facts th {
  width: 34%;
  padding-right: 18px;
  color: var(--blue-950);
  font-size: 0.92rem;
  text-align: left;
}

.quick-facts td {
  color: #1b2d42;
}

.quick-fact-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 8px 4px 0;
  padding: 5px 11px;
  border-radius: 6px;
  background: #eef6f1;
  color: #126134;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
  vertical-align: middle;
  white-space: nowrap;
}

.quick-fact-status--danger {
  background: #d92d20;
  color: #fff;
}

.quick-fact-status--success {
  background: #138a4f;
  color: #fff;
}

#barchart {
  max-width: 760px;
  margin: 0 0 26px;
  padding: 16px;
  background: #f6fbfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#last {
  margin: clamp(18px, 3vw, 28px) 0 clamp(30px, 5vw, 44px);
  padding: 0 clamp(20px, 4vw, 34px);
  color: #526276;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

#last p {
  margin: 0;
}

#last em {
  font-style: italic;
  letter-spacing: 0;
}

.dokumenty,
.speci {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.dokumenty a,
.speci li {
  display: inline-flex;
  padding: 10px 12px;
  color: var(--blue-900);
  background: #eef8fd;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 760;
  text-decoration: none;
}

.similarheadline {
  margin: 36px 0 14px;
  color: var(--blue-950);
  font-size: 1.25rem;
}

#similar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.tile a {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
}

.tileimg {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.tileimg--placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-600) 56%, var(--cyan) 100%);
}

.tileimg--placeholder::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 50%, var(--cyan) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  content: "";
}

.tile:hover .tileimg--placeholder::after,
.tile:focus-within .tileimg--placeholder::after {
  opacity: 1;
}

.tileheadline {
  color: var(--blue-950);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.faq {
  display: grid;
  gap: 12px;
}

.media-mentions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.media-mention {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 150px;
  padding: 22px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  text-decoration: none;
}

.media-mention:hover,
.media-mention:focus {
  border-color: #acd6ef;
  transform: translateY(-2px);
}

.media-mention strong {
  color: var(--blue-950);
  font-size: 1.08rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.media-mention__cta {
  align-self: end;
  margin-top: 6px;
  color: var(--blue-700);
  font-size: 0.92rem;
  font-weight: 800;
}

.faq__item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.faq__item[open] {
  border-color: #acd6ef;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--blue-950);
  font-size: 1.05rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--blue-700);
  background: #e7f3fb;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  content: "+";
}

.faq__item[open] .faq__q::after {
  content: "\2212";
}

.faq__a {
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq__a p {
  margin: 0;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 12px;
  color: var(--blue-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.page-numbers.current {
  color: #fff;
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.stats-page {
  display: grid;
  gap: 34px;
  justify-items: center;
}

.stats-tool {
  display: grid;
  width: min(760px, 100%);
  justify-items: center;
  padding-top: clamp(16px, 4vw, 38px);
}

.stats-tool__header {
  margin-bottom: 34px;
  text-align: center;
}

.stats-tool__header h1 {
  max-width: 17ch;
  margin: 0 auto;
  color: var(--blue-950);
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stats-tool__header p {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.stats-form {
  display: grid;
  gap: 18px;
  width: min(526px, 100%);
  margin-inline: auto;
  padding: 30px 20px 20px;
  background: #fff;
  border: 1px solid #1b2d42;
  border-radius: 4px;
  box-shadow: 4px 8px 14px rgba(13, 27, 42, 0.235);
}

.stats-form__picker {
  position: relative;
}

.stats-form__picker input[type="search"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d7dce2;
  border-radius: 0;
  outline-color: var(--blue-600);
}

.stats-form__results {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 5;
  max-height: 244px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.stats-form__results button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.stats-form__results button:hover,
.stats-form__results button:focus {
  color: var(--blue-950);
  background: #eef8fd;
}

.stats-form__checks {
  display: grid;
  gap: 8px;
}

.stats-form__checks--separated {
  padding-top: 18px;
  border-top: 1px solid rgba(13, 27, 42, 0.38);
}

.stats-form__checks label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  min-height: 26px;
  color: #000;
}

.stats-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #2d7df0;
}

.stats-form__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.stats-form__dates label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #000;
}

.stats-form__dates input {
  width: 178px;
  height: 44px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #d7dce2;
  border-radius: 6px;
}

.stats-form__submit {
  justify-self: center;
  width: min(340px, 100%);
  min-height: 38px;
  margin-top: 12px;
  color: #fff;
  background: #2d7df0;
  border: 0;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
}

.stats-form__submit:hover,
.stats-form__submit:focus {
  background: var(--blue-900);
}

.stats-metrics {
  width: 100%;
  margin-top: 14px;
}

.stats-guide {
  width: min(820px, 100%);
  color: #1b2d42;
}

.stats-guide h2 {
  margin: 0 0 18px;
  color: var(--blue-950);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.stats-guide h3 {
  margin: 1.45em 0 0.4em;
  color: var(--blue-950);
  font-size: 1.1rem;
  line-height: 1.25;
}

.stats-guide p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  color: #d8edf9;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.9fr);
  gap: clamp(28px, 5vw, 64px);
  padding: 36px 0;
}

.site-footer a {
  color: #fff;
}

.site-footer__brand strong {
  color: #fff;
  font-size: 1.1rem;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: clamp(22px, 3vw, 42px);
}

.site-footer__column h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.footer-menu {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a {
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1240px) {
  .site-menu-toggle {
    display: flex;
  }

  .site-menu {
    order: 3;
  }

  .lang-switch {
    order: 2;
  }

  .site-menu-toggle {
    order: 1;
  }

  .site-menu {
    position: absolute;
    inset: 72px 16px auto;
    display: none;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-menu.is-open {
    display: grid;
  }

  .site-menu a {
    padding: 12px;
    white-space: normal;
  }

  .lang-switch {
    margin-left: 0;
  }

  .hero__grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid,
  .term-grid,
  .post-grid,
  .media-mentions,
  #similar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-tool {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .site-footer__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .site-header__inner,
  .site-footer__inner,
  .theme-main {
    width: min(100% - 22px, var(--max));
  }

  .site-header__inner {
    min-height: 66px;
  }

  .site-branding {
    min-width: 0;
  }

  .site-tagline {
    display: none;
  }

  .hero {
    padding-top: 38px;
  }

  .hero::after {
    display: none;
  }

  .hero-search,
  .search-form {
    display: grid;
    padding: 8px;
  }

  .hero-search button,
  .search-submit {
    width: 100%;
  }

  .metric-grid,
  .feature-grid,
  .term-grid,
  .post-grid,
  .media-mentions,
  #similar {
    grid-template-columns: 1fr;
  }

  .stats-tool__header p {
    margin-top: 32px;
  }

  .stats-form {
    padding: 20px 14px 16px;
  }

  .stats-form__checks label {
    grid-template-columns: minmax(0, 1fr) 24px;
  }

  .stats-form__dates {
    gap: 12px;
  }

  .stats-form__dates label,
  .stats-form__dates input {
    width: 100%;
  }

  .tile a {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .tileimg {
    width: 62px;
    height: 62px;
  }

  .entry-content .quick-facts table,
  .quick-facts tbody,
  .quick-facts tr,
  .quick-facts th,
  .quick-facts td {
    display: block;
    width: 100%;
  }

  .quick-facts th {
    padding: 12px 0 2px;
  }

  .quick-facts td {
    padding: 0 0 12px;
  }
}
