/* =========================================================================
   UNIVERSAL CALCULATOR EDITORIAL SURFACE
   The calculator shortcode leaves a render-time marker before editor-written
   guidance. PHP turns that marker into this wrapper after the native FAQ has
   been appended. Nothing here affects ordinary articles or the Tools hub.
   ========================================================================= */
.rtit-editor-guide{
  --rtit-navy:#0E2340;
  --rtit-blue:#0B5D8A;
  --rtit-gold:#F5B516;
  --rtit-gold-ink:#805600;
  --rtit-text:#152A44;
  --rtit-text-2:#3E4F64;
  --rtit-text-3:#6B7A8D;
  --rtit-line:#DCE3EA;
  --rtit-sans:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;

  position:relative;
  box-sizing:border-box;
  max-width:900px;
  margin:44px auto 0;
  padding:clamp(28px,4vw,42px);
  border:1px solid #D7E2EC;
  border-top:5px solid var(--rtit-gold);
  border-radius:18px;
  background:
    radial-gradient(circle at 96% 0,rgba(11,93,138,.065),transparent 23%),
    linear-gradient(180deg,#FFFFFF 0%,#FCFDFE 100%);
  box-shadow:0 18px 48px rgba(7,27,61,.075);
  color:var(--rtit-text);
  font-family:var(--rtit-sans);
  font-size:16px;
  line-height:1.72;
}
.rtit-editor-guide:empty{display:none}
.rtit-editor-guide *,
.rtit-editor-guide *::before,
.rtit-editor-guide *::after{box-sizing:border-box}
.rtit-editor-guide > :first-child{margin-top:0!important}
.rtit-editor-guide > :last-child{margin-bottom:0!important}

.rts-entry-content .rtit-editor-guide > h2,
.rts-entry-content .rtit-editor-guide > h3{
  color:var(--rtit-navy);
  font-family:var(--rtit-sans);
  font-weight:750;
  letter-spacing:-.015em;
  line-height:1.28;
}
.rts-entry-content .rtit-editor-guide > h2{
  margin:38px 0 15px;
  padding:0 0 12px;
  border-bottom:1px solid #DCE5EE;
  font-size:clamp(25px,3vw,31px);
}
.rts-entry-content .rtit-editor-guide > h2::after{
  content:"";
  display:block;
  width:54px;
  height:3px;
  margin-top:12px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--rtit-gold),var(--rtit-blue));
}
.rts-entry-content .rtit-editor-guide > h3{
  margin:34px 0 14px;
  padding:12px 17px;
  border-left:4px solid var(--rtit-gold);
  border-radius:0 10px 10px 0;
  background:linear-gradient(90deg,#F1F6FA 0%,rgba(241,246,250,.28) 82%,transparent 100%);
  font-size:clamp(19px,2.2vw,22px);
}
.rts-entry-content .rtit-editor-guide > p{
  max-width:78ch;
  margin:0 0 17px;
  color:var(--rtit-text-2);
  font-size:16px;
  line-height:1.76;
}
.rts-entry-content .rtit-editor-guide > h2 + p,
.rts-entry-content .rtit-editor-guide > h3 + p{
  color:#30445C;
  font-size:16.5px;
}
.rts-entry-content .rtit-editor-guide strong,
.rts-entry-content .rtit-editor-guide b{color:var(--rtit-navy);font-weight:750}
.rts-entry-content .rtit-editor-guide em{color:#455A72}
.rts-entry-content .rtit-editor-guide a{
  color:var(--rtit-blue);
  font-weight:650;
  text-decoration:underline;
  text-decoration-color:rgba(11,93,138,.35);
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.rts-entry-content .rtit-editor-guide a:hover{
  color:#084667;
  text-decoration-color:var(--rtit-gold);
}

.rts-entry-content .rtit-editor-guide > ul,
.rts-entry-content .rtit-editor-guide > ol{
  max-width:78ch;
  margin:10px 0 22px;
  padding:16px 20px;
  border:1px solid #D9E4ED;
  border-radius:12px;
  background:#F7FAFC;
  list-style:none;
}
.rts-entry-content .rtit-editor-guide > ul > li,
.rts-entry-content .rtit-editor-guide > ol > li{
  position:relative;
  margin:0;
  padding:9px 0 9px 28px;
  border-bottom:1px solid #E5ECF2;
  color:#34495F;
  line-height:1.65;
}
.rts-entry-content .rtit-editor-guide > ul > li:last-child,
.rts-entry-content .rtit-editor-guide > ol > li:last-child{border-bottom:0}
.rts-entry-content .rtit-editor-guide > ul > li::before{
  content:"";
  position:absolute;
  left:3px;
  top:18px;
  width:9px;
  height:9px;
  border:2px solid var(--rtit-blue);
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 3px rgba(11,93,138,.09);
}
.rts-entry-content .rtit-editor-guide > ol{counter-reset:rtit-guide-list}
.rts-entry-content .rtit-editor-guide > ol > li{counter-increment:rtit-guide-list;padding-left:36px}
.rts-entry-content .rtit-editor-guide > ol > li::before{
  content:counter(rtit-guide-list,decimal-leading-zero);
  position:absolute;
  left:0;
  top:9px;
  color:var(--rtit-gold-ink);
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
}

.rts-entry-content .rtit-editor-guide code{
  padding:.16em .42em;
  border:1px solid #D6E3EE;
  border-radius:6px;
  background:#EEF5FA;
  color:#0A4F79;
  font:700 .9em/1.5 var(--rtit-sans);
  white-space:normal;
}
.rts-entry-content .rtit-editor-guide > blockquote{
  max-width:78ch;
  margin:24px 0;
  padding:18px 21px;
  border:1px solid #EAD798;
  border-left:5px solid var(--rtit-gold);
  border-radius:10px;
  background:#FFF9E8;
  color:#5D4B1D;
}
.rts-entry-content .rtit-editor-guide > blockquote p{margin:0;color:inherit}
.rts-entry-content .rtit-editor-guide > hr{
  height:1px;
  margin:30px 0;
  border:0;
  background:#DCE5EE;
}

.rts-entry-content .rtit-editor-guide > table,
.rts-entry-content .rtit-editor-guide > .wp-block-table{
  width:100%;
  margin:22px 0 26px;
}
.rts-entry-content .rtit-editor-guide > .wp-block-table{
  overflow-x:auto;
  border:1px solid #D7E2EC;
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 24px rgba(7,27,61,.05);
}
.rts-entry-content .rtit-editor-guide > table,
.rts-entry-content .rtit-editor-guide > .wp-block-table table{
  width:100%;
  min-width:560px;
  border:1px solid #D7E2EC;
  border-collapse:separate;
  border-spacing:0;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  color:var(--rtit-text-2);
  font-size:14.5px;
  line-height:1.55;
}
.rts-entry-content .rtit-editor-guide > .wp-block-table table{border:0;border-radius:0}
.rts-entry-content .rtit-editor-guide th{
  padding:13px 15px;
  border:0;
  border-bottom:1px solid #294865;
  background:var(--rtit-navy);
  color:#fff;
  font-size:12px;
  font-weight:750;
  letter-spacing:.04em;
  text-align:left;
  text-transform:uppercase;
}
.rts-entry-content .rtit-editor-guide td{
  padding:13px 15px;
  border:0;
  border-bottom:1px solid #E3EAF0;
  background:#fff;
  vertical-align:top;
}
.rts-entry-content .rtit-editor-guide tbody tr:nth-child(even) td{background:#F7FAFC}
.rts-entry-content .rtit-editor-guide tbody tr:last-child td{border-bottom:0}
.rts-entry-content .rtit-editor-guide figure:not(.wp-block-table){margin:26px 0}
.rts-entry-content .rtit-editor-guide figure img,
.rts-entry-content .rtit-editor-guide > img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid #D9E3EC;
  border-radius:14px;
  box-shadow:0 14px 34px rgba(7,27,61,.09);
}
.rts-entry-content .rtit-editor-guide figcaption{
  margin-top:9px;
  color:var(--rtit-text-3);
  font-size:12.5px;
  line-height:1.55;
  text-align:center;
}

/* Native FAQ: one compact, premium block after the calculator guide. */
.rtit-editor-guide > .rtit-faq{
  margin:40px 0 0;
  padding:30px 0 0;
  border-top:1px solid #D9E3EC;
  color:var(--rtit-text);
  font-family:var(--rtit-sans);
}
.rtit-editor-guide > .rtit-faq:first-child{padding-top:0;border-top:0}
.rts-entry-content .rtit-editor-guide > .rtit-faq > .rtit-faq-title{
  margin:0 0 17px;
  padding:0;
  border:0;
  background:none;
  color:var(--rtit-navy);
  font-size:clamp(24px,3vw,29px);
  line-height:1.25;
  letter-spacing:-.015em;
}
.rts-entry-content .rtit-editor-guide > .rtit-faq > .rtit-faq-title::after{
  content:"";
  display:block;
  width:50px;
  height:3px;
  margin-top:11px;
  border-radius:999px;
  background:var(--rtit-gold);
}
.rtit-editor-guide > .rtit-faq .rtit-faq-item{
  margin:0 0 10px;
  overflow:hidden;
  border:1px solid #D7E1EA;
  border-radius:10px;
  background:#fff;
  box-shadow:0 5px 16px rgba(7,27,61,.035);
}
.rtit-editor-guide > .rtit-faq .rtit-faq-item[open]{border-color:#B9CCDC}
.rtit-editor-guide > .rtit-faq summary{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px 19px;
  color:var(--rtit-navy);
  font-size:15.5px;
  font-weight:700;
  line-height:1.5;
  list-style:none;
  cursor:pointer;
}
.rtit-editor-guide > .rtit-faq summary::-webkit-details-marker{display:none}
.rtit-editor-guide > .rtit-faq summary::after{
  content:"+";
  flex:none;
  color:var(--rtit-blue);
  font-size:21px;
  font-weight:750;
  line-height:1;
}
.rtit-editor-guide > .rtit-faq .rtit-faq-item[open] summary::after{content:"\2212"}
.rtit-editor-guide > .rtit-faq summary:hover{background:#F7FAFC}
.rtit-editor-guide > .rtit-faq summary:focus-visible{outline:3px solid var(--rtit-blue);outline-offset:-3px}
.rtit-editor-guide > .rtit-faq .rtit-faq-answer{padding:0 19px 18px}
.rts-entry-content .rtit-editor-guide > .rtit-faq .rtit-faq-answer p{
  max-width:74ch;
  margin:0;
  color:var(--rtit-text-2);
  font-size:15.5px;
  line-height:1.7;
}

@media(max-width:700px){
  .rtit-editor-guide{
    margin-top:32px;
    padding:24px 18px;
    border-radius:14px;
    box-shadow:0 12px 30px rgba(7,27,61,.065);
  }
  .rts-entry-content .rtit-editor-guide > h2{margin-top:31px;font-size:24px}
  .rts-entry-content .rtit-editor-guide > h3{margin-top:29px;padding:11px 14px;font-size:19px}
  .rts-entry-content .rtit-editor-guide > p{font-size:15.5px;line-height:1.72}
  .rts-entry-content .rtit-editor-guide > h2 + p,
  .rts-entry-content .rtit-editor-guide > h3 + p{font-size:15.5px}
  .rts-entry-content .rtit-editor-guide > ul,
  .rts-entry-content .rtit-editor-guide > ol{padding:12px 14px}
  .rts-entry-content .rtit-editor-guide > ul > li{padding-left:25px}
  .rts-entry-content .rtit-editor-guide > table{display:block;min-width:0;overflow-x:auto}
  .rtit-editor-guide > .rtit-faq{margin-top:32px;padding-top:25px}
  .rtit-editor-guide > .rtit-faq summary{padding:14px 15px;font-size:15px}
  .rtit-editor-guide > .rtit-faq .rtit-faq-answer{padding:0 15px 16px}
  .rts-entry-content .rtit-editor-guide > .rtit-faq .rtit-faq-answer p{font-size:15px}
}
