/* Visual-only refinement. Scoped to the public theme, never WordPress admin. */
body.sb-refined {
  --sb-surface: #fff;
  --sb-canvas: #f1f3f5;
  --sb-line: #d7dfe3;
  --sb-ink: #253137;
  --sb-shadow-raised: 0 2px 3px rgba(24, 35, 42, .04), 0 8px 20px rgba(24, 35, 42, .09);
  --sb-shadow-overlay: 0 5px 12px rgba(24, 35, 42, .10), 0 20px 44px rgba(24, 35, 42, .18);
  color: var(--sb-ink);
  background-color: var(--sb-canvas);
}
.sb-refined .content-wrapper { background-color: var(--sb-canvas); }
.sb-refined .main-header {
  background-color: var(--sb-surface);
  border-bottom: 1px solid var(--sb-line);
  box-shadow: 0 2px 4px rgba(24, 35, 42, .04), 0 6px 18px rgba(24, 35, 42, .07);
}
.sb-refined .main-footer { border-top: 1px solid var(--sb-line); box-shadow: 0 -3px 12px rgba(24, 35, 42, .035); }
body.sb-refined.sb-nav-shell .main-sidebar {
  background-color: #fafbfc;
  border-right: 1px solid var(--sb-line);
  box-shadow: 3px 0 16px rgba(24, 35, 42, .09) !important;
}
.sb-refined .main-sidebar .brand-link { border-bottom-color: var(--sb-line); background-color: #fff; }
.sb-refined .main-sidebar .nav-sidebar > .nav-item > .nav-link {
  border-radius: 6px;
  transition: background-color .15s ease, color .15s ease;
}
.sb-refined .main-sidebar .nav-sidebar > .nav-item > .nav-link:not(.active):hover { background-color: #e8efed; color: #245849; }
.sb-refined .main-sidebar .nav-sidebar > .nav-item > .nav-link.active { background-color: #236b58; color: #fff; box-shadow: 0 2px 5px rgba(25, 67, 54, .16); }

/* Repeated content cards carry depth; page sections and nested cards stay quieter. */
.sb-refined .content-wrapper .card:not(.border-0),
.sb-refined .sb-profile-card,
.sb-refined .sb-filtered-item,
.sb-refined .sb-landing-card {
  border-color: var(--sb-line);
  border-radius: 8px;
  box-shadow: var(--sb-shadow-raised) !important;
}
.sb-refined .content-wrapper .card .card:not(.border-0) { box-shadow: none !important; }
.sb-refined .content-wrapper .card > .card-header:not([class*="bg-"]) {
  background-color: #fafbfc;
  border-bottom-color: var(--sb-line);
}
.sb-refined .sb-feed-preview-card .sb-feed-preview-title { font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.sb-refined .sb-feed-preview-card .card-footer { border-top: 1px solid #e3e8eb; }
.sb-refined .sb-feed-preview-card .sb-feed-actions .btn { border-radius: 5px; }
.sb-refined .sb-feed-preview-card .sb-feed-actions .btn:hover { background-color: #eef4f2; }
.sb-refined .sb-feed-controls { border-bottom-color: #c6d1d6; }
.sb-refined .sb-feed-controls input[type="search"],
.sb-refined .sb-feed-controls select { box-shadow: inset 0 1px 2px rgba(24, 35, 42, .045); }

.sb-refined .sb-profile-identity { background-color: #fff; box-shadow: inset 0 3px 0 #468b75; }
.sb-refined .sb-profile-stat-list .list-group-item { background-color: #f5f7f8; border-color: var(--sb-line) !important; box-shadow: inset 0 1px 0 #fff; }
.sb-refined .sb-profile-disclosure { border-bottom: 1px solid #e7ecee; }
.sb-refined .sb-profile-disclosure[aria-expanded="true"] { background-color: #eef5f2; }
.sb-refined .sb-profile-tabs .nav-link { background-color: #f5f7f8; border-color: var(--sb-line); }
.sb-refined .sb-profile-tabs .nav-link.active { background-color: #eaf3ef; border-color: #78a793; box-shadow: inset 0 -2px 0 #397d65; }
.sb-refined .sb-community-tool-section { box-shadow: none !important; border-color: var(--sb-line); }
.sb-refined .sb-community-resource-tile { border-color: var(--sb-line); box-shadow: 0 2px 7px rgba(24, 35, 42, .06); }

.sb-refined .dropdown-menu,
.sb-refined .modal-content { border: 1px solid var(--sb-line); border-radius: 8px; box-shadow: var(--sb-shadow-overlay) !important; }
.sb-refined .dropdown-menu .dropdown-item:focus,
.sb-refined .dropdown-menu .dropdown-item:hover { background-color: #eef4f2; color: #245849; }
.sb-refined .modal-header { border-bottom-color: var(--sb-line); }
.sb-refined .modal-footer { border-top-color: var(--sb-line); }
.sb-refined .form-control:not(:disabled):not([readonly]) { border-color: #aebdc5; box-shadow: inset 0 1px 2px rgba(24, 35, 42, .04); }
.sb-refined .form-control:focus { border-color: #397d65; box-shadow: 0 0 0 3px rgba(57, 125, 101, .16); }
.sb-refined :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid #086f86; outline-offset: 3px; }
.sb-refined .login-box,
.sb-refined .register-box { border: 1px solid var(--sb-line); box-shadow: var(--sb-shadow-raised); }
.sb-refined .login-box:hover,
.sb-refined .register-box:hover { transform: none; box-shadow: var(--sb-shadow-raised); }
.sb-refined .login-card-body,
.sb-refined .register-card-body { box-shadow: none; }

/* More specific than template-local rules, without changing their geometry. */
.sb-refined .content-wrapper.sb-public-landing-wrapper { background-color: #f4f6f7; }
.sb-refined .sb-public-landing-wrapper .sb-landing-hero-image { border-color: #cbd6db; box-shadow: 0 4px 9px rgba(24, 35, 42, .08), 0 18px 36px rgba(24, 35, 42, .14); }
.sb-refined .sb-public-landing-wrapper .sb-hero-panel { border-color: var(--sb-line); box-shadow: var(--sb-shadow-raised); }
.sb-refined .sb-public-landing-wrapper .sb-filter-chip { box-shadow: 0 2px 5px rgba(24, 35, 42, .05); }
.sb-refined .sb-public-landing-wrapper .sb-unify-band { border-color: var(--sb-line); box-shadow: 0 5px 16px rgba(24, 35, 42, .05); }
@media (max-width: 991.98px) {
  body.sb-refined.sb-nav-shell.sb-mobile-nav-open .main-sidebar { box-shadow: 10px 0 30px rgba(24, 35, 42, .18) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-refined .main-sidebar .nav-link,
  .sb-refined .login-box,
  .sb-refined .register-box,
  .sb-refined .sb-profile-disclosure .fa-caret-down { transition: none !important; }
}
/* Shared green-tinted elevation; keep layout and menu positioning unchanged. */
.sb-share-linked-targets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.sb-share-linked-targets:empty { display: none; }
.sb-share-linked-targets .btn { white-space: normal; overflow-wrap: anywhere; min-width: 0; padding: 10px; }
.sb-share-option-grid > [hidden] { display: none !important; }
#sbShareModal .modal-body { max-height: 65vh; overflow-y: auto; }
@media (max-width: 420px) { .sb-share-linked-targets { grid-template-columns: minmax(0,1fr); } }
body.sb-refined {
  --sb-shadow-raised: 0 2px 5px rgba(20,66,52,.10), 0 9px 23px rgba(20,66,52,.14);
  --sb-shadow-overlay: 0 5px 12px rgba(20,66,52,.13), 0 18px 42px rgba(20,66,52,.20);
}
body.sb-refined .main-header {
  background: linear-gradient(90deg,#e2eee8 0%,#f9fcfa 75%,#fff 100%);
  box-shadow: 0 3px 12px rgba(20,66,52,.16);
}
body.sb-refined.sb-nav-shell .main-sidebar {
  box-shadow: 4px 0 19px rgba(20,66,52,.20) !important;
}
body.sb-refined .main-sidebar .brand-link {
  background: #fff;
  border-bottom: 1px solid var(--sb-line);
  box-shadow: 0 5px 8px rgba(18,53,41,.20), 0 10px 18px rgba(18,53,41,.16);
}
body.sb-refined .main-sidebar .brand-link .brand-text { min-width: 0; }
body.sb-nav-shell .main-sidebar .nav-sidebar,
body.sb-nav-shell .main-sidebar .nav-sidebar > .nav-item { max-width: 100%; }
body.sb-nav-shell .main-sidebar .nav-sidebar .nav-link { width: 100%; max-width: 100%; box-sizing: border-box; }
body.sb-nav-shell .main-sidebar .nav-sidebar .nav-link p { white-space: normal; overflow-wrap: anywhere; }
body.sb-refined .sb-feed-preview-card { box-shadow: var(--sb-shadow-raised); border-color: #cdded5; }
body.sb-refined .login-box,
body.sb-refined .register-box,
body.sb-refined .login-box:hover,
body.sb-refined .register-box:hover {
  border: 1px solid #87b49e;
  border-top: 4px solid #317858;
  border-radius: 8px;
  background: #edf6f0;
  box-shadow: 0 5px 13px rgba(20,80,53,.18),0 18px 42px rgba(20,80,53,.23);
}
body.sb-refined .login-card-body,
body.sb-refined .register-card-body { background: linear-gradient(120deg,#e4f2e9,#fff 75%); }
body.sb-refined .sb-profile-video-upload.btn {
  color: #246247; background: #fff; border: 1px solid #72a48c;
  box-shadow: 0 2px 4px rgba(28,83,57,.10),0 5px 12px rgba(28,83,57,.12);
}
body.sb-refined .sb-profile-video-upload.btn:hover { background: #edf7f0; border-color: #357b56; color: #194e36; }
body.sb-refined .sb-profile-video-upload.btn:focus-visible,
.sb-connections-upcoming > summary:focus-visible { outline: 3px solid #388261; outline-offset: 3px; }
.sb-connections-heading { font-size: 1rem; line-height: 1.5; margin: 0 0 14px; color: #285b45; }
.sb-connections-upcoming { margin-top: 16px; border-top: 1px solid #d5e2da; }
.sb-connections-upcoming > summary {
  cursor: pointer; padding: 15px 12px; color: #345c49; font-weight: 600;
  background: #edf3ef; border-radius: 4px; overflow-wrap: anywhere;
}
.sb-connections-upcoming > summary .badge { margin-left: 8px; }
.sb-connections-upcoming[open] > summary { margin-bottom: 16px; }
.sb-connections-upcoming .sb-platform-select { color: #53655c; }
body.sb-refined .sb-site-footer .sb-powered-by-unify { justify-content: center; padding: 16px 0; margin-top: 12px; }
body.sb-refined .sb-site-footer .sb-footer-copyright {
  border-top: 1px solid #d5e2da; padding: 12px 0 0; margin-top: 4px;
  text-align: right; font-size: 12px; line-height: 1.6; color: #52655a;
}
@media (forced-colors: active) {
  .sb-refined .card,
  .sb-refined .dropdown-menu,
  .sb-refined .modal-content { border: 1px solid CanvasText; box-shadow: none !important; }
}
