/* Inner pages, archives, search — mobile-first, fluid typography */

.site-main--inner {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(1rem, 3.5vw, 1.5rem) max(1rem, env(safe-area-inset-left)) clamp(1.35rem, 4vw, 2rem) max(1rem, env(safe-area-inset-right));
  background: var(--fplk-inner-bg, #f5f5f5);
  color: var(--fplk-text-body, #1a1a1a);
  border-radius: 0;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.06),
    0 22px 44px -14px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--fpk-border, rgba(0, 0, 0, 0.08));
}

@media (min-width: 1024px) {
  .site-main--inner {
    padding-left: clamp(1.5rem, 5vw, 5rem);
    padding-right: clamp(1.5rem, 5vw, 5rem);
  }
}

.page-header.archive-header {
  margin: 0 0 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--fpk-border, rgba(0, 0, 0, 0.1));
}

.page-header .page-title {
  margin: 0;
  font-family: var(--fplk-font-display);
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--fpk-text, #1a1a1a);
  word-break: break-word;
}

.archive-description {
  margin: 0.65rem 0 0;
  font-size: clamp(0.9rem, 2.8vw, 1rem);
  line-height: 1.55;
  color: var(--fpk-text-muted, #333333);
}

/* Singular pages and posts. Club pages keep their own layout. */
.hentry--singular:not(.hentry--equipa) {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.hentry--singular:not(.hentry--equipa)::before {
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 1.25rem;
  border-radius: 2px;
  background: var(--fpk-stripe-equal);
}

.hentry--singular .entry-header {
  margin-bottom: 1rem;
}

.fplk-titles-center .entry-title,
.fplk-titles-center .page-title,
.fplk-titles-center .entry-meta,
.fplk-titles-center .post-list-card__title,
.fplk-titles-center .post-list-card__meta {
  text-align: center;
}

.hentry--singular .entry-title {
  margin: 0;
  font-family: var(--fplk-font-display);
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--fpk-text, #1a1a1a);
  word-break: break-word;
}

.entry-meta {
  margin-bottom: 0.55rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--fplk-eyebrow-red);
  line-height: 1.5;
}

.entry-meta a {
  color: inherit;
  text-decoration: none;
}

.entry-meta a:hover {
  text-decoration: underline;
}

.post-thumbnail {
  margin: 0 0 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  background: #eeeeee;
}

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

/* Post & page body (Gutenberg-safe) */
.entry-content {
  font-size: clamp(0.95rem, 2.8vw, 1.0625rem);
  line-height: 1.65;
  color: var(--fpk-text, #1a1a1a);
  opacity: 0.92;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.entry-content a {
  color: var(--fplk-event-cta);
  text-underline-offset: 0.15em;
}

/* The block prints the file name first. Keep the download button on the left. */
.wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  column-gap: 0.75em;
  row-gap: 0.5em;
  font-size: 1rem;
}

.wp-block-file__embed {
  flex: 1 0 100%;
  order: -1;
}

.wp-block-file .wp-block-file__button {
  order: 0;
  margin-left: 0;
  background: var(--fplk-text-body);
  color: var(--fplk-bg-body);
  font-weight: 700;
  opacity: 1;
}

.wp-block-file a:not(.wp-block-file__button) {
  order: 1;
  color: var(--fplk-text-body);
  font-weight: 600;
}

.wp-block-file .wp-block-file__button:hover,
.wp-block-file .wp-block-file__button:focus,
.wp-block-file .wp-block-file__button:visited,
.wp-block-file .wp-block-file__button:active {
  background: var(--fplk-text-body);
  color: var(--fplk-bg-body);
  opacity: 1;
}

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

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.35em 0 0.5em;
  line-height: 1.25;
  color: var(--fpk-text, #1a1a1a);
  word-break: break-word;
}

.entry-content h2 {
  font-size: clamp(1.2rem, 4vw, 1.45rem);
}

.entry-content h3 {
  font-size: clamp(1.08rem, 3.5vw, 1.2rem);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin: 0 0 1em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry-content blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--fplk-verde-600);
  background: rgba(27, 107, 58, 0.08);
  border-radius: 0 10px 10px 0;
}

.entry-content img,
.entry-content video,
.entry-content svg {
  max-width: 100%;
  height: auto;
}

.entry-content .wp-block-image img,
.entry-content figure img {
  max-width: 100%;
  height: auto;
}

.entry-content .alignwide,
.entry-content .alignfull {
  max-width: 100%;
}

.entry-content iframe {
  max-width: 100%;
}

.entry-content .wp-block-embed {
  max-width: 100%;
}

.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.entry-content .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.entry-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.8rem, 2.4vw, 0.95rem);
  border-radius: 10px;
  border: 1px solid var(--fpk-border, rgba(0, 0, 0, 0.1));
  table-layout: auto;
}

.entry-content th,
.entry-content td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--fpk-border, rgba(0, 0, 0, 0.08));
  word-break: break-word;
}

.entry-content pre,
.entry-content code {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-links {
  margin: 1.5rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--fpk-border, rgba(0, 0, 0, 0.08));
  font-size: 0.9rem;
  font-weight: 600;
}

.page-links__title {
  margin-right: 0.35rem;
  color: var(--fpk-text-muted, #444444);
}

.page-links a {
  display: inline-block;
  margin: 0.2rem 0.35rem 0.2rem 0;
  padding: 0.25rem 0.6rem;
  color: var(--fplk-verm-500);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(201, 31, 48, 0.35);
}

.page-links a:hover {
  background: rgba(201, 31, 48, 0.08);
}

.category-buttons + .post-list {
  margin-top: 2.5rem;
}

/* Archive list */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.85rem;
}

.news-per-page {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 1rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fpk-text, #1a1a1a);
}

.news-per-page select {
  min-height: 2.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--fpk-border, rgba(0, 0, 0, 0.12));
  background: var(--fplk-bg-body, #fff);
  color: var(--fplk-text-body, #1a1a1a);
  font: inherit;
}

.post-list-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--fplk-inner-card, #fff);
  border-radius: 14px;
  border: 1px solid var(--fplk-event-card-border, rgba(0, 0, 0, 0.08));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  color: inherit;
  text-decoration: none;
}

.post-list-card:focus-visible {
  outline: 2px solid var(--fplk-verde-300);
  outline-offset: 3px;
}

.post-list-card__media {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
}

.post-list-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.post-list-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: clamp(0.95rem, 3vw, 1.15rem);
}

.post-list-card__title {
  color: var(--fpk-text, #1a1a1a);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  margin: 0 0 0.35rem;
  font-size: clamp(1.02rem, 3.5vw, 1.2rem);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.post-list-card:hover .post-list-card__title,
.post-list-card:focus-visible .post-list-card__title {
  color: var(--fplk-verde-300);
}

[data-theme="light"] .post-list-card:hover .post-list-card__title,
[data-theme="light"] .post-list-card:focus-visible .post-list-card__title {
  color: var(--fplk-verde-600);
}

.post-list-card__meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fpk-text-muted, #444444);
  margin-bottom: 0.5rem;
}

.post-list-card__excerpt {
  flex: none;
  min-height: 7.5em;
  overflow: hidden;
  font-size: clamp(0.88rem, 2.6vw, 0.98rem);
  line-height: 1.5;
  color: var(--fpk-text-muted, #333333);
  margin-bottom: 0.65rem;
}

.post-list-card__excerpt p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.post-list-card__more {
  margin-top: auto;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fplk-verm-500);
  text-decoration: none;
}

.post-list-card:hover .post-list-card__more,
.post-list-card:focus-visible .post-list-card__more {
  text-decoration: underline;
}

/* Pagination */
.navigation.pagination {
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fpk-text, #1a1a1a);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--fpk-border, rgba(0, 0, 0, 0.12));
  background: var(--fplk-inner-card, #ffffff);
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
  background: var(--fplk-verm-500);
  border-color: var(--fplk-verm-500);
  color: var(--fplk-branco);
}

.navigation.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: auto;
  color: var(--fpk-text-muted, #444444);
}

/* No results / 404 */
.no-results,
.error-404 {
  padding: 0.5rem 0;
}

.no-results .page-title,
.error-404 .entry-title {
  font-size: clamp(1.25rem, 4.5vw, 1.65rem);
  word-break: break-word;
}

.no-results .entry-content,
.error-404 .entry-content {
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
}

