
:root{
  --rhs-ink:#17315f;
  --rhs-purple:#6252d8;
  --rhs-green:#249e84;
  --rhs-border:#e6eaf1;
}

/* Global header / logo */
.site-header{background:#fff !important;border-bottom:1px solid #edf0f5}
.inside-header{max-width:1280px;margin:0 auto;padding:18px 28px !important;display:flex;align-items:center;gap:30px}
.site-logo img,.custom-logo{height:68px !important;width:auto !important;max-width:350px !important;object-fit:contain}
.site-branding{margin-right:auto}
.site-branding .main-title,.site-branding .site-description{display:none !important}
.main-navigation{background:#fff !important}
.main-navigation .main-nav ul li a{color:var(--rhs-ink) !important;font-size:15px;font-weight:600;padding-left:15px !important;padding-right:15px !important}
.main-navigation .main-nav ul li a:hover{opacity:.72;background:transparent !important}

/* Homepage reset */
body.home .site,body.home .site-content,body.home .content-area,body.home .site-main{width:100% !important;max-width:none !important;margin:0 !important;padding:0 !important}
body.home .widget-area,body.home .sidebar,body.home #right-sidebar,body.home .entry-header{display:none !important}
body.home .inside-article{padding:0 !important;background:#fff !important}
body.home .entry-content{margin:0 !important}

.rh-wrap{max-width:1280px !important;margin:0 auto !important;padding:30px 28px 88px !important}
.rh-wrap h1,.rh-wrap h2,.rh-wrap h3{color:var(--rhs-ink) !important;letter-spacing:-.025em}
.rh-wrap p{color:#4f5e73}

/* Hero */
.rh-hero{
  position:relative;overflow:hidden;min-height:560px !important;
  padding:72px 52% 72px 64px !important;border-radius:30px !important;
  background:linear-gradient(135deg,#f8f9fc 0%,#f0f4fb 100%) !important;margin-bottom:48px !important;
}
.rh-hero:after{
  content:"";position:absolute;top:24px;right:24px;bottom:24px;width:43%;border-radius:24px;
  background:radial-gradient(circle at 32% 30%,rgba(98,82,216,.28),transparent 32%),radial-gradient(circle at 70% 65%,rgba(36,158,132,.26),transparent 30%),linear-gradient(145deg,#edf1ff,#edf9f5);
  background-size:cover;background-position:center;background-repeat:no-repeat;z-index:0
}
.rh-hero>*{position:relative;z-index:1}
.rh-hero-title{font-size:clamp(50px,5.6vw,76px) !important;line-height:1 !important;max-width:660px !important;margin:0 0 22px !important}
.rh-lead{font-size:20px !important;line-height:1.55 !important;max-width:610px !important}
.rh-buttons{gap:12px !important;margin-top:28px !important}
.rh-btn .wp-block-button__link{border-radius:14px !important;padding:15px 24px !important;font-weight:700 !important;text-decoration:none !important}
.rh-btn-primary .wp-block-button__link{background:var(--rhs-purple) !important;color:#fff !important}
.rh-btn-secondary .wp-block-button__link{background:#fff !important;color:var(--rhs-ink) !important;border:1px solid #b7c1d1 !important}
.rh-btn-green .wp-block-button__link{background:var(--rhs-green) !important;color:#fff !important}
.rh-meta{font-size:14px !important;color:#67758a !important;margin-top:22px !important}

/* Homepage cards */
.rh-section-title{font-size:36px !important;margin:0 0 22px !important}
.rh-cards{gap:18px !important;margin-bottom:38px !important}
.rh-card{padding:28px !important;min-height:220px !important;border-radius:22px !important;box-shadow:0 6px 22px rgba(25,48,88,.04)}
.rh-card h3{font-size:23px !important}
.rh-card a{font-weight:700;text-decoration:none}
.rh-card-abort{background:#fff0ef !important}
.rh-card-contraception{background:#eaf8f3 !important}
.rh-card-pregnancy{background:#edf5ff !important}
.rh-card-health{background:#f2edff !important}
.rh-feature{padding:52px !important;margin:38px 0 !important;border-radius:26px !important;background:linear-gradient(135deg,#f5f0ff,#f4f8fc) !important}
.rh-feature h2{font-size:40px !important}
.rh-two-col{gap:24px !important;margin:30px 0 !important}
.rh-panel,.rh-map-placeholder{padding:30px !important;border:1px solid var(--rhs-border) !important;border-radius:22px !important;background:#fff !important}
.rh-resources{gap:14px !important}
.rh-resources .wp-block-column{padding:22px !important;border-radius:16px !important;background:#f6f7fb !important}
.rh-news,.rh-about{padding:32px 0 !important;border-top:1px solid var(--rhs-border) !important;margin-top:34px !important}

/* Dynamic centers/news */
.rhs-home-centers{display:block !important;min-height:360px !important;background:linear-gradient(145deg,#eef8f4,#f6f8fb) !important;overflow:hidden}
.rhs-home-centers .rhs-home-centers{display:grid}
.rhs-home-centers>.rhs-home-centers{display:grid}
.rhs-home-centers .rhs-home-center{}
.rhs-home-centers, .rhs-help-centers, .rhs-all-centers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rhs-home-center,.rhs-help-center,.rhs-all-center{background:#fff;border:1px solid var(--rhs-border);border-radius:15px;padding:16px}
.rhs-home-city,.rhs-help-city,.rhs-all-city{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#68768a;margin-bottom:6px}
.rhs-home-center h3,.rhs-help-center h3,.rhs-all-center h3{font-size:17px !important;color:var(--rhs-ink) !important;margin:0 0 8px}
.rhs-home-center p,.rhs-help-center p,.rhs-all-center p{font-size:12px !important;line-height:1.45 !important;margin:4px 0}
.rhs-home-center a,.rhs-help-center a,.rhs-all-center a{font-size:12px;font-weight:700;color:var(--rhs-green);text-decoration:none}

.rhs-newsgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}
.rhs-newscard{padding:20px;background:#f7f8fb;border-radius:18px;border:1px solid #e9edf3}
.rhs-newscard h3{font-size:19px !important;line-height:1.25 !important;margin:0 0 10px !important}
.rhs-newscard p{font-size:13px !important;line-height:1.5 !important}
.rhs-newscard a{text-decoration:none;font-weight:700}

/* Content pages from packs A/B/C/D */
.rh-content-page,.rh-legal-page,.rhpd-page{max-width:1100px;margin:0 auto;padding:58px 28px 90px}
.rh-content-page h1,.rh-legal-page h1,.rhpd-page h1{font-size:clamp(42px,6vw,70px);line-height:1.04;color:var(--rhs-ink);margin-bottom:18px}
.rh-content-lead,.rh-legal-lead,.rhpd-lead{font-size:21px;line-height:1.55;max-width:820px;color:#536176;margin-bottom:32px}
.rh-info-box,.rh-content-feature,.rh-source-note,.rh-legal-note,.rh-protocol-feature,.rhpd-help-note{padding:28px;border-radius:20px;background:#f5f7fb;margin:28px 0}
.rh-content-feature{background:linear-gradient(135deg,#f4f0ff,#f2f8fb)}
.rh-source-note{background:#eef8f4;border-left:4px solid var(--rhs-green)}
.rh-content-page h2,.rh-legal-page h2,.rhpd-page h2{color:var(--rhs-ink);font-size:32px;margin-top:36px}
.rh-content-cards{gap:18px;margin:24px 0}
.rh-content-card{border:1px solid var(--rhs-border);border-radius:20px;padding:26px;background:#fff}
.rh-content-card h3{color:var(--rhs-ink);font-size:23px}
.rh-content-page p,.rh-content-page li,.rh-legal-page p,.rh-legal-page li,.rhpd-page p{color:#4f5e73;line-height:1.65}
.rhpd-faq-item{border:1px solid var(--rhs-border);border-radius:16px;padding:18px 20px;margin:12px 0;background:#fff}
.rhpd-faq-item summary{cursor:pointer;font-weight:700;color:var(--rhs-ink)}
.rh-doc-btn .wp-block-button__link{background:var(--rhs-purple);color:#fff;border-radius:12px;font-weight:700}
.rh-doc-btn-secondary .wp-block-button__link{background:#fff;color:var(--rhs-ink);border:1px solid #b9c3d2;border-radius:12px;font-weight:700}

/* Footer */
.rhs-final-footer{border-top:1px solid #e9edf3;background:#f8f9fb;padding:36px 24px;margin-top:20px}
.rhs-final-footer-inner{max-width:1180px;margin:0 auto;display:flex;justify-content:space-between;gap:28px;align-items:flex-start}
.rhs-footer-brand{display:flex;flex-direction:column;gap:6px;color:var(--rhs-ink)}
.rhs-footer-brand span{font-size:13px;color:#6b778a}
.rhs-footer-links{display:flex;flex-wrap:wrap;gap:18px}
.rhs-footer-links a{color:var(--rhs-ink);font-size:13px;text-decoration:none}
.site-info{background:#fff !important;border-top:1px solid #edf0f5;color:#66758a !important}

/* Hide legacy duplicated custom outputs if old plugins remain active temporarily */
.rhcv1-newsgrid,.rhcv1-centers{display:none !important}

/* Mobile */
@media(max-width:782px){
  .inside-header{padding:10px 14px !important;min-height:70px}
  .site-logo img,.custom-logo{height:52px !important;max-width:260px !important}

  body.home .rh-wrap{padding:12px 12px 52px !important}
  body.home .rh-hero{padding:28px 18px !important;min-height:auto !important;border-radius:20px !important;background:radial-gradient(circle at 88% 18%,rgba(98,82,216,.12),transparent 24%),radial-gradient(circle at 72% 82%,rgba(36,158,132,.10),transparent 25%),linear-gradient(145deg,#f8f9fc,#eef4fb) !important}
  body.home .rh-hero:after{content:none !important;display:none !important}
  .rh-hero-title{font-size:34px !important;line-height:1.04 !important}
  .rh-lead{font-size:16px !important}
  .rh-buttons{display:block !important}
  .rh-buttons .wp-block-button{width:100% !important;margin:0 0 10px !important}
  .rh-buttons .wp-block-button__link{display:block !important;width:100% !important;text-align:center !important;box-sizing:border-box !important}
  .rh-section-title{font-size:28px !important}
  .rh-card{min-height:auto !important;padding:22px !important}
  .rh-feature{padding:26px 20px !important}
  .rh-feature h2{font-size:29px !important}
  .rh-feature .wp-block-buttons{display:block !important}
  .rh-feature .wp-block-button{width:100% !important;margin-bottom:10px !important}
  .rh-feature .wp-block-button__link{width:100% !important;text-align:center !important;box-sizing:border-box !important}

  .rhs-home-centers,.rhs-help-centers,.rhs-all-centers,.rhs-newsgrid{grid-template-columns:1fr}

  .rh-content-page,.rh-legal-page,.rhpd-page{padding:32px 16px 60px}
  .rh-content-page h1,.rh-legal-page h1,.rhpd-page h1{font-size:38px}
  .rh-content-lead,.rh-legal-lead,.rhpd-lead{font-size:17px}

  .rhs-final-footer-inner{display:block}
  .rhs-footer-links{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
}


/* =========================================================
   V1.1 — FINAL HOMEPAGE CLEANUP
   ========================================================= */

/* More compact, single-line-ish desktop navigation */
@media(min-width:1000px){
  .inside-header{
    max-width:1320px !important;
    padding:14px 22px !important;
    gap:18px !important;
  }
  .site-logo img,.custom-logo{
    height:58px !important;
    max-width:270px !important;
  }
  .main-navigation{
    flex:1 1 auto !important;
  }
  .main-navigation .main-nav > ul{
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:flex-end !important;
    column-gap:2px !important;
    row-gap:0 !important;
  }
  .main-navigation .main-nav ul li a{
    font-size:13px !important;
    line-height:1.2 !important;
    padding:9px 9px !important;
    white-space:nowrap !important;
  }
}

/* Hero: prevent the headline from becoming an extremely narrow column */
@media(min-width:783px){
  body.home .rh-hero{
    display:grid !important;
    grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr) !important;
    column-gap:42px !important;
    align-items:center !important;
    padding:62px 58px !important;
  }
  body.home .rh-hero:after{
    position:relative !important;
    inset:auto !important;
    width:100% !important;
    height:390px !important;
    grid-column:2 !important;
    grid-row:1 / span 20 !important;
    border-radius:24px !important;
    z-index:0 !important;
  }
  body.home .rh-hero > *:not(:after){
    grid-column:1 !important;
  }
  body.home .rh-hero-title{
    font-size:clamp(48px,5vw,70px) !important;
    max-width:720px !important;
  }
}

/* Help section: keep the centers compact instead of creating a tall empty left side */
@media(min-width:783px){
  body.home .rh-two-col{
    display:grid !important;
    grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr) !important;
    align-items:start !important;
  }
  body.home .rh-map-placeholder,
  body.home .rhs-home-centers{
    width:100% !important;
    min-height:0 !important;
  }
  body.home .rhs-home-centers{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    padding:16px !important;
  }
  body.home .rhs-home-center{
    padding:14px !important;
  }
  body.home .rhs-home-center:nth-child(n+7){
    display:none !important;
  }
}

/* Avoid the separate GeneratePress copyright strip looking like a second footer */
.site-info{
  padding:14px 20px !important;
  font-size:12px !important;
  background:#fff !important;
}
.rhs-final-footer{
  margin-top:0 !important;
}

/* A little more breathing room without giant gaps */
body.home .rh-two-col + .wp-block-columns,
body.home .rh-two-col + .rh-two-col{
  margin-top:30px !important;
}


/* =========================================================
   V1.2 — HEADER + CENTERS FINAL CLEANUP
   ========================================================= */

@media(min-width:1000px){
  .inside-header{
    max-width:1280px !important;
    padding:14px 24px !important;
    align-items:center !important;
  }
  .site-logo img,.custom-logo{
    height:60px !important;
    max-width:250px !important;
  }
  .main-navigation .main-nav > ul{
    flex-wrap:nowrap !important;
    justify-content:flex-end !important;
    align-items:center !important;
  }
  .main-navigation .main-nav ul li a{
    font-size:14px !important;
    padding:10px 10px !important;
  }
}

/* Homepage centers: one clean grid, no nested full-width card stack */
body.home .rh-map-placeholder{
  padding:16px !important;
  background:linear-gradient(145deg,#eef8f4,#f7f9fc) !important;
}
body.home .rh-map-placeholder > .rhs-home-centers{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
  padding:0 !important;
  background:transparent !important;
}
body.home .rhs-home-center{
  min-width:0 !important;
}
body.home .rhs-home-center:nth-child(n+7){
  display:none !important;
}

@media(max-width:782px){
  body.home .rh-map-placeholder > .rhs-home-centers{
    grid-template-columns:1fr !important;
  }
}


/* =========================================================
   V1.3 — WIDTH + HEADER FINALIZATION
   ========================================================= */

/* Force the public site to use the full browser width and eliminate the
   large empty right column caused by a legacy container/sidebar width. */
body,
.site,
.site.grid-container,
#page,
.site-content,
.content-area,
main.site-main,
.inside-article,
.entry-content{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

body.home .rh-wrap{
  width:min(100% - 32px, 1180px) !important;
  max-width:1180px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}

/* Ensure no legacy sidebar/column occupies invisible width on homepage. */
body.home #primary,
body.home .content-area{
  width:100% !important;
  float:none !important;
}
body.home #right-sidebar,
body.home #left-sidebar,
body.home .widget-area,
body.home .sidebar{
  display:none !important;
  width:0 !important;
}

/* Keep header aligned to the same content width as homepage. */
.inside-header{
  width:min(100% - 32px, 1180px) !important;
  max-width:1180px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Fallback: hide any cookie/privacy menu entry by URL/class if it persists. */
.main-navigation a[href*="cookie"],
.main-navigation a[href*="privacy"],
.main-navigation a[href*="politica-cookie"],
.main-navigation a[href*="politica-de-confidentialitate"]{
  display:none !important;
}
.main-navigation li:has(> a[href*="cookie"]),
.main-navigation li:has(> a[href*="privacy"]){
  display:none !important;
}

/* Header should remain readable rather than ultra-tiny. */
@media(min-width:1000px){
  .main-navigation .main-nav > ul{
    flex-wrap:wrap !important;
    justify-content:flex-end !important;
    max-width:900px !important;
  }
  .main-navigation .main-nav ul li a{
    font-size:13.5px !important;
    padding:8px 9px !important;
  }
}


/* =========================================================
   V1.4 — INTERNAL PAGES + HANDOFF PREP
   ========================================================= */

.rhs-internal-page .site-content{
  width:100% !important;
  max-width:none !important;
  padding:0 !important;
}
.rhs-internal-page .content-area{
  width:100% !important;
  max-width:none !important;
  float:none !important;
}
.rhs-internal-page .widget-area,
.rhs-internal-page #right-sidebar,
.rhs-internal-page #left-sidebar{
  display:none !important;
}
.rhs-internal-page .inside-article{
  padding:0 !important;
  background:#fff !important;
}
.rhs-internal-page .entry-header{
  display:none !important;
}
.rhs-internal-page .entry-content{
  margin:0 !important;
}

/* Generic page container if a page was authored without one of the custom pack classes */
.rhs-internal-page .entry-content > *:not(.alignfull):not(.alignwide){
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}
.rhs-internal-page .entry-content > p,
.rhs-internal-page .entry-content > ul,
.rhs-internal-page .entry-content > ol,
.rhs-internal-page .entry-content > h1,
.rhs-internal-page .entry-content > h2,
.rhs-internal-page .entry-content > h3{
  padding-left:28px;
  padding-right:28px;
  box-sizing:border-box;
}

/* Better typography on internal pages */
.rhs-internal-page h1{
  color:var(--rhs-ink);
  font-size:clamp(42px,5vw,68px);
  line-height:1.05;
  letter-spacing:-.03em;
}
.rhs-internal-page h2{
  color:var(--rhs-ink);
  font-size:32px;
  line-height:1.15;
}
.rhs-internal-page h3{
  color:var(--rhs-ink);
  font-size:22px;
}
.rhs-internal-page p,
.rhs-internal-page li{
  color:#4f5e73;
  line-height:1.68;
}
.rhs-internal-page a{
  text-underline-offset:2px;
}

/* Cards / details / tables / documents */
.rhs-internal-page .wp-block-details{
  border:1px solid var(--rhs-border);
  border-radius:16px;
  padding:18px 20px;
  margin:12px 0;
  background:#fff;
}
.rhs-internal-page .wp-block-details summary{
  color:var(--rhs-ink);
  font-weight:700;
  cursor:pointer;
}
.rhs-internal-page table{
  width:100%;
  border-collapse:collapse;
  margin:22px 0;
  font-size:15px;
}
.rhs-internal-page th,
.rhs-internal-page td{
  border:1px solid var(--rhs-border);
  padding:12px 14px;
  text-align:left;
  vertical-align:top;
}
.rhs-internal-page th{
  background:#f5f7fb;
  color:var(--rhs-ink);
}
.rhs-internal-page blockquote{
  border-left:4px solid var(--rhs-green);
  background:#f1f8f5;
  margin:24px 0;
  padding:18px 22px;
  border-radius:0 14px 14px 0;
}

/* Internal page spacing */
.rhs-internal-page .rh-content-page,
.rhs-internal-page .rh-legal-page,
.rhs-internal-page .rhpd-page{
  padding-top:56px !important;
  padding-bottom:84px !important;
}

/* Keep contact/help pages clean */
.rhs-internal-page .rhs-help-centers,
.rhs-internal-page .rhs-all-centers{
  margin-top:22px;
}
.rhs-internal-page .rhs-help-center,
.rhs-internal-page .rhs-all-center{
  box-shadow:0 4px 16px rgba(25,48,88,.035);
}

/* Mobile */
@media(max-width:782px){
  .rhs-internal-page .entry-content > p,
  .rhs-internal-page .entry-content > ul,
  .rhs-internal-page .entry-content > ol,
  .rhs-internal-page .entry-content > h1,
  .rhs-internal-page .entry-content > h2,
  .rhs-internal-page .entry-content > h3{
    padding-left:16px;
    padding-right:16px;
  }
  .rhs-internal-page .rh-content-page,
  .rhs-internal-page .rh-legal-page,
  .rhs-internal-page .rhpd-page{
    padding-top:30px !important;
    padding-bottom:54px !important;
  }
  .rhs-internal-page h1{
    font-size:36px;
  }
  .rhs-internal-page h2{
    font-size:27px;
  }
}


/* =========================================================
   V1.5 — POLISH
   ========================================================= */

/* Cleaner focus states and buttons */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible{
  outline:3px solid rgba(98,82,216,.28);
  outline-offset:3px;
  border-radius:6px;
}

.wp-block-button__link{
  transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.wp-block-button__link:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 18px rgba(23,49,95,.10);
}

/* Keep text readable on wide screens */
.rh-content-page p,
.rh-legal-page p,
.rhpd-page p,
.rhs-internal-page .entry-content > p{
  max-width:850px;
}

/* Better mobile tap targets in footer/header */
@media(max-width:782px){
  .rhs-footer-links a{
    display:block;
    padding:6px 0;
  }
  .main-navigation .menu-toggle{
    min-height:44px;
  }
}


/* =========================================================
   V1.6 — FINAL SMALL POLISH
   ========================================================= */
.admin-bar #wpadminbar #wp-admin-bar-rhs-staging > .ab-item{
  background:#8a6d00 !important;
  color:#fff !important;
  font-weight:700 !important;
}
