/* ==========================================================================
   SocialFunda v2 — theme.css
   Design system for socialfunda.net (copy-ready text collections theme).
   Mobile-first, pure CSS. No external fonts, no CDN, no images.
   System font stack only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Layout */
  --sf-bg: #f5f7fc;
  --sf-surface: #ffffff;
  --sf-surface-2: #edf1f9;
  --sf-ink: #0e1a33;
  --sf-body: #3b4a6b;
  --sf-muted: #6b7a99;
  --sf-line: #e2e8f4;

  /* Brand */
  --sf-blue: #4f46e5;
  --sf-violet: #8b5cf6;
  --sf-pink: #ec4899;
  --sf-amber: #f59e0b;
  --sf-mint: #10b981;
  --sf-red: #ef4444;
  --sf-grad: linear-gradient(135deg, #4f46e5 0%, #7c5cf0 55%, #a855f7 100%);

  /* Shape & depth */
  --sf-radius: 18px;
  --sf-radius-sm: 12px;
  --sf-radius-lg: 28px;
  --sf-shadow: 0 10px 30px rgba(46, 64, 140, .08);
  --sf-shadow-lg: 0 18px 50px rgba(46, 64, 140, .14);

  /* Typography */
  --sf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Devanagari", sans-serif;

  /* Motion */
  --sf-ease: cubic-bezier(.22, .61, .36, 1);
  --sf-speed: .18s;
}

/* Dark mode — toggled by [data-theme="dark"] on <html> */
[data-theme="dark"] {
  --sf-bg: #0b1120;
  --sf-surface: #141d36;
  --sf-surface-2: #1b2544;
  --sf-ink: #eef2fb;
  --sf-body: #b9c4de;
  --sf-muted: #8a97b5;
  --sf-line: #263252;
  --sf-blue: #818cf8;
  --sf-violet: #a78bfa;
  --sf-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --sf-shadow-lg: 0 18px 50px rgba(0, 0, 0, .45);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sf-font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sf-body);
  background-color: var(--sf-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

::selection {
  background: var(--sf-blue);
  color: #fff;
}

/* Links */
a {
  color: var(--sf-blue);
  text-decoration: none;
  transition: color var(--sf-speed) var(--sf-ease);
}

a:hover {
  color: var(--sf-violet);
}

/* Headings — bold, tight */
h1, h2, h3, h4 {
  color: var(--sf-ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   3. ACCESSIBILITY PRIMITIVES
   -------------------------------------------------------------------------- */
:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--sf-blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  background: var(--sf-ink);
  color: var(--sf-bg);
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 20px;
  border-radius: var(--sf-radius-sm);
  text-decoration: none;
  transition: top var(--sf-speed) var(--sf-ease);
}

.skip-link:focus-visible {
  top: 12px;
  color: var(--sf-bg);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   4. LAYOUT & UTILITY
   -------------------------------------------------------------------------- */
.sf2-wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Small caps gradient label */
.sf2-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--sf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.sf2-subtle {
  color: var(--sf-muted);
  font-size: .92rem;
}

/* Flex heading row: title left, link right */
.sf2-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 26px;
}

.sf2-section-head h2,
.sf2-section-head h3 {
  margin: 0;
}

.sf2-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
}

.sf2-text-link::after {
  content: "\2192";
  transition: transform var(--sf-speed) var(--sf-ease);
}

.sf2-text-link:hover::after {
  transform: translateX(4px);
}

/* Generic content sections get vertical rhythm */
.sf2-section {
  margin-block: clamp(48px, 7vw, 84px);
}

/* --------------------------------------------------------------------------
   5. HEADER — sticky floating glass pill
   -------------------------------------------------------------------------- */
.sf2-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  max-width: 1180px;
  margin: 12px auto 0;
  border-radius: 20px;
  background: color-mix(in srgb, var(--sf-surface) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--sf-line);
  box-shadow: var(--sf-shadow);
  width: calc(100% - 24px);
}

.sf2-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

/* Brand */
.sf2-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sf-ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  margin-right: auto;
  line-height: 1.2;
}

.sf2-brand:hover {
  color: var(--sf-ink);
}

.sf2-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  background: var(--sf-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.03em;
  box-shadow: 0 6px 16px rgba(124, 92, 240, .35);
}

.sf2-brand small {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--sf-muted);
  letter-spacing: .02em;
}

/* Brand wordmark never wraps to two lines. */
.sf2-brand-text {
  white-space: nowrap;
}

/* Primary nav (desktop) */
nav.sf2-nav {
  display: none;
}

ul.sf2-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.sf2-menu > li {
  position: relative;
}

ul.sf2-menu a {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--sf-body);
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--sf-speed) var(--sf-ease),
              color var(--sf-speed) var(--sf-ease);
}

ul.sf2-menu a:hover {
  background: var(--sf-surface-2);
  color: var(--sf-ink);
}

ul.sf2-menu .current-menu-item > a,
ul.sf2-menu .current_page_item > a {
  background: var(--sf-surface-2);
  color: var(--sf-ink);
  font-weight: 700;
}

/* ---------- Dropdown submenus (v2.0.27) ---------- */
/* Desktop: hover/focus reveals the dropdown panel. */
ul.sf2-menu .menu-item-has-children {
  position: relative;
}
ul.sf2-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  vertical-align: middle;
  transition: transform var(--sf-speed) var(--sf-ease);
}
ul.sf2-menu .menu-item-has-children:hover > a::after,
ul.sf2-menu .menu-item-has-children:focus-within > a::after {
  transform: rotate(225deg) translateY(-1px);
}
ul.sf2-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: 16px;
  box-shadow: var(--sf-shadow-lg);
  z-index: 200;
}
ul.sf2-menu .menu-item-has-children:hover > .sub-menu,
ul.sf2-menu .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}
ul.sf2-menu .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Mobile panel: submenus collapse behind a chevron toggle. */
.sf2-mobile-panel ul.sf2-menu .menu-item-has-children {
  position: relative;
}
.sf2-mobile-panel ul.sf2-menu .menu-item-has-children > a {
  padding-right: 52px;
}
.sf2-sub-toggle {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--sf-surface-2);
  color: var(--sf-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sf2-sub-toggle svg {
  transition: transform var(--sf-speed) var(--sf-ease);
}
.sf2-mobile-panel ul.sf2-menu .sub-menu {
  display: none;
  position: static;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 0 0 4px 12px;
  background: transparent;
  min-width: 0;
}
.sf2-mobile-panel ul.sf2-menu .menu-item-has-children.sub-open > .sub-menu {
  display: block;
}
.sf2-mobile-panel ul.sf2-menu .menu-item-has-children.sub-open .sf2-sub-toggle svg {
  transform: rotate(180deg);
}

/* Header action cluster */
.sf2-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 44px circle icon buttons */
.sf2-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--sf-line);
  background: var(--sf-surface);
  color: var(--sf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform var(--sf-speed) var(--sf-ease),
              border-color var(--sf-speed) var(--sf-ease),
              background var(--sf-speed) var(--sf-ease);
}

.sf2-icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--sf-blue);
}

.sf2-theme-toggle {
  line-height: 1;
}

.sf2-search-toggle {
  line-height: 1;
}

/* Gradient CTA pill */
a.sf2-cta {
  display: none;
  background: var(--sf-grad);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(124, 92, 240, .35);
  transition: transform var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease);
  white-space: nowrap;
}

a.sf2-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(124, 92, 240, .45);
}

/* Burger (mobile only) */
button.sf2-burger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--sf-line);
  background: var(--sf-surface);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

button.sf2-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--sf-ink);
  transition: transform var(--sf-speed) var(--sf-ease),
              opacity var(--sf-speed) var(--sf-ease);
}

button.sf2-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

button.sf2-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

button.sf2-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown panel */
.sf2-mobile-panel {
  display: none;
  border-top: 1px solid var(--sf-line);
  padding: 14px 16px 18px;
}

.sf2-mobile-panel.open {
  display: block;
}

.sf2-mobile-panel ul.sf2-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.sf2-mobile-panel ul.sf2-menu a {
  display: block;
  padding: 12px 14px;
}

.sf2-mobile-panel .sf2-search {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   6. SEARCH FORM
   -------------------------------------------------------------------------- */
form.sf2-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--sf-shadow);
}

.sf2-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--sf-ink);
}

.sf2-search input::placeholder {
  color: var(--sf-muted);
}

.sf2-search input:focus {
  outline: none;
}

form.sf2-search:focus-within {
  border-color: var(--sf-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-blue) 18%, transparent);
}

.sf2-search button {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  background: var(--sf-grad);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 999px;
  padding: 11px 20px;
  transition: transform var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease);
}

.sf2-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(124, 92, 240, .4);
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.sf2-hero {
  margin-block: 28px;
  border-radius: var(--sf-radius-lg);
  border: 1px solid var(--sf-line);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(640px 420px at 8% 12%, rgba(79, 70, 229, .16), transparent 62%),
    radial-gradient(720px 520px at 92% 8%, rgba(139, 92, 246, .18), transparent 62%),
    radial-gradient(560px 520px at 50% 108%, rgba(168, 85, 247, .12), transparent 60%),
    var(--sf-surface);
  box-shadow: var(--sf-shadow);
}

[data-theme="dark"] .sf2-hero {
  background:
    radial-gradient(640px 420px at 8% 12%, rgba(79, 70, 229, .28), transparent 62%),
    radial-gradient(720px 520px at 92% 8%, rgba(139, 92, 246, .30), transparent 62%),
    radial-gradient(560px 520px at 50% 108%, rgba(168, 85, 247, .20), transparent 60%),
    var(--sf-surface);
}

.sf2-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
}

.sf2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--sf-ink);
  background: color-mix(in srgb, var(--sf-surface) 70%, transparent);
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 18px;
  box-shadow: var(--sf-shadow);
}

.sf2-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sf-grad);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sf-violet) 18%, transparent);
}

.sf2-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -.04em;
  line-height: 1.04;
  margin-bottom: 18px;
}

.sf2-hero h1 .grad {
  background: var(--sf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sf2-lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--sf-body);
  max-width: 34rem;
  margin-bottom: 22px;
}

/* Trending mini-links row under hero copy */
.sf2-trending {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: .88rem;
  color: var(--sf-muted);
  margin-bottom: 26px;
}

.sf2-trending a {
  font-weight: 600;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--sf-body);
  transition: transform var(--sf-speed) var(--sf-ease),
              border-color var(--sf-speed) var(--sf-ease),
              color var(--sf-speed) var(--sf-ease);
}

.sf2-trending a:hover {
  transform: translateY(-2px);
  border-color: var(--sf-violet);
  color: var(--sf-ink);
}

/* Checkmark bullets row */
.sf2-hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.sf2-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--sf-body);
}

.sf2-hero-points li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sf-mint) 16%, transparent);
  color: var(--sf-mint);
  font-size: .75rem;
  font-weight: 900;
  flex: 0 0 22px;
}

/* --------------------------------------------------------------------------
   8. STUDIO — phone mockup
   -------------------------------------------------------------------------- */
.sf2-studio {
  max-width: 380px;
  margin-inline: auto;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-lg);
  box-shadow: var(--sf-shadow-lg);
  overflow: hidden;
}

/* Dark status bar with notch */
.sf2-studio-bar {
  background: #0b1120;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf2-studio-bar::before {
  content: "";
  width: 118px;
  height: 22px;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 2px #232f55;
}

.sf2-studio-body {
  padding: 22px 20px 24px;
}

.sf2-studio-body > .sf2-eyebrow {
  margin-bottom: 6px;
}

/* Segmented tabs */
.sf2-studio-tabs {
  display: flex;
  gap: 4px;
  background: var(--sf-surface-2);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 18px;
}

.sf2-studio-tabs button {
  flex: 1 1 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  color: var(--sf-muted);
  border-radius: 999px;
  padding: 10px 6px;
  cursor: pointer;
  transition: background var(--sf-speed) var(--sf-ease),
              color var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease);
  white-space: nowrap;
}

.sf2-studio-tabs button:hover {
  color: var(--sf-ink);
}

.sf2-studio-tabs button[aria-selected="true"] {
  background: var(--sf-grad);
  color: #fff;
  box-shadow: 0 6px 14px rgba(124, 92, 240, .4);
}

/* Name label + pill input with @ prefix */
.sf2-studio-name {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--sf-ink);
  margin-bottom: 8px;
}

.sf2-studio-input {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  margin-bottom: 16px;
  transition: border-color var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease);
}

.sf2-studio-input:focus-within {
  border-color: var(--sf-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-blue) 16%, transparent);
}

.sf2-studio-input::before {
  content: "@";
  font-weight: 800;
  color: var(--sf-muted);
}

.sf2-studio-input input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--sf-ink);
  padding: 8px 10px;
}

.sf2-studio-input input:focus {
  outline: none;
}

/* Three style buttons */
.sf2-studio-styles {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.sf2-studio-styles button {
  flex: 1 1 0;
  border: 1px solid var(--sf-line);
  background: var(--sf-surface);
  border-radius: var(--sf-radius-sm);
  padding: 10px 6px;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  color: var(--sf-body);
  cursor: pointer;
  transition: border-color var(--sf-speed) var(--sf-ease),
              background var(--sf-speed) var(--sf-ease),
              color var(--sf-speed) var(--sf-ease);
}

.sf2-studio-styles button:hover {
  border-color: var(--sf-violet);
}

.sf2-studio-styles button[aria-pressed="true"] {
  background: var(--sf-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(124, 92, 240, .35);
}

/* Result chat-bubble card inside the phone */
.sf2-studio-result {
  background: var(--sf-surface-2);
  border: 1px solid var(--sf-line);
  border-radius: 20px 20px 20px 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.sf2-studio-result-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sf2-studio-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.sf2-studio-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sf-line);
  display: block;
}

.sf2-studio-dots i:first-child {
  background: var(--sf-grad);
}

.sf2-studio-result-top strong {
  font-size: .85rem;
  color: var(--sf-ink);
}

.sf2-studio-result p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sf-ink);
  line-height: 1.5;
  margin: 0 0 6px;
}

.sf2-studio-result-foot {
  font-size: .78rem;
  color: var(--sf-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

/* Actions + status + gradient copy button */
.sf2-studio-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 8px;
}

button.sf2-studio-copy {
  flex: 1 1 auto;
  border: 0;
  cursor: pointer;
  background: var(--sf-grad);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: .95rem;
  border-radius: 14px;
  padding: 14px 18px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(124, 92, 240, .38);
  transition: transform var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease),
              filter var(--sf-speed) var(--sf-ease);
}

button.sf2-studio-copy::before {
  content: "\29C9";
  font-size: 1rem;
}

button.sf2-studio-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(124, 92, 240, .48);
}

button.sf2-studio-copy:active {
  transform: translateY(0);
}

.sf2-studio-status {
  font-size: .82rem;
  color: var(--sf-muted);
  text-align: center;
  min-height: 1.4em;
}

/* Textarea fallback (no-JS / clipboard blocked) */
.sf2-studio-manual {
  margin-top: 12px;
}

.sf2-studio-manual textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px dashed var(--sf-line);
  border-radius: var(--sf-radius-sm);
  background: var(--sf-surface);
  color: var(--sf-ink);
  font: inherit;
  font-size: .9rem;
  padding: 12px;
}

.sf2-studio-manual small {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  color: var(--sf-muted);
}

/* --------------------------------------------------------------------------
   9. TOPICS GRID
   -------------------------------------------------------------------------- */
.sf2-topics {
  margin-block: clamp(48px, 7vw, 84px);
}

.sf2-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

a.sf2-topic {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 18px;
  color: var(--sf-ink);
  box-shadow: var(--sf-shadow);
  transition: transform var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease),
              border-color var(--sf-speed) var(--sf-ease);
}

a.sf2-topic:hover {
  transform: translateY(-4px);
  box-shadow: var(--sf-shadow-lg);
  border-color: color-mix(in srgb, var(--sf-violet) 40%, var(--sf-line));
  color: var(--sf-ink);
}

.sf2-topic-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.sf2-topic-icon.tone-blue  { background: rgba(79, 70, 229, .12);  color: #4f46e5; }
.sf2-topic-icon.tone-pink  { background: rgba(236, 72, 153, .12); color: #ec4899; }
.sf2-topic-icon.tone-amber { background: rgba(245, 158, 11, .14); color: #f59e0b; }
.sf2-topic-icon.tone-violet{ background: rgba(139, 92, 246, .12); color: #8b5cf6; }
.sf2-topic-icon.tone-mint  { background: rgba(16, 185, 129, .12);  color: #10b981; }

.sf2-topic strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.sf2-topic small {
  display: block;
  font-size: .8rem;
  color: var(--sf-muted);
  font-weight: 500;
}

.sf2-topic-arrow {
  margin-left: auto;
  color: var(--sf-muted);
  font-size: 1.1rem;
  transition: transform var(--sf-speed) var(--sf-ease),
              color var(--sf-speed) var(--sf-ease);
}

a.sf2-topic:hover .sf2-topic-arrow {
  transform: translateX(4px);
  color: var(--sf-violet);
}

/* --------------------------------------------------------------------------
   10. TRENDING SOCIAL-POST TEASER CARDS
   -------------------------------------------------------------------------- */
.sf2-trend-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 310px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  margin-inline: -20px;
  padding-inline: 20px;
  scrollbar-width: thin;
}

.sf2-trend-scroll::-webkit-scrollbar {
  height: 6px;
}

.sf2-trend-scroll::-webkit-scrollbar-thumb {
  background: var(--sf-line);
  border-radius: 999px;
}

article.sf2-postcard {
  scroll-snap-align: start;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 18px;
  box-shadow: var(--sf-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease);
}

article.sf2-postcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sf-shadow-lg);
}

/* Avatar + handle + kind chip row */
.sf2-postcard-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf2-postcard-top .sf-card-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.sf2-postcard-top .sf-card-handle {
  font-size: .85rem;
}

.sf2-postcard-top .sf-card-kind {
  margin-left: auto;
}

.sf2-postcard-text {
  color: var(--sf-muted);
  font-size: .94rem;
  line-height: 1.55;
  flex: 1 1 auto;
}

.sf2-postcard-text p {
  margin: 0 0 .5em;
}

.sf2-postcard-foot {
  border-top: 1px solid var(--sf-line);
  padding-top: 12px;
}

/* --------------------------------------------------------------------------
   11. ARTICLE GRID CARDS
   -------------------------------------------------------------------------- */
.sf2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

article.sf2-card {
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  overflow: hidden;
  box-shadow: var(--sf-shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease);
}

article.sf2-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sf-shadow-lg);
}

/* Decorative art header with kind variants + big glyph */
.sf2-card-art {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sf2-card-art::before {
  font-size: 4.2rem;
  line-height: 1;
  opacity: .55;
  filter: saturate(0) opacity(.9);
}

.sf2-art-bio     { background: linear-gradient(135deg, rgba(79,70,229,.16), rgba(79,70,229,.04)); }
.sf2-art-bio::before { content: "\2726"; color: #4f46e5; }

.sf2-art-caption { background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(139,92,246,.05)); }
.sf2-art-caption::before { content: "\275D"; color: #8b5cf6; }

.sf2-art-comment { background: linear-gradient(135deg, rgba(236,72,153,.16), rgba(236,72,153,.05)); }
.sf2-art-comment::before { content: "\1F4AC"; }

.sf2-art-shayari  { background: linear-gradient(135deg, rgba(245,158,11,.16), rgba(245,158,11,.05)); }
.sf2-art-shayari::before { content: "\2712"; color: #f59e0b; }

.sf2-art-quote   { background: linear-gradient(135deg, rgba(16,185,129,.16), rgba(16,185,129,.05)); }
.sf2-art-quote::before { content: "\275E"; color: #10b981; }

.sf2-art-status  { background: linear-gradient(135deg, rgba(14,165,233,.16), rgba(14,165,233,.05)); }
.sf2-art-status::before { content: "\25CF"; color: #0ea5e9; }

.sf2-art-name    { background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(168,85,247,.05)); }
.sf2-art-name::before { content: "@"; color: #a855f7; font-weight: 900; }

.sf2-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

a.sf2-card-cat {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sf-violet);
}

a.sf2-card-cat:hover {
  color: var(--sf-blue);
}

.sf2-card-body h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
}

.sf2-card-body h3 a {
  color: var(--sf-ink);
}

.sf2-card-body h3 a:hover {
  color: var(--sf-blue);
}

.sf2-card-body p {
  margin: 0;
  color: var(--sf-muted);
  font-size: .94rem;
  flex: 1 1 auto;
}

a.sf2-card-more {
  align-self: flex-start;
  font-weight: 700;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

a.sf2-card-more::after {
  content: "\2192";
  transition: transform var(--sf-speed) var(--sf-ease);
}

a.sf2-card-more:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   12. HOW IT WORKS — gradient panel, 3 steps
   -------------------------------------------------------------------------- */
.sf2-how {
  background: var(--sf-grad);
  border-radius: var(--sf-radius-lg);
  color: #fff;
  padding: clamp(32px, 5vw, 56px);
  margin-block: clamp(48px, 7vw, 84px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sf-shadow-lg);
}

.sf2-how::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 300px at 90% 10%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(420px 300px at 5% 95%, rgba(255, 255, 255, .10), transparent 60%);
  pointer-events: none;
}

.sf2-how .sf2-eyebrow {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: rgba(255, 255, 255, .85);
}

.sf2-how h2 {
  color: #fff;
  margin-bottom: 8px;
}

.sf2-how > p {
  color: rgba(255, 255, 255, .85);
  max-width: 36rem;
  margin-bottom: 32px;
}

.sf2-how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  position: relative;
}

.sf2-how-steps li {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--sf-radius);
  padding: 22px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.sf2-how-steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--sf-blue);
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

.sf2-how-steps strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.sf2-how-steps p {
  margin: 0;
  font-size: .94rem;
  color: rgba(255, 255, 255, .88);
}

/* --------------------------------------------------------------------------
   13. ARTICLE PAGE
   -------------------------------------------------------------------------- */
.sf2-breadcrumbs {
  list-style: none;
  margin: 26px 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: .85rem;
  color: var(--sf-muted);
}

.sf2-breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.sf2-breadcrumbs li + li::before {
  content: "/";
  margin-inline: 10px;
  color: var(--sf-line);
  font-weight: 700;
}

.sf2-breadcrumbs a {
  color: var(--sf-muted);
  font-weight: 600;
}

.sf2-breadcrumbs a:hover {
  color: var(--sf-blue);
}

.sf2-breadcrumbs [aria-current="page"] {
  color: var(--sf-ink);
  font-weight: 700;
}

/* White article card */
.sf2-article {
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-lg);
  box-shadow: var(--sf-shadow);
  padding: clamp(22px, 4vw, 44px);
  margin-bottom: 40px;
}

.sf2-article-head {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sf-line);
}

.sf2-article-head h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -.03em;
  margin: 10px 0 14px;
}

.sf2-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: .86rem;
  color: var(--sf-muted);
  margin-bottom: 16px;
}

.sf2-meta > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sf2-meta a {
  color: var(--sf-muted);
  font-weight: 600;
}

.sf2-meta a:hover {
  color: var(--sf-blue);
}

.sf2-meta .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-block;
}

/* "Choose · Copy · Personalize" pill */
.sf2-copy-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  font-weight: 800;
  color: var(--sf-violet);
  background: color-mix(in srgb, var(--sf-violet) 10%, var(--sf-surface));
  border: 1px solid color-mix(in srgb, var(--sf-violet) 26%, transparent);
  border-radius: 999px;
  padding: 9px 18px;
}

.sf2-copy-hint::before {
  content: "\29C9";
  font-size: .95rem;
}

/* Article + 300px sidebar layout */
.sf2-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Readable post typography */
.sf2-content {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--sf-body);
  max-width: none;
  overflow-wrap: break-word;
}

.sf2-content > *:first-child {
  margin-top: 0;
}

.sf2-content h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-top: 2.2em;
  padding-top: .4em;
}

.sf2-content h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  margin-top: 1.8em;
}

.sf2-content h4 {
  margin-top: 1.5em;
}

.sf2-content p {
  margin-bottom: 1.25em;
}

.sf2-content a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--sf-blue) 45%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.sf2-content a:hover {
  text-decoration-color: var(--sf-violet);
}

.sf2-content strong,
.sf2-content b {
  color: var(--sf-ink);
}

.sf2-content ul,
.sf2-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}

.sf2-content li {
  margin-bottom: .55em;
}

.sf2-content li::marker {
  color: var(--sf-violet);
  font-weight: 800;
}

.sf2-content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--sf-violet);
  border-radius: 0 var(--sf-radius-sm) var(--sf-radius-sm) 0;
  background: color-mix(in srgb, var(--sf-violet) 7%, var(--sf-surface));
  color: var(--sf-ink);
  font-size: 1.05rem;
}

.sf2-content blockquote p:last-child {
  margin-bottom: 0;
}

.sf2-content img {
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
  margin: 1.6em 0;
}

.sf2-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--sf-surface-2);
  border: 1px solid var(--sf-line);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--sf-ink);
}

.sf2-content pre {
  background: var(--sf-ink);
  color: var(--sf-bg);
  border-radius: var(--sf-radius-sm);
  padding: 20px;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.6;
}

.sf2-content pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.sf2-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: .94rem;
}

.sf2-content th,
.sf2-content td {
  border: 1px solid var(--sf-line);
  padding: 10px 14px;
  text-align: left;
}

.sf2-content th {
  background: var(--sf-surface-2);
  color: var(--sf-ink);
  font-weight: 800;
}

.sf2-content hr {
  border: 0;
  border-top: 1px solid var(--sf-line);
  margin: 2em 0;
}

/* TOC as a details card */
.sf2-toc {
  background: var(--sf-surface-2);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 6px 20px;
  margin: 1.8em 0;
}

.sf2-toc summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--sf-ink);
  padding: 14px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf2-toc summary::-webkit-details-marker {
  display: none;
}

.sf2-toc summary::before {
  content: "\25B8";
  color: var(--sf-violet);
  font-size: 1rem;
  transition: transform var(--sf-speed) var(--sf-ease);
}

.sf2-toc[open] summary::before {
  transform: rotate(90deg);
}

.sf2-toc ul,
.sf2-toc ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
  font-size: .94rem;
}

.sf2-toc li {
  margin-bottom: .4em;
}

.sf2-toc a {
  color: var(--sf-body);
  font-weight: 500;
  text-decoration: none;
}

.sf2-toc a:hover {
  color: var(--sf-blue);
}

/* Sidebar */
aside.sf2-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

aside.sf2-sidebar .sf2-widget {
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 22px;
  box-shadow: var(--sf-shadow);
}

aside.sf2-sidebar .sf2-widget h4,
aside.sf2-sidebar .sf2-widget .widget-title {
  font-size: 1rem;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sf-surface-2);
}

aside.sf2-sidebar .sf2-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

aside.sf2-sidebar .sf2-widget li {
  margin-bottom: 10px;
  font-size: .92rem;
}

aside.sf2-sidebar .sf2-widget li:last-child {
  margin-bottom: 0;
}

aside.sf2-sidebar .sf2-widget a {
  color: var(--sf-body);
  font-weight: 600;
}

aside.sf2-sidebar .sf2-widget a:hover {
  color: var(--sf-blue);
}

/* Related posts */
.sf2-related {
  margin-block: clamp(40px, 6vw, 72px);
}

/* --------------------------------------------------------------------------
   14. COPY CARDS — the heart of the theme
   -------------------------------------------------------------------------- */
.sf-copy-card {
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 20px;
  margin-block: 18px;
  box-shadow: var(--sf-shadow);
  transition: box-shadow var(--sf-speed) var(--sf-ease),
              transform var(--sf-speed) var(--sf-ease);
}

.sf-copy-card:hover {
  box-shadow: var(--sf-shadow-lg);
}

/* Top row: avatar + handle + kind chip */
.sf-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sf-card-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--sf-grad);
  box-shadow: 0 4px 10px rgba(124, 92, 240, .35);
  position: relative;
}

.sf-card-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}

.sf-card-handle {
  font-size: .82rem;
  font-weight: 800;
  color: var(--sf-ink);
  letter-spacing: -.01em;
}

.sf-card-kind {
  margin-left: auto;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sf-violet);
  background: color-mix(in srgb, var(--sf-violet) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--sf-violet) 24%, transparent);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* The copyable text itself */
.sf-copy-card .sf-card-text {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--sf-ink);
  margin: 0 0 4px;
  overflow-wrap: break-word;
}

/* Controls row */
.sfcc-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--sf-line);
  padding-top: 14px;
  margin-top: 14px;
}

/* ONE consistent copy-button style */
.sfcc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--sf-radius-sm);
  background: var(--sf-grad);
  color: #fff;
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(124, 92, 240, .32);
  transition: transform var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease),
              filter var(--sf-speed) var(--sf-ease),
              opacity var(--sf-speed) var(--sf-ease);
}

.sfcc-button::before {
  content: "\29C9";
  font-size: 1rem;
  line-height: 1;
}

.sfcc-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(124, 92, 240, .42);
  color: #fff;
}

.sfcc-button:active {
  transform: translateY(0);
}

.sfcc-button:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
  box-shadow: 0 6px 14px rgba(124, 92, 240, .25);
  filter: saturate(.85);
}

.sfcc-status {
  font-size: .82rem;
  color: var(--sf-muted);
  font-weight: 600;
}

/* Textarea fallback when clipboard is unavailable */
.sfcc-manual {
  width: 100%;
  margin-top: 10px;
}

.sfcc-manual textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  border: 1px dashed var(--sf-line);
  border-radius: var(--sf-radius-sm);
  background: var(--sf-surface);
  color: var(--sf-ink);
  font: inherit;
  font-size: .9rem;
  padding: 12px;
}

/* --------------------------------------------------------------------------
   15. NAME PERSONALIZER
   -------------------------------------------------------------------------- */
.sfbp-panel {
  background: color-mix(in srgb, var(--sf-violet) 7%, var(--sf-surface));
  border: 1px solid var(--sf-line);
  border-top: 4px solid var(--sf-violet);
  border-radius: var(--sf-radius);
  padding: 22px;
  margin-block: 24px;
  box-shadow: var(--sf-shadow);
}

.sfbp-panel h3,
.sfbp-panel h4 {
  margin-top: 0;
  font-size: 1.1rem;
}

.sfbp-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 14px 0;
}

.sfbp-row input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-sm);
  background: var(--sf-surface);
  color: var(--sf-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 16px;
  transition: border-color var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease);
}

.sfbp-row input:focus {
  outline: none;
  border-color: var(--sf-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-blue) 16%, transparent);
}

.sfbp-row .sfcc-button {
  flex: 0 0 auto;
}

/* Outline reset button */
.sfbp-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-sm);
  background: var(--sf-surface);
  color: var(--sf-body);
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--sf-speed) var(--sf-ease),
              color var(--sf-speed) var(--sf-ease),
              transform var(--sf-speed) var(--sf-ease);
}

.sfbp-reset:hover {
  border-color: var(--sf-violet);
  color: var(--sf-ink);
  transform: translateY(-2px);
}

.sfbp-status {
  font-size: .88rem;
  font-weight: 600;
  color: var(--sf-muted);
  min-height: 1.5em;
}

.sfbp-note {
  font-size: .8rem;
  color: var(--sf-muted);
  margin-top: 10px;
}

/* Over-limit state */
.sfbp-over {
  border-color: var(--sf-red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-red) 16%, transparent);
}

.sfbp-over-text {
  color: var(--sf-red);
  font-size: .84rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   16. LISTING / ARCHIVE / SEARCH
   -------------------------------------------------------------------------- */
.sf2-listing {
  margin-block: 32px 64px;
}

.sf2-listing-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sf-line);
}

.sf2-listing-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -.03em;
  margin-bottom: 10px;
}

.sf2-listing-head .sf2-lead {
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* Numbered pagination */
.sf2-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}

.sf2-pagination a,
.sf2-pagination .current,
.sf2-pagination .dots {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 700;
  font-size: .95rem;
  padding-inline: 12px;
}

.sf2-pagination a {
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  color: var(--sf-body);
  box-shadow: var(--sf-shadow);
  transition: transform var(--sf-speed) var(--sf-ease),
              border-color var(--sf-speed) var(--sf-ease),
              color var(--sf-speed) var(--sf-ease);
}

.sf2-pagination a:hover {
  transform: translateY(-2px);
  border-color: var(--sf-violet);
  color: var(--sf-ink);
}

.sf2-pagination .current {
  background: var(--sf-grad);
  color: #fff;
  box-shadow: 0 8px 18px rgba(124, 92, 240, .35);
}

.sf2-pagination .dots {
  color: var(--sf-muted);
}

/* Empty state */
.sf2-empty {
  text-align: center;
  background: var(--sf-surface);
  border: 1px dashed var(--sf-line);
  border-radius: var(--sf-radius-lg);
  padding: clamp(40px, 6vw, 72px) 24px;
  margin-block: 32px;
}

.sf2-empty .sf2-empty-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  display: block;
}

.sf2-empty h2 {
  margin-bottom: 8px;
}

.sf2-empty p {
  color: var(--sf-muted);
  max-width: 28rem;
  margin-inline: auto;
}

.sf2-empty .sf2-search {
  max-width: 420px;
  margin: 20px auto 0;
}

/* --------------------------------------------------------------------------
   17. 404
   -------------------------------------------------------------------------- */
.sf2-404 {
  text-align: center;
  padding: clamp(48px, 8vw, 110px) 20px;
  margin-block: 24px;
}

.sf2-404 .sf2-404-num {
  display: block;
  font-size: clamp(6rem, 22vw, 12rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  background: var(--sf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.sf2-404 h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 10px;
}

.sf2-404 p {
  color: var(--sf-muted);
  max-width: 30rem;
  margin-inline: auto;
  margin-bottom: 26px;
}

.sf2-404 .sf2-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

a.sf2-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  background: var(--sf-surface);
  color: var(--sf-ink);
  font-weight: 700;
  box-shadow: var(--sf-shadow);
  transition: transform var(--sf-speed) var(--sf-ease),
              border-color var(--sf-speed) var(--sf-ease);
}

a.sf2-btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--sf-violet);
  color: var(--sf-ink);
}

a.sf2-btn-grad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--sf-grad);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(124, 92, 240, .38);
  transition: transform var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease);
}

a.sf2-btn-grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(124, 92, 240, .48);
  color: #fff;
}

/* --------------------------------------------------------------------------
   18. COMMENTS
   -------------------------------------------------------------------------- */
.sf2-comments {
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-lg);
  box-shadow: var(--sf-shadow);
  padding: clamp(22px, 4vw, 40px);
  margin-bottom: 48px;
}

.sf2-comments h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.comment-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comment-list .children {
  list-style: none;
  margin: 18px 0 0 20px;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--sf-surface-2);
}

.comment-body {
  background: var(--sf-bg);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 18px 20px;
  font-size: .94rem;
}

.comment-body .comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .84rem;
  color: var(--sf-muted);
}

.comment-body .comment-author {
  font-weight: 800;
  color: var(--sf-ink);
}

.comment-body .comment-author img.avatar {
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.comment-body p {
  margin-bottom: .9em;
}

.comment-body .reply {
  margin-top: 10px;
}

.comment-body .comment-reply-link {
  font-size: .84rem;
  font-weight: 700;
}

/* Comment form inputs */
.sf2-comments form label {
  display: block;
  font-size: .86rem;
  font-weight: 700;
  color: var(--sf-ink);
  margin-bottom: 6px;
}

.sf2-comments form input[type="text"],
.sf2-comments form input[type="email"],
.sf2-comments form input[type="url"],
.sf2-comments form textarea {
  width: 100%;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-sm);
  background: var(--sf-surface);
  color: var(--sf-ink);
  font: inherit;
  font-size: .95rem;
  padding: 12px 16px;
  margin-bottom: 16px;
  transition: border-color var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease);
}

.sf2-comments form input:focus,
.sf2-comments form textarea:focus {
  outline: none;
  border-color: var(--sf-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-blue) 16%, transparent);
}

.sf2-comments form textarea {
  min-height: 130px;
  resize: vertical;
}

.sf2-comments form input[type="submit"] {
  border: 0;
  cursor: pointer;
  background: var(--sf-grad);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: .95rem;
  border-radius: var(--sf-radius-sm);
  padding: 14px 28px;
  min-height: 48px;
  box-shadow: 0 10px 22px rgba(124, 92, 240, .35);
  transition: transform var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease);
}

.sf2-comments form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(124, 92, 240, .45);
}

/* --------------------------------------------------------------------------
   19. FOOTER — always dark navy
   -------------------------------------------------------------------------- */
.sf2-footer {
  background: #0e1a33;
  color: #c8d3ec;
  margin-top: 72px;
  border-top: 4px solid transparent;
  border-image: var(--sf-grad) 1;
  position: relative;
  overflow: hidden;
}

.sf2-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 340px at 12% 0%, rgba(79, 70, 229, .22), transparent 60%),
    radial-gradient(520px 340px at 88% 100%, rgba(168, 85, 247, .16), transparent 60%);
  pointer-events: none;
}

.sf2-footer-top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 52px 0 36px;
}

.sf2-footer .sf2-brand {
  color: #fff;
  margin-right: 0;
  margin-bottom: 12px;
}

/* Footer logo (light variant): cap to a tidy height on the dark footer. */
.sf2-footer .custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.sf2-footer .custom-logo {
  height: 44px;
  width: auto;
  max-width: 100%;
}

.sf2-footer .sf2-brand:hover {
  color: #fff;
}

.sf2-footer .sf2-brand small {
  color: #8a97b5;
}

.sf2-footer p {
  font-size: .92rem;
  color: #9fb0d4;
  max-width: 26rem;
}

.sf2-footer h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

.sf2-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf2-footer ul a {
  color: #9fb0d4;
  font-size: .92rem;
  font-weight: 500;
  transition: color var(--sf-speed) var(--sf-ease),
              padding-left var(--sf-speed) var(--sf-ease);
}

.sf2-footer ul a:hover {
  color: #fff;
  padding-left: 4px;
}

.sf2-footer-bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  font-size: .82rem;
  color: #8a97b5;
}

.sf2-footer-bottom a {
  color: #c8d3ec;
}

.sf2-footer-bottom a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   20. RESPONSIVE — mobile-first breakpoints
   -------------------------------------------------------------------------- */

/* --- 480px: small phones landscape / large phones ------------------------- */
@media (min-width: 480px) {
  .sf2-hero-inner {
    gap: 44px;
  }

  .sf2-how-steps {
    gap: 20px;
  }

  .sf2-footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- 768px: tablets -------------------------------------------------------- */
@media (min-width: 768px) {
  .sf2-wrap {
    padding-inline: 28px;
  }

  /* Two-col card grids */
  .sf2-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf2-how-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .sf2-article-layout {
    gap: 40px;
  }

  /* Comfortable comment threading */
  .comment-list .children {
    margin-left: 40px;
    padding-left: 28px;
  }

  /* CTA becomes visible on tablets */
  a.sf2-cta {
    display: inline-flex;
  }

  .sf2-footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .sf2-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- 1024px: desktop ------------------------------------------------------- */
@media (min-width: 1024px) {
  /* Header: full nav + hide burger/panel */
  nav.sf2-nav {
    display: block;
  }

  button.sf2-burger,
  .sf2-mobile-panel {
    display: none !important;
  }

  .sf2-mobile-panel.open {
    display: none !important;
  }

  /* Hero splits into copy + studio */
  .sf2-hero-inner {
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
  }

  /* Topics: 4 columns */
  .sf2-topic-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Trending becomes a 3-col grid (no horizontal scroll) */
  .sf2-trend-scroll {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
  }

  /* Article cards: 3 columns */
  .sf2-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Article + fixed 300px sidebar */
  .sf2-article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  aside.sf2-sidebar {
    position: sticky;
    top: 110px;
  }

  .sf2-footer-top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   21. MOTION & ACCESSIBILITY
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .sfcc-button:hover,
  button.sf2-studio-copy:hover,
  a.sf2-topic:hover,
  article.sf2-card:hover,
  article.sf2-postcard:hover {
    transform: none !important;
  }
}

/* Keyboard users get a stronger visible focus inside gradient surfaces */
.sf2-how :focus-visible,
.sf2-footer :focus-visible,
.sf2-studio-copy:focus-visible,
.sfcc-button:focus-visible {
  outline-color: #fff;
  outline-offset: 4px;
}

.sf2-footer :focus-visible,
.sf2-how :focus-visible {
  box-shadow: 0 0 0 2px #0e1a33, 0 0 0 5px #fff;
}

/* --------------------------------------------------------------------------
   22. PRINT — articles print cleanly
   -------------------------------------------------------------------------- */
@media print {
  .sf2-header,
  .sf2-mobile-panel,
  .sfcc-controls,
  .sf2-studio,
  .sf2-comments,
  aside.sf2-sidebar,
  .sf2-footer,
  .sf2-toc,
  .sfbp-panel,
  .sf2-copy-hint,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .sf2-article,
  .sf-copy-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* --------------------------------------------------------------------------
   Reconciliation additions — classes emitted by templates
   -------------------------------------------------------------------------- */

/* Card featured image (non-collection cards with thumbnails) */
.sf2-card-media {
  display: block;
  overflow: hidden;
  min-height: 150px;
  background: var(--sf-surface-2);
}
.sf2-card-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

/* Trending postcard header chrome (mirrors copy-card top row) */
.sf2-postcard-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--sf-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}
.sf2-postcard-handle {
  font-weight: 800;
  font-size: .85rem;
  color: var(--sf-ink);
}
.sf2-postcard-chip {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sf-violet);
  background: color-mix(in srgb, var(--sf-violet) 12%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Paginated post navigation */
.sf2-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  font-size: .9rem;
  color: var(--sf-muted);
}
.sf2-page-links a,
.sf2-page-links > span span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--sf-ink);
  font-weight: 700;
}
.sf2-page-links a:hover {
  border-color: var(--sf-blue);
  color: var(--sf-blue);
}

/* ---------- Legacy Kadence banner boxes → v2 style ---------- */
/* Old posts wrap section headings in Kadence columns with a maroon-to-blue
   gradient. theme.js tags those boxes with .sf2-box; restyle them here. */
.kt-inside-inner-col.sf2-box {
  background-image: var(--sf-grad) !important;
  background-color: var(--sf-blue) !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  border-radius: var(--sf-radius) !important;
  box-shadow: 0 14px 30px -14px rgba(79, 70, 229, .55) !important;
  overflow: hidden;
}
.kt-inside-inner-col.sf2-box .wp-block-kadence-advancedheading {
  color: #fff;
}
.kt-inside-inner-col.sf2-box .wp-block-kadence-advancedheading mark.kt-highlight {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

/* ---------- Legacy Kadence callout boxes → v2 style ---------- */
/* Old posts use gray boxes with a maroon left border ("You may also like",
   icon nav lists). theme.js tags those with .sf2-box-line; restyle here. */
.kt-inside-inner-col.sf2-box-line {
  position: relative;
  background-color: var(--sf-surface-2) !important;
  background-image: none !important;
  border: 1px solid var(--sf-line) !important;
  border-radius: var(--sf-radius) !important;
  box-shadow: var(--sf-shadow) !important;
  overflow: hidden;
  padding-left: 1.35rem !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
/* v2 gradient accent bar instead of the old flat side border. */
.kt-inside-inner-col.sf2-box-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--sf-grad);
}
/* Recolor legacy maroon icons inside these boxes to the v2 brand blue. */
.kt-inside-inner-col.sf2-box-line .kb-svg-icon-wrap {
  color: var(--sf-blue) !important;
}
/* Kadence renders icon headings as flex rows, so text-align alone cannot
   center them; justify-content centers the icon + title line in the card. */
.kt-inside-inner-col.sf2-box-line .wp-block-kadence-advancedheading {
  color: var(--sf-ink);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
}

/* ---------- Related-links list → modern v2 link rows ---------- */
/* theme.js tags legacy link boxes with .sf2-box-line; when the box holds a
   link list, restyle it as modern rows instead of a plain bulleted list. */
.kt-inside-inner-col.sf2-box-line:has(> ul) {
  padding: 0.9rem !important;
}
.kt-inside-inner-col.sf2-box-line:has(> ul) > ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.kt-inside-inner-col.sf2-box-line:has(> ul) > ul > li {
  margin: 0 !important;
  padding: 0 !important;
}
.kt-inside-inner-col.sf2-box-line:has(> ul) > ul > li::marker {
  content: none;
}
.kt-inside-inner-col.sf2-box-line:has(> ul) > ul > li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  color: var(--sf-ink) !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color var(--sf-speed) var(--sf-ease),
              box-shadow var(--sf-speed) var(--sf-ease),
              transform var(--sf-speed) var(--sf-ease);
}
.kt-inside-inner-col.sf2-box-line:has(> ul) > ul > li a:hover {
  border-color: var(--sf-blue);
  box-shadow: 0 4px 14px rgba(79, 70, 229, .14);
  transform: translateX(4px);
}
.kt-inside-inner-col.sf2-box-line:has(> ul) > ul > li a::after {
  content: "\2192";
  margin-left: auto;
  color: var(--sf-blue);
  font-weight: 800;
}

/* ---------- Legacy Kadence FAQ accordion → v2 style ---------- */
/* theme.js tags .kt-accordion-inner-wrap with .sf2-acc; restyle here. */
.sf2-acc .kt-accordion-pane {
  margin-bottom: .65rem;
}
.sf2-acc .kt-blocks-accordion-header {
  background: var(--sf-surface-2) !important;
  border: 1px solid var(--sf-line) !important;
  border-radius: var(--sf-radius-sm) !important;
  box-shadow: none !important;
}
.sf2-acc .kt-blocks-accordion-title {
  color: var(--sf-ink) !important;
  font-weight: 600;
}
.sf2-acc .kt-blocks-accordion-header.kt-accordion-panel-active {
  background: var(--sf-grad) !important;
  border-color: transparent !important;
}
.sf2-acc .kt-blocks-accordion-header.kt-accordion-panel-active .kt-blocks-accordion-title {
  color: #fff !important;
}
.sf2-acc .kt-blocks-accordion-icon-trigger {
  background: var(--sf-blue) !important;
  border-radius: 50% !important;
}
.sf2-acc .kt-blocks-accordion-icon-trigger::before,
.sf2-acc .kt-blocks-accordion-icon-trigger::after {
  background: #fff !important;
  border-color: #fff !important;
}
.sf2-acc .kt-accordion-panel-inner {
  background: transparent !important;
  border: none !important;
}

/* ---------- Legacy boxes → stripped to simple headings/lists ---------- */
/* Navy banner boxes (#184678) and star tips boxes: user chose "boxes hatao,
   simple headings rakho". theme.js tags those with .sf2-box-plain; the box
   visuals are removed and headings fall back to the normal v2 style. */
.kt-inside-inner-col.sf2-box-plain {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.kt-inside-inner-col.sf2-box-plain .wp-block-kadence-advancedheading {
  color: var(--sf-ink) !important;
  text-align: left !important;
  text-shadow: none !important;
}
/* v2.0.28: also reset plain h1-h4 inside stripped heading-only boxes. */
.kt-inside-inner-col.sf2-box-plain h1,
.kt-inside-inner-col.sf2-box-plain h2,
.kt-inside-inner-col.sf2-box-plain h3,
.kt-inside-inner-col.sf2-box-plain h4 {
  color: var(--sf-ink) !important;
  text-shadow: none !important;
}

/* ---------- Hidden helpers ---------- */
/* Empty legacy title banners (only a removed-H1 span inside). */
.sf2-gone {
  display: none !important;
}


/* ==========================================================================
   23. ULTIMATE POST THEME — premium article layer (v2.0.20)
   One cohesive design language for every post: gradient-threaded hero head,
   numbered TOC, elevated copy cards, unified callouts / link rows / FAQ,
   polished sidebar. Built only on the v2 tokens, so light + dark both work
   and every rule above (copy, TOC, boxes, rows, accordion) stays intact.
   ========================================================================== */

/* Anchor jumps clear the sticky header */
html {
  scroll-padding-top: 118px;
}

/* Reading progress — thin gradient thread across the very top */
.sf3-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #4f46e5, #8b5cf6, #ec4899, #f59e0b);
  box-shadow: 0 1px 10px rgba(124, 92, 240, .5);
  z-index: 500;
  pointer-events: none;
}
/* v2.0.29: when the WP admin toolbar is showing (logged-in view), it covers
   the very top of the viewport — sit the progress thread just below it. */
body.admin-bar .sf3-progress { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .sf3-progress { top: 46px; }
}

/* Branded scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--sf-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--sf-blue), var(--sf-violet));
  border-radius: 99px;
  border: 2px solid var(--sf-bg);
}

/* ---------- Breadcrumbs → floating pill ---------- */
.sf2-breadcrumbs {
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: var(--sf-shadow);
  width: fit-content;
  max-width: 100%;
}
.sf2-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.sf2-breadcrumbs li + li::before {
  content: "\203A";
  margin-inline: 9px;
  color: var(--sf-violet);
  font-size: 1.05rem;
  font-weight: 800;
}

/* ---------- Article shell → hero card ---------- */
.sf2-article {
  border-radius: 32px;
  box-shadow: 0 30px 70px -30px rgba(46, 64, 140, .35), var(--sf-shadow);
  background-color: var(--sf-surface);
  background-image: linear-gradient(90deg, #4f46e5 0%, #8b5cf6 42%, #ec4899 78%, #f59e0b 100%);
  background-size: 100% 6px;
  background-repeat: no-repeat;
  background-position: top left;
}

/* Category eyebrow → gradient chip */
.sf2-article-head .sf2-eyebrow {
  background: var(--sf-grad);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 22px -8px rgba(124, 92, 240, .55);
  margin-bottom: 16px;
}
.sf2-article-head .sf2-eyebrow a {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* Title + gradient divider */
.sf2-article-head {
  border-bottom: 0;
  position: relative;
  padding-bottom: 26px;
}
.sf2-article-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sf-blue), var(--sf-violet), var(--sf-pink), transparent 88%);
}
.sf2-article-head h1 {
  font-size: clamp(2.05rem, 5vw, 3.15rem);
  letter-spacing: -.035em;
  line-height: 1.12;
  text-wrap: balance;
}

/* Meta row → chips */
.sf2-meta { gap: 8px; }
.sf2-meta .sf2-meta-sep { display: none; }
.sf2-meta-author a,
.sf2-meta-date {
  background: var(--sf-surface-2);
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  padding: 6px 13px;
  font-weight: 700;
  color: var(--sf-body);
}
.sf2-meta-author a:hover { color: var(--sf-blue); border-color: var(--sf-violet); }

/* Copy hint → solid gradient pill */
.sf2-copy-hint {
  background: var(--sf-grad);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 22px -8px rgba(124, 92, 240, .55);
  padding: 10px 18px;
}
.sf2-copy-hint::before { color: #fff; }

/* ---------- Section headings → gradient marker system ---------- */
.sf2-content h2 {
  position: relative;
  padding-left: 20px;
}
.sf2-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 0.85em;
  transform: translateY(-50%);
  border-radius: 99px;
  background: var(--sf-grad);
}
.sf2-content h3 {
  position: relative;
  padding-left: 22px;
}
.sf2-content h3::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--sf-grad);
  transform: translateY(-50%) rotate(45deg);
}
/* Never inside banner / callout cards — their own rules own the heading */
.kt-inside-inner-col.sf2-box-line .wp-block-kadence-advancedheading,
.kt-inside-inner-col.sf2-box .wp-block-kadence-advancedheading {
  padding-left: 0;
}
.kt-inside-inner-col.sf2-box-line .wp-block-kadence-advancedheading::before,
.kt-inside-inner-col.sf2-box-line .wp-block-kadence-advancedheading::after,
.kt-inside-inner-col.sf2-box .wp-block-kadence-advancedheading::before,
.kt-inside-inner-col.sf2-box .wp-block-kadence-advancedheading::after {
  content: none;
}

/* ---------- TOC → numbered premium card ---------- */
.sf2-toc {
  position: relative;
  background: var(--sf-surface);
  border-radius: 20px;
  box-shadow: var(--sf-shadow);
  padding: 8px 22px 10px;
  overflow: hidden;
}
.sf2-toc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--sf-grad);
}
.sf2-toc summary {
  font-size: 1.02rem;
  padding: 15px 0;
}
.sf2-toc summary::before {
  content: "\25B8";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--sf-grad);
  color: #fff;
  font-size: .78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -4px rgba(124, 92, 240, .55);
}
.sf2-toc ul,
.sf2-toc ol {
  list-style: none;
  padding-left: 0;
  counter-reset: sf3toc;
}
.sf2-toc li { margin-bottom: 2px; }
.sf2-toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  counter-increment: sf3toc;
  transition: background var(--sf-speed) var(--sf-ease),
              transform var(--sf-speed) var(--sf-ease),
              color var(--sf-speed) var(--sf-ease);
}
.sf2-toc a::before {
  content: counter(sf3toc, decimal-leading-zero);
  font-size: .76rem;
  font-weight: 800;
  color: var(--sf-violet);
  font-variant-numeric: tabular-nums;
}
.sf2-toc a:hover {
  background: color-mix(in srgb, var(--sf-violet) 8%, transparent);
  transform: translateX(4px);
  color: var(--sf-ink);
}

/* ---------- Copy cards → elevated, with copy feedback ---------- */
.sf-copy-card {
  position: relative;
  border-radius: 20px;
  padding: 22px;
  overflow: hidden;
}
.sf-copy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sf-grad);
  opacity: 0;
  transition: opacity var(--sf-speed) var(--sf-ease);
}
.sf-copy-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--sf-violet) 38%, var(--sf-line));
}
.sf-copy-card:hover::before { opacity: 1; }
.sf-card-avatar {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-violet) 18%, transparent),
              0 4px 10px rgba(124, 92, 240, .35);
}
.sfcc-controls { border-top-style: dashed; }
.sfcc-button { position: relative; overflow: hidden; }
.sfcc-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .55s var(--sf-ease);
  pointer-events: none;
}
.sfcc-button:hover::after { transform: translateX(130%); }
.sfcc-button.is-copied {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 8px 18px rgba(16, 185, 129, .38);
}
.sf-copy-card.sf3-copied {
  border-color: color-mix(in srgb, var(--sf-mint) 55%, var(--sf-line));
  animation: sf3copied .5s var(--sf-ease);
}
@keyframes sf3copied {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); }
  100% { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
}

/* ---------- Callout cards → softer depth, chip icon ---------- */
/* (Layout + vertical centering from the v2.0.18 rule above is untouched.) */
.kt-inside-inner-col.sf2-box-line {
  border-radius: 20px;
  box-shadow: 0 16px 36px -18px rgba(46, 64, 140, .30);
}
.kt-inside-inner-col.sf2-box-line .kb-svg-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--sf-violet) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--sf-violet) 22%, transparent);
}
.kt-inside-inner-col.sf2-box {
  box-shadow: 0 20px 40px -16px rgba(79, 70, 229, .55) !important;
}

/* ---------- Link lists → modern rows on ANY post ---------- */
/* theme.js / the preview script tags qualifying lists with .sf3-linkrows,
   so the row design no longer depends on one post's column id. */
.sf3-linkrows {
  list-style: none !important;
  margin: 0 0 1.6em !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.sf3-linkrows li { margin: 0 !important; padding: 0 !important; }
.sf3-linkrows li::marker { content: ""; }
.sf3-linkrows li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-sm);
  padding: .85rem 1.15rem;
  color: var(--sf-ink);
  font-weight: 600;
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.sf3-linkrows li a::after {
  content: "\2192";
  flex: none;
  color: var(--sf-blue);
  font-weight: 700;
  line-height: 1;
}
.sf3-linkrows li a:hover,
.sf3-linkrows li a:focus-visible {
  transform: translateX(6px);
  border-color: var(--sf-blue);
  box-shadow: var(--sf-shadow);
  color: var(--sf-blue);
}
.kt-inside-inner-col.sf3-linkrows-host { border-left: none !important; }

/* ---------- FAQ accordion → floating panes ---------- */
.sf2-acc .kt-blocks-accordion-header {
  background: var(--sf-surface) !important;
  border-radius: 14px !important;
  box-shadow: var(--sf-shadow) !important;
  padding: 16px 18px !important;
}
.sf2-acc .kt-blocks-accordion-title { font-weight: 700; font-size: 1rem; }
.sf2-acc .kt-blocks-accordion-header.kt-accordion-panel-active {
  border-radius: 14px 14px 0 0 !important;
}
.sf2-acc .kt-blocks-accordion-icon-trigger {
  transition: transform .25s var(--sf-ease);
}
.sf2-acc .kt-blocks-accordion-header.kt-accordion-panel-active .kt-blocks-accordion-icon-trigger {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, .25) !important;
}
.sf2-acc .kt-accordion-panel-inner {
  background: var(--sf-surface) !important;
  border: 1px solid var(--sf-line) !important;
  border-top: 0 !important;
  border-radius: 0 0 14px 14px !important;
  padding: 16px 18px 8px !important;
  color: var(--sf-body);
}

/* ---------- Content images → clean frames, no legacy borders ---------- */
.sf2-content img {
  border: 0 !important;
  outline: none !important;
  border-radius: 18px;
  box-shadow: var(--sf-shadow);
}

/* ---------- Sidebar → cohesive widgets ---------- */
aside.sf2-sidebar .sf2-widget { border-radius: 20px; padding: 24px; }
aside.sf2-sidebar .sf2-widget h4,
aside.sf2-sidebar .sf2-widget .widget-title {
  border-bottom: 0;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
aside.sf2-sidebar .sf2-widget h4::after,
aside.sf2-sidebar .sf2-widget .widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 3px;
  border-radius: 99px;
  background: var(--sf-grad);
}
aside.sf2-sidebar .sf2-widget ul li { margin-bottom: 4px; }
aside.sf2-sidebar .sf2-widget ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin-inline: -12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background var(--sf-speed) var(--sf-ease),
              border-color var(--sf-speed) var(--sf-ease),
              transform var(--sf-speed) var(--sf-ease),
              color var(--sf-speed) var(--sf-ease);
}
aside.sf2-sidebar .sf2-widget ul li a:hover {
  background: var(--sf-surface-2);
  border-color: var(--sf-line);
  transform: translateX(3px);
  color: var(--sf-ink);
}
aside.sf2-sidebar .sf2-widget ul li a > span[aria-hidden="true"] {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--sf-violet) 12%, transparent);
  color: var(--sf-violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .82rem;
}
/* Search widget in theme dress */
aside.sf2-sidebar .wp-block-search__label {
  display: block;
  font-weight: 800;
  color: var(--sf-ink);
  font-size: .95rem;
  margin-bottom: 10px;
}
aside.sf2-sidebar .wp-block-search__input {
  border: 1px solid var(--sf-line) !important;
  border-radius: 12px !important;
  padding: 11px 14px !important;
  background: var(--sf-surface) !important;
  color: var(--sf-ink);
  font: inherit;
}
aside.sf2-sidebar .wp-block-search__button {
  background: var(--sf-grad) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 11px 18px !important;
  margin-left: 8px !important;
  font-weight: 800;
  box-shadow: 0 8px 18px -6px rgba(124, 92, 240, .5);
}

/* ---------- Related heading matches the section system ---------- */
.sf2-related > h2 {
  position: relative;
  padding-left: 20px;
}
.sf2-related > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 6px;
  border-radius: 99px;
  background: var(--sf-grad);
}

@media (prefers-reduced-motion: reduce) {
  .sfcc-button::after { display: none; }
  .sf-copy-card.sf3-copied { animation: none; }
  .sf3-linkrows li a:hover,
  aside.sf2-sidebar .sf2-widget ul li a:hover { transform: none; }
}

@media print {
  .sf3-progress { display: none !important; }
}

/* ---------- FAQ structure (self-contained) ---------- */
/* The accordion's layout must not depend on the plugin stylesheet:
   headers are full-width bars, hidden panels stay hidden. */
.sf2-acc .kt-blocks-accordion-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.sf2-acc .kt-blocks-accordion-icon-trigger {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  position: relative;
}
.sf2-acc .kt-accordion-panel-hidden {
  display: none !important;
}

/* ---------- Header lockup → logo scales to the bar ---------- */
/* The uploaded logo is 319×116; left alone it dictates the header height
   and pushes the icon buttons off-screen on phones. Cap it to the bar. */
.sf2-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  margin-right: auto;
}
.sf2-header .custom-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
}
/* Icon-only header mark: keep it square. */
.sf2-header .sf2-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
@media (max-width: 640px) {
  .sf2-header .custom-logo { height: 38px; }
  .sf2-header .sf2-header-icon { width: 38px; height: 38px; }
  .sf2-header-inner { gap: 8px; padding: 8px 10px; }
  .sf2-header-actions { gap: 6px; }

}

/* ==========================================================================
   24. Kadence icon lists → modern rows (v2.0.21)
   Icon lists lost Kadence's CSS when the old theme was replaced, rendering
   as unstyled browser-default lists. Restyle them as v2 rows with gradient
   icon chips; rows that contain links get hover lift + arrow, matching the
   .sf3-linkrows language.
   ========================================================================== */
.sf2-content ul.kt-svg-icon-list {
  list-style: none !important;
  margin: 0 0 1.6em !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.sf2-content ul.kt-svg-icon-list > li {
  margin: 0 !important;
  padding: .8rem 1.1rem !important;
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-sm);
  position: relative;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sf2-content ul.kt-svg-icon-list > li::marker { content: ""; }
.sf2-content ul.kt-svg-icon-list .kb-svg-icon-wrap {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--sf-grad);
  color: #fff !important;
  box-shadow: 0 6px 14px -6px rgba(124, 92, 240, .55);
}
.sf2-content ul.kt-svg-icon-list .kb-svg-icon-wrap svg {
  width: 18px;
  height: 18px;
}
.sf2-content ul.kt-svg-icon-list .kt-svg-icon-list-text {
  font-weight: 600;
  color: var(--sf-ink);
  min-width: 0;
}
.sf2-content ul.kt-svg-icon-list .kt-svg-icon-list-text a {
  color: inherit;
  text-decoration: none !important;
  font-weight: 700;
}
/* Linked rows: hover lift + arrow; stretched hit-area for easy tapping. */
.sf2-content ul.kt-svg-icon-list > li:has(.kt-svg-icon-list-text a):hover {
  transform: translateX(6px);
  border-color: var(--sf-blue);
  box-shadow: var(--sf-shadow);
}
.sf2-content ul.kt-svg-icon-list .kt-svg-icon-list-text a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.sf2-content ul.kt-svg-icon-list > li:has(.kt-svg-icon-list-text a) .kt-svg-icon-list-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.sf2-content ul.kt-svg-icon-list > li:has(.kt-svg-icon-list-text a) .kt-svg-icon-list-text::after {
  content: "\2192";
  flex: none;
  color: var(--sf-blue);
  font-weight: 700;
  line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
  .sf2-content ul.kt-svg-icon-list > li { transition: none; }
  .sf2-content ul.kt-svg-icon-list > li:has(.kt-svg-icon-list-text a):hover { transform: none; }
}
