/* Native Query blocks share the same card presentation in pages and the editor. */
/* Editor-selectable typography preserves the articles' established appearance
   without using paragraph markup for headings or heading markup for body copy. */
.fs-restored .fs-text .is-style-article-subheading,
.fs-restored .fs-team-description .is-style-article-subheading {
    font-family: var(--wp--preset--font-family--body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    color: inherit;
    margin: 0;
    padding-bottom: 1em;
}
.fs-restored .fs-text .is-style-article-subheading:last-child { padding-bottom: 0; }
.fs-restored .fs-team-description .is-style-article-subheading {
    margin: 0 0 1em;
    padding: 0;
}
.fs-restored .fs-team-description .is-style-article-subheading:last-child { margin-bottom: 0; }
.fs-restored .fs-text p:is(.is-style-display-lead, .is-style-display-text) {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
    color: #333333;
    margin: 0;
    padding-bottom: 10px;
}
.fs-restored .fs-text p.is-style-display-text { font-size: 22px; }
.fs-team-description > h2 { font-size: 28px; margin-bottom: 10px; }

.fs-post-cards .wp-block-post-template.is-layout-grid { gap: 28px; }
.fs-post-cards .wp-block-post-template > li {
    min-width: 0;
    margin: 0;
    background: var(--site-color-paper);
    border: 1px solid var(--wp--preset--color--line);
}
.fs-post-cards .wp-block-post-featured-image { margin: 0; }
.fs-post-cards .wp-block-post-featured-image img { display: block; width: 100%; }
.fs-post-cards .fs-post-card-body { padding: 22px; }
.fs-post-cards .wp-block-post-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.15;
    padding: 0;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}
.fs-post-cards .wp-block-post-title a { color: var(--site-color-navy); text-decoration: none; }
.fs-post-cards .wp-block-post-title a:hover { text-decoration: underline; }
.fs-post-cards .wp-block-post-date { color: var(--wp--preset--color--muted); font-size: 13px; margin: 0 0 12px; }
.fs-post-cards .wp-block-post-excerpt p { margin: 0 0 14px; }
.fs-post-cards .wp-block-post-excerpt p:last-child { margin-bottom: 0; }
/* Excerpts can contain unbroken URLs from editor-owned article content. */
.wp-block-post-excerpt { min-width: 0; overflow-wrap: anywhere; }
.fs-post-cards .wp-block-post-excerpt__more-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 9px 20px; border: 2px solid var(--site-color-navy);
    border-radius: 2px; background: var(--site-color-navy); color: var(--site-color-paper);
    font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none;
}
.fs-post-cards .wp-block-post-excerpt__more-link:hover { background: var(--site-color-paper); color: var(--site-color-navy); }
.fs-post-cards .wp-block-query-pagination { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--wp--preset--color--line); gap: 8px; flex-wrap: wrap; }
.fs-post-cards .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.fs-post-cards .page-numbers:not(.dots),
.fs-post-cards .wp-block-query-pagination-previous,
.fs-post-cards .wp-block-query-pagination-next {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; padding: 8px 14px; margin: 0;
    border: 1px solid var(--site-color-navy); border-radius: 2px;
    color: var(--site-color-navy); background: var(--site-color-paper);
    font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none;
}
.fs-post-cards .page-numbers.current,
.fs-post-cards .wp-block-query-pagination a:hover { color: var(--site-color-paper); background: var(--site-color-navy); }
.fs-post-cards .page-numbers.dots { padding: 8px 2px; }
.fs-post-cards a:focus-visible { outline: 2px solid var(--site-color-navy); outline-offset: 4px; }
.fs-news-heading { color: var(--site-color-navy); font-size: 32px; margin-bottom: 28px; padding: 0; }
.fs-post-archive { width: var(--fs-shell); max-width: 1400px; margin-inline: auto; padding-block: 48px 64px; }
.fs-post-archive > .wp-block-query-title { font-size: 40px; line-height: 1.1; margin: 0 0 28px; }
/* Content-owned H1 headings keep their own section spacing. */
.fs-post:has(> .fs-fallback-title) { padding-top: 48px; }
.fs-post > .fs-fallback-title { margin-top: 0; }
@media (min-width: 768px) and (max-width: 980px) {
    .fs-post-grid .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .fs-post-grid .wp-block-post-template.is-layout-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .fs-post-cards .fs-post-card-body { padding: 20px; }
    .fs-post-archive { padding-block: 32px 48px; }
    .fs-post-archive > .wp-block-query-title { font-size: 30px; margin-bottom: 24px; }
    .fs-post:has(> .fs-fallback-title) { padding-top: 32px; }
}
@media (max-width: 479px) {
    .fs-post-cards .wp-block-post-title { font-size: 16px; }
}
