/*
Theme Name: JouerPadel – Blocksy Child
Theme URI: https://jouerpadel.fr/
Description: Thème enfant éditorial premium de JouerPadel.fr, conçu pour Blocksy et Gutenberg.
Author: JouerPadel.fr
Template: blocksy
Version: 1.7.0
Requires at least: 6.8
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: jouerpadel
*/

:root {
  --jp-navy: #081d2c;
  --jp-navy-2: #12384a;
  --jp-green: #20966b;
  --jp-green-light: #eaf5f0;
  --jp-cream: #f7f4ec;
  --jp-orange: #ef8a45;
  --jp-text: #17232d;
  --jp-muted: #66747e;
  --jp-border: #d9e0df;
  --jp-radius: 12px;
  --jp-shadow: 0 16px 36px rgba(8, 29, 44, 0.09);
}

body {
  background: var(--jp-cream);
  color: var(--jp-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.entry-title {
  color: var(--jp-navy);
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.entry-content h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; }
.entry-content h2 { font-size: clamp(1.7rem, 3vw, 2rem); line-height: 1.25; margin-top: 3.25rem; }
.entry-content h3 { font-size: clamp(1.32rem, 2.4vw, 1.5rem); line-height: 1.32; margin-top: 2.25rem; }

/* Blocksy renders the post title outside .entry-content. */
.single-post .hero-section .page-title,
.single-post .entry-header .entry-title,
.single-post h1.page-title,
.single-post h1.entry-title {
  font-size: clamp(2.45rem, 5vw, 3.35rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.035em;
}

.page .hero-section .page-title,
.page .entry-header .entry-title,
.page h1.page-title,
.page h1.entry-title {
  font-size: clamp(2.35rem, 4.8vw, 3.2rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em;
}

/* Editorial marker before every top-level article H2. */
.single-post .entry-content > h2.wp-block-heading::before {
  background: linear-gradient(90deg, var(--jp-green) 0 68%, var(--jp-orange) 68% 100%);
  border-radius: 999px;
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 0.9rem;
  width: 76px;
}

.page .entry-content > h2.wp-block-heading::before {
  background: linear-gradient(90deg, var(--jp-green) 0 68%, var(--jp-orange) 68% 100%);
  border-radius: 999px;
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 0.9rem;
  width: 76px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.35em;
}

.entry-content a:not(.wp-element-button) {
  color: var(--jp-green);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.entry-content a:not(.wp-element-button):hover,
.entry-content a:not(.wp-element-button):focus-visible {
  color: var(--jp-navy);
}

.wp-element-button,
.wp-block-button__link {
  background: var(--jp-green);
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  min-height: 44px;
  padding: 0.75rem 1.3rem;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  background: var(--jp-navy);
}

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

.jp-article-featured,
.jp-inline-image {
  margin-block: 2.25rem;
}

.jp-article-featured {
  margin-top: 0;
}

.jp-article-featured img,
.jp-inline-image img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.wp-element-caption,
.wp-block-image figcaption {
  color: var(--jp-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 0.55rem;
}

.jp-lead {
  color: var(--jp-navy-2);
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.jp-short-answer,
.jp-note,
.jp-sources,
.jp-related-links {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  box-shadow: var(--jp-shadow);
  margin-block: 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.jp-short-answer {
  background: var(--jp-green-light);
  border-left: 5px solid var(--jp-green);
  box-shadow: none;
}

.jp-short-answer > :last-child,
.jp-key-points > :last-child,
.jp-note > :last-child,
.jp-sources > :last-child,
.jp-related-links > :last-child {
  margin-bottom: 0;
}

.jp-eyebrow {
  color: var(--jp-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem !important;
  text-transform: uppercase;
}

.jp-toc {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  margin-block: 2rem 2.5rem;
  padding: 0.4rem 1.5rem 1.25rem;
}

.jp-toc summary {
  color: var(--jp-navy);
  cursor: pointer;
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.08rem;
  font-weight: 750;
  padding-block: 1rem 0.5rem;
}

.jp-toc ol {
  margin: 0.65rem 0 0;
  padding-left: 1.25rem;
}

.jp-toc li + li { margin-top: 0.35rem; }
.jp-toc li.jp-toc-h3 { margin-left: 1.1rem; }

.jp-key-points {
  background: var(--jp-navy);
  border-radius: var(--jp-radius);
  color: var(--jp-cream);
  margin-block: 2.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.jp-key-points h2,
.jp-key-points h3 {
  color: #fff;
  margin-top: 0;
}

.jp-key-points li::marker { color: var(--jp-orange); }

.jp-faq-list {
  border-top: 1px solid var(--jp-border);
  margin-top: 1rem;
}

.jp-faq-item {
  border-bottom: 1px solid var(--jp-border);
  padding-block: 0.25rem;
}

.jp-faq-item summary {
  color: var(--jp-navy);
  cursor: pointer;
  font-weight: 750;
  padding: 1rem 2.4rem 1rem 0;
  position: relative;
}

.jp-faq-item summary::after {
  color: var(--jp-green);
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  position: absolute;
  right: 0;
  top: 1rem;
}

.jp-faq-item[open] summary::after { content: "−"; }
.jp-faq-item > :not(summary) { margin-left: 0; }

.jp-sources,
.jp-related-links {
  box-shadow: none;
  font-size: 0.9rem;
}

.jp-sources h2,
.jp-related-links h2 {
  font-size: 1.35rem;
  margin-top: 0;
}

.jp-silo-query .wp-block-post-template {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
}

.jp-silo-query .wp-block-post {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  box-shadow: var(--jp-shadow);
  overflow: hidden;
  padding: 0 1.1rem 1.2rem;
}

.jp-silo-query .wp-block-post-featured-image {
  margin: 0 -1.1rem 1rem;
}

.jp-silo-query .wp-block-post-featured-image img {
  border-radius: 0;
  width: 100%;
}

.jp-silo-query .wp-block-post-title {
  font-size: 1.18rem;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.jp-silo-query .wp-block-post-title a {
  color: var(--jp-navy);
  text-decoration: none;
}

.jp-silo-query .wp-block-post-date {
  color: var(--jp-muted);
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.jp-silo-query .wp-block-post-excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
}

.jp-query-empty {
  background: #fff;
  border: 1px dashed var(--jp-border);
  border-radius: var(--jp-radius);
  color: var(--jp-muted);
  padding: 1rem 1.2rem;
}

/* Reusable pillar-page system. */
.jp-pillar-page .jp-query-empty { display: none; }
.jp-pillar-meta { align-items: center; border-bottom: 1px solid var(--jp-border); border-top: 1px solid var(--jp-border); color: var(--jp-muted); display: flex; flex-wrap: wrap; font-size: .82rem; gap: .35rem 1.25rem; justify-content: space-between; margin-block: .5rem 2rem; padding-block: .8rem; }
.jp-pillar-meta p { margin: 0; }
.jp-pillar-meta a { color: var(--jp-navy) !important; }
.jp-path-grid, .jp-fact-grid, .jp-guide-grid { display: grid; gap: 1rem; margin-block: 1.5rem 2.5rem; }
.jp-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jp-fact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jp-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jp-path-card, .jp-fact-card, .jp-guide-card { background: #fff; border: 1px solid var(--jp-border); border-radius: var(--jp-radius); display: flex; flex-direction: column; height: 100%; padding: 1.25rem; }
.jp-path-card { border-top: 4px solid var(--jp-green); }
.jp-path-card h3, .jp-guide-card h3 { font-size: 1.14rem; margin: 0 0 .55rem; }
.jp-path-card p, .jp-guide-card p { font-size: .91rem; line-height: 1.55; }
.jp-path-card .jp-eyebrow { margin-bottom: .6rem !important; }
.jp-card-link { font-size: .86rem !important; font-weight: 750; margin-top: auto; }
.jp-fact-card { background: var(--jp-green-light); box-shadow: none; text-align: center; }
.jp-fact-card p { margin-bottom: 0; }
.jp-fact-value { color: var(--jp-navy); font-family: Manrope, Inter, sans-serif; font-size: clamp(1.25rem, 3vw, 1.65rem) !important; font-weight: 800; line-height: 1.15 !important; margin-bottom: .45rem !important; }
.jp-context-source { color: var(--jp-muted); font-size: .82rem; line-height: 1.5; margin-top: -1.4rem; }
.jp-pillar-page figure:has(img[src*="schema-terrain-padel"]) { background: #fff; border: 1px solid var(--jp-border); border-radius: var(--jp-radius); padding: .6rem; }
.jp-pillar-page figure:has(img[src*="schema-terrain-padel"]) img { aspect-ratio: 8 / 5; object-fit: contain; }
.jp-callout, .jp-method-note { background: #fff; border: 1px solid var(--jp-border); border-left: 5px solid var(--jp-green); border-radius: var(--jp-radius); margin-block: 2rem; padding: 1.35rem 1.5rem; }
.jp-method-note { background: #f1f4f4; border-left-color: var(--jp-navy-2); }
.jp-callout > :last-child, .jp-method-note > :last-child { margin-bottom: 0; }
.jp-method-note h3 { font-size: 1.15rem; margin: 0 0 .55rem; }
.jp-pillar-cta { align-items: center; background: var(--jp-navy); border-radius: 16px; color: #fff; display: flex; gap: 1.5rem; justify-content: space-between; margin-block: 2.5rem; padding: clamp(1.5rem, 4vw, 2.25rem); }
.jp-pillar-cta h3 { color: #fff; margin: 0 0 .45rem; }
.jp-pillar-cta p { margin-bottom: 0; }
.jp-pillar-cta .jp-eyebrow { color: #7ad4ae; }
.jp-pillar-cta .wp-block-buttons { flex-shrink: 0; }
.jp-pillar-cta .is-style-outline .wp-block-button__link { background: transparent; border: 1px solid rgba(255, 255, 255, .75); color: #fff; }
.jp-author-card { align-items: flex-start; background: #fff; border: 1px solid var(--jp-border); border-radius: 16px; display: grid; gap: 1.25rem; grid-template-columns: auto 1fr; margin-block: 2.5rem 1.5rem; padding: clamp(1.35rem, 3vw, 1.8rem); }
.jp-author-card h3 { margin: 0 0 .55rem; }
.jp-author-mark { align-items: center; background: var(--jp-navy); border-radius: 999px; color: #fff; display: flex; font-family: Manrope, Inter, sans-serif; font-size: 1.35rem; font-weight: 800; height: 3.4rem; justify-content: center; margin: 0 !important; width: 3.4rem; }
.jp-pillar-crossnav { border-top: 1px solid var(--jp-border); margin-top: 2.5rem; padding-top: 1.35rem; }
.jp-pillar-crossnav h3 { font-size: 1.1rem; margin: 0 0 .45rem; }
.jp-pillar-crossnav p { color: var(--jp-muted); font-size: .88rem; }

/* Early access from a pillar to its complete article library. */
.jp-silo-access-banner {
  align-items: center;
  background: linear-gradient(120deg, var(--jp-navy), var(--jp-navy-2));
  border-radius: 16px;
  color: #fff;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-block: 2rem 2.75rem;
  padding: clamp(1.4rem, 4vw, 2rem);
}
.jp-silo-access-banner h3 { color: #fff; font-size: clamp(1.25rem, 2.5vw, 1.55rem); margin: 0 0 .5rem; }
.jp-silo-access-banner p { margin-bottom: 0; }
.jp-silo-access-banner .jp-eyebrow { color: #7ad4ae; }
.jp-silo-access-banner .wp-block-buttons { flex-shrink: 0; }

/* Dynamic silo library. */
.jp-silo-library-page .jp-query-empty { display: none; }
.jp-library-intro { max-width: 48rem; }
.jp-silo-directory {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 2rem 3rem;
}
.jp-silo-directory-card {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(8, 29, 44, .05);
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.jp-silo-directory-card:hover { border-color: rgba(32, 150, 107, .65); box-shadow: var(--jp-shadow); transform: translateY(-3px); }
.jp-silo-directory-card h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.jp-silo-directory-card p { color: var(--jp-muted); font-size: .9rem; line-height: 1.55; }
.jp-silo-directory-card a { font-size: .86rem; font-weight: 750; margin-top: auto; }
.jp-silo-directory-count { color: var(--jp-green); font-size: .76rem; font-weight: 800; letter-spacing: .08em; margin-bottom: .55rem !important; text-transform: uppercase; }

.jp-silo-library-toolbar {
  align-items: end;
  border-top: 1px solid var(--jp-border);
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
}
.jp-silo-library-toolbar h2 { margin: 0; }
.jp-silo-library-total { color: var(--jp-muted); font-size: .86rem; margin: .35rem 0 0 !important; }
.jp-silo-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1.25rem 1.75rem; }
.jp-silo-filter {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: 999px;
  color: var(--jp-navy);
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  min-height: 42px;
  padding: .55rem 1rem;
}
.jp-silo-filter:hover, .jp-silo-filter:focus-visible, .jp-silo-filter.is-active { background: var(--jp-navy); border-color: var(--jp-navy); color: #fff; }
.jp-silo-filter:focus-visible, .jp-silo-load-more:focus-visible { outline: 3px solid rgba(239, 138, 69, .55); outline-offset: 3px; }

.jp-silo-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jp-silo-article-card {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: 16px;
  box-shadow: 0 9px 24px rgba(8, 29, 44, .055);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.jp-silo-card-media { background: #dfe8e5; display: block; overflow: hidden; }
.jp-silo-card-media img { aspect-ratio: 16 / 9; border-radius: 0; display: block; height: auto; object-fit: cover; transition: transform 220ms ease; width: 100%; }
.jp-silo-article-card:hover .jp-silo-card-media img { transform: scale(1.025); }
.jp-silo-card-placeholder { align-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--jp-navy), var(--jp-green)); color: #fff; display: flex; font-family: Manrope, Inter, sans-serif; font-size: 1.4rem; font-weight: 800; justify-content: center; }
.jp-silo-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.1rem 1.15rem 1.25rem; }
.jp-silo-card-topic { color: var(--jp-green); font-size: .73rem; font-weight: 800; letter-spacing: .07em; margin-bottom: .55rem !important; text-transform: uppercase; }
.jp-silo-card-title { font-size: 1.13rem; line-height: 1.35; margin: 0 0 .6rem; }
.jp-silo-card-title a { color: var(--jp-navy) !important; text-decoration: none !important; }
.jp-silo-card-excerpt { color: var(--jp-muted); font-size: .87rem; line-height: 1.55; }
.jp-silo-card-meta { color: var(--jp-muted); font-size: .75rem; margin: auto 0 0 !important; padding-top: .75rem; }
.jp-silo-load-wrap { display: flex; justify-content: center; margin-block: 2rem .75rem; }
.jp-silo-load-more { background: var(--jp-green); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font: inherit; font-weight: 750; min-height: 48px; padding: .75rem 1.4rem; }
.jp-silo-load-more:hover { background: var(--jp-navy); }
.jp-silo-load-more[disabled] { cursor: wait; opacity: .62; }
.jp-silo-status { color: var(--jp-muted); font-size: .84rem; min-height: 1.4em; text-align: center; }
.jp-silo-fallback-pagination { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-top: 1.5rem; }
.jp-silo-fallback-pagination .page-numbers { background: #fff; border: 1px solid var(--jp-border); border-radius: 8px; padding: .4rem .7rem; }
.jp-silo-fallback-pagination .current { background: var(--jp-navy); color: #fff; }
.jp-silo-library.is-enhanced .jp-silo-fallback-pagination { display: none; }
.jp-silo-empty { background: #fff; border: 1px dashed var(--jp-border); border-radius: 12px; color: var(--jp-muted); grid-column: 1 / -1; padding: 1.25rem; }
@media (max-width: 900px) { .jp-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jp-guide-grid { grid-template-columns: 1fr; } .jp-pillar-cta, .jp-silo-access-banner { align-items: flex-start; flex-direction: column; } .jp-silo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .jp-path-grid, .jp-fact-grid, .jp-silo-directory, .jp-silo-grid { grid-template-columns: 1fr; } .jp-pillar-meta { align-items: flex-start; flex-direction: column; } .jp-author-card { grid-template-columns: 1fr; } .jp-pillar-cta .wp-block-buttons, .jp-pillar-cta .wp-block-button, .jp-pillar-cta .wp-block-button__link, .jp-silo-access-banner .wp-block-buttons, .jp-silo-access-banner .wp-block-button, .jp-silo-access-banner .wp-block-button__link { width: 100%; } .jp-silo-library-toolbar { align-items: flex-start; flex-direction: column; } }

/* Author profile V2: profile page rather than article layout. */
.jp-author-page .entry-content { max-width: 1120px; }
.jp-author-page .jp-lead {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  margin: 0 auto 2rem;
  max-width: 820px;
  text-align: center;
}
.jp-author-profile-hero {
  align-items: center;
  background: var(--jp-navy);
  border-radius: 22px;
  color: var(--jp-cream);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: auto 1fr;
  margin-block: 1rem 2rem;
  padding: clamp(1.5rem, 5vw, 3.4rem);
}
.jp-author-profile-hero h2 { color: #fff; margin: 0 0 1rem; }
.jp-author-profile-hero p:not(.jp-eyebrow) { max-width: 720px; }
.jp-author-profile-mark {
  align-items: center;
  background: linear-gradient(145deg, var(--jp-green), #31b983);
  border: 5px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 800;
  height: clamp(8rem, 18vw, 12rem);
  justify-content: center;
  margin: 0 !important;
  width: clamp(8rem, 18vw, 12rem);
}
.jp-author-profile-hero .is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid rgba(255,255,255,.65);
  color: #fff;
}
.jp-author-facts {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-block: 2rem 3rem;
  padding: 1.25rem;
}
.jp-author-facts > div { padding: .45rem 1rem; }
.jp-author-facts > div + div { border-left: 1px solid var(--jp-border); }
.jp-author-facts p { margin: 0; }
.jp-author-fact-label {
  color: var(--jp-green);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.jp-author-quote {
  border-left: 5px solid var(--jp-orange);
  color: var(--jp-navy);
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-weight: 700;
  margin-block: 2.5rem;
  padding: .75rem 0 .75rem 1.5rem;
}
.jp-author-topic-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 1.5rem 2.5rem;
}
.jp-author-principles {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 1.5rem 2.5rem;
}
.jp-author-principles > p {
  background: var(--jp-green-light);
  border-radius: 14px;
  margin: 0;
  padding: 1.25rem;
}
.jp-author-posts .wp-block-post-template {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}
.jp-author-posts .wp-block-post {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: 16px;
  box-shadow: var(--jp-shadow);
  overflow: hidden;
  padding-bottom: 1.2rem;
}
.jp-author-posts .wp-block-post > :not(.wp-block-post-featured-image) { margin-inline: 1.15rem; }
.jp-author-posts .wp-block-post-featured-image { margin-bottom: 1rem; }
.jp-author-posts .wp-block-post-featured-image img { border-radius: 0; }
.jp-author-posts .wp-block-post-title { margin-top: .4rem; }
.jp-author-contact {
  align-items: center;
  background: var(--jp-green-light);
  border-radius: 18px;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-block: 3rem 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.jp-author-contact h2 { margin: 0 0 .5rem; }
.jp-author-contact p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .jp-author-profile-hero, .jp-author-facts, .jp-author-topic-grid, .jp-author-principles, .jp-author-posts .wp-block-post-template { grid-template-columns: 1fr; }
  .jp-author-profile-mark { height: 7rem; width: 7rem; }
  .jp-author-facts > div + div { border-left: 0; border-top: 1px solid var(--jp-border); padding-top: 1rem; }
  .jp-author-contact { align-items: flex-start; flex-direction: column; }
}

.jp-topic-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 1.5rem 2.5rem;
}

.jp-topic-card {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-top: 4px solid var(--jp-green);
  border-radius: var(--jp-radius);
  padding: 1.15rem;
}

.jp-topic-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.jp-topic-card h3 a {
  color: var(--jp-navy);
  text-decoration: none;
}

.jp-topic-card p {
  color: var(--jp-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Landing page: intentionally distinct from articles and pillar pages. */
.jp-homepage .hero-section,
.jp-homepage .entry-header { display: none; }

.jp-homepage .site-main,
.jp-homepage .site-main > .ct-container,
.jp-homepage .site-main > .ct-container-full,
.jp-homepage article,
.jp-homepage .entry-content {
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

.jp-homepage .entry-content > * { max-width: none; }
.jp-home-shell { overflow: hidden; }

.jp-home-section,
.jp-home-hero-inner {
  margin-inline: auto;
  max-width: 1180px;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.jp-home-section { padding-block: clamp(3.6rem, 7vw, 6rem); }
.jp-home-section + .jp-home-section { border-top: 1px solid rgba(8, 29, 44, 0.08); }

.jp-home-section-header {
  align-items: end;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.jp-home-section-header h2,
.jp-home-section > h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  margin: 0;
}

.jp-home-section-header p {
  color: var(--jp-muted);
  margin: 0;
  max-width: 42rem;
}

.jp-home-hero {
  background: var(--jp-navy);
  color: #fff;
  position: relative;
}

.jp-home-hero::after {
  background: radial-gradient(circle, rgba(32, 150, 107, 0.35), transparent 68%);
  content: "";
  height: 32rem;
  pointer-events: none;
  position: absolute;
  right: -10rem;
  top: -10rem;
  width: 32rem;
}

.jp-home-hero-inner {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 660px;
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
  z-index: 1;
}

.jp-home-hero h1 {
  color: #fff;
  font-size: clamp(2.7rem, 5.6vw, 4.8rem);
  line-height: 1.02;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}

.jp-home-hero-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  max-width: 36rem;
}

.jp-home-hero .jp-eyebrow { color: #7ad4ae; }

.jp-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.jp-home-actions .wp-block-button__link { text-decoration: none; }
.jp-home-actions .is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
}
.jp-home-actions .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--jp-navy); }

.jp-home-hero-media { position: relative; }
.jp-home-hero-media figure { margin: 0; }
.jp-home-hero-media img {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  height: auto;
  object-fit: cover;
  width: 100%;
}

.jp-home-choice-grid,
.jp-home-silo-grid,
.jp-home-guide-grid {
  display: grid;
  gap: 1.15rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}
.jp-home-choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jp-home-silo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jp-home-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.jp-home-choice-card,
.jp-home-silo-card,
.jp-home-guide-card {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(8, 29, 44, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.jp-home-choice-card:hover,
.jp-home-silo-card:hover,
.jp-home-guide-card:hover {
  border-color: rgba(32, 150, 107, 0.65);
  box-shadow: 0 18px 38px rgba(8, 29, 44, 0.1);
  transform: translateY(-3px);
}

.jp-home-choice-card h3,
.jp-home-silo-card h3,
.jp-home-guide-card h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.jp-home-choice-card p,
.jp-home-silo-card p,
.jp-home-guide-card p {
  color: var(--jp-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.jp-home-card-link { font-size: 0.88rem; font-weight: 750; margin-top: auto; }
.jp-home-card-number {
  align-items: center;
  background: var(--jp-green-light);
  border-radius: 999px;
  color: var(--jp-green);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2rem;
}

.jp-home-featured-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
}

.jp-home-featured-main .wp-block-post-template,
.jp-home-featured-side .wp-block-post-template,
.jp-home-latest .wp-block-post-template { list-style: none; margin: 0; padding: 0; }

.jp-home-featured-main .wp-block-post,
.jp-home-featured-side .wp-block-post,
.jp-home-latest .wp-block-post {
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: 16px;
  overflow: hidden;
}

.jp-home-featured-main .wp-block-post { height: 100%; padding-bottom: 1.5rem; }
.jp-home-featured-main .wp-block-post-featured-image,
.jp-home-featured-side .wp-block-post-featured-image,
.jp-home-latest .wp-block-post-featured-image { margin: 0; }
.jp-home-featured-main .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  object-fit: cover;
  width: 100%;
}
.jp-home-featured-main .wp-block-post-title,
.jp-home-featured-main .wp-block-post-date,
.jp-home-featured-main .wp-block-post-excerpt { margin-inline: 1.5rem; }
.jp-home-featured-main .wp-block-post-title {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 0.55rem;
  margin-top: 1.25rem;
}

.jp-home-featured-side .wp-block-post-template { display: grid; gap: 1rem; }
.jp-home-featured-side .wp-block-post {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 116px;
}
.jp-home-featured-side .wp-block-post-featured-image img {
  border-radius: 0;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.jp-home-featured-side .wp-block-post-title,
.jp-home-featured-side .wp-block-post-date { margin-inline: 1rem; }
.jp-home-featured-side .wp-block-post-title { font-size: 1rem; margin-bottom: 0.3rem; margin-top: 0.85rem; }

.jp-home-featured-main .wp-block-post-title a,
.jp-home-featured-side .wp-block-post-title a,
.jp-home-latest .wp-block-post-title a { color: var(--jp-navy); text-decoration: none; }
.jp-home-featured-main .wp-block-post-date,
.jp-home-featured-side .wp-block-post-date,
.jp-home-latest .wp-block-post-date { color: var(--jp-muted); font-size: 0.76rem; }

.jp-home-latest .wp-block-post-template {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.jp-home-latest .wp-block-post { padding: 0 1.1rem 1.2rem; }
.jp-home-latest .wp-block-post-featured-image { margin: 0 -1.1rem 1rem; }
.jp-home-latest .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  object-fit: cover;
  width: 100%;
}
.jp-home-latest .wp-block-post-title { font-size: 1.12rem; line-height: 1.35; margin: 0.5rem 0; }

.jp-home-news-strip {
  align-items: center;
  background: var(--jp-navy);
  border-radius: 18px;
  color: #fff;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.jp-home-news-strip h2,
.jp-home-news-strip h3 { color: #fff; margin: 0 0 0.4rem; }
.jp-home-news-strip p { color: rgba(255, 255, 255, 0.78); margin: 0; }

.jp-home-author {
  align-items: center;
  background: var(--jp-green-light);
  border-left: 5px solid var(--jp-green);
  border-radius: 16px;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: auto 1fr;
  padding: clamp(1.4rem, 4vw, 2.25rem);
}
.jp-home-author-mark {
  align-items: center;
  background: var(--jp-navy);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  height: 4rem;
  justify-content: center;
  width: 4rem;
}
.jp-home-author h2,
.jp-home-author h3 { margin: 0 0 0.4rem; }
.jp-home-author p { margin: 0; }

@media (max-width: 999px) {
  .jp-home-hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .jp-home-hero h1 { max-width: 15ch; }
  .jp-home-choice-grid,
  .jp-home-silo-grid,
  .jp-home-guide-grid,
  .jp-home-latest .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp-home-featured-grid { grid-template-columns: 1fr; }
}

@media (max-width: 689px) {
  .jp-home-section { padding-block: 3.5rem; }
  .jp-home-section-header { align-items: start; flex-direction: column; }
  .jp-home-choice-grid,
  .jp-home-silo-grid,
  .jp-home-guide-grid,
  .jp-home-latest .wp-block-post-template { grid-template-columns: 1fr; }
  .jp-home-featured-side .wp-block-post { grid-template-columns: 104px 1fr; }
  .jp-home-news-strip,
  .jp-home-author { grid-template-columns: 1fr; }
  .jp-home-author-mark { height: 3.25rem; width: 3.25rem; }
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 7rem; }

@media (max-width: 689px) {
  body { font-size: 17px; }
  .entry-content h2 { margin-top: 2.5rem; }
  .entry-content h3 { margin-top: 1.8rem; }
  .jp-toc { padding-inline: 1.1rem; }
  .jp-silo-query .wp-block-post-template { grid-template-columns: 1fr; }
  .jp-topic-grid { grid-template-columns: 1fr; }
}

@media (min-width: 690px) and (max-width: 999px) {
  .jp-silo-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .jp-home-choice-card,
  .jp-home-silo-card,
  .jp-home-guide-card { transition: none; }
}
