/* RFardi shared premium UI v2 — public pages and WordPress shell */
:root{
  --rf2-green-950:#173b33;
  --rf2-green-900:#1f4d42;
  --rf2-green-800:#2a6253;
  --rf2-green-100:#e8f0ec;
  --rf2-sage:#dfe9df;
  --rf2-cream:#f7f2e8;
  --rf2-cream-2:#fcfaf5;
  --rf2-gold:#b38b4d;
  --rf2-ink:#1f2a27;
  --rf2-muted:#66736e;
  --rf2-line:rgba(31,77,66,.13);
  --rf2-shadow:0 18px 50px rgba(33,63,54,.09);
  --rf2-shadow-soft:0 10px 34px rgba(33,63,54,.065);
  --rf2-radius:22px;
}

body.rfardi-ui-v2:not(.wp-admin){
  background:var(--rf2-cream-2);
  color:var(--rf2-ink);
  font-family:"Vazirmatn","IRANSansX",Tahoma,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body.rfardi-ui-v2:not(.wp-admin) .site-content{background:var(--rf2-cream-2)}
body.rfardi-ui-v2:not(.wp-admin) h1,
body.rfardi-ui-v2:not(.wp-admin) h2,
body.rfardi-ui-v2:not(.wp-admin) h3,
body.rfardi-ui-v2:not(.wp-admin) h4{color:var(--rf2-ink);letter-spacing:-.35px}
body.rfardi-ui-v2:not(.wp-admin) p{color:var(--rf2-muted)}

/* Astra / theme chrome aligned with homepage v2 */
body.rfardi-ui-v2:not(.wp-admin) .ast-primary-header-bar{
  background:rgba(252,250,245,.94)!important;
  border-bottom:1px solid rgba(31,77,66,.08)!important;
  box-shadow:none!important;
  backdrop-filter:blur(18px);
}
body.rfardi-ui-v2:not(.wp-admin) .site-title a,
body.rfardi-ui-v2:not(.wp-admin) .ast-site-title-wrap .site-title a{color:var(--rf2-green-900)!important;font-weight:900}
body.rfardi-ui-v2:not(.wp-admin) .site-description{color:#73807b!important}
body.rfardi-ui-v2:not(.wp-admin) .main-header-menu>.menu-item>.menu-link,
body.rfardi-ui-v2:not(.wp-admin) .ast-builder-menu-1 .menu-item>.menu-link{
  color:#46524e!important;
  font-size:14px;
  font-weight:700;
}
body.rfardi-ui-v2:not(.wp-admin) .main-header-menu>.menu-item>.menu-link:hover,
body.rfardi-ui-v2:not(.wp-admin) .ast-builder-menu-1 .menu-item>.menu-link:hover,
body.rfardi-ui-v2:not(.wp-admin) .main-header-menu>.current-menu-item>.menu-link{
  color:var(--rf2-green-900)!important;
}
body.rfardi-ui-v2:not(.wp-admin) .main-header-menu>.menu-item:last-child>.menu-link,
body.rfardi-ui-v2:not(.wp-admin) .ast-builder-menu-1 .menu-item:last-child>.menu-link{
  min-height:43px;
  display:inline-flex;
  align-items:center;
  margin-inline-start:8px;
  padding-inline:18px!important;
  border-radius:12px;
  background:var(--rf2-green-900)!important;
  color:#fff!important;
}
body.rfardi-ui-v2:not(.wp-admin) .main-header-menu>.menu-item:last-child>.menu-link:hover,
body.rfardi-ui-v2:not(.wp-admin) .ast-builder-menu-1 .menu-item:last-child>.menu-link:hover{background:var(--rf2-green-950)!important;color:#fff!important}

/* Standard inner-page canvas */
body.rfardi-ui-v2:not(.wp-admin):not(.home):not(.rfardi-panel-page) .site-content>.ast-container{
  width:min(1180px,calc(100% - 48px));
  max-width:1180px;
  padding-top:58px;
  padding-bottom:86px;
}
body.rfardi-ui-v2:not(.wp-admin):not(.home):not(.rfardi-panel-page) #primary{min-width:0}
body.rfardi-ui-v2:not(.wp-admin):not(.home):not(.rfardi-panel-page) article.page{
  background:#fff;
  border:1px solid var(--rf2-line);
  border-radius:26px;
  padding:clamp(28px,4.2vw,56px);
  box-shadow:var(--rf2-shadow-soft);
  overflow:hidden;
}
body.rfardi-ui-v2:not(.wp-admin):not(.home):not(.rfardi-panel-page) article.page .entry-title{
  font-size:clamp(32px,4.4vw,50px);
  line-height:1.35;
  font-weight:900;
  margin-bottom:18px;
}
body.rfardi-ui-v2:not(.wp-admin):not(.home):not(.rfardi-panel-page) article.page .entry-content{
  font-size:16px;
  line-height:2.05;
  color:#53615c;
}
body.rfardi-ui-v2:not(.wp-admin):not(.home):not(.rfardi-panel-page) article.page .entry-content>p:first-child{
  font-size:17px;
  line-height:2.1;
  color:#596660;
}

/* Reusable content cards for existing WordPress pages */
body.rfardi-ui-v2:not(.wp-admin) .entry-content .wp-block-group,
body.rfardi-ui-v2:not(.wp-admin) .entry-content .wp-block-columns{
  border-radius:20px;
}
body.rfardi-ui-v2:not(.wp-admin) .entry-content .wp-block-button__link,
body.rfardi-ui-v2:not(.wp-admin) .entry-content a.rfardi-primary-link{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 22px;
  border-radius:13px;
  background:var(--rf2-green-900);
  color:#fff!important;
  border:1px solid var(--rf2-green-900);
  box-shadow:0 10px 25px rgba(31,77,66,.13);
  font-weight:800;
  text-decoration:none;
}
body.rfardi-ui-v2:not(.wp-admin) .entry-content .wp-block-button__link:hover,
body.rfardi-ui-v2:not(.wp-admin) .entry-content a.rfardi-primary-link:hover{
  background:var(--rf2-green-950);
  border-color:var(--rf2-green-950);
  transform:translateY(-1px);
}

/* Public assessments catalog — intentionally calm, factual and non-diagnostic */
.rfardi-public-assessments{
  direction:rtl;
  margin:0;
  padding:8px 0 12px;
  color:var(--rf2-ink);
}
.rfardi-public-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.48fr);
  gap:36px;
  align-items:end;
  margin-bottom:30px;
  padding-bottom:28px;
  border-bottom:1px solid var(--rf2-line);
}
.rfardi-public-kicker{
  display:inline-flex;
  width:max-content;
  min-height:31px;
  align-items:center;
  padding:0 13px;
  border-radius:999px;
  background:rgba(31,77,66,.08);
  color:var(--rf2-green-800);
  font-size:12px;
  font-weight:850;
  margin-bottom:14px;
}
.rfardi-public-head h2{
  margin:0;
  max-width:720px;
  font-size:clamp(30px,4vw,46px);
  line-height:1.42;
  font-weight:900;
}
.rfardi-public-head p{
  margin:0;
  color:var(--rf2-muted);
  font-size:14px;
  line-height:2;
}
.rfardi-public-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.rfardi-public-card{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  min-height:300px;
  padding:25px;
  border:1px solid var(--rf2-line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(33,63,54,.055);
  overflow:hidden;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.rfardi-public-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,var(--rf2-green-800),#7f9c8f);
  opacity:.75;
}
.rfardi-public-card:hover{
  transform:translateY(-3px);
  border-color:rgba(31,77,66,.22);
  box-shadow:var(--rf2-shadow);
}
.rfardi-public-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.rfardi-public-card h3{
  margin:0;
  font-size:22px;
  line-height:1.55;
  font-weight:900;
}
.rfardi-public-count{
  flex:0 0 auto;
  white-space:nowrap;
  padding:5px 10px;
  border-radius:999px;
  background:var(--rf2-green-100);
  color:var(--rf2-green-800);
  font-size:11px;
  font-weight:800;
}
.rfardi-public-card>p{
  margin:13px 0 15px;
  color:#5c6964;
  line-height:1.95;
  font-size:14px;
}
.rfardi-public-disclaimer{
  margin-top:auto;
  padding-top:14px;
  color:#7c8883;
  font-size:11px;
  line-height:1.8;
  border-top:1px solid rgba(31,77,66,.08);
}
.rfardi-public-action{
  width:max-content;
  min-height:43px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:17px;
  padding:0 17px;
  border-radius:12px;
  background:var(--rf2-green-900);
  border:1px solid var(--rf2-green-900);
  color:#fff!important;
  font-size:13px;
  font-weight:850;
  text-decoration:none!important;
  box-shadow:0 9px 22px rgba(31,77,66,.11);
}
.rfardi-public-action:hover{background:var(--rf2-green-950);border-color:var(--rf2-green-950);transform:translateY(-1px)}
.rfardi-public-empty{
  padding:24px 26px;
  border:1px solid rgba(179,139,77,.32);
  border-radius:18px;
  background:linear-gradient(135deg,#fffaf0,#f7f2e8);
  color:#66563e;
  line-height:1.95;
}

/* Forms outside authenticated panels */
body.rfardi-ui-v2:not(.wp-admin) input[type=text],
body.rfardi-ui-v2:not(.wp-admin) input[type=email],
body.rfardi-ui-v2:not(.wp-admin) input[type=tel],
body.rfardi-ui-v2:not(.wp-admin) input[type=password],
body.rfardi-ui-v2:not(.wp-admin) input[type=number],
body.rfardi-ui-v2:not(.wp-admin) input[type=date],
body.rfardi-ui-v2:not(.wp-admin) textarea,
body.rfardi-ui-v2:not(.wp-admin) select{
  min-height:48px;
  border:1px solid rgba(31,77,66,.18);
  border-radius:12px;
  background:#fff;
  color:var(--rf2-ink);
  box-shadow:none;
}
body.rfardi-ui-v2:not(.wp-admin) textarea{min-height:120px}
body.rfardi-ui-v2:not(.wp-admin) input:focus,
body.rfardi-ui-v2:not(.wp-admin) textarea:focus,
body.rfardi-ui-v2:not(.wp-admin) select:focus{
  border-color:rgba(31,77,66,.5);
  box-shadow:0 0 0 4px rgba(31,77,66,.07);
  outline:none;
}

/* Footer */
body.rfardi-ui-v2:not(.wp-admin) .site-footer,
body.rfardi-ui-v2:not(.wp-admin) .site-primary-footer-wrap,
body.rfardi-ui-v2:not(.wp-admin) .site-below-footer-wrap{
  background:var(--rf2-green-950)!important;
  color:#dce7e2!important;
}
body.rfardi-ui-v2:not(.wp-admin) .site-footer a{color:#fff!important}
body.rfardi-ui-v2:not(.wp-admin) .site-footer a:hover{color:#ead8b7!important}

@media(max-width:980px){
  .rfardi-public-head{grid-template-columns:1fr;gap:14px}
  .rfardi-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  body.rfardi-ui-v2:not(.wp-admin):not(.home):not(.rfardi-panel-page) .site-content>.ast-container{
    width:min(100% - 24px,1180px);
    padding-top:28px;
    padding-bottom:52px;
  }
  body.rfardi-ui-v2:not(.wp-admin):not(.home):not(.rfardi-panel-page) article.page{
    padding:24px 20px;
    border-radius:20px;
  }
  .rfardi-public-grid{grid-template-columns:1fr}
  .rfardi-public-card{min-height:0}
}
