/* Ξαρτονομίσμα — WordPress extras (article, archive, search) */

.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  clip: auto;
  background: var(--brand);
  color: #fff;
}

.article-wrap {
  padding-block: 2rem 4rem;
  max-width: 800px;
}

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

.article-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 0.5rem 0 1rem;
  color: #000;
}

.article-deck {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.article-hero {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-hero figcaption {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  padding: 0.5rem 0;
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.85);
}

.article-body > * + * {
  margin-top: 1.15rem;
}

.article-body h2,
.article-body h3 {
  margin-top: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #000;
}

.article-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body img,
.article-body figure {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-latest {
  display: grid;
  gap: 1rem;
}

.related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pagination-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  margin: 0 0.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}

.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.search-page-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-page-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

.search-page-form button {
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.newsflow-page {
  display: grid;
  gap: 0;
}

.newsflow-page > li {
  border-bottom: 1px solid var(--border);
}

.newsflow-page > li > a {
  display: block;
  padding: 1rem 0;
}

.newsflow-page > li > a:hover .nf-title {
  color: var(--brand);
}

.archive-desc {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  max-width: 40rem;
}

.wp-block-image img {
  height: auto;
}

@media (max-width: 640px) {
  .search-page-form {
    flex-direction: column;
  }
}
