/* WordPress-specifické styly (detail článku, archiv, stránky, komentáře). */

/* ──────────────────────────────────────────────────────────────
   Hlavička na podstránkách (mimo úvodní stránku): bílé pozadí
   a černé prvky – stejný vzhled jako po scrollu, jen vždy.
   ────────────────────────────────────────────────────────────── */
body:not(.home) .site-header,
body:not(.home) .site-header.is-solid {
  background: var(--lidovci-white);
  border-bottom-color: var(--gray-border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

body:not(.home) .site-header .site-brand,
body:not(.home) .site-header.is-solid .site-brand,
body:not(.home) .site-header .header-nav a,
body:not(.home) .site-header.is-solid .header-nav a,
body:not(.home) .site-header .header-social a,
body:not(.home) .site-header.is-solid .header-social a {
  color: var(--lidovci-black);
}

body:not(.home) .site-header .header-social a,
body:not(.home) .site-header.is-solid .header-social a {
  border-color: var(--gray-border);
}

body:not(.home) .site-header .menu-toggle span,
body:not(.home) .site-header.is-solid .menu-toggle span {
  background: var(--lidovci-black);
}

/* Obsah podstránek odsadit pod fixní hlavičku (sekce má vlastní padding). */
body:not(.home) main {
  padding-top: calc(var(--header-height) / 2);
}

.entry {
  max-width: var(--max-width);
  margin: 0 auto;
}

.entry-header {
  margin-bottom: 1.5rem;
}

.entry-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.entry-meta {
  color: var(--gray-muted);
  font-size: 0.95rem;
}

.entry-thumb {
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.entry-content {
  font-size: 1.125rem;
  line-height: 1.7;
}

.entry-content > * + * {
  margin-top: 1.1rem;
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  text-transform: uppercase;
  margin-top: 2rem;
}

.entry-content img {
  border-radius: var(--radius-md);
}

/* Obnova seznamů (hlavní CSS globálně ruší odrážky) */
.entry-content ul,
.entry-content ol {
  margin: 1.1rem 0;
  padding-left: 1.5rem;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin: 0.35rem 0;
}

.entry-content li > ul,
.entry-content li > ol {
  margin: 0.35rem 0;
}

/* Zarovnání obrázků a bloků (classic editor / Advanced Editor Tools) */
.entry-content .aligncenter,
.entry-content figure.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .alignleft {
  float: left;
  margin: 0.4rem 1.5rem 1rem 0;
}

.entry-content .alignright {
  float: right;
  margin: 0.4rem 0 1rem 1.5rem;
}

.entry-content .alignnone {
  margin: 1.1rem 0;
}

.entry-content figure {
  margin: 1.5rem 0;
}

/* Popisky obrázků */
.entry-content .wp-caption {
  max-width: 100%;
}

.entry-content .wp-caption-text,
.entry-content figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-muted);
  text-align: center;
}

/* Tabulky */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 1rem;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--gray-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--gray-light);
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Oddělovač */
.entry-content hr {
  border: 0;
  height: 2px;
  background: var(--gray-border);
  margin: 2rem 0;
}

/* Zarovnání textu z editoru */
.entry-content .has-text-align-center {
  text-align: center;
}

.entry-content .has-text-align-right {
  text-align: right;
}

.entry-content .has-text-align-left {
  text-align: left;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: var(--thick-line) solid var(--lidovci-yellow);
  font-size: 1.2rem;
}

.entry-back {
  margin-top: 2.5rem;
}

.entry-back a {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  border: 2px solid var(--lidovci-black);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.entry-back a:hover {
  background: var(--lidovci-yellow);
}

/* Archiv aktualit */
.archive-header {
  margin-bottom: 2rem;
}

.posts-pagination {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.posts-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.posts-pagination .page-numbers.current,
.posts-pagination .page-numbers:hover {
  background: var(--lidovci-yellow);
  border-color: var(--lidovci-black);
}

/* Tlačítko „Zobrazit vše" pod výpisem aktualit */
.news-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border: 2px solid var(--lidovci-black);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  background: transparent;
  color: var(--lidovci-black);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-pill:hover,
.btn-pill:focus-visible {
  background: var(--lidovci-yellow);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-pill__arrow {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.btn-pill:hover .btn-pill__arrow,
.btn-pill:focus-visible .btn-pill__arrow {
  transform: translateX(4px);
}

/* Detail článku – titulek jako odkaz ve výpisu */
.news-item__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
