/*
 Theme Name:   SPEEND Blog
 Theme URI:    https://speend.io
 Description:  SPEEND — a dark-purple canvas with a spiral-mesh + glow, glass surfaces, Onest type and a reserved lime CTA. Styles the header, navigation, hero, blog cards, single posts and the author / category / tag archives. Bilingual-ready (RU/EN), translation- & SEO-friendly. Customise in Appearance → Customize → "SPEEND Theme", or tweak the CSS variables in the :root block below.
 Author:       SPEEND
 Author URI:   https://speend.io
 Template:     generatepress
 Version:      1.3.0
 Text Domain:  speend-blog
*/

/* ============================================================
   1 · DESIGN TOKENS  — edit these to recolour the whole theme.
   functions.php can override --speend-accent / --speend-cta /
   --speend-cols live from the Customizer; everything else is here.
   ============================================================ */
:root {
  /* Canvas & surfaces */
  --speend-bg:            #0E002D;
  --speend-bg-deep:       #08001A;
  --speend-surface:       rgba(15, 13, 24, 0.55);   /* glass card  */
  --speend-surface-2:     rgba(15, 13, 24, 0.72);   /* nested      */
  --speend-surface-solid: #130F26;
  --speend-field:         rgba(15, 13, 24, 0.70);

  /* Accents (Customizer-overridable) */
  --speend-accent:        #4D4FD5;   /* primary purple        */
  --speend-accent-bright: #6669FF;   /* gradient top / lavender */
  --speend-cta:           #CFFD66;   /* lime — one CTA only   */
  --speend-cta-bright:    #C1FC36;
  --speend-gradient-accent: linear-gradient(180deg, var(--speend-accent-bright) 0%, var(--speend-accent) 100%);
  --speend-gradient-cta:    linear-gradient(102deg, #E0FE9A 0%, var(--speend-cta-bright) 100%);

  /* Text */
  --speend-text:          #FFFFFF;
  --speend-text-2:        #B3B3B3;   /* body / muted          */
  --speend-text-3:        #999999;   /* meta / hints          */
  --speend-on-light:      #0E002D;

  /* Lines */
  --speend-border:        rgba(178, 179, 255, 0.10);
  --speend-border-2:      rgba(178, 179, 255, 0.20);
  --speend-border-3:      rgba(178, 179, 255, 0.32);
  --speend-field-border:  rgba(255, 255, 255, 0.08);

  /* Status */
  --speend-success:       #C1FC36;
  --speend-danger:        #FF5C5C;

  /* Radii */
  --speend-r-sm:  12px;
  --speend-r-md:  16px;
  --speend-r-lg:  20px;
  --speend-r-xl:  24px;
  --speend-r-2xl: 28px;
  --speend-pill:  999px;

  /* Elevation & glass */
  --speend-shadow-md: 0 12px 32px rgba(8, 0, 26, 0.45);
  --speend-shadow-lg: 0 24px 60px rgba(8, 0, 26, 0.55);
  --speend-shadow-cta: 0 8px 24px rgba(193, 252, 54, 0.30);
  --speend-shadow-accent: 0 8px 24px rgba(77, 79, 213, 0.45);
  --speend-blur: blur(10px);

  /* Type */
  --speend-sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --speend-mono: "SF Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --speend-cols: 2;                 /* blog columns (1 or 2)  */
  --speend-content-width: 1180px;

  /* Background motif (toggled off by body.speend-no-mesh) */
  --speend-mesh: url("assets/spiral-mesh.svg");
  --speend-glow: rgba(77, 79, 213, 0.55);
  --speend-glow-lime: rgba(193, 252, 54, 0.30);
}

/* ============================================================
   2 · WEBFONTS — Onest, self-hosted (no external request)
   ============================================================ */
@font-face { font-family:"Onest"; font-style:normal; font-weight:400; font-display:swap; src:url("assets/fonts/Onest-Regular.ttf") format("truetype"); }
@font-face { font-family:"Onest"; font-style:normal; font-weight:500; font-display:swap; src:url("assets/fonts/Onest-Medium.ttf") format("truetype"); }
@font-face { font-family:"Onest"; font-style:normal; font-weight:600; font-display:swap; src:url("assets/fonts/Onest-SemiBold.ttf") format("truetype"); }
@font-face { font-family:"Onest"; font-style:normal; font-weight:700; font-display:swap; src:url("assets/fonts/Onest-Bold.ttf") format("truetype"); }
@font-face { font-family:"Onest"; font-style:normal; font-weight:800; font-display:swap; src:url("assets/fonts/Onest-ExtraBold.ttf") format("truetype"); }

/* ============================================================
   3 · CANVAS + BACKGROUND MOTIF
   ============================================================ */
body {
  background-color: var(--speend-bg);
  color: var(--speend-text);
  font-family: var(--speend-sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Fixed purple glow + spiral-mesh behind all content */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}
body::before {                                   /* glow */
  top: -180px; right: -160px;
  width: 820px; height: 420px;
  border-radius: 50%;
  background: var(--speend-glow);
  filter: blur(90px);
  opacity: 0.5;
}
body::after {                                    /* motif (spiral by default) */
  inset: -8%;
  background-color: rgba(184, 185, 255, 0.06);
  -webkit-mask: url("assets/spiral-mesh.svg") right -8% top -14% / 56% no-repeat;
  mask: url("assets/spiral-mesh.svg") right -8% top -14% / 56% no-repeat;
}
/* per-template motif variants (body class set in functions.php) */
body.bgm-spiral::after { -webkit-mask: url("assets/spiral-mesh.svg") right -8% top -14% / 56% no-repeat; mask: url("assets/spiral-mesh.svg") right -8% top -14% / 56% no-repeat; }
body.bgm-rings::after { inset: 0; background-color: rgba(184,185,255,0.05); -webkit-mask: url("assets/bg-rings.svg") center -30% / 90% no-repeat; mask: url("assets/bg-rings.svg") center -30% / 90% no-repeat; }
body.bgm-grid::after { inset: 0; background-color: rgba(184,185,255,0.045); -webkit-mask: url("assets/bg-grid.svg") center top / 460px repeat; mask: url("assets/bg-grid.svg") center top / 460px repeat; }
body.bgm-waves::after { inset: 0; background-color: rgba(184,185,255,0.05); -webkit-mask: url("assets/bg-waves.svg") center top -6% / 100% no-repeat; mask: url("assets/bg-waves.svg") center top -6% / 100% no-repeat; }
body.bgm-none::after { display: none; }
body.speend-no-mesh::before,
body.speend-no-mesh::after { display: none; }

/* keep real content above the motif */
.site,
#page { position: relative; z-index: 1; background: transparent; }
.site-content,
#content { background: transparent; }

/* Parent-theme "separate containers" default white backgrounds → transparent
   so every surface respects the dark canvas. */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.separate-containers .site-main > *,
.one-container .site-content,
.one-container .container,
.inside-page-header { background-color: transparent; box-shadow: none; }

::selection { background: var(--speend-accent-bright); color: #fff; }

/* ============================================================
   4 · TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 { color: var(--speend-text); font-weight: 700; letter-spacing: -0.02em; }
a { color: var(--speend-accent-bright); text-decoration: none; transition: color .2s ease; }
a:hover { color: #fff; }
p { color: var(--speend-text-2); }
code, kbd, pre, samp { font-family: var(--speend-mono); }

/* Force Onest across the theme (beats the parent's dynamic font CSS).
   Mono elements (meta, code, tag pills) are deliberately excluded. */
body, button, input, select, optgroup, textarea,
h1, h2, h3, h4, h5, h6,
.main-title a, .site-description,
.main-navigation a, .menu-toggle, .main-nav .menu a,
.entry-title, .entry-title a, .widget-title,
.speend-hero h1, .speend-hero p, .page-numbers,
.wp-block-button__link, .button,
.speend-footer-cta h3, .speend-footer-col-title { font-family: var(--speend-sans) !important; }

/* ============================================================
   5 · HEADER + BRANDING
   ============================================================ */
.site-header {
  background: rgba(15, 13, 24, 0.55);
  -webkit-backdrop-filter: var(--speend-blur);
  backdrop-filter: var(--speend-blur);
  border-bottom: 1px solid var(--speend-border);
}
.site-header .inside-header { padding-top: 16px; padding-bottom: 16px; }
.main-title a, .site-title a { color: var(--speend-text); font-weight: 700; letter-spacing: -0.01em; }
.main-title a:hover { color: var(--speend-cta); }
.site-description { color: var(--speend-text-3); font-weight: 500; }
/* The logo carries the brand in the header — hide the redundant text title/tagline. */
.site-header .site-branding { display: none; }
/* logo + "/ blog" suffix (injected in functions.php; text editable in Customizer) */
.inside-header .site-logo { display: inline-flex; align-items: center; gap: 9px; }
.speend-brand-suffix { color: var(--speend-text-3); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; align-self: center; }

/* smooth in-page scroll + restrained scroll-reveal (driven by assets/js/speend.js) */
html { scroll-behavior: smooth; }
.speend-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
.speend-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .speend-reveal { opacity: 1 !important; transform: none !important; } }

/* breadcrumb (single posts) */
.speend-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--speend-text-3); margin: 0 0 18px; }
.speend-breadcrumb a { color: var(--speend-text-3); text-decoration: none; }
.speend-breadcrumb a:hover { color: #fff; }
.speend-breadcrumb a.is-cat { color: var(--speend-cta); }
.speend-breadcrumb .sep { opacity: .5; }
.speend-breadcrumb .current { color: var(--speend-text-2); }

/* ============================================================
   6 · NAVIGATION (glass, sticky) + button menu-items
   ============================================================ */
.main-navigation {
  background: rgba(15, 13, 24, 0.6);
  -webkit-backdrop-filter: var(--speend-blur);
  backdrop-filter: var(--speend-blur);
  border-bottom: 1px solid var(--speend-border);
  position: sticky; top: 0; z-index: 100;
}
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle {
  color: var(--speend-text-3);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s ease, background-color .2s ease;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li[class*="current-menu"] > a {
  color: #fff;
  background: transparent;
}
/* sub-menus = glass dropdown */
.main-navigation ul ul {
  background: var(--speend-surface-solid);
  border: 1px solid var(--speend-border-2);
  border-radius: var(--speend-r-md);
  box-shadow: var(--speend-shadow-lg);
  overflow: hidden;
}
.main-navigation ul ul li a { color: var(--speend-text-2); }

/* Give a menu item the CSS class "button-cta" (lime) or
   "button-outline" (lime outline) in Appearance → Menus to make a pill button. */
.main-navigation .main-nav ul li.button-cta,
.main-navigation .main-nav ul li.button-outline { display: flex; align-items: center; }
.main-navigation .main-nav ul li.button-cta > a,
.main-navigation .main-nav ul li.button-outline > a {
  line-height: 1.1; height: auto; min-height: 0; padding: 9px 20px; margin: 0 4px;
  border-radius: var(--speend-pill); align-self: center; white-space: nowrap;
}
.main-navigation .main-nav ul li.button-cta > a {
  color: var(--speend-on-light); background: var(--speend-gradient-cta); font-weight: 700; box-shadow: var(--speend-shadow-cta);
}
.main-navigation .main-nav ul li.button-cta > a:hover { color: var(--speend-on-light); filter: brightness(1.04); }
.main-navigation .main-nav ul li.button-outline > a {
  color: var(--speend-cta); background: transparent; border: 1.5px solid var(--speend-cta); font-weight: 600;
}
.main-navigation .main-nav ul li.button-outline > a:hover { background: rgba(207,253,102,0.1); color: var(--speend-cta); }

/* 3-zone header: logo far-left, menu centred, button items pushed right.
   Applies when Primary Navigation Location = "Float right" (set on activation). */
.inside-header { display: flex; align-items: center; gap: 24px; flex-wrap: nowrap; }
.inside-header .site-logo { flex: 0 0 auto; margin: 0; }
.inside-header .main-navigation {
  flex: 1 1 auto; min-width: 0; background: transparent; border: none; position: static;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.inside-header .main-navigation .inside-navigation { padding: 0; }
.inside-header .main-nav > ul { display: flex; align-items: center; gap: 4px; width: 100%; }
/* centre the normal items (auto on the first item) and pin the button/lang
   group to the right (auto on the first right-side item only). Any width. */
.inside-header .main-nav > ul > li:first-child { margin-left: auto; }
.inside-header .main-nav > ul > li.button-outline:first-of-type,
.inside-header .main-nav > ul > li.button-cta:first-of-type { margin-left: auto; }
.inside-header .main-nav > ul > li.button-outline ~ li.button-cta { margin-left: 0; }

/* mobile menu toggle — compact icon button, never the gradient pill */
.main-navigation .menu-toggle {
  background: transparent; box-shadow: none; color: #fff; width: auto; height: auto;
  padding: 10px; border-radius: 12px; font-weight: 600; transform: none;
}
.main-navigation .menu-toggle:hover, .main-navigation .menu-toggle:focus { background: rgba(255,255,255,0.06); filter: none; color: #fff; }
.main-navigation .menu-toggle .gp-icon { width: 26px; height: 26px; }

/* mobile: stack the menu into a clean glass panel */
@media (max-width: 768px) {
  .inside-header { flex-wrap: wrap; gap: 12px; align-items: center; }
  .inside-header .site-logo { flex: 1 1 auto; }
  .main-navigation .menu-toggle { margin-left: auto; }
  .inside-header .main-navigation { flex-basis: 100%; flex-grow: 1; }
  .inside-header .main-nav > ul,
  .main-navigation .main-nav > ul {
    flex-direction: column; align-items: stretch; gap: 0; width: 100%; justify-content: flex-start;
    background: var(--speend-surface-solid); border: 1px solid var(--speend-border-2);
    border-radius: var(--speend-r-lg); padding: 6px 14px; margin-top: 10px;
  }
  .main-navigation .main-nav ul li { width: 100%; border-top: 1px solid var(--speend-border); }
  .main-navigation .main-nav ul li:first-child { border-top: none; }
  .main-navigation .main-nav ul li a { padding: 15px 4px; width: 100%; font-size: 16px; line-height: 1.3; }
  .inside-header .main-nav > ul > li.button-outline { margin-left: 0; }
  .main-navigation .main-nav ul li.button-cta,
  .main-navigation .main-nav ul li.button-outline { border-top: none; margin: 10px 0 0; }
  .main-navigation .main-nav ul li.button-cta > a,
  .main-navigation .main-nav ul li.button-outline > a { display: inline-flex; width: 100%; justify-content: center; }
  /* sub-menus inline on mobile */
  .main-navigation .main-nav ul ul {
    position: static; opacity: 1; height: auto; width: 100%; left: auto;
    box-shadow: none; background: transparent; border: none; pointer-events: auto; overflow: visible;
  }
  .main-navigation .main-nav ul ul li a { padding-left: 18px; font-size: 15px; color: var(--speend-text-3); }
}

/* nav search */
.navigation-search input { background: var(--speend-field); color: #fff; border: none; }

/* ============================================================
   7 · ARCHIVE HEROES (injected via functions.php hook)
   Hide GeneratePress's default term/author title — our hero
   replaces it.
   ============================================================ */
.page-header,
body.archive .page-header,
body.author .page-header,
body.search .page-header { display: none; }

.speend-hero { position: relative; z-index: 1; padding: 52px 20px 8px; }
.speend-hero .speend-hero-inner { max-width: var(--speend-content-width); margin: 0 auto; }
.speend-hero .eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 14px;
}
.speend-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -0.025em; }
.speend-hero p.speend-lead { margin: 16px 0 0; font-size: 18px; color: var(--speend-text-2); max-width: 580px; line-height: 1.5; }

/* — Blog home / generic archive: lime eyebrow — */
.speend-hero-blog .eyebrow,
.speend-hero-search .eyebrow { color: var(--speend-cta); }

/* — Search hero: centred — */
.speend-hero-search { text-align: center; }
.speend-hero-search .speend-hero-inner { max-width: 720px; }
.speend-hero-search h1 { margin: 0 0 14px; }
.speend-hero-search .speend-lead { margin: 0 auto; }
.speend-hero-search .speend-searchform { margin-left: auto; margin-right: auto; }

/* — Category: lime banner with icon tile + count — */
.speend-hero-category .speend-hero-inner {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(193,252,54,0.12), rgba(15,13,24,0.4) 60%);
  border: 1px solid rgba(193, 252, 54, 0.2);
  border-radius: var(--speend-r-2xl);
  padding: 36px 40px;
}
.speend-hero-category .eyebrow { color: var(--speend-cta); }
.speend-hero-category .speend-hero-icon {
  width: 72px; height: 72px; flex: none; border-radius: 20px;
  background: rgba(193,252,54,0.14); border: 1px solid rgba(193,252,54,0.3);
  display: inline-flex; align-items: center; justify-content: center;
}
.speend-hero-category .speend-hero-icon::after { content:""; width:30px; height:30px; border-radius:8px; background: var(--speend-cta); }
.speend-hero-category .speend-hero-text { flex: 1; min-width: 240px; }
.speend-hero-category h1 { font-size: clamp(32px, 4.4vw, 48px); }
.speend-hero-category .speend-hero-count { text-align: right; }
.speend-hero-category .speend-hero-count b { display:block; font-family: var(--speend-mono); font-size: 34px; font-weight: 600; color:#fff; }
.speend-hero-category .speend-hero-count span { font-size: 13px; color: var(--speend-text-3); }

/* — Author: person-first, centred, lavender — */
.speend-hero-author { padding-top: 56px; text-align: center; }
.speend-hero-author .eyebrow { color: var(--speend-accent-bright); margin-top: 22px; }
.speend-hero-author .speend-avatar img,
.speend-hero-author .speend-avatar {
  width: clamp(104px, 12vw, 136px); height: clamp(104px, 12vw, 136px); border-radius: 50%;
  box-shadow: var(--speend-shadow-accent); border: 3px solid rgba(255,255,255,0.1);
  object-fit: cover; display: inline-block; background: var(--speend-gradient-accent);
}
.speend-author-social { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.speend-author-social a {
  width: 44px; height: 44px; border-radius: 13px; background: rgba(102,105,255,0.16); color: var(--speend-text-2);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.speend-author-social a:hover { background: rgba(102,105,255,0.28); color: #fff; }
.speend-author-social svg { width: 19px; height: 19px; }
.speend-hero-author h1 { font-size: clamp(32px, 4.4vw, 46px); }
.speend-hero-author p.speend-lead { margin-left: auto; margin-right: auto; max-width: 520px; }
.speend-hero-author .speend-stats {
  display: inline-flex; align-items: center; margin-top: 24px;
  padding: 12px 8px; border-radius: 18px;
  background: var(--speend-surface); -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur);
  border: 1px solid var(--speend-border-2);
}
.speend-hero-author .speend-stats .stat { padding: 0 22px; text-align: center; }
.speend-hero-author .speend-stats .stat + .stat { border-left: 1px solid var(--speend-border-2); }
.speend-hero-author .speend-stats b { display:block; font-family: var(--speend-mono); font-size: 22px; font-weight: 600; color: #fff; }
.speend-hero-author .speend-stats span { font-size: 12px; color: var(--speend-text-3); }

/* — Tag: compact hash hero, purple — */
.speend-hero-tag .speend-hero-inner { display: flex; align-items: center; gap: 22px; max-width: 860px; }
.speend-hero-tag .eyebrow { color: var(--speend-accent-bright); }
.speend-hero-tag .speend-hash {
  width: 80px; height: 80px; flex: none; border-radius: 22px;
  background: var(--speend-gradient-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 700; box-shadow: var(--speend-shadow-accent);
}
.speend-hero-tag h1 { font-family: var(--speend-mono); font-weight: 600; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.speend-hero-tag .speend-hero-count { margin-top: 8px; font-size: 15px; color: var(--speend-text-3); }
.speend-hero-tag .speend-hero-count b { font-family: var(--speend-mono); color: var(--speend-text-2); font-weight: 600; }

/* archive term description */
.speend-hero .taxonomy-description,
.speend-hero .author-description { color: var(--speend-text-2); font-size: 16px; line-height: 1.5; margin-top: 12px; }

/* ============================================================
   8 · BLOG ARCHIVE GRID (1 / 2 columns, Customizer-driven)
   ============================================================ */
body.blog .site-main,
body.archive .site-main,
body.search-results .site-main {
  display: grid;
  grid-template-columns: repeat(var(--speend-cols), minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
/* full-width rows inside the grid */
body.blog .site-main > .page-header,
body.archive .site-main > .page-header,
body.blog .site-main > .paging-navigation,
body.archive .site-main > .paging-navigation,
body.blog .site-main > nav,
body.archive .site-main > nav,
body.search-results .site-main > .paging-navigation { grid-column: 1 / -1; }

/* ============================================================
   9 · POST CARDS (archive)
   ============================================================ */
body.blog .site-main > article,
body.archive .site-main > article,
body.search-results .site-main > article {
  margin: 0; border: none; padding: 0;
}
body.blog .inside-article,
body.archive .inside-article,
body.search-results .inside-article {
  display: flex; flex-direction: column;
  position: relative;
  background: var(--speend-surface);
  -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur);
  border: 1px solid rgba(178, 179, 255, 0.12);
  border-radius: var(--speend-r-xl);
  overflow: hidden;
  box-shadow: var(--speend-shadow-md);
  padding: 0;
  height: 100%;
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s ease;
}
body.blog .inside-article:hover,
body.archive .inside-article:hover { transform: translateY(-3px); border-color: var(--speend-border-3); }

/* cover (printed by functions.php as .speend-cover) */
.speend-cover {
  display: block; position: relative; height: 200px; overflow: hidden;
  background: linear-gradient(150deg, #241e52, #0E002D);
  border-bottom: 1px solid rgba(178, 179, 255, 0.12);
}
.speend-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.speend-cover .speend-cover-mesh,
.speend-related-cover .speend-cover-mesh {
  position: absolute; inset: 0; background-color: rgba(184,185,255,0.10);
  -webkit-mask: var(--speend-mesh) center / 130% no-repeat; mask: var(--speend-mesh) center / 130% no-repeat;
}
/* hide GeneratePress's own featured image on archives — our .speend-cover replaces it */
body.blog .inside-article > .post-image,
body.archive .inside-article > .post-image,
body.search-results .inside-article > .post-image,
body.blog .inside-article > .featured-image,
body.archive .inside-article > .featured-image { display: none; }

.speend-cat-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 12px; border-radius: var(--speend-pill);
  font-size: 11px; font-weight: 700; color: var(--speend-cta); text-decoration: none;
  background: rgba(14, 0, 45, 0.6); border: 1px solid rgba(193, 252, 54, 0.3);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s, color .2s;
}
.speend-cat-badge:hover { background: rgba(193, 252, 54, 0.18); color: var(--speend-cta); }

/* card body */
body.blog .inside-article > .entry-header,
body.archive .inside-article > .entry-header,
body.search .inside-article > .entry-header,
body.search-results .inside-article > .entry-header,
body.blog .inside-article > .entry-summary,
body.archive .inside-article > .entry-summary,
body.search .inside-article > .entry-summary,
body.search-results .inside-article > .entry-summary,
body.blog .inside-article > .entry-content,
body.archive .inside-article > .entry-content,
body.search .inside-article > .entry-content,
body.search-results .inside-article > .entry-content { padding-left: 24px; padding-right: 24px; }
body.blog .inside-article > .entry-header,
body.archive .inside-article > .entry-header,
body.search .inside-article > .entry-header,
body.search-results .inside-article > .entry-header { padding-top: 22px; }

.blog .entry-title, .archive .entry-title, .search-results .entry-title {
  font-size: 21px; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; margin: 0;
}
.blog .entry-title a, .archive .entry-title a, .search-results .entry-title a { color: #fff; }
.blog .entry-title a:hover, .archive .entry-title a:hover { color: var(--speend-accent-bright); }
.blog .entry-summary, .archive .entry-summary,
.search .entry-summary, .search-results .entry-summary,
.blog .entry-content, .archive .entry-content {
  font-size: 14.5px; color: var(--speend-text-2); line-height: 1.55; margin-top: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.search .entry-summary, .search-results .entry-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.search .read-more, .search-results .read-more { -webkit-line-clamp: unset; color: var(--speend-accent-bright); font-weight: 600; }
.blog .read-more, .archive .read-more { color: var(--speend-accent-bright); font-weight: 600; -webkit-line-clamp: unset; }

/* hide redundant category links in card meta (shown as badge) + any tags */
.blog .entry-meta .cat-links, .archive .entry-meta .cat-links,
.search .entry-meta .cat-links, .search-results .entry-meta .cat-links,
.blog .entry-meta .tags-links, .archive .entry-meta .tags-links,
.search .entry-meta .tags-links, .search-results .entry-meta .tags-links { display: none; }
/* search results loop uses the same card grid, capped to the content width */
body.search .site-main, body.search-results .site-main { max-width: var(--speend-content-width); margin-left: auto; margin-right: auto; }
body.search .inside-article .entry-title, body.search-results .inside-article .entry-title { font-size: 21px; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; margin: 0; }
body.search .inside-article .entry-title a, body.search-results .inside-article .entry-title a { color: #fff; }

/* card footer meta: author chip (left) + date · read-time (right) */
.blog .inside-article .entry-meta,
.archive .inside-article .entry-meta,
.search-results .inside-article .entry-meta {
  margin-top: auto; padding: 16px 24px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--speend-text-3); font-family: var(--speend-mono);
}
.inside-article .entry-meta .speend-datetime { order: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.inside-article .entry-meta .byline { order: 2; margin-left: auto; flex: 0 0 auto; }
.speend-rt { font-family: var(--speend-mono); color: var(--speend-text-3); white-space: nowrap; flex: 0 0 auto; }

/* archive card footer: read-time + lime Read more button, bottom-right */
.speend-card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: auto; padding: 14px 24px 22px; }
.speend-card-foot .speend-rt { font-family: var(--speend-mono); font-size: 12.5px; color: var(--speend-text-3); }
.speend-read-more {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: var(--speend-pill);
  background: var(--speend-gradient-cta); color: var(--speend-on-light); font-weight: 700; font-size: 13px;
  text-decoration: none; box-shadow: var(--speend-shadow-cta); transition: filter .2s ease, transform .12s ease;
}
.speend-read-more:hover { filter: brightness(1.05); color: var(--speend-on-light); }
.speend-read-more:active { transform: scale(.97); }
/* hide GeneratePress's inline read-more on cards (the button replaces it) */
.blog .read-more, .archive .read-more, .search-results .read-more { display: none; }
.single .entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.single .entry-meta .speend-rt::before { content: "·"; margin-right: 12px; color: var(--speend-text-3); opacity: .6; }

/* author chip (avatar injected via filter) */
.entry-meta .author a, .entry-meta .byline a {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--speend-text-2); font-family: var(--speend-sans); font-weight: 500; font-size: 13px;
}
.entry-meta .author a:hover { color: #fff; }
.entry-meta .author img.avatar,
.entry-meta .avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--speend-border-2);
}

/* ============================================================
   10 · SINGLE POST + PAGE
   ============================================================ */
/* single-post comfortable reading measure (wider than a tight column) */
.single .entry-header,
.single .entry-content,
.single .tags-links,
.single .post-navigation,
.single .speend-author-box { max-width: 840px; margin-left: auto; margin-right: auto; }
.single .featured-image, .single .post-image { max-width: 1000px; margin-left: auto; margin-right: auto; }

.single .entry-content h5, .page .entry-content h5 { font-size: 18px; font-weight: 700; color: #fff; margin: 24px 0 8px; }
.single .entry-content h6, .page .entry-content h6 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--speend-text-2); margin: 22px 0 8px; }

/* published + updated date row */
.speend-updated { display: inline-flex; align-items: center; gap: 6px; color: var(--speend-cta); margin-left: 10px; }
.speend-updated::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--speend-cta); }

.single .entry-header, .page .entry-header { margin-bottom: 8px; }
.single .entry-title, .page .entry-title { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.single .entry-meta, .page .entry-meta { color: var(--speend-text-3); font-family: var(--speend-mono); font-size: 13px; }
.single .entry-meta .author a { font-family: var(--speend-sans); }

/* single featured image — fixed 16:9 hero, capped + responsive */
.single .featured-image, .single .post-image, .page .post-image { max-width: 1000px; margin: 0 auto 8px; }
.single .post-image img, .single .featured-image img, .single .wp-post-image,
.page .post-image img {
  width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block;
  border-radius: var(--speend-r-xl); border: 1px solid var(--speend-border-2);
}

/* article body typography (reading width handled by GP container) */
.single .entry-content, .page .entry-content { font-size: 17px; line-height: 1.72; color: var(--speend-text-2); }
.single .entry-content > p, .page .entry-content > p { margin: 0 0 22px; }
.single .entry-content h2 { font-size: 28px; margin: 36px 0 14px; color: #fff; }
.single .entry-content h3 { font-size: 22px; margin: 30px 0 12px; color: #fff; }
.single .entry-content a { color: var(--speend-accent-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(102,105,255,.4); }
.single .entry-content a:hover { color: #fff; text-decoration-color: #fff; }
.entry-content blockquote {
  margin: 26px 0; padding: 18px 24px; border-left: 3px solid var(--speend-cta);
  background: rgba(193, 252, 54, 0.06); border-radius: 0 14px 14px 0;
  color: #fff; font-size: 18px;
}
.entry-content pre {
  padding: 18px 20px; border-radius: 14px; background: rgba(8, 0, 26, 0.6);
  border: 1px solid var(--speend-border-2); color: var(--speend-accent-bright);
  font-size: 14px; overflow: auto;
}
.entry-content :not(pre) > code {
  background: rgba(8,0,26,.6); border: 1px solid var(--speend-border); border-radius: 6px;
  padding: 2px 6px; font-size: .9em; color: var(--speend-accent-bright);
}
.entry-content img { border-radius: var(--speend-r-md); }
.entry-content hr { border: none; border-top: 1px solid var(--speend-border-2); margin: 32px 0; }

/* lists */
.single .entry-content ul, .page .entry-content ul,
.single .entry-content ol, .page .entry-content ol {
  margin: 0 0 22px; padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.single .entry-content ul li, .page .entry-content ul li { position: relative; padding-left: 26px; }
.single .entry-content ul li::before, .page .entry-content ul li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--speend-cta);
}
.single .entry-content ol, .page .entry-content ol { counter-reset: speend-ol; }
.single .entry-content ol li, .page .entry-content ol li { position: relative; padding-left: 40px; counter-increment: speend-ol; }
.single .entry-content ol li::before, .page .entry-content ol li::before {
  content: counter(speend-ol); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(102,105,255,0.16); border: 1px solid rgba(102,105,255,0.34);
  color: var(--speend-accent-bright); font: 600 13px/26px var(--speend-mono); text-align: center;
}
.entry-content ul ul, .entry-content ol ol, .entry-content ul ol, .entry-content ol ul { margin: 10px 0 0; }

/* tables */
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px;
  border: 1px solid var(--speend-border-2); border-radius: 14px; overflow: hidden;
}
.entry-content th {
  text-align: left; padding: 12px 16px; background: rgba(255,255,255,0.04);
  color: var(--speend-text); font-weight: 600; border-bottom: 1px solid var(--speend-border-2);
}
.entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--speend-border); color: var(--speend-text-2); }
.entry-content tr:last-child td { border-bottom: none; }

/* ============================================================
   10b · SIBLING-CATEGORY / RELATED-TAG PILL ROW (after hero)
   ============================================================ */
.speend-term-filter {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  max-width: var(--speend-content-width); margin: 0 auto; padding: 24px 20px 4px;
}
.speend-term-filter .speend-term-label { font-size: 13px; color: var(--speend-text-3); margin-right: 4px; }
.speend-term-filter a {
  font-size: 14px; text-decoration: none; padding: 8px 16px; border-radius: var(--speend-pill);
  border: 1px solid var(--speend-border-2); color: var(--speend-text-2); transition: color .2s, border-color .2s;
}
.speend-term-filter a:hover { color: #fff; border-color: var(--speend-accent-bright); }
.speend-term-filter .speend-term-current {
  font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: var(--speend-pill);
  background: var(--speend-cta); color: var(--speend-on-light);
}
/* tag variant — mono purple pills */
.speend-term-filter.is-tags a {
  font-family: var(--speend-mono); font-size: 13px; color: var(--speend-accent-bright);
  border-color: rgba(102,105,255,0.3); background: rgba(102,105,255,0.1);
}
.speend-term-filter.is-tags a:hover { color: #fff; }

/* ============================================================
   10c · RELATED POSTS (single)
   ============================================================ */
.speend-related { max-width: var(--speend-content-width); margin: 40px auto 0; padding: 0 20px; }
.speend-related-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--speend-text-3); border-top: 1px solid var(--speend-border); padding-top: 28px; margin-bottom: 20px;
}
.speend-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.speend-related-card {
  border-radius: var(--speend-r-lg); overflow: hidden; background: var(--speend-surface);
  -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur);
  border: 1px solid rgba(178,179,255,0.12); display: flex; flex-direction: column;
}
.speend-related-cover { display: block; aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: linear-gradient(150deg,#241e52,#0E002D); }
.speend-related-cover img { width: 100%; height: 100%; object-fit: cover; }
.speend-related-body { padding: 16px 18px; }
.speend-related-body h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.speend-related-body h3 a { color: #fff; }
.speend-related-body h3 a:hover { color: var(--speend-accent-bright); }
.speend-related-meta { font-family: var(--speend-mono); font-size: 11px; color: var(--speend-text-3); }

/* single-post tags (tags ARE shown here; categories are hidden — shown in breadcrumb) */
.single .entry-meta .cat-links, .single .cat-links { display: none; }
.single .post-navigation { display: none; }
.single .tags-links {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: 840px; width: 100%; margin: 0 auto;
  font-family: var(--speend-sans); font-size: 13px; color: var(--speend-text-3);
}
/* neutralise GeneratePress's built-in tag glyph + separators */
.single .tags-links::before { content: none !important; display: none !important; }
.single .tags-links .gp-icon, .single .tags-links > svg { display: none; }
.single .tags-links .screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.single .tags-links .speend-tags-label { font-weight: 600; color: var(--speend-text-3); }
.single .tags-links a {
  font-family: var(--speend-mono); font-size: 13px; color: var(--speend-accent-bright); text-decoration: none;
  padding: 6px 13px; border-radius: var(--speend-pill);
  border: 1px solid rgba(102, 105, 255, 0.3); background: rgba(102, 105, 255, 0.1); transition: color .2s, border-color .2s;
}
.single .tags-links a:hover { color: #fff; border-color: var(--speend-accent-bright); }

/* author box at end of single (GP "author box" or our hook) */
.speend-author-box, .author-info {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 32px;
  padding: 24px; border-radius: var(--speend-r-xl);
  background: var(--speend-surface); -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur);
  border: 1px solid var(--speend-border-2);
}
.speend-author-box .avatar, .author-info img.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.speend-author-box .speend-author-box-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--speend-cta); font-weight: 700; }
.speend-author-box h4 { margin: 4px 0; font-size: 18px; font-weight: 600; }

/* ============================================================
   11 · PAGINATION + POST NAVIGATION
   ============================================================ */
.paging-navigation .nav-links, .pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers {
  min-width: 40px; height: 40px; padding: 0 14px; border-radius: var(--speend-pill);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; color: var(--speend-text-2);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--speend-border-2);
}
.page-numbers:hover { color: #fff; border-color: var(--speend-accent-bright); }
.page-numbers.current { color: var(--speend-on-light); background: var(--speend-gradient-accent); border-color: transparent; }

.post-navigation { margin-top: 36px; }
.post-navigation .nav-links { display: flex; gap: 16px; }
.post-navigation a {
  display: block; padding: 16px 20px; border-radius: var(--speend-r-lg); flex: 1;
  background: var(--speend-surface); border: 1px solid var(--speend-border-2);
}
.post-navigation .nav-next { text-align: right; }

/* ============================================================
   12 · SIDEBAR WIDGETS + SEARCH
   ============================================================ */
.widget-area .widget, .sidebar .widget {
  background: var(--speend-surface); -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur);
  border: 1px solid var(--speend-border-2); border-radius: var(--speend-r-xl);
  padding: 22px 24px; margin-bottom: 22px;
}
.widget-title, .widget .widget-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--speend-text-3); margin: 0 0 14px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--speend-border); }
.widget ul li:last-child { border-bottom: none; }
.widget a { color: var(--speend-text-2); }
.widget a:hover { color: #fff; }
.widget .tagcloud a {
  display: inline-block; margin: 0 6px 8px 0; font-family: var(--speend-mono);
  font-size: 13px !important; color: var(--speend-accent-bright);
  padding: 5px 12px; border-radius: var(--speend-pill);
  border: 1px solid rgba(102, 105, 255, 0.3); background: rgba(102, 105, 255, 0.1);
}

/* search / inputs */
.search-form input[type="search"], .wp-block-search__input,
input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"],
input[type="tel"], input[type="date"], textarea, select {
  background: var(--speend-field); color: #fff;
  border: 1px solid var(--speend-field-border); border-radius: var(--speend-r-sm);
  padding: 11px 14px; font-family: var(--speend-sans);
}
input::placeholder, textarea::placeholder { color: var(--speend-text-3); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--speend-accent-bright);
  box-shadow: 0 0 0 3px rgba(102, 105, 255, 0.18);
}

/* ============================================================
   13 · BUTTONS
   ============================================================ */
button:not(.menu-toggle):not(.dropdown-menu-toggle), .button, input[type="submit"], .wp-block-button__link,
.wp-element-button {
  background: var(--speend-gradient-accent); color: #fff;
  border: none; border-radius: var(--speend-pill);
  padding: 11px 22px; font-family: var(--speend-sans); font-weight: 600;
  box-shadow: var(--speend-shadow-accent); cursor: pointer;
  transition: transform .12s ease, filter .2s ease;
}
button:not(.menu-toggle):hover, .button:hover, input[type="submit"]:hover,
.wp-block-button__link:hover, .wp-element-button:hover { filter: brightness(1.06); color: #fff; }
button:not(.menu-toggle):active, .button:active, input[type="submit"]:active { transform: scale(.97); }
/* lime variant (the single most important CTA) */
.wp-block-button.is-style-cta .wp-block-button__link,
.button.cta {
  background: var(--speend-gradient-cta); color: var(--speend-on-light);
  box-shadow: var(--speend-shadow-cta);
}
/* outline variant */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; border: 1px solid var(--speend-border-3); color: #fff; box-shadow: none;
}

/* ============================================================
   14 · COMMENTS
   ============================================================ */
.comments-area { margin-top: 40px; }
.comments-title, .comment-reply-title { font-size: 22px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body {
  background: var(--speend-surface); border: 1px solid var(--speend-border-2);
  border-radius: var(--speend-r-lg); padding: 20px 22px; margin-bottom: 16px;
}
.comment-author .fn { color: #fff; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata a { color: var(--speend-text-3); font-family: var(--speend-mono); font-size: 12px; }
.comment-respond {
  background: var(--speend-surface); border: 1px solid var(--speend-border-2);
  border-radius: var(--speend-r-xl); padding: 26px;
}
.comment-form label { color: var(--speend-text-2); font-size: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea { width: 100%; }

/* ============================================================
   15 · FOOTER — GeneratePress default hidden, replaced by the
   SPEEND footer (rendered in functions.php). Brand + social,
   column menu, CTA block, legal bottom bar — all editable.
   ============================================================ */
.site-footer { display: none; }

.speend-site-footer { background: #0A0818; border-top: 1px solid var(--speend-border); color: var(--speend-text-3); }
.speend-footer-main {
  max-width: var(--speend-content-width); margin: 0 auto;
  padding: 56px 20px 36px; display: grid; grid-template-columns: 1.5fr 2fr 1.6fr; gap: 36px;
}
.speend-footer-brand img, .speend-footer-brand .speend-footer-logo-text { height: 28px; margin-bottom: 18px; display: inline-block; }
.speend-footer-brand .speend-footer-logo-text { font-size: 22px; font-weight: 700; color: #fff; height: auto; }
.speend-footer-brand p { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--speend-text-3); max-width: 260px; }
.speend-footer-social { display: flex; gap: 10px; }
.speend-footer-social a {
  width: 46px; height: 46px; border-radius: 13px; background: rgba(102,105,255,0.16); color: var(--speend-text-2);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.speend-footer-social a:hover { background: rgba(102,105,255,0.28); color: #fff; }
.speend-footer-social svg { width: 19px; height: 19px; }
.speend-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 28px; align-content: start; }
.speend-footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--speend-text-3); margin-bottom: 16px; }
.speend-footer-col-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.speend-footer-col-links a, .speend-footer-cols a { color: var(--speend-text-3); }
.speend-footer-col-links a:hover, .speend-footer-cols a:hover { color: #fff; }
.speend-footer-cta h3 { margin: 0 0 12px; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: #fff; }
.speend-footer-cta p { margin: 0 0 20px; font-size: 14px; line-height: 1.55; color: var(--speend-text-3); }
.speend-footer-cta-btn {
  display: inline-block; text-decoration: none; padding: 13px 26px; border-radius: var(--speend-pill);
  font-size: 15px; font-weight: 700; color: var(--speend-on-light); background: var(--speend-gradient-cta); box-shadow: var(--speend-shadow-cta);
}
.speend-footer-cta-btn:hover { color: var(--speend-on-light); filter: brightness(1.05); }
.speend-footer-bottom { border-top: 1px solid var(--speend-border); }
.speend-footer-bottom-inner {
  max-width: var(--speend-content-width); margin: 0 auto; padding: 22px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.speend-footer-company { font-size: 13px; color: var(--speend-text-disabled); max-width: 680px; line-height: 1.5; }
.speend-footer-legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; font-size: 13px; flex-wrap: wrap; }
.speend-footer-legal a { color: var(--speend-text-3); }
.speend-footer-legal a:hover { color: #fff; }

/* ============================================================
   16 · UTILITY / RU typography niceties + RESPONSIVE
   ============================================================ */
:lang(ru) h1, :lang(ru) h2, :lang(ru) .entry-title { letter-spacing: -0.015em; }

@media (max-width: 900px) {
  body.blog .site-main,
  body.archive .site-main,
  body.search-results .site-main { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .speend-hero { padding-top: 36px; }
  .speend-hero-category .speend-hero-inner { padding: 26px; gap: 18px; }
  .speend-hero-category .speend-hero-count { text-align: left; }
  .speend-hero-author .speend-stats { flex-wrap: wrap; }
  .speend-hero-tag .speend-hero-inner { gap: 16px; }
  .speend-hero-tag .speend-hash { width: 60px; height: 60px; font-size: 32px; border-radius: 16px; }
  .main-navigation { position: static; }
  .speend-footer-main { grid-template-columns: 1fr; gap: 28px; }
  .speend-footer-cols { grid-template-columns: 1fr 1fr; }
  .speend-related-grid { grid-template-columns: 1fr; }
  .single .post-image img, .single .featured-image img { border-radius: var(--speend-r-md); }
}
@media (max-width: 480px) {
  .speend-footer-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   RICH CONTENT — full Markdown / Gutenberg coverage (single + page)
   ============================================================ */
.single .entry-content, .page .entry-content { font-size: 17px; line-height: 1.75; color: var(--speend-text-2); }
.single .entry-content > *:first-child, .page .entry-content > *:first-child { margin-top: 0; }

/* — headings — */
.single .entry-content h1, .page .entry-content h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; color: #fff; letter-spacing: -0.025em; line-height: 1.14; margin: 42px 0 16px; }
.single .entry-content h2, .page .entry-content h2 { font-size: clamp(24px, 3.2vw, 30px); font-weight: 700; color: #fff; letter-spacing: -0.02em; margin: 38px 0 14px; }
.single .entry-content h3, .page .entry-content h3 { font-size: 23px; font-weight: 600; color: #fff; letter-spacing: -0.01em; margin: 30px 0 12px; }
.single .entry-content h4, .page .entry-content h4 { font-size: 20px; font-weight: 600; color: #fff; margin: 26px 0 10px; }
.single .entry-content h5, .page .entry-content h5 { font-size: 17px; font-weight: 700; color: #fff; margin: 24px 0 8px; }
.single .entry-content h6, .page .entry-content h6 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--speend-text-3); margin: 22px 0 8px; }
.single .entry-content :is(h1,h2,h3,h4,h5,h6):first-child,
.page .entry-content :is(h1,h2,h3,h4,h5,h6):first-child { margin-top: 0; }

/* — inline text — */
.entry-content p { margin: 0 0 22px; }
.entry-content strong, .entry-content b { color: #fff; font-weight: 700; }
.entry-content em, .entry-content i { font-style: italic; }
.entry-content del, .entry-content s, .entry-content strike { color: var(--speend-text-3); text-decoration: line-through; }
.entry-content mark { background: rgba(193, 252, 54, 0.22); color: #fff; padding: 0 4px; border-radius: 4px; }
.entry-content sub, .entry-content sup { font-size: 0.72em; line-height: 0; }
.entry-content abbr[title] { text-decoration: underline dotted; cursor: help; }
.entry-content kbd { font-family: var(--speend-mono); font-size: 0.85em; background: rgba(8,0,26,0.7); border: 1px solid var(--speend-border-2); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: #fff; }
.single .entry-content a:not(.button):not(.wp-element-button):not(.wp-block-button__link),
.page .entry-content a:not(.button):not(.wp-element-button):not(.wp-block-button__link) {
  color: var(--speend-accent-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(102,105,255,0.45); transition: color .2s, text-decoration-color .2s;
}
.single .entry-content a:not(.button):hover, .page .entry-content a:not(.button):hover { color: #fff; text-decoration-color: #fff; }

/* — lists (nested + task lists) — */
.single .entry-content ul, .page .entry-content ul,
.single .entry-content ol, .page .entry-content ol { margin: 0 0 22px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.single .entry-content li, .page .entry-content li { position: relative; padding-left: 28px; }
.single .entry-content ul > li::before, .page .entry-content ul > li::before { content: ""; position: absolute; left: 4px; top: 0.66em; width: 7px; height: 7px; border-radius: 50%; background: var(--speend-cta); }
.single .entry-content ol, .page .entry-content ol { counter-reset: speend-ol; }
.single .entry-content ol > li, .page .entry-content ol > li { padding-left: 40px; counter-increment: speend-ol; }
.single .entry-content ol > li::before, .page .entry-content ol > li::before { content: counter(speend-ol); position: absolute; left: 0; top: 0.05em; width: 26px; height: 26px; border-radius: 50%; background: rgba(102,105,255,0.16); border: 1px solid rgba(102,105,255,0.34); color: var(--speend-accent-bright); font: 600 13px/26px var(--speend-mono); text-align: center; }
.entry-content li > ul, .entry-content li > ol { margin: 10px 0 0; }
.entry-content li > ul > li::before { background: var(--speend-accent-bright); }
/* task lists */
.entry-content li.task-list-item, .entry-content ul.contains-task-list > li { padding-left: 30px; }
.entry-content li.task-list-item::before, .entry-content ul.contains-task-list > li::before { display: none; }
.entry-content li:has(> input[type="checkbox"]) { padding-left: 30px; }
.entry-content li:has(> input[type="checkbox"])::before { display: none; }
.entry-content input[type="checkbox"] { -webkit-appearance: none; appearance: none; position: absolute; left: 0; top: 0.28em; width: 18px; height: 18px; border: 1.5px solid var(--speend-border-3); border-radius: 5px; background: rgba(8,0,26,0.6); cursor: default; }
.entry-content input[type="checkbox"]:checked { background: var(--speend-cta); border-color: var(--speend-cta); }
.entry-content input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #0E002D; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* — code — */
.entry-content pre, .entry-content .wp-block-code { margin: 0 0 24px; padding: 18px 20px; border-radius: 14px; background: rgba(8,0,26,0.6); border: 1px solid var(--speend-border-2); overflow: auto; }
.entry-content pre, .entry-content pre code, .entry-content .wp-block-code code { font-family: var(--speend-mono); font-size: 14px; line-height: 1.6; color: var(--speend-accent-bright); }
.entry-content pre code { background: none; border: none; padding: 0; }
.single .entry-content :not(pre):not(.wp-block-code) > code,
.page .entry-content :not(pre):not(.wp-block-code) > code { background: rgba(8,0,26,0.6); border: 1px solid var(--speend-border); border-radius: 6px; padding: 2px 6px; font-size: 0.9em; color: var(--speend-accent-bright); }

/* — blockquotes (nested + inner blocks) — */
.entry-content blockquote, .entry-content .wp-block-quote { margin: 26px 0; padding: 16px 24px; border-left: 3px solid var(--speend-cta); background: rgba(193,252,54,0.06); border-radius: 0 14px 14px 0; color: #fff; }
.entry-content blockquote > :first-child { margin-top: 0; }
.entry-content blockquote > :last-child { margin-bottom: 0; }
.entry-content blockquote p { color: #fff; }
.entry-content blockquote :is(h1,h2,h3,h4,h5,h6) { font-size: 20px; color: #fff; margin: 0 0 10px; }
.entry-content blockquote ul > li::before { background: var(--speend-cta); }
.entry-content blockquote code { background: rgba(0,0,0,0.28); }
.entry-content blockquote blockquote { margin: 14px 0; border-left-color: var(--speend-accent-bright); background: rgba(102,105,255,0.08); }
.entry-content blockquote cite, .entry-content .wp-block-quote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--speend-text-3); }
.entry-content .wp-block-pullquote { border: 1px solid var(--speend-border-2); border-left: 3px solid var(--speend-cta); padding: 24px; text-align: left; }

/* — tables (Gutenberg figure wrapper + alignment) — */
.entry-content .wp-block-table { margin: 0 0 24px; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; border: 1px solid var(--speend-border-2); border-radius: 14px; overflow: hidden; }
.entry-content .wp-block-table table { margin: 0; }
.entry-content thead th { background: rgba(255,255,255,0.05); }
.entry-content th { text-align: left; padding: 12px 16px; color: #fff; font-weight: 600; border-bottom: 1px solid var(--speend-border-2); }
.entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--speend-border); color: var(--speend-text-2); }
.entry-content tbody tr:last-child td { border-bottom: none; }
.entry-content tbody tr:hover td { background: rgba(255,255,255,0.02); }
.entry-content .wp-block-table figcaption { margin-top: 10px; font-size: 13px; color: var(--speend-text-3); text-align: center; }

/* — images / figures / captions — */
.entry-content figure, .entry-content .wp-block-image { margin: 24px 0; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--speend-r-md); }
.entry-content figcaption, .entry-content .wp-caption-text { margin-top: 10px; font-size: 13px; color: var(--speend-text-3); text-align: center; }

/* — separators — */
.entry-content hr, .entry-content .wp-block-separator { border: none; height: 1px; background: var(--speend-border-2); margin: 36px 0; }
.entry-content .wp-block-separator.is-style-dots { background: none; height: auto; text-align: center; color: var(--speend-text-3); }

/* — footnotes — */
.entry-content sup a, .entry-content a.fn, .entry-content .wp-block-footnotes a { color: var(--speend-accent-bright); text-decoration: none; font-weight: 600; }
.entry-content .wp-block-footnotes { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--speend-border); font-size: 14px; color: var(--speend-text-3); }
.entry-content .wp-block-footnotes li { padding-left: 0; }
.entry-content .wp-block-footnotes li::before { display: none; }

/* — definition lists — */
.entry-content dl { margin: 0 0 22px; }
.entry-content dt { color: #fff; font-weight: 600; margin-top: 14px; }
.entry-content dd { margin: 4px 0 0; padding-left: 16px; border-left: 2px solid var(--speend-border-2); color: var(--speend-text-2); }

/* — details / summary (collapsible) — */
.entry-content details { margin: 0 0 22px; border: 1px solid var(--speend-border-2); border-radius: var(--speend-r-md); background: var(--speend-surface); -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur); }
.entry-content summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: #fff; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content summary::after { content: "+"; color: var(--speend-accent-bright); font-size: 20px; line-height: 1; }
.entry-content details[open] summary::after { content: "\2013"; }
.entry-content details[open] summary { border-bottom: 1px solid var(--speend-border); }
.entry-content details > :not(summary) { margin-left: 18px; margin-right: 18px; }
.entry-content details > :last-child { margin-bottom: 16px; }
.entry-content details > summary + * { margin-top: 16px; }

/* — embedded HTML button block — */
.entry-content .wp-block-button { margin: 0 0 22px; }

/* ============================================================
   FEATURES — TOC, cookie notice, FAQ accordion, CTA blocks
   ============================================================ */

/* — Table of contents — */
.speend-toc { background: var(--speend-surface); -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur); border: 1px solid var(--speend-border-2); border-radius: var(--speend-r-lg); padding: 12px 14px; margin: 0 auto 26px; max-width: 840px; }
.speend-toc .speend-toc-head { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none !important; border: none; box-shadow: none !important; padding: 4px 4px; color: var(--speend-text-3); font-family: var(--speend-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transform: none; }
.speend-toc .speend-toc-head:hover { filter: none; background: none; }
.speend-toc-head::after { content: "\25BE"; transition: transform .2s ease; }
.speend-toc.is-collapsed .speend-toc-head::after { transform: rotate(-90deg); }
.speend-toc.is-collapsed .speend-toc-list { display: none; }
.speend-toc-list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.speend-toc-link { color: var(--speend-text-2); text-decoration: none; font-size: 14px; line-height: 1.4; padding: 7px 10px; border-radius: 10px; border-left: 2px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.speend-toc-link.is-sub { padding-left: 24px; font-size: 13px; color: var(--speend-text-3); }
.speend-toc-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.speend-toc-link.active { color: var(--speend-cta); border-left-color: var(--speend-cta); background: rgba(193,252,54,.06); }
@media (min-width: 1400px) {
  body.speend-toc-right .speend-toc,
  body.speend-toc-left .speend-toc { position: fixed; top: 110px; width: 250px; max-height: 72vh; overflow: auto; margin: 0; z-index: 50; }
  body.speend-toc-right .speend-toc { left: calc(50% + 440px); }
  body.speend-toc-left .speend-toc { right: calc(50% + 440px); }
  .speend-toc.is-collapsed .speend-toc-list { display: flex; }
  .speend-toc-head { cursor: default; pointer-events: none; }
  .speend-toc-head::after { display: none; }
}

/* — Cookie notice — */
.speend-cookie { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(150%); z-index: 1000; width: min(700px, calc(100vw - 28px)); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; background: var(--speend-surface-solid); border: 1px solid var(--speend-border-2); border-radius: var(--speend-r-xl); box-shadow: var(--speend-shadow-lg); opacity: 0; transition: transform .42s cubic-bezier(.16,1,.3,1), opacity .42s; }
.speend-cookie.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.speend-cookie-text { flex: 1 1 300px; font-size: 13.5px; color: var(--speend-text-2); line-height: 1.55; }
.speend-cookie-text a { color: var(--speend-accent-bright); }
.speend-cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.speend-cookie-actions button { font-size: 13px; padding: 10px 18px; border-radius: var(--speend-pill); font-weight: 700; cursor: pointer; transition: filter .2s; }
.speend-cookie .speend-cookie-accept { background: var(--speend-gradient-cta) !important; color: var(--speend-on-light); box-shadow: var(--speend-shadow-cta); border: none; }
.speend-cookie .speend-cookie-accept:hover { filter: brightness(1.05); color: var(--speend-on-light); }
.speend-cookie .speend-cookie-decline { background: rgba(255,255,255,.05) !important; color: var(--speend-text-2); border: 1px solid var(--speend-border-2); box-shadow: none !important; }
.speend-cookie .speend-cookie-decline:hover { color: #fff; }

/* — FAQ accordion — */
.speend-faq { max-width: 840px; margin: 24px auto; }
.speend-faq-item { border: 1px solid var(--speend-border-2); border-radius: var(--speend-r-md); background: var(--speend-surface); -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur); margin: 0 0 12px; overflow: hidden; }
.speend-faq-item .speend-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; background: none !important; border: none; box-shadow: none !important; color: #fff; font-family: var(--speend-sans); font-weight: 600; font-size: 17px; padding: 16px 20px; cursor: pointer; transform: none; }
.speend-faq-item .speend-faq-q:hover { filter: none; background: rgba(255,255,255,.03); color: #fff; }
.speend-faq-icon { flex: none; width: 22px; height: 22px; position: relative; }
.speend-faq-icon::before, .speend-faq-icon::after { content: ""; position: absolute; background: var(--speend-accent-bright); border-radius: 2px; transition: transform .25s ease; }
.speend-faq-icon::before { left: 3px; right: 3px; top: 10px; height: 2px; }
.speend-faq-icon::after { top: 3px; bottom: 3px; left: 10px; width: 2px; }
.speend-faq-item.is-open .speend-faq-icon::after { transform: scaleY(0); }
.speend-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s cubic-bezier(.16,1,.3,1); }
.speend-faq-a-inner { padding: 0 20px 18px; color: var(--speend-text-2); font-size: 15.5px; line-height: 1.6; }
.speend-faq-a-inner > :first-child { margin-top: 0; }
.speend-faq-a-inner > :last-child { margin-bottom: 0; }

/* — CTA blocks — */
.speend-cta { border-radius: var(--speend-r-2xl); padding: 36px 40px; margin: 34px 0; position: relative; overflow: hidden; }
.speend-cta-title { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1.12; }
.speend-cta-text { margin: 0 0 22px; font-size: 16px; color: var(--speend-text-2); line-height: 1.55; max-width: 520px; }
.speend-cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: var(--speend-pill); font-weight: 700; font-size: 15px; text-decoration: none; background: var(--speend-gradient-cta); color: var(--speend-on-light); box-shadow: var(--speend-shadow-cta); transition: filter .2s, transform .12s; }
.speend-cta-btn:hover { filter: brightness(1.05); color: var(--speend-on-light); }
.speend-cta-btn:active { transform: scale(.97); }
.speend-cta-arrow { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(14,0,45,.18); font-size: 12px; }
.speend-cta--1 { background: var(--speend-surface); -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur); border: 1px solid var(--speend-border-2); }
.speend-cta--2 { background: linear-gradient(120deg, var(--speend-accent) 0%, #2a1640 100%); border: 1px solid var(--speend-border-3); }
.speend-cta--2 .speend-cta-text { color: rgba(255,255,255,.82); }
.speend-cta--3 { background: rgba(193,252,54,.05); border: 1.5px solid rgba(193,252,54,.35); }
.speend-cta--4 { background: var(--speend-surface); border: 1px solid var(--speend-border-2); display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.speend-cta--5 { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; background: var(--speend-surface); border: 1px solid var(--speend-border-2); flex-wrap: wrap; }
.speend-cta--5 .speend-cta-title { font-size: 20px; margin: 0; }
.speend-cta--5 .speend-cta-text { display: none; }
.speend-cta--5 .speend-cta-btn { margin: 0; }
.speend-cta--5 .speend-cta-body { display: contents; }
.speend-cta-mock { background: var(--speend-surface-solid); border: 1px solid var(--speend-border-2); border-radius: var(--speend-r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.speend-cta-mock-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.speend-cta-mock .k { color: var(--speend-text-3); }
.speend-cta-mock .v { color: #fff; font-weight: 600; }
.speend-cta-mock-total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--speend-border); padding-top: 12px; }
.speend-cta-mock-amount { font-family: var(--speend-mono); color: var(--speend-cta); font-weight: 600; }
.speend-cta-mock-pay { background: var(--speend-gradient-cta); color: var(--speend-on-light); font-weight: 700; font-size: 12px; padding: 7px 16px; border-radius: var(--speend-pill); }
@media (max-width: 640px) { .speend-cta--4 { grid-template-columns: 1fr; } .speend-cta { padding: 26px 22px; } }

/* — Share row — */
.speend-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 840px; margin: 30px auto 0; }
.speend-share-label { font-size: 13px; font-weight: 600; color: var(--speend-text-3); margin-right: 4px; }
.speend-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 13px; background: var(--speend-surface) !important; border: 1px solid var(--speend-border-2); color: var(--speend-text-2); box-shadow: none; cursor: pointer; position: relative; transition: background .2s, color .2s, border-color .2s; }
.speend-share-btn:hover { background: rgba(102,105,255,.16) !important; color: #fff; border-color: var(--speend-accent-bright); filter: none; transform: none; }
.speend-share-btn svg { width: 19px; height: 19px; }
.speend-share-tip { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); background: var(--speend-cta); color: var(--speend-on-light); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap; }
.speend-share-copy.is-copied .speend-share-tip { opacity: 1; }

/* — Search: nav toggle, glass overlay, hero form, results — */
.speend-nav-search { display: flex; align-items: center; }
.speend-nav-search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: var(--speend-pill); background: rgba(255,255,255,.04) !important; border: 1px solid var(--speend-border-2); box-shadow: none; cursor: pointer; transition: background .2s, border-color .2s, transform .12s; }
.speend-nav-search-toggle:hover { background: rgba(102,105,255,.16) !important; border-color: var(--speend-accent-bright); filter: none; }
.speend-search-glyph, .speend-searchform-icon { display: inline-block; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='black' stroke-width='2'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='black' stroke-width='2'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.speend-nav-search-toggle .speend-search-glyph { color: var(--speend-text-2); }
.speend-nav-search-toggle:hover .speend-search-glyph { color: #fff; }

.speend-search-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-start; justify-content: center; padding: 18vh 24px 24px; background: rgba(8,0,26,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s; }
.speend-search-overlay.is-open { opacity: 1; visibility: visible; }
.speend-search-close { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: var(--speend-pill); background: rgba(255,255,255,.05) !important; border: 1px solid var(--speend-border-2); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: none; }
.speend-search-close:hover { background: rgba(255,255,255,.1) !important; filter: none; color: #fff; }

.speend-searchform { display: flex; align-items: center; gap: 10px; position: relative; width: 100%; max-width: 640px; background: var(--speend-field); border: 1px solid var(--speend-border-3); border-radius: var(--speend-pill); padding: 6px 6px 6px 48px; transition: border-color .2s, box-shadow .2s; }
.speend-searchform:focus-within { border-color: var(--speend-accent-bright); box-shadow: 0 0 0 3px rgba(102,105,255,.18); }
.speend-searchform .speend-searchform-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--speend-text-3); }
.speend-searchform input[type="search"] { flex: 1; background: none; border: none; box-shadow: none; padding: 12px 4px; color: #fff; font-family: var(--speend-sans); font-size: 16px; }
.speend-searchform input[type="search"]:focus { outline: none; box-shadow: none; border: none; }
.speend-searchform button[type="submit"] { flex: none; border: none; border-radius: var(--speend-pill); padding: 11px 24px; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--speend-gradient-cta) !important; color: var(--speend-on-light); box-shadow: var(--speend-shadow-cta); }
.speend-searchform button[type="submit"]:hover { filter: brightness(1.05); color: var(--speend-on-light); }
.speend-searchform--overlay { max-width: 680px; }
.speend-hero-search .speend-searchform { margin-top: 24px; }

/* search results: no-results card */
.speend-no-results,
.search-no-results .no-results,
.search .no-results.not-found { max-width: 640px; margin: 8px auto; padding: 28px; text-align: center; background: var(--speend-surface); -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur); border: 1px solid var(--speend-border-2); border-radius: var(--speend-r-xl); color: var(--speend-text-2); }
.search .no-results .search-form { margin-top: 16px; }

/* ============================================================
   HOME FEED CAROUSELS
   ============================================================ */
.speend-feed-wrap { max-width: var(--speend-content-width); margin: 0 auto; padding: 8px 20px 8px; display: flex; flex-direction: column; gap: 40px; }
.speend-feed { position: relative; }
.speend-feed-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.speend-feed-heading { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.speend-feed-viewall { font-size: 14px; font-weight: 600; color: var(--speend-accent-bright); text-decoration: none; white-space: nowrap; }
.speend-feed-viewall:hover { color: #fff; }
.speend-feed-navs { margin-left: auto; display: flex; gap: 8px; }
.speend-carousel-nav { width: 40px; height: 40px; border-radius: var(--speend-pill); background: var(--speend-surface) !important; border: 1px solid var(--speend-border-2); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: none; transition: background .2s, border-color .2s, opacity .2s; display: inline-flex; align-items: center; justify-content: center; }
.speend-carousel-nav:hover { background: rgba(102,105,255,.16) !important; border-color: var(--speend-accent-bright); filter: none; }
.speend-carousel-nav:disabled { opacity: .35; cursor: default; }
.speend-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.speend-carousel-track::-webkit-scrollbar { display: none; }
.speend-feed-card { scroll-snap-align: start; border-radius: var(--speend-r-xl); overflow: hidden; background: var(--speend-surface); -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur); border: 1px solid rgba(178,179,255,0.12); display: flex; flex-direction: column; transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s; }
.speend-feed-card:hover { transform: translateY(-3px); border-color: var(--speend-border-3); }
.speend-feed-cover { display: block; position: relative; height: 160px; overflow: hidden; background: linear-gradient(150deg,#241e52,#0E002D); border-bottom: 1px solid rgba(178,179,255,0.12); }
.speend-feed-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.speend-feed-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.speend-feed-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.28; letter-spacing: -0.01em; }
.speend-feed-title a { color: #fff; }
.speend-feed-title a:hover { color: var(--speend-accent-bright); }
.speend-feed-meta { margin-top: auto; font-family: var(--speend-mono); font-size: 12px; color: var(--speend-text-3); }
@media (max-width: 600px) { .speend-carousel-track { grid-auto-columns: 78%; } .speend-feed-navs { display: none; } }

/* ============================================================
   CTA BANNERS (full-width, home/archive)
   ============================================================ */
.speend-banner { max-width: var(--speend-content-width); margin: 8px auto; padding: 0 20px; }
.speend-banner-inner { position: relative; overflow: hidden; border-radius: var(--speend-r-2xl); padding: 44px 48px; }
.speend-banner-title { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.025em; color: #fff; line-height: 1.1; }
.speend-banner-text { margin: 0 0 24px; font-size: 16px; line-height: 1.55; color: var(--speend-text-2); max-width: 560px; }
.speend-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.speend-banner-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--speend-pill); font-weight: 700; font-size: 15px; text-decoration: none; background: var(--speend-gradient-cta); color: var(--speend-on-light); box-shadow: var(--speend-shadow-cta); transition: filter .2s, transform .12s; }
.speend-banner-btn:hover { filter: brightness(1.05); color: var(--speend-on-light); }
.speend-banner-btn:active { transform: scale(.97); }
.speend-banner-btn.is-ghost { background: transparent; color: #fff; border: 1px solid var(--speend-border-3); box-shadow: none; }
.speend-banner-btn.is-ghost:hover { background: rgba(255,255,255,.05); }
.speend-banner .speend-cta-arrow { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(14,0,45,.18); font-size: 12px; }

/* 1 · Gradient band */
.speend-banner--1 .speend-banner-inner { background: linear-gradient(120deg, var(--speend-accent) 0%, #2a1640 70%); border: 1px solid var(--speend-border-3); }
.speend-banner--1 .speend-banner-text { color: rgba(255,255,255,.82); }
/* 2 · Coins split */
.speend-banner--2 .speend-banner-inner { background: var(--speend-surface); -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur); border: 1px solid var(--speend-border-2); display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center; }
.speend-banner-coins { display: flex; gap: 14px; justify-content: center; }
.speend-coin { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.speend-coin svg { width: 46%; height: 46%; display: block; }
.speend-coin--btc { box-shadow: 0 10px 30px rgba(247,147,26,.4); }
.speend-coin--ton { box-shadow: 0 10px 30px rgba(0,152,234,.4); }
.speend-coin--usdt { box-shadow: 0 10px 30px rgba(38,161,123,.4); }
/* 3 · Lime spotlight */
.speend-banner--3 .speend-banner-inner { background: var(--speend-surface-solid); border: 1px solid var(--speend-border-2); text-align: center; }
.speend-banner--3 .speend-banner-inner::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); background: var(--speend-glow-lime); filter: blur(80px); opacity: .5; pointer-events: none; }
.speend-banner--3 .speend-banner-body { position: relative; }
.speend-banner--3 .speend-banner-text { margin-left: auto; margin-right: auto; }
.speend-banner--3 .speend-banner-actions { justify-content: center; }
/* 4 · Stats bar */
.speend-banner--4 .speend-banner-inner { background: var(--speend-surface); -webkit-backdrop-filter: var(--speend-blur); backdrop-filter: var(--speend-blur); border: 1px solid var(--speend-border-2); display: grid; grid-template-columns: 1.4fr .6fr; gap: 28px; align-items: center; }
.speend-banner-stats { display: flex; gap: 24px; justify-content: flex-end; flex-wrap: wrap; }
.speend-banner-stats div { text-align: center; }
.speend-banner-stats b { display: block; font-family: var(--speend-mono); font-size: 28px; font-weight: 600; color: var(--speend-cta); }
.speend-banner-stats span { font-size: 12px; color: var(--speend-text-3); }
/* 5 · Minimal centered */
.speend-banner--5 .speend-banner-inner { background: transparent; border: 1px solid var(--speend-border-2); text-align: center; padding: 52px 40px; }
.speend-banner--5 .speend-banner-text { margin-left: auto; margin-right: auto; }
.speend-banner--5 .speend-banner-actions { justify-content: center; }

@media (max-width: 760px) {
  .speend-banner-inner { padding: 30px 24px; }
  .speend-banner--2 .speend-banner-inner, .speend-banner--4 .speend-banner-inner { grid-template-columns: 1fr; }
  .speend-banner-coins, .speend-banner-stats { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .speend-nav-search { border-top: none !important; margin: 10px 0 0; }
  .speend-nav-search-toggle { width: 100%; border-radius: var(--speend-r-md); }
  .speend-search-overlay { padding-top: 12vh; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.blog .inside-article, button, .button, a { transition: none !important; }
}
