body.page-slug-frontpagemodern {
  --fpm-bg: #DCE0E6;
  --fpm-paper: #fffdf8;
  --fpm-ink: #111111;
  --fpm-muted: #666055;
  --fpm-rule: rgba(17, 17, 17, 0.16);
  --fpm-rule-strong: rgba(17, 17, 17, 0.35);
  --fpm-accent: #9b2c17;
  background: #DCE0E6;
  color: var(--fpm-ink);
}

body.page-slug-frontpagemodern .wp-site-blocks {
  padding-top: 0;
}

body.page-slug-frontpagemodern .wp-block-post-content {
  margin-block-start: 0;
}

.fpm-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 18px 70px;
}

.fpm-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--fpm-rule);
  color: var(--fpm-muted);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fpm-topline nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.fpm-topline a {
  color: inherit;
  text-decoration: none;
}

.fpm-masthead {
  padding: 18px 0 16px;
  border-bottom: 3px double var(--fpm-rule-strong);
  text-align: center;
}

.fpm-masthead h1 {
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(3rem, 7vw, 5.9rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.fpm-masthead p {
  margin: 8px 0 0;
  color: var(--fpm-muted);
  font-size: 1rem;
}

.fpm-preview-note {
  margin: 14px auto 24px;
  max-width: 900px;
  padding: 10px 16px;
  border: 1px solid var(--fpm-rule);
  background: rgba(255,255,255,0.68);
  text-align: center;
  color: var(--fpm-muted);
  font-size: 0.92rem;
}

.fpm-newsbar {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--fpm-rule);
}

.fpm-newsbar strong {
  color: var(--fpm-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.84rem;
}

.fpm-newsbar p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.fpm-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.78fr);
  gap: 28px;
  padding-top: 28px;
}

.fpm-section-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--fpm-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.fpm-lead-wrap {
  border-bottom: 1px solid var(--fpm-rule);
  padding-bottom: 26px;
  margin-bottom: 26px;
}

.fpm-shell .fpm-lead-wrap .wp-block-post {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.fpm-shell .fpm-lead-wrap .wp-block-post-featured-image {
  margin: 0 0 18px !important;
}

.fpm-shell .fpm-lead-wrap .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.fpm-shell .fpm-lead-wrap .wp-block-post-title {
  margin: 0 0 12px;
  padding: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.fpm-shell .fpm-lead-wrap .wp-block-post-title a {
  color: var(--fpm-ink);
  text-decoration: none;
}

.fpm-shell .fpm-lead-wrap .wp-block-post-title a:hover {
  color: var(--fpm-accent);
}

.fpm-shell .fpm-lead-wrap .wp-block-post-excerpt,
.fpm-shell .fpm-lead-wrap .wp-block-post-date,
.fpm-shell .fpm-lead-wrap .wp-block-post-terms,
.fpm-shell .fpm-lead-wrap .wp-block-read-more {
  padding: 0;
}

.fpm-shell .fpm-lead-wrap .wp-block-post-excerpt {
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--fpm-muted);
}

.fpm-shell .fpm-lead-wrap .wp-block-read-more a {
  color: var(--fpm-ink);
  text-decoration: none;
  font-weight: 700;
}

.fpm-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fpm-shell .fpm-support-grid .wp-block-post {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--fpm-rule);
  padding-top: 16px;
  box-shadow: none;
}

.fpm-shell .fpm-support-grid .wp-block-post-featured-image,
.fpm-shell .fpm-support-grid .wp-block-post-title,
.fpm-shell .fpm-support-grid .wp-block-post-excerpt,
.fpm-shell .fpm-support-grid .wp-block-post-terms,
.fpm-shell .fpm-support-grid .wp-block-read-more {
  padding-left: 0;
  padding-right: 0;
}

.fpm-shell .fpm-support-grid .wp-block-post-featured-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fpm-shell .fpm-support-grid .wp-block-post-title {
  margin-top: 14px;
  margin-bottom: 10px;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}

.fpm-shell .fpm-support-grid .wp-block-post-title a,
.fpm-shell .fpm-story-list .wp-block-post-title a,
.fpm-shell .fpm-more-grid .wp-block-post-title a {
  color: var(--fpm-ink);
  text-decoration: none;
}

.fpm-shell .fpm-support-grid .wp-block-post-title a:hover,
.fpm-shell .fpm-story-list .wp-block-post-title a:hover,
.fpm-shell .fpm-more-grid .wp-block-post-title a:hover {
  color: var(--fpm-accent);
}

.fpm-shell .fpm-support-grid .wp-block-post-excerpt {
  color: var(--fpm-muted);
  line-height: 1.7;
}

.fpm-rail {
  display: grid;
  gap: 20px;
}

.fpm-box {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--fpm-rule);
  padding: 18px 18px 8px;
}

.fpm-box h3 {
  margin: 0 0 14px;
  font-family: Georgia, Times New Roman, serif;
  font-size: 1.3rem;
  line-height: 1;
}

.fpm-story-list {
  display: grid;
  gap: 14px;
}

.fpm-shell .fpm-story-list .wp-block-post {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-top: 1px solid var(--fpm-rule);
  padding: 14px 0 0;
}

.fpm-shell .fpm-story-list .wp-block-post:first-child {
  border-top: 0;
  padding-top: 0;
}

.fpm-shell .fpm-story-list .wp-block-post-featured-image {
  display: none;
}

.fpm-shell .fpm-story-list .wp-block-post-title,
.fpm-shell .fpm-story-list .wp-block-post-excerpt,
.fpm-shell .fpm-story-list .wp-block-post-terms,
.fpm-shell .fpm-story-list .wp-block-post-date,
.fpm-shell .fpm-story-list .wp-block-read-more {
  padding: 0;
}

.fpm-shell .fpm-story-list .wp-block-post-title {
  margin: 0 0 8px;
  font-family: Georgia, Times New Roman, serif;
  font-size: 1.18rem;
  line-height: 1.15;
}

.fpm-shell .fpm-story-list .wp-block-post-excerpt {
  margin: 0;
  color: var(--fpm-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.fpm-topic-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fpm-topic-ribbon span {
  padding: 8px 11px;
  border: 1px solid var(--fpm-rule);
  background: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fpm-lower {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 3px double var(--fpm-rule-strong);
}

.fpm-lower-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.fpm-lower-head h2 {
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
}

.fpm-lower-head p {
  margin: 0;
  color: var(--fpm-muted);
  line-height: 1.65;
}

.fpm-shell .fpm-more-grid .wp-block-post-template {
  gap: 18px !important;
}

.fpm-shell .fpm-more-grid .wp-block-post {
  background: rgba(255,255,255,0.58);
  border: 1px solid var(--fpm-rule);
  box-shadow: none;
  padding: 0 0 18px;
}

.fpm-shell .fpm-more-grid .wp-block-post-featured-image {
  margin: 0 0 14px !important;
}

.fpm-shell .fpm-more-grid .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.fpm-shell .fpm-more-grid .wp-block-post-title,
.fpm-shell .fpm-more-grid .wp-block-post-excerpt,
.fpm-shell .fpm-more-grid .wp-block-post-terms,
.fpm-shell .fpm-more-grid .wp-block-read-more {
  padding-left: 16px;
  padding-right: 16px;
}

.fpm-shell .fpm-more-grid .wp-block-post-title {
  font-family: Georgia, Times New Roman, serif;
  font-size: 1.32rem;
  line-height: 1.12;
  margin-top: 0;
}

.fpm-shell .wp-block-post-terms,
.fpm-shell .wp-block-post-date {
  color: var(--fpm-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fpm-shell .wp-block-read-more a {
  color: var(--fpm-ink);
  text-decoration: none;
  font-weight: 700;
}

.fpm-footer-note {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--fpm-rule);
  color: var(--fpm-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .fpm-main-grid,
  .fpm-lower-head,
  .fpm-newsbar {
    grid-template-columns: 1fr;
  }

  .fpm-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fpm-topline {
    flex-direction: column;
    align-items: start;
  }

  .fpm-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
}

body.page-slug-frontpagemodern header.wp-block-template-part,
body.page-slug-frontpagemodern footer.wp-block-template-part {
  display: none;
}

body.page-slug-frontpagemodern main.wp-block-group {
  margin-top: 0 !important;
}

body.page-slug-frontpagemodern .wp-site-blocks {
  padding-top: 0 !important;
}

.fpm-card-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.fpm-lead-wrap .fpm-card-image img {
  aspect-ratio: 16 / 9;
}

.fpm-support-grid .fpm-card-image img {
  aspect-ratio: 4 / 3;
}

.fpm-more-grid .fpm-card-image img {
  aspect-ratio: 3 / 2;
}

.fpm-card-kicker {
  color: var(--fpm-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 12px;
}

.fpm-card-title {
  margin: 8px 0 10px;
  font-family: Georgia, Times New Roman, serif;
  line-height: 1.08;
}

.fpm-card-title a {
  color: var(--fpm-ink);
  text-decoration: none;
}

.fpm-card-title a:hover {
  color: var(--fpm-accent);
}

.fpm-card-excerpt {
  margin: 0;
  color: var(--fpm-muted);
  line-height: 1.65;
}

.fpm-lead-wrap .fpm-card-title {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  letter-spacing: -0.03em;
}

.fpm-support-grid .fpm-card-title {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.fpm-story-list .fpm-card {
  border-top: 1px solid var(--fpm-rule);
  padding-top: 14px;
}

.fpm-story-list .fpm-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.fpm-story-list .fpm-card-title {
  font-size: 1.18rem;
}

.fpm-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fpm-more-grid .fpm-card {
  background: rgba(255,255,255,0.58);
  border: 1px solid var(--fpm-rule);
  padding: 0 0 18px;
}

.fpm-more-grid .fpm-card-kicker,
.fpm-more-grid .fpm-card-title,
.fpm-more-grid .fpm-card-excerpt {
  padding-left: 16px;
  padding-right: 16px;
}

.fpm-more-grid .fpm-card-title {
  font-size: 1.32rem;
}

.fpm-section-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 980px) {
  .fpm-section-columns,
  .fpm-more-grid {
    grid-template-columns: 1fr;
  }
}

.fpm-box-short-list {
  padding-top: 12px;
}

.fpm-story-list-compact .fpm-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.fpm-story-list-compact .fpm-card-image {
  display: block;
}

.fpm-story-list-compact .fpm-card-image img {
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.fpm-story-list-compact .fpm-card-kicker,
.fpm-story-list-compact .fpm-card-excerpt {
  display: none;
}

.fpm-story-list-compact .fpm-card-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.14;
}

@media (max-width: 980px) {
  .fpm-story-list-compact .fpm-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .fpm-story-list-compact .fpm-card-image img {
    width: 72px;
    height: 72px;
  }
}

.fpm-story-list-compact .fpm-card {
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 12px !important;
}

.fpm-story-list-compact .fpm-card-image {
  order: -1;
}

.fpm-story-list-compact .fpm-card-image img {
  width: 64px !important;
  height: 64px !important;
}

.fpm-story-list-compact .fpm-card-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.12;
}

@media (max-width: 980px) {
  .fpm-story-list-compact .fpm-card {
    grid-template-columns: 56px minmax(0, 1fr) !important;
  }

  .fpm-story-list-compact .fpm-card-image img {
    width: 56px !important;
    height: 56px !important;
  }
}

.fpm-story-list-compact .fpm-card > * {
  grid-column: 2 / 3;
}

.fpm-story-list-compact .fpm-card-image {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  width: 64px;
  min-width: 64px;
  align-self: start;
}

.fpm-story-list-compact .fpm-card-image img {
  display: block;
  max-width: none;
}

@media (max-width: 980px) {
  .fpm-story-list-compact .fpm-card-image {
    width: 56px;
    min-width: 56px;
  }
}

.fpm-box-short-list {
  padding-top: 8px;
}

.fpm-compact-list {
  display: grid;
}

.fpm-compact-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--fpm-rule);
}

.fpm-compact-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.fpm-compact-thumb {
  display: block;
  width: 56px;
}

.fpm-compact-thumb img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.fpm-compact-title {
  margin: 0;
  font-family: Georgia, " Times New Roman\, serif;
 font-size: 0.98rem;
 line-height: 1.12;
}

.fpm-compact-title a {
 color: var(--fpm-ink);
 text-decoration: none;
}

.fpm-compact-title a:hover {
 color: var(--fpm-accent);
}
