.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header__inner,
.site-footer__inner {
  width: min(100%, var(--content-narrow));
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.page-shell--home .site-header__inner,
.page-shell--home .site-footer__inner {
  width: min(100%, 56rem);
}

.page-shell--content-wide .site-header__inner,
.page-shell--content-wide .site-footer__inner,
.page-shell--content-wide .site-main {
  width: min(100%, 56rem);
}

.site-footer__inner {
  justify-content: center;
}

.site-brand,
.admin-brand,
.hero__title,
.page-title,
.post-detail__title,
.post-card__title,
.admin-section__title,
.auth-title,
.stat-card__value,
.empty-state__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
}

.site-brand {
  order: 1;
  font-size: 1.5rem;
  line-height: 2rem;
}

.site-header__topline {
  display: contents;
}

.site-brand:hover,
.admin-brand:hover {
  color: var(--muted-foreground);
}

.site-nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

/* Odkazy menu jsou samostatna skupina, aby prepinac rezimu zustal oddeleny. */
/* CF-210 */
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Popisky polozek menu se nelamou uvnitr; pri nedostatku mista se zalamuji cele polozky. */
/* CF-210 */
.site-nav__links a {
  white-space: nowrap;
}

.site-nav__theme-toggle {
  order: 3;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-nav__theme-toggle:hover {
  color: var(--foreground);
}

.site-nav__dropdown {
  position: relative;
}

.site-nav__dropdown summary {
  list-style: none;
  cursor: pointer;
}

.site-nav__dropdown summary::-webkit-details-marker {
  display: none;
}

.site-nav__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 10;
  min-width: 12rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.site-nav__menu a {
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius);
}

.site-nav__menu a:hover {
  background: var(--accent);
}

.site-nav a:hover,
.link-inline:hover,
.back-link:hover,
.app-link:hover,
.auth-toggle:hover,
.admin-nav a:hover {
  color: var(--foreground);
}

.site-main {
  flex: 1;
  width: min(100%, var(--content-wide));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-shell--home .site-main {
  width: min(100%, 56rem);
}

.site-main--narrow {
  width: min(100%, var(--content-narrow));
}

.hero {
  padding: 3rem 0 1.5rem;
}

.hero--compact {
  padding: 1.25rem 0 0.5rem;
}

.page-shell--home .hero--compact {
  padding: 2rem 0 1.35rem;
  margin-bottom: 0.85rem;
  text-align: justify;
  text-justify: inter-word;
}

.page-shell--home .hero--compact.hero--compact-without-title {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.2rem;
}

.page-shell--home .hero--compact .hero__subtitle {
  margin: 0;
  width: 100%;
  max-width: none;
}

.page-shell--home .hero--compact .hero__title {
  text-align: center;
}

.home-hero-divider {
  width: 2.25rem;
  margin: 0 auto 0.85rem;
  border: 0;
  border-top: 1px solid var(--border);
  opacity: 0.85;
}

.page-shell--home .hero--compact .home-hero-divider:last-child {
  margin: 1.1rem auto 0;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: 2.25rem;
  line-height: 1.1;
}

.hero--compact .hero__title {
  font-size: 1.75rem;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.hero__subtitle,
.post-detail__content p {
  margin: 0;
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.hero__subtitle a {
  color: inherit;
  text-decoration: underline;
}

.italic-muted {
  color: var(--muted-foreground);
  font-style: italic;
}

.stack-lg {
  margin-top: 1rem;
}

.stack-xl {
  margin-top: 2rem;
}

.home-pagination {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.page-shell--home .site-footer {
  margin-top: 1.75rem;
}

.tags-tile {
  padding: 1.5rem;
}

.tags-tile--filters {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
}

.tags-tile--results {
  padding: 1rem 1.25rem;
}

.tags-tile__search {
  margin-top: 0.25rem;
  width: 100%;
}

.tags-tile--filters .admin-search-field {
  max-width: none;
  width: 100%;
}

.tags-tile--filters .admin-search-field .input {
  border-radius: 1rem;
  padding-right: 2.5rem;
}

/* Lupa zůstává vlevo, zrušení dotazu má samostatné místo vpravo. */
/* CF-130 */
.tags-tile--filters .admin-search-field__icon--clear {
  left: auto;
  right: 0.625rem;
}

.tags-tile__title,
.app-links__label,
.post-card__meta,
.detail-meta,
.stat-card__label {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}

.tags-tile__title,
.app-links__label,
.post-card__meta time,
.detail-meta time,
.stat-card__label {
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tags-tile__title {
  margin-bottom: 0.75rem;
}

.tags-tile--results .tags-tile__title {
  margin-bottom: 0.25rem;
}

.results-summary__meta {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.2rem;
  color: var(--muted-foreground);
}

.home-empty {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--muted-foreground);
}

.home-faq {
  padding: 1rem 1.25rem;
}

.home-faq__list {
  display: grid;
  gap: 0.5rem;
}

.home-faq__item {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
}

.home-faq__question {
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.35;
  font-weight: 500;
}

.home-faq__answer {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.home-faq--page {
  padding: 0;
}

.home-faq--page .home-faq__list {
  gap: 0.875rem;
}

.home-faq--page .home-faq__item {
  border: 0;
  border-radius: 0;
  padding: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-tags {
  margin-top: 0.5rem;
}

.detail-tags--end {
  margin-top: 1rem;
}

.post-detail__tags-signature {
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.post-detail__tags-signature .detail-tags--end {
  margin-top: 0;
  flex: 1;
  min-width: 0;
}

.detail-tags .tag {
  font-size: 0.75rem;
  line-height: 1rem;
  font-style: italic;
}

.app-links__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.tag--active,
.tag:hover {
  color: var(--foreground);
}

.tag--static {
  pointer-events: none;
}

.masonry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 4rem;
}

.masonry-columns {
  display: none;
  padding-bottom: 4rem;
}

.masonry-columns__column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.featured-grid--with-hero {
  margin-top: 1rem;
}

.post-card--featured {
  border-width: 1px;
}

.masonry__item {
  min-width: 0;
}

.post-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
}

.post-card__image-link,
.post-card__body-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-card__image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card__image--solo {
  min-height: 100%;
}

.post-card--image-only .post-card__image {
  aspect-ratio: 4 / 5;
}

.post-card:hover .post-card__image {
  transform: scale(1.02);
}

.page-shell--home .post-card__image-wrap {
  aspect-ratio: auto;
  overflow: visible;
}

.page-shell--home .post-card__image,
.page-shell--home .post-card--image-only .post-card__image {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.page-shell--home .post-card:hover .post-card__image {
  transform: none;
}

.post-card__content,
.post-card--text {
  padding: 1.25rem;
}

.post-card__meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.post-card__title {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--foreground);
  transition: color 0.2s ease;
}

.post-card:hover .post-card__title {
  color: rgba(35, 33, 39, 0.7);
}

.post-card__tags {
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-shell--home .post-card__tags {
  color: rgba(139, 135, 148, 0.9);
  margin-top: 0.65rem;
}

.post-card__tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-style: normal;
}

.post-card__tag-link:hover {
  color: var(--foreground);
  border-color: var(--foreground);
}

.post-card__excerpt {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.post-card--block {
  background: rgba(255, 255, 255, 0.74);
}

.post-card--block-banner {
  overflow: hidden;
}

.post-card--block-ad {
  padding: 1rem;
}

.post-card__ad-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.post-card__ad-slot {
  min-height: 6rem;
}

.post-card__footer {
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.post-card__footer .post-card__tags {
  margin-top: 0;
}

.post-card__author {
  margin-left: auto;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
  text-decoration: none;
  white-space: nowrap;
}

.post-card__author:hover {
  color: var(--foreground);
}

.app-links {
  padding: 1.5rem 0;
}

.app-links__label {
  margin-bottom: 1rem;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) repeat(3, minmax(0, 2fr));
  align-items: start;
  gap: 1.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}

.site-footer__brand-block {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.site-footer__spacer {
  min-height: 1px;
}

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--foreground);
}

.site-footer__tag {
  margin: 0;
  max-width: 24rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.foot-col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  align-self: start;
}

.foot-col h5 {
  margin: 0;
  min-height: 1rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foreground);
}

.foot-col a {
  width: fit-content;
}

.site-footer__bottom {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.site-footer__legal {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  text-align: center;
}

.site-footer__legal,
.site-footer__legal a,
.site-footer__link {
  color: inherit;
}

.site-footer__link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__link:hover {
  color: var(--foreground);
}

.page-block {
  padding: 4rem 0;
}

.post-detail {
  padding: 2rem 0 4rem;
}

.page-title,
.post-detail__title {
  margin: 0;
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.page-title--mb {
  margin-bottom: 1.5rem;
}

.about-copy {
  display: grid;
  gap: 1rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(35, 33, 39, 0.8);
}

.about-copy--author {
  display: block;
}

.about-copy--author::after {
  content: "";
  display: block;
  clear: both;
}

.about-copy p {
  margin: 0;
}

.policy-copy {
  gap: 1.5rem;
}

.policy-copy--richtext {
  display: block;
  line-height: 1.8;
}

.policy-section {
  display: grid;
  gap: 0.75rem;
}

.policy-section .post-detail__heading {
  margin: 0;
}

.policy-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.policy-copy--richtext a {
  color: inherit;
  text-decoration: underline;
}

.author-avatar-wrap {
  margin-bottom: 1rem;
}

.author-avatar-wrap--float {
  float: left;
  margin: 0 1rem 0.5rem 0;
}

.author-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.author-avatar--sm {
  width: 1.5rem;
  height: 1.5rem;
}

.author-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-inline {
  color: inherit;
}

.about-contact-block {
  margin-top: 1.5rem;
}

.about-contact-block .post-detail__heading {
  margin-bottom: 0.75rem;
}

.about-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}

.about-social__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.5rem;
  padding: 0;
  color: rgba(35, 33, 39, 0.82);
  background: transparent;
}

.about-social__item--disabled {
  color: var(--muted-foreground);
}

.about-social__item .icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
}

.about-social .link-inline,
.about-social .link-inline:hover {
  color: inherit;
}

.back-link {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.post-detail__title {
  margin-top: 1rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.post-detail__image-wrap {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-detail__image {
  display: block;
  width: 100%;
  height: auto;
}

.post-detail__content {
  margin-top: 0;
}

.post-detail__content p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(35, 33, 39, 0.82);
}

.post-detail__heading {
  margin: 2rem 0 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 400;
}

.post-detail__figure {
  margin: 0 0 1.5rem;
  width: 100%;
}

.post-detail__embed {
  margin: 0 0 1.5rem;
  width: 100%;
}

.post-detail__embed-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  aspect-ratio: 16 / 9;
}

.post-detail__embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-detail__inline-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.post-detail__caption {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  font-style: italic;
}

.post-detail__caption p {
  margin: 0;
  max-width: none;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.post-detail__caption p + p {
  margin-top: 0.65rem;
}

.post-detail__quote {
  margin: 0 0 1.5rem;
  padding: 0;
}

.post-detail__quote p {
  margin: 0;
  color: rgba(35, 33, 39, 0.84);
  font-size: 1.05rem;
  line-height: 1.85;
  font-style: italic;
}

.post-detail__quote-mark {
  font-size: 1.25em;
  line-height: 0;
}

.post-detail__list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.post-detail__list li {
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(35, 33, 39, 0.82);
}

.post-detail__explanation {
  margin: 2rem 0 1.5rem;
  padding: 1rem 1.1rem;
  background: rgba(35, 33, 39, 0.055);
  border-radius: var(--radius);
  color: rgba(35, 33, 39, 0.82);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.post-detail__explanation p,
.post-detail__explanation div {
  margin: 0;
}

/* Pevný obrázek omezuje rozdílné vyhlazení ikon za textem při zmenšeném zobrazení. */
/* CF-154 */
.post-detail__content > p a[href]::after,
.post-detail__explanation a[href]::after {
  content: '';
  display: inline-block;
  width: 12.5px;
  height: 12.5px;
  margin-left: 0.2em;
  vertical-align: calc(0.05em - 1px);
  background: url('/assets/images/external-link-1x.png') center / contain no-repeat;
  opacity: 0.82;
}

html[data-theme='dark'] .post-detail__content > p a[href]::after,
html[data-theme='dark'] .post-detail__explanation a[href]::after {
  filter: invert(1);
}

/* Sjednocuje meta řádek detailu příspěvku bez zrušení pravé kotvy délky čtení.
   CF-155 */
.detail-meta--post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.detail-meta--post time {
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.detail-meta__primary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.detail-meta__path {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.detail-meta__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-meta__link:hover {
  color: var(--foreground);
}

.detail-meta__reading-time {
  margin-left: auto;
  white-space: nowrap;
}

.post-detail__signature {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.post-detail__tags-signature .post-detail__signature {
  margin-top: 0;
  margin-left: auto;
}

.post-detail__related {
  margin-top: 1rem;
}

.post-detail__share {
  margin-top: 1.25rem;
}

.post-detail__share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.post-detail__share-button {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: auto;
  padding: 0;
}

.post-detail__share-button .icon {
  width: 1rem;
  height: 1rem;
}

.post-detail__share-feedback {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
}

@media print {
  .site-header,
  .site-footer,
  .back-link,
  .post-detail__share,
  .post-detail__related {
    display: none !important;
  }

  .page-shell,
  .site-main,
  .site-main--narrow {
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .post-detail {
    margin: 0 !important;
    padding: 0 !important;
  }

  .detail-meta--post {
    margin-top: 0 !important;
  }

  .post-detail__tags-signature {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .post-detail__image-wrap,
  .post-detail__figure,
  .post-detail__embed,
  .post-detail__quote,
  .post-detail__list {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

.empty-state {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--background);
}

.empty-state__panel {
  text-align: center;
}

.empty-state__title {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
}

.empty-state__copy {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}

.empty-state__link {
  color: var(--foreground);
  text-decoration: underline;
}

.empty-state__link:hover {
  opacity: 0.9;
}

.icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.icon--md {
  width: 1.25rem;
  height: 1.25rem;
}

.icon--xl {
  width: 3rem;
  height: 3rem;
}

.icon--muted {
  color: var(--muted-foreground);
}

.icon--ghost {
  color: rgba(139, 135, 148, 0.4);
}

.icon--faded {
  color: rgba(139, 135, 148, 0.3);
}

/* Cookie consent lišta — statický blok pod patičkou, aby nezakrýval obsah; respektuje světlý i tmavý režim. */
/* CF-208 */
.cookie-consent {
  background: var(--card);
  border-top: 1px solid var(--border);
}

.cookie-consent__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0.875rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.cookie-consent__text {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.cookie-consent__text a {
  color: inherit;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

/* Návod k přidání webu na plochu doplňuje PWA install prompt tam, kde jej prohlížeč neumí vyvolat přímo. */
/* CF-154 */
.app-install-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 1rem;
  display: grid;
  place-items: center;
  background: rgba(20, 18, 24, 0.34);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  color: var(--foreground);
}

.app-install-modal:not([open]) {
  display: none;
}

.app-install-modal::backdrop {
  background: transparent;
}

.app-install-modal__panel {
  width: min(100%, 26rem);
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 3);
  box-shadow: var(--shadow-md);
}

.app-install-modal__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--foreground);
}

.app-install-modal__text {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.app-install-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Dialog doplňuje výraznější obrys ke sdíleným barvám tlačítka. */
/* CF-154 */
.app-install-modal .button-outline {
  border-color: var(--muted-foreground);
}

.app-install-modal .button-outline:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
}
