/* Homepage-only palette. Compact spacing and the saved theme choice remain. */
html .rph.rph-compact{
  --ink:#153e35;--muted:#46605b;--paper:#f6f9f5;--line:#cbded6;
  --rph-teal:#e0f3ec;--rph-blue:#e7effb;--rph-gold:#fff1d2;
  --rph-teal-edge:#36836d;--rph-blue-edge:#517ab4;--rph-gold-edge:#b57c1a;
  --rph-accent:#116b58;--rph-card:#ffffff;
  background:radial-gradient(ellipse 90% 470px at 100% 0,#d9eee7,transparent),var(--paper);
  color:var(--ink);
}
html[data-rp-theme="dark"] .rph.rph-compact{
  --ink:#eff8f5;--muted:#b8cfca;--paper:#0c171c;--line:#3d5c61;
  --rph-teal:#173b37;--rph-blue:#1b304b;--rph-gold:#39321e;
  --rph-teal-edge:#50cdb3;--rph-blue-edge:#86b2f0;--rph-gold-edge:#e9bd61;
  --rph-accent:#65dfc5;--rph-card:#15262c;
  background:radial-gradient(ellipse 90% 470px at 100% 0,#174039,transparent),var(--paper);
  color:var(--ink);
}
html .rph.rph-compact .rph-nav{border-bottom:1px solid var(--line)}
html .rph.rph-compact .rph-kicker{color:var(--rph-accent)}
html .rph.rph-compact h1 em{color:var(--rph-accent)}
html .rph.rph-compact .rph-value-strip{border:0;padding:0;gap:7px}
html .rph.rph-compact .rph-value-strip p{padding:10px 8px;border-radius:12px;background:var(--rph-teal);color:var(--muted)}
html .rph.rph-compact .rph-value-strip p:nth-child(2){background:var(--rph-blue)}
html .rph.rph-compact .rph-value-strip p:nth-child(3){background:var(--rph-gold)}
html .rph.rph-compact .rph-value-strip strong{color:var(--ink)}
html .rph.rph-compact .rph-feature{background:var(--rph-teal);border-color:var(--line);border-top:3px solid var(--rph-teal-edge);color:var(--ink)}
html .rph.rph-compact .rph-feature:nth-child(3n+2){background:var(--rph-blue);border-top-color:var(--rph-blue-edge)}
html .rph.rph-compact .rph-feature:nth-child(3n){background:var(--rph-gold);border-top-color:var(--rph-gold-edge)}
html .rph.rph-compact .rph-feature p{color:var(--muted)}
html .rph.rph-compact .rph-feature .rph-number{color:var(--ink);font-weight:800}
html .rph.rph-compact .rph-style-card{background:var(--rph-teal);border:1px solid var(--line);border-left:4px solid var(--rph-teal-edge);color:var(--ink)}
html .rph.rph-compact .rph-style-card:nth-child(2){background:var(--rph-blue);border-left-color:var(--rph-blue-edge)}
html .rph.rph-compact .rph-style-card p{color:var(--muted)}
html .rph.rph-compact .rph-style-card strong{color:var(--ink)}
html .rph.rph-compact .rph-plan{background:var(--rph-card);border-color:var(--line);border-top:4px solid var(--rph-blue-edge);color:var(--ink)}
html .rph.rph-compact .rph-plan:nth-child(2){background:var(--rph-teal);border:1px solid var(--line);border-top:4px solid var(--rph-gold-edge)}
html .rph.rph-compact :is(.rph-destination,.rph-park-directory){background:var(--rph-card);border-color:var(--line);color:var(--ink)}
html .rph.rph-compact .rph-steps p{border-color:var(--rph-teal-edge)}
html .rph.rph-compact .rph-steps p:nth-child(2){border-color:var(--rph-blue-edge)}
html .rph.rph-compact .rph-steps p:nth-child(3){border-color:var(--rph-gold-edge)}
html .rph.rph-compact .rph-footer{margin-top:24px;border-top:1px solid var(--line)}

/* Photo, caption and touch controls fit together at narrow widths. */
html .rph.rph-compact .rph-hero-photo{height:220px!important;aspect-ratio:auto!important;border:1px solid var(--line);box-shadow:0 10px 28px #0c32241a!important}
html .rph.rph-compact .rph-hero-photo img{object-position:var(--rph-photo-position,50% 45%)!important}
html .rph.rph-compact .rph-hero-photo figcaption{padding:42px 14px 12px!important;background:linear-gradient(transparent,#0c242de8 42%)!important;text-align:left}
html .rph.rph-compact .rph-hero-photo figcaption span:first-child{font-size:16px!important}
html .rph.rph-compact .rph-hero-photo .rph-photo-location{font-size:11px!important}
html .rph.rph-compact .rph-hero-controls{top:10px!important;right:10px!important;bottom:auto!important;padding:3px!important;gap:3px!important;transform:none!important}
html .rph.rph-compact .rph-hero-controls button{width:44px!important;min-width:44px!important;height:44px!important}
@media(min-width:600px){html .rph.rph-compact .rph-hero-photo{height:260px!important}}
@media(min-width:960px){html .rph.rph-compact .rph-hero-photo{height:100%!important;min-height:320px!important;max-height:420px!important}}
@media(prefers-reduced-motion:reduce){.rph .rph-hero-photo img{transition:none!important}}

/* Restore the illustrated explanations without the old oversized spacing. */
html .rph.rph-compact .rph-feature-wide{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
html .rph.rph-compact .rph-feature-wide .rph-park-photo{width:100%;height:210px;border-radius:12px;order:0}
html .rph.rph-compact .rph-feature-wide .rph-park-photo img{width:100%;height:100%;object-fit:cover}
html .rph.rph-compact .rph-park-photo figcaption{padding:10px 12px;background:#153e35;color:white}
html .rph.rph-compact .rph-feature .rph-icon{width:36px;height:36px;margin-bottom:10px}
html .rph.rph-compact .rph-feature :is(h3,strong){color:var(--ink)}
html .rph.rph-compact .rph-feature-dark .rph-icon{filter:none}
html[data-rp-theme="dark"] .rph.rph-compact .rph-feature .rph-icon{filter:brightness(0) invert(1)}
@media(min-width:700px){html .rph.rph-compact .rph-feature-wide{grid-column:1/-1;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);align-items:center}}
@media(min-width:960px){html .rph.rph-compact .rph-feature-wide{grid-column:span 2}.rph.rph-compact .rph-feature-soft{grid-column:1/-1}}

/* Nine ranked benefits: compact first, with the first three given extra weight. */
html .rph.rph-compact .rph-top-nine .rph-grid{align-items:stretch;justify-items:stretch;grid-auto-rows:auto}
html .rph.rph-compact .rph-top-nine .rph-feature{display:flex;flex-direction:column;align-self:stretch;width:100%;min-width:0;max-width:none;margin:0;padding:16px;border-top-width:5px;scroll-margin-top:18px}
html .rph.rph-compact .rph-top-nine .rph-feature-heading{display:flex;align-items:center;gap:10px;min-height:36px;margin:0 0 10px}
html .rph.rph-compact .rph-feature-heading>.wp-block-group__inner-container{display:contents}
html .rph.rph-compact .rph-top-nine .rph-feature-rank{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:var(--rph-card);color:var(--ink);font-size:14px;font-weight:800;line-height:1;margin:0!important}
html .rph.rph-compact .rph-top-nine .rph-number{margin:0!important;font-size:10px;line-height:1.4;letter-spacing:.07em}
html .rph.rph-compact .rph-top-nine h3{font-size:20px;line-height:1.2;margin:0;overflow-wrap:break-word}
html .rph.rph-compact .rph-top-nine .rph-feature-lead{border-top-width:5px}
html .rph.rph-compact .rph-top-nine .rph-feature-lead h3{font-size:20px}
html .rph.rph-compact .rph-top-nine .rph-feature-lead .rph-feature-rank{background:var(--ink);color:var(--paper)}
html .rph.rph-compact .rph-top-nine .rph-feature-photo{flex:none;width:100%;margin:12px 0 0!important;overflow:hidden;border-radius:10px}
html .rph.rph-compact .rph-top-nine .rph-feature-photo img{display:block;width:100%;height:150px;object-fit:cover}
html .rph.rph-compact .rph-top-nine .rph-feature-photo figcaption{margin:0;padding:7px 10px;font-size:11px;line-height:1.4;background:var(--rph-card);color:var(--ink)}
html .rph.rph-compact .rph-top-nine .rph-alert-icon{display:block;flex:0 0 36px;width:36px;height:36px;margin:0 0 0 auto!important}
html .rph.rph-compact .rph-top-nine .rph-alert-icon img{display:block;width:36px;height:36px}
html[data-rp-theme="dark"] .rph.rph-compact .rph-top-nine .rph-alert-icon{filter:brightness(0) invert(1)}

/* 2.1.38: one consistent feature-card grid for HTML and WordPress blocks. */
html .rph.rph-compact .rph-top-nine .rph-feature>.wp-block-group__inner-container{display:contents}
html .rph.rph-compact .rph-top-nine .rph-feature-heading>*{min-width:0}
@media(min-width:600px){
 html .rph.rph-compact .rph-top-nine .rph-grid{grid-auto-rows:1fr}
 html .rph.rph-compact .rph-top-nine .rph-feature h3{min-height:2.4em}
 html .rph.rph-compact .rph-top-nine .rph-feature-photo{margin-top:auto!important;padding-top:12px}
}
