/* ExpertsGuys slim article cards and tool controls v1.0.0. CSS only. */
html body {
  --egsl-surface:#fff; --egsl-soft:#f6f7ff; --egsl-ink:#172238;
  --egsl-muted:#5d6579; --egsl-line:#dce2f1; --egsl-blue:#2563d9; --egsl-purple:#7541c5;
}
html body[data-theme="dark"] {
  --egsl-surface:#111b2c; --egsl-soft:#18243a; --egsl-ink:#f1f4ff;
  --egsl-muted:#b8c3d9; --egsl-line:#35425e; --egsl-blue:#89b2ff; --egsl-purple:#c09aff;
}
/* A fine gradient frame replaces the heavy solid outline. */
html body.single-post.egcx-experience .single-related {
  border:1px solid transparent !important; border-radius:20px !important;
  background:linear-gradient(var(--egsl-surface),var(--egsl-surface)) padding-box,
    linear-gradient(135deg,#3c8ce3,#8c5bd6 55%,#77bcd8) border-box !important;
  padding:20px !important; box-shadow:0 8px 28px #203f7610;
}
html body.single-post .single-related>.block-h {
  border-top:0 !important; padding-top:0 !important; margin-bottom:22px;
}
html body.single-post .single-related>.block-h .heading-inner {
  border-top:0 !important; padding-top:0 !important;
}
html body.single-post .single-related>.block-h .heading-title {
  display:flex; align-items:center; gap:10px; color:var(--egsl-ink) !important;
}
html body.single-post .single-related>.block-h .heading-title::before {
  content:""; display:inline-block; flex:none; width:5px; height:22px;
  border-radius:4px; background:linear-gradient(#2774dc,#8950cb);
}
html body.single-post .single-related .egbp-related-columns { gap:22px !important; }
/* Feature card: compact accent, generous reading space, original links. */
html body.single-post.egcx-experience .single-related .egbp-related-columns>.egbp-related-lead {
  position:relative; align-self:stretch !important; height:100% !important;
  border:1px solid var(--egsl-line) !important; border-top:3px solid #5778d6 !important;
  border-radius:15px !important; padding:16px !important;
  background:linear-gradient(145deg,var(--egsl-surface),var(--egsl-soft)) !important;
  color:var(--egsl-ink) !important; overflow:hidden;
}
html body.single-post .single-related .egbp-related-lead::before {
  content:"READ NEXT"; display:inline-block; margin-bottom:12px; padding:4px 9px;
  color:var(--egsl-purple); background:var(--egsl-soft); border:1px solid var(--egsl-line);
  border-radius:6px; font:700 10px/1.2 Arial,Helvetica,sans-serif; letter-spacing:1px;
}
html body.single-post .single-related .egbp-related-lead .entry-title {
  margin:0 0 14px !important; font-size:clamp(24px,2.2vw,29px) !important; line-height:1.18 !important;
}
html body.single-post .single-related .egbp-related-lead .entry-title a,
html body.single-post .single-related .egbp-related-list .entry-title a {
  color:var(--egsl-ink) !important; text-decoration:none;
}
html body.single-post .single-related .egbp-related-lead .feat-holder { border-radius:10px; overflow:hidden; }
html body.single-post .single-related .egbp-post-follow {
  margin-top:16px !important; padding-top:14px !important; border-top:1px solid var(--egsl-line) !important;
}
html body.single-post .single-related .egbp-post-follow h3 {
  margin:0 0 10px !important; font-size:17px !important; color:var(--egsl-ink) !important;
}
html body.single-post .single-related .egbp-post-follow-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
html body.single-post .single-related .egbp-post-follow-links a {
  display:flex; gap:6px; align-items:center; justify-content:center;
  min-height:38px; padding:8px 5px !important; border:1px solid var(--egsl-line) !important;
  border-radius:9px !important; background:var(--egsl-surface) !important;
  color:var(--egsl-ink) !important; box-shadow:none !important;
  font:700 11px/1.2 Arial,Helvetica,sans-serif;
}
html body.single-post .single-related .egbp-post-follow-links i { font-size:16px; color:var(--egsl-purple); }
/* Slim list cards retain the title/thumb arrangement. */
html body.single-post.egcx-experience .single-related .egbp-related-columns>.egbp-related-list {
  display:grid !important; grid-auto-rows:1fr; gap:10px !important;
  align-self:stretch !important; height:100% !important;
}
html body.single-post .single-related .egbp-related-list>.p-wrap {
  position:relative; min-width:0; min-height:110px; margin:0 !important; padding:13px 12px 13px 16px !important;
  border:1px solid var(--egsl-line) !important; border-radius:12px;
  background:linear-gradient(130deg,var(--egsl-surface),var(--egsl-soft)); overflow:hidden;
}
html body.single-post .single-related .egbp-related-list>.p-wrap::before {
  content:""; position:absolute; left:0; top:16px; bottom:16px; width:3px;
  background:linear-gradient(#427fda,#9260cd); border-radius:3px;
}
html body.single-post .single-related .egbp-related-list>.p-wrap>.grid-box {
  display:flex !important; flex-direction:row !important; align-items:center; gap:12px;
  height:100%; min-width:0;
}
html body.single-post .single-related .egbp-related-list .entry-title {
  order:1; flex:1; min-width:0; margin:0 !important; padding:0 !important;
  font-size:19px !important; line-height:1.22 !important;
}
html body.single-post .single-related .egbp-related-list .feat-holder {
  order:2; flex:0 0 82px !important; width:82px !important; max-width:82px !important;
  margin:0 !important; border-radius:8px; overflow:hidden;
}
html body.single-post .single-related .egbp-related-list .p-featured { margin:0 !important; }
html body.single-post .single-related .egbp-related-list .featured-img {
  width:82px !important; height:70px !important; object-fit:cover; display:block;
}
/* The upload panel gets its own full-width row below the ad and both article columns. */
@media(min-width:1024px) {
  html body.single-post.egcx-experience .single-related .egbp-related-columns>.egbp-related-ad {
    grid-area:1 / 3 / 2 / 4 !important;
  }
  html body.single-post.egcx-experience .single-related .egbp-related-columns>.egot-related-converter {
    grid-area:2 / 1 / 3 / -1 !important; width:100% !important; max-width:none !important;
  }
}
html body.single-post.egcx-experience .single-related .egot-related-converter {
  box-sizing:border-box; border:1px solid var(--egsl-line) !important; border-radius:14px !important;
  background:linear-gradient(110deg,var(--egsl-soft),var(--egsl-surface)) !important;
  padding:14px !important; color:var(--egsl-ink) !important;
  box-shadow:inset 0 3px #6878cf !important;
}
html body .single-related .egot-related-converter .egot-converter-heading { display:flex; align-items:center; gap:10px; padding:0 0 12px; margin:0; }
html body .single-related .egot-related-converter .egot-converter-mark {
  display:grid; place-items:center; flex:none; width:34px; height:34px;
  border-radius:9px; background:linear-gradient(135deg,#2866d4,#823bbb); color:#fff !important; font-size:22px;
}
html body .single-related .egot-related-converter .egot-converter-heading h2 {
  margin:0 !important; font-size:22px !important; line-height:1.2; color:var(--egsl-ink) !important;
}
html body .single-related .egot-related-converter .egot-converter-heading p { margin:4px 0 0; font-size:12px; line-height:1.4; color:var(--egsl-muted) !important; }
html body .single-related .egot-related-converter .egot-converter-disclosure { border:1px solid var(--egsl-line); border-radius:10px; overflow:hidden; background:var(--egsl-surface); }
html body .single-related .egot-related-converter .egot-converter-disclosure>summary { min-height:36px; padding:8px 12px; color:var(--egsl-ink) !important; background:var(--egsl-surface) !important; font:700 12px/20px Arial,Helvetica,sans-serif; cursor:pointer; }
html body .single-related .egot-related-converter .egot-form { margin:0 !important; padding:0 10px 10px !important; }
html body .single-related .egot-related-converter .egot-drop {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px;
  min-height:96px !important; margin:0 !important; padding:18px !important;
  border:1px dashed #a6afd1 !important; border-radius:9px !important;
  background:var(--egsl-soft) !important; color:var(--egsl-muted) !important;
}
html body .single-related .egot-related-converter .egot-drop>p { margin:0 !important; font-size:13px; color:var(--egsl-muted) !important; }
html body .single-related .egot-related-converter .egot-file { margin:0 !important; }
html body .single-related .egot-related-converter .egot-file>span {
  display:inline-flex; align-items:center; justify-content:center; min-height:42px;
  padding:10px 18px !important; border-radius:9px !important;
  background:linear-gradient(115deg,#2557c8,#7937b4) !important; color:#fff !important;
  font:700 14px/1.3 Arial,Helvetica,sans-serif;
}
/* The two existing tools get matching compact headers; positioning stays with the tool plugin. */
html body .egot-sidebar, html body .egot-category:not(.is-header-docked) {
  border:1px solid var(--egsl-line) !important; border-radius:12px !important;
  background:var(--egsl-surface) !important; box-shadow:0 3px 12px #243a6810 !important;
}
html body .egot-sidebar>details>summary,
html body .egot-category>details>summary {
  box-sizing:border-box; position:relative; display:flex !important; align-items:center; gap:9px;
  min-height:40px !important; margin:0 !important; padding:8px 34px 8px 10px !important;
  list-style:none !important; background:linear-gradient(105deg,var(--egsl-soft),var(--egsl-surface)) !important;
  color:var(--egsl-ink) !important; -webkit-text-fill-color:var(--egsl-ink) !important;
  border-left:3px solid #4976d5 !important; border-radius:10px 10px 0 0;
  text-align:left; cursor:pointer; font:700 13px/22px Arial,Helvetica,sans-serif !important;
}
html body .egot-sidebar>details>summary::-webkit-details-marker,
html body .egot-category>details>summary::-webkit-details-marker { display:none; }
html body .egot-sidebar>details>summary::before,
html body .egot-category>details>summary::before {
  content:"▦" !important; position:static !important; display:grid !important; place-items:center;
  flex:0 0 23px; width:23px !important; height:23px !important; margin:0 !important; padding:0 !important;
  border:0 !important; border-radius:6px; background:linear-gradient(135deg,#2e6bd4,#7751bd) !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important; font:700 17px/1 Arial,Helvetica,sans-serif !important;
  transform:none !important;
}
html body .egot-category>details>summary { border-left-color:#8b52c8 !important; }
html body .egot-category>details>summary::before { content:"±" !important; }
html body .egot-sidebar>details>summary::after,
html body .egot-category>details>summary::after {
  content:"" !important; position:absolute !important; right:14px !important; top:calc(50% - 5px) !important;
  width:7px !important; height:7px !important; border:0 !important;
  border-right:2px solid var(--egsl-muted) !important; border-bottom:2px solid var(--egsl-muted) !important;
  background:none !important; transform:rotate(45deg) !important;
}
html body .egot-sidebar>details[open]>summary::after,
html body .egot-category>details[open]>summary::after { transform:rotate(225deg) !important; top:calc(50% - 2px) !important; }
html body .egot-sidebar>details[open]>summary,
html body .egot-category>details[open]>summary { border-bottom:1px solid var(--egsl-line); }
html body .egot-category>details>form[data-calculator] {
  padding:14px !important; background:#fff !important; color:#291747 !important;
  border-radius:0 0 10px 10px;
}
html body .egot-sidebar .egot-links a {
  border:1px solid var(--egsl-line) !important; border-radius:8px !important;
  background:var(--egsl-soft) !important; color:var(--egsl-ink) !important; text-decoration:none;
}
html body .header-mobile-wrap .egot-mobile-panel {
  padding:10px !important; border-color:var(--egsl-line) !important;
  background:var(--egsl-surface) !important; box-shadow:0 9px 20px #17274b18 !important;
}
html body .header-mobile-wrap .egot-mobile-panel>a { min-height:36px !important; color:var(--egsl-blue) !important; font-size:12px !important; }
@media(max-width:1023px) {
  html body .header-mobile-wrap .egot-mobile-bar,
  html body .header-mobile-wrap .egot-category.is-header-docked {
    margin:0 !important; border:0 !important; border-bottom:1px solid var(--egsl-line) !important;
    border-radius:0 !important; background:var(--egsl-surface) !important; box-shadow:none !important;
  }
  html body .header-mobile-wrap :is(.egot-mobile-bar,.egot-category)>details>summary {
    min-height:40px !important; padding-block:7px !important; border-radius:0 !important;
    font-size:12px !important; line-height:22px !important;
  }
  html body .single-related .egbp-related-list .entry-title { font-size:18px !important; }
}
@media(max-width:600px) {
  html body.single-post.egcx-experience .single-related { padding:12px !important; border-radius:16px !important; }
  html body.single-post .single-related .egbp-related-columns { gap:16px !important; }
  html body.single-post.egcx-experience .single-related .egbp-related-columns>.egbp-related-lead { padding:12px !important; border-radius:12px !important; }
  html body.single-post .single-related .egbp-related-lead .entry-title { font-size:24px !important; }
  html body.single-post .single-related .egbp-related-list>.p-wrap { min-height:96px; padding:11px 10px 11px 14px !important; }
  html body.single-post .single-related .egbp-related-list .feat-holder { flex-basis:70px !important; width:70px !important; max-width:70px !important; }
  html body.single-post .single-related .egbp-related-list .featured-img { width:70px !important; height:64px !important; }
  html body.single-post .single-related .egbp-post-follow-links { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  html body.single-post .single-related .egbp-post-follow-links a { font-size:10px; padding:8px 3px !important; flex-direction:column; gap:4px; min-height:48px; }
  html body.single-post.egcx-experience .single-related .egot-related-converter { padding:10px !important; }
  html body .single-related .egot-related-converter .egot-converter-heading h2 { font-size:20px !important; }
  html body .single-related .egot-related-converter .egot-drop { min-height:104px !important; padding:14px 10px !important; gap:9px; }
}
html body .single-related :is(.egbp-related-lead,.egbp-related-list) a:focus-visible,
html body .egot-sidebar :is(summary,a):focus-visible,
html body .egot-category :is(summary,button,input,select):focus-visible {
  outline:2px solid #8551c8; outline-offset:3px;
}
@media(hover:hover) {
  html body .single-related .egbp-post-follow-links a:hover,
  html body .egot-sidebar .egot-links a:hover { border-color:#8e9ed7 !important; background:var(--egsl-surface) !important; }
  html body .single-related .entry-title a:hover { color:var(--egsl-purple) !important; }
}

/* Override the theme’s more specific ad/converter pairing rule. */
@media(min-width:1024px) {
  html body.single-post.egcx-experience .single-related .egbp-related-columns:has(>.egbp-related-ad):has(>.egot-related-converter)>.egbp-related-ad { grid-area:1 / 3 / 2 / 4 !important; }
  html body.single-post.egcx-experience .single-related .egbp-related-columns:has(>.egbp-related-ad):has(>.egot-related-converter)>.egot-related-converter { grid-area:2 / 1 / 3 / -1 !important; }
}
html body.single-post.egcx-experience .single-related .egbp-related-lead>.grid-box,
html body.single-post.egcx-experience .single-related .egbp-related-list>.p-wrap>.grid-box { border:0 !important; padding:0 !important; background:none !important; box-shadow:none !important; }
html body .single-related .egot-related-converter .egot-drop { flex-direction:row !important; }
html body .single-related .egot-related-converter .egot-drop>.egot-file { width:auto !important; flex:0 0 auto; }
