/**
 * GPS LIFE — Docs Archives Styles v1.0
 * Файл: machic-child/css/docs-archives.css
 *
 * Стилі для нових archive-шаблонів:
 *   - archive-docs.php (homepage /docs/)
 *   - taxonomy-doc_category.php (/docs-category/{slug}/)
 *
 * Завантажується ПІСЛЯ docs-styles.css (через залежність у enqueue) — щоб
 * мати доступ до CSS-custom-properties (--brand, --hero-start, etc.).
 *
 * Усі стилі scope-нуті під #gps-docs щоб не зачіпати парент-тему.
 * Breakpoint: 1024px (sync з docs-styles.css).
 */


/* ============================================================
   ARCHIVE HOMEPAGE
   ============================================================ */

/* ─── 1. HERO ──────────────────────────────────────── */

#gps-docs .docs-arch-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 40%, var(--hero-end) 100%);
  padding: 72px 24px 80px;
  text-align: center;
  isolation: isolate;
}
#gps-docs .docs-arch-hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
#gps-docs .docs-arch-hero__orb {
  position: absolute; border-radius: 50%; filter: blur(10px);
}
#gps-docs .docs-arch-hero__orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(70, 103, 255, 0.3), transparent 70%);
  top: -200px; left: -100px;
}
#gps-docs .docs-arch-hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.25), transparent 70%);
  bottom: -150px; right: -50px;
}
#gps-docs .docs-arch-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(70, 103, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 103, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
#gps-docs .docs-arch-hero__inner {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
}
#gps-docs .docs-arch-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(70, 103, 255, 0.15);
  border: 1px solid rgba(70, 103, 255, 0.25);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
#gps-docs .docs-arch-hero__title {
  font-size: 44px; font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -1px;
  line-height: 1.15;
}
#gps-docs .docs-arch-hero__title-grad {
  background: linear-gradient(90deg, #4667ff, #7b61ff, #bf5af2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
#gps-docs .docs-arch-hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 32px;
  max-width: 520px;
  line-height: 1.6;
}

/* Hero search override (white-on-dark variant) */
#gps-docs .docs-search--hero {
  max-width: 600px; margin: 0 auto;
}
#gps-docs .docs-search--hero .docs-search__box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}
#gps-docs .docs-search--hero .docs-search__box > svg {
  color: rgba(255, 255, 255, 0.6);
}
#gps-docs .docs-search--hero .docs-search__input {
  color: #fff;
  font-size: 16px;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
}
#gps-docs .docs-search--hero .docs-search__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
#gps-docs .docs-search--hero .docs-search__clear {
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile hero search — button trigger styled like search field
   Click → opens fullscreen panel (same as header лупа icon) */
#gps-docs .docs-search--hero-mob-trigger {
  width: 100%; max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 12px 18px;
  cursor: pointer;
  text-align: left;
  display: flex; align-items: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  transition: var(--transition-bounce);
}
#gps-docs .docs-search--hero-mob-trigger:active {
  transform: scale(0.99);
}
#gps-docs .docs-search--hero-mob-trigger .docs-search__box {
  background: transparent;
  border: none; padding: 0;
  display: flex; align-items: center; gap: 10px;
  width: 100%;
}
#gps-docs .docs-search--hero-mob-trigger svg {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}
#gps-docs .docs-search--hero-mob-placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

#gps-docs .docs-arch-hero__tags {
  display: flex; gap: 8px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
#gps-docs .docs-arch-hero__tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-bounce);
}
#gps-docs .docs-arch-hero__tag:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}


/* ─── 2. SECTION SHARED ─────────────────────────── */

#gps-docs .docs-arch-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 16px;
}
#gps-docs .docs-arch-section--popquick { padding: 32px 24px 24px; }
#gps-docs .docs-arch-section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; gap: 16px;
}
#gps-docs .docs-arch-section__head--simple { margin-bottom: 20px; align-items: center; }
#gps-docs .docs-arch-section__title {
  font-size: 26px; font-weight: 700;
  color: var(--text); margin: 0;
}
#gps-docs .docs-arch-section__title--with-emoji {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px;
}
#gps-docs .docs-arch-section__emoji { font-size: 22px; line-height: 1; }
#gps-docs .docs-arch-section__subtitle {
  font-size: 14px; color: var(--text-mut); margin: 4px 0 0;
}


/* ─── 3. CATEGORIES GRID ────────────────────────── */

#gps-docs .docs-arch-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
#gps-docs .docs-arch-cat {
  --cat-color: var(--brand);
  position: relative;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
}
#gps-docs .docs-arch-cat:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}
#gps-docs .docs-arch-cat__accent {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 50%, transparent));
  opacity: 0; transition: opacity 0.3s;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
#gps-docs .docs-arch-cat:hover .docs-arch-cat__accent { opacity: 1; }

#gps-docs .docs-arch-cat__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 18px;
}
#gps-docs .docs-arch-cat__icon { display: flex; line-height: 1; }
#gps-docs .docs-arch-cat__count {
  font-size: 12px; font-weight: 600;
  color: var(--cat-color);
  background: color-mix(in srgb, var(--cat-color) 12%, transparent);
  padding: 5px 12px;
  border-radius: 8px;
}
#gps-docs .docs-arch-cat__title {
  font-size: 20px; font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
  transition: color 0.3s;
}
#gps-docs .docs-arch-cat__title a { color: var(--text); }
#gps-docs .docs-arch-cat:hover .docs-arch-cat__title { color: var(--cat-color); }
#gps-docs .docs-arch-cat:hover .docs-arch-cat__title a { color: var(--cat-color); }
#gps-docs .docs-arch-cat__desc {
  font-size: 14px; color: var(--text-sec);
  margin: 0 0 20px; line-height: 1.5;
}
#gps-docs .docs-arch-cat__articles {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}
#gps-docs .docs-arch-cat__articles a {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-sec);
  padding: 8px 10px; border-radius: var(--radius-item);
  transition: all 0.2s ease;
}
#gps-docs .docs-arch-cat__articles a:hover {
  background: var(--brand-light);
  padding-left: 14px;
  color: var(--cat-color);
}
#gps-docs .docs-arch-cat__bullet {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cat-color); flex-shrink: 0;
}
#gps-docs .docs-arch-cat__art-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#gps-docs .docs-arch-cat__chevron {
  color: var(--text-mut); opacity: 0.4; display: flex;
}
#gps-docs .docs-arch-cat__more {
  display: flex; align-items: center; gap: 4px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
  color: var(--brand);
}


/* ─── 4. BASICS ────────────────────────────────── */

#gps-docs .docs-arch-basics-scroll {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
#gps-docs .docs-arch-basic {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-block);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
}
#gps-docs .docs-arch-basic:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}
#gps-docs .docs-arch-basic__icon { margin-bottom: 12px; display: flex; }
#gps-docs .docs-arch-basic__title {
  font-size: 14px; font-weight: 650;
  margin: 0 0 6px; line-height: 1.35; color: var(--text);
}
#gps-docs .docs-arch-basic__desc {
  font-size: 12px; color: var(--text-mut); margin: 0; line-height: 1.4;
}


/* ─── 5. POPULAR + QUICK START ─────────────────── */

#gps-docs .docs-arch-popquick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
#gps-docs .docs-arch-popular .docs-arch-section__title,
#gps-docs .docs-arch-quickstart .docs-arch-section__title {
  margin-bottom: 16px; font-size: 18px;
}

#gps-docs .docs-arch-popular__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  counter-reset: pop;
}
#gps-docs .docs-arch-popular__item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
}
#gps-docs .docs-arch-popular__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
#gps-docs .docs-arch-popular__rank {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  color: var(--brand); flex-shrink: 0;
}
#gps-docs .docs-arch-popular__body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
#gps-docs .docs-arch-popular__title {
  font-size: 15px; font-weight: 600; color: var(--text);
  line-height: 1.3;
}
#gps-docs .docs-arch-popular__desc {
  font-size: 13px; color: var(--text-mut); line-height: 1.35;
}
#gps-docs .docs-arch-popular__cat {
  font-size: 12px; color: var(--text-mut); opacity: 0.7; margin-top: 1px;
}
#gps-docs .docs-arch-popular__views {
  font-size: 12px; color: var(--text-mut);
  background: var(--bg);
  padding: 4px 12px; border-radius: 8px; flex-shrink: 0;
}

#gps-docs .docs-arch-quickstart__card {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
#gps-docs .docs-arch-quickstart__row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
}
#gps-docs .docs-arch-quickstart__row[data-divider="1"] {
  border-bottom: 1px solid var(--border);
}
#gps-docs .docs-arch-quickstart__num {
  --step-color: var(--brand);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--step-color) 12%, transparent);
  color: var(--step-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--step-color) 25%, transparent);
}
#gps-docs .docs-arch-quickstart__title {
  font-size: 15px; font-weight: 600; color: var(--text);
}
#gps-docs .docs-arch-quickstart__desc {
  font-size: 13px; color: var(--text-mut); margin-top: 3px;
}

#gps-docs .docs-arch-micro-cta {
  text-align: center; margin: 24px 0 0;
}
#gps-docs .docs-arch-micro-cta a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-sec); font-weight: 500;
  transition: color 0.2s;
}
#gps-docs .docs-arch-micro-cta a:hover { color: var(--brand); }


/* ─── 6. CTA BAND ──────────────────────────────── */

#gps-docs .docs-arch-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
#gps-docs .docs-arch-cta__inner {
  position: relative; overflow: hidden;
  border-radius: 24px;
  padding: 48px 56px;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-mid), var(--hero-end));
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
  isolation: isolate;
}
#gps-docs .docs-arch-cta__bg {
  position: absolute; inset: 0; pointer-events: none;
}
#gps-docs .docs-arch-cta__orb {
  position: absolute; border-radius: 50%;
}
#gps-docs .docs-arch-cta__orb--1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(70, 103, 255, 0.2), transparent 70%);
  top: -100px; right: 100px;
}
#gps-docs .docs-arch-cta__orb--2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(191, 90, 242, 0.15), transparent 70%);
  bottom: -80px; left: 200px;
}
#gps-docs .docs-arch-cta__copy { position: relative; z-index: 1; flex: 1; }
#gps-docs .docs-arch-cta__title {
  font-size: 24px; font-weight: 800; color: #fff;
  margin: 0 0 12px;
}
#gps-docs .docs-arch-cta__text {
  font-size: 15px; color: rgba(255, 255, 255, 0.65);
  margin: 0 0 16px; max-width: 480px; line-height: 1.65;
}
#gps-docs .docs-arch-cta__secondary {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}
#gps-docs .docs-arch-cta__secondary:hover { color: #fff; border-bottom-color: #fff; }
#gps-docs .docs-arch-cta__primary {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 15px; font-weight: 600;
  flex-shrink: 0;
  transition: var(--transition-bounce);
}
#gps-docs .docs-arch-cta__primary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
}
#gps-docs .docs-arch-cta__primary svg { color: #fff; }

#gps-docs .docs-arch-spacer { height: 48px; background: var(--bg); }


/* ============================================================
   TAXONOMY (CATEGORY PAGE)
   ============================================================ */

/* ─── 7. COMPACT HERO ─────────────────────────── */

#gps-docs.gps-docs-taxonomy { background: var(--bg); }

#gps-docs .docs-tax-hero {
  --cat-color: var(--brand);
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 40%, var(--hero-end) 100%);
  padding: 40px 24px 48px;
  text-align: center;
  isolation: isolate;
}
#gps-docs .docs-tax-hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
#gps-docs .docs-tax-hero__orb {
  position: absolute; border-radius: 50%;
}
#gps-docs .docs-tax-hero__orb--1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, color-mix(in srgb, var(--cat-color) 20%, transparent), transparent 70%);
  top: -150px; left: -100px;
}
#gps-docs .docs-tax-hero__orb--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.15), transparent 70%);
  bottom: -100px; right: -50px;
}
#gps-docs .docs-tax-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(70, 103, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 103, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
#gps-docs .docs-tax-hero__inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
}
#gps-docs .docs-tax-hero__head {
  display: flex; align-items: center; gap: 14px;
  justify-content: center; margin-bottom: 10px;
}
#gps-docs .docs-tax-hero__icon { display: flex; line-height: 1; }
#gps-docs .docs-tax-hero__title {
  font-size: 36px; font-weight: 800;
  color: #fff; margin: 0; letter-spacing: -0.5px;
}
#gps-docs .docs-tax-hero__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 12px;
  max-width: 560px; line-height: 1.5;
}
#gps-docs .docs-tax-hero__meta {
  display: inline-block;
  background: color-mix(in srgb, var(--cat-color) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color) 30%, transparent);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 6px 16px;
  font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

#gps-docs .docs-search--hero-compact { max-width: 480px; }
#gps-docs .docs-search--hero-compact .docs-search__box {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}


/* ─── 8. WRAPPER + BREADCRUMBS ─────────────── */

#gps-docs .docs-tax-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}
#gps-docs .docs-tax-crumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--text-mut);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
#gps-docs .docs-tax-crumbs a {
  color: var(--brand); font-weight: 500;
}
#gps-docs .docs-tax-crumbs a:hover { text-decoration: underline; }
#gps-docs .docs-tax-crumbs__sep {
  color: var(--text-mut); display: flex; align-items: center;
}


/* ─── 9. 2-COL GRID ──────────────────────────── */

#gps-docs .docs-tax-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}


/* ─── 10. SIDEBAR ────────────────────────────── */

#gps-docs .docs-tax-sidebar {
  position: sticky; top: 84px;
  align-self: start;
}
#gps-docs .docs-tax-sidebar__mob-toggle {
  display: none;
  align-items: center; gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 14px; font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
#gps-docs .docs-tax-sidebar__mob-toggle svg { margin-left: auto; transition: transform 0.2s; }
#gps-docs .docs-tax-sidebar__mob-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

#gps-docs .docs-tax-sidebar__title {
  font-size: 11px; font-weight: 700;
  color: var(--text-mut);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px;
  padding: 0 10px;
}
#gps-docs .docs-tax-sidebar__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}
#gps-docs .docs-tax-sidebar__link {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-sec); font-weight: 400;
  border-left: 2.5px solid transparent;
  transition: all 0.2s;
}
#gps-docs .docs-tax-sidebar__link:hover {
  background: var(--brand-light);
}
#gps-docs .docs-tax-sidebar__link.is-active {
  color: var(--brand); font-weight: 600;
  background: var(--brand-light);
  border-left-color: var(--brand);
}
#gps-docs .docs-tax-sidebar__count {
  font-size: 12px; opacity: 0.7;
}

#gps-docs .docs-tax-sidebar__cta {
  margin-top: 16px;
  padding: 20px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(70, 103, 255, 0.06), rgba(123, 97, 255, 0.06));
  border: 1px solid rgba(70, 103, 255, 0.1);
  text-align: center;
}
#gps-docs .docs-tax-sidebar__cta-title {
  font-size: 13px; font-weight: 650;
  color: var(--text); margin: 0 0 6px;
}
#gps-docs .docs-tax-sidebar__cta-text {
  font-size: 12px; color: var(--text-mut);
  margin: 0 0 12px; line-height: 1.4;
}
#gps-docs .docs-tax-sidebar__cta-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  margin-bottom: 12px;
}
#gps-docs .docs-tax-sidebar__cta-hint {
  display: block;
  font-size: 11px; color: var(--text-mut); margin-bottom: 6px;
}
#gps-docs .docs-tax-sidebar__cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(70, 103, 255, 0.3);
  transition: var(--transition-bounce);
}
#gps-docs .docs-tax-sidebar__cta-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(70, 103, 255, 0.4);
}
#gps-docs .docs-tax-sidebar__cta-btn svg { color: #fff; }


/* ─── 11. TOOLBAR (count + sort) ─────────────── */

#gps-docs .docs-tax-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
#gps-docs .docs-tax-toolbar__count {
  font-size: 14px; color: var(--text-mut); margin: 0;
}
#gps-docs .docs-tax-toolbar__count strong { color: var(--text); }
#gps-docs .docs-tax-toolbar__sort {
  display: flex; gap: 4px;
  background: rgba(0, 0, 0, 0.03);
  padding: 4px; border-radius: 10px;
}
#gps-docs .docs-tax-toolbar__sort-btn {
  font-size: 13px; font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-mut);
  transition: all 0.2s;
}
#gps-docs .docs-tax-toolbar__sort-btn:hover:not(.is-active) {
  background: var(--brand-light);
  color: var(--brand);
}
#gps-docs .docs-tax-toolbar__sort-btn.is-active {
  background: var(--brand); color: #fff;
}


/* ─── 12. FEATURED CARD ──────────────────────── */

#gps-docs .docs-tax-feat {
  --cat-color: var(--brand);
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
}
#gps-docs .docs-tax-feat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
#gps-docs .docs-tax-feat__cover {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 70%, #5e5ce6));
  padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
#gps-docs .docs-tax-feat__cover-orb {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  top: -60px; right: -40px;
}
#gps-docs .docs-tax-feat__cover-content { position: relative; z-index: 1; }
#gps-docs .docs-tax-feat__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px; font-weight: 700;
  color: #fff;
}
#gps-docs .docs-tax-feat__title {
  font-size: 19px; font-weight: 800;
  color: #fff;
  margin: 10px 0 0;
  line-height: 1.3;
}
#gps-docs .docs-tax-feat__body {
  padding: 28px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
#gps-docs .docs-tax-feat__meta {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 10px; flex-wrap: wrap;
}
#gps-docs .docs-tax-feat__tag {
  --tag-color: var(--brand);
  font-size: 11px; font-weight: 600;
  color: var(--tag-color);
  background: color-mix(in srgb, var(--tag-color) 12%, transparent);
  padding: 3px 10px; border-radius: 6px;
}
#gps-docs .docs-tax-feat__meta-item {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; color: var(--text-mut);
}
#gps-docs .docs-tax-feat__excerpt {
  font-size: 14px; color: var(--text-sec);
  margin: 0 0 14px; line-height: 1.55;
}
#gps-docs .docs-tax-feat__read {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600;
  color: var(--brand);
}


/* ─── 13. SUBCATEGORY CARDS ─────────────────── */

#gps-docs .docs-tax-subs { margin-bottom: 24px; }
#gps-docs .docs-tax-subs__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}
#gps-docs .docs-tax-subs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
#gps-docs .docs-tax-sub {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
}
#gps-docs .docs-tax-sub:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
#gps-docs .docs-tax-sub__accent {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #5e5ce6);
  opacity: 0; transition: opacity 0.3s;
  border-radius: 16px 16px 0 0;
}
#gps-docs .docs-tax-sub:hover .docs-tax-sub__accent { opacity: 1; }
#gps-docs .docs-tax-sub__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px;
}
#gps-docs .docs-tax-sub__icon { font-size: 28px; line-height: 1; }
#gps-docs .docs-tax-sub__count {
  font-size: 12px; font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 10px; border-radius: 8px;
}
#gps-docs .docs-tax-sub__name {
  font-size: 18px; font-weight: 700;
  margin: 0 0 10px;
}
#gps-docs .docs-tax-sub__name a { color: var(--text); }
#gps-docs .docs-tax-sub__name a:hover { color: var(--brand); }

#gps-docs .docs-tax-sub__models {
  display: flex; gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
#gps-docs .docs-tax-sub__model {
  display: inline-flex; align-items: center;
  font-size: 13px; color: var(--text-sec); font-weight: 500;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}
#gps-docs .docs-tax-sub__model:hover {
  background: var(--brand-light);
  color: var(--brand);
  transform: scale(1.04);
}
#gps-docs .docs-tax-sub__articles {
  list-style: none; padding: 12px 0 0; margin: 0;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 3px;
}
#gps-docs .docs-tax-sub__articles a {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-sec);
  padding: 7px 10px; border-radius: 8px;
  transition: all 0.2s ease;
}
#gps-docs .docs-tax-sub__articles a:hover {
  background: var(--brand-light);
  padding-left: 14px;
  color: var(--brand);
}
#gps-docs .docs-tax-sub__bullet {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-mut); flex-shrink: 0;
}
#gps-docs .docs-tax-sub__art-title {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#gps-docs .docs-tax-sub__art-arr { color: var(--text-mut); opacity: 0.4; }
#gps-docs .docs-tax-sub__more {
  display: flex; align-items: center; gap: 4px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
  color: var(--brand);
}


/* ─── 14. OTHER ARTICLES LIST ───────────────── */

#gps-docs .docs-tax-other__title {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}
#gps-docs .docs-tax-other__list {
  display: flex; flex-direction: column; gap: 10px;
}
#gps-docs .docs-tax-row {
  display: flex; align-items: center; gap: 18px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-block);
  padding: 18px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: var(--transition-bounce);
}
#gps-docs .docs-tax-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}
#gps-docs .docs-tax-row__num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mut); font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
#gps-docs .docs-tax-row__body { flex: 1; min-width: 0; }
#gps-docs .docs-tax-row__title {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin: 0 0 4px; line-height: 1.35;
}
#gps-docs .docs-tax-row__desc {
  font-size: 13px; color: var(--text-mut);
  margin: 0; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#gps-docs .docs-tax-row__meta {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; flex-wrap: wrap;
}
#gps-docs .docs-tax-row__tag {
  --tag-color: var(--brand);
  font-size: 11px; font-weight: 600;
  color: var(--tag-color);
  background: color-mix(in srgb, var(--tag-color) 10%, transparent);
  padding: 3px 10px; border-radius: 6px;
}
#gps-docs .docs-tax-row__meta-item {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; color: var(--text-mut);
}
#gps-docs .docs-tax-row__chev { color: var(--text-mut); opacity: 0.4; }


/* ─── 15. EMPTY STATE ───────────────────────── */

#gps-docs .docs-tax-empty {
  text-align: center; padding: 60px 24px;
  color: var(--text-mut);
}
#gps-docs .docs-tax-empty__back {
  display: inline-block;
  margin-top: 16px;
  color: var(--brand); font-weight: 600;
}


/* ─── 16. MOBILE FLOATING CTA ──────────────── */

/* Floating CTA + Bottom Sheet — використовується глобальний компонент з docs-styles.css
   (.docs-floating-cta + .docs-bottom-sheet). Рендериться через
   gps_docs_render_floating_cta_sheet() — той самий patternу як на single-docs.php. */

#gps-docs .docs-tax-spacer { height: 48px; background: var(--bg); }


/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */

/* ─── 17. SEARCH HERO + WRAP ──────────────────── */

#gps-docs .docs-search-hero { padding: 56px 24px 60px; }
#gps-docs .docs-search-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(70, 103, 255, 0.15);
  border: 1px solid rgba(70, 103, 255, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 16px;
  font-size: 12px; font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#gps-docs .docs-search-hero .docs-tax-hero__title {
  font-size: 32px;
  margin: 0 0 10px;
  word-break: break-word;
  hyphens: auto;
}
#gps-docs .docs-search-wrap { padding-top: 24px; }
#gps-docs .docs-search-main { display: block; }

/* NATURAL FLOW (без sticky footer) — як monobank/нормальні сайти.
   Footer ставиться одразу після контенту. На zoom out empty bg внизу
   мінімальний (бо body height = content height, не примусово 100dvh).
   На коротких сторінках (404 без suggestions) — body показує bg
   нижче footer'а, але це органічно, не agresivно як flex stretch. */
#gps-docs.gps-docs-search,
#gps-docs.gps-docs-404 {
  background-color: #f5f7fb !important;
}

/* ─── PARENT-THEME WRAPPER NEUTRALIZATION ───────────────────────────────────
   ROOT CAUSE біла-полоса-під-footer'ом:
   Machic парент-тема обгортає весь output у власні wrapper-діви
   (#wrapper, .site, #main, #content тощо) з власним min-height/padding.
   Коли ми removed їхні header/footer ACTIONS — самі wrapper'и DOM-структури
   лишаються і займають простір. При zoom out — стає видно.

   Fix: zero-out всі common Machic/WP-core wrappers через body.gps-docs-page scope. */

html {
  background-color: #f5f7fb;
}
body.gps-docs-page {
  background-color: #f5f7fb !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}
html:has(body.gps-docs-page) {
  background-color: #f5f7fb !important;
}

/* Common Machic/WP wrapper selectors — zero-out spacing і bg */
body.gps-docs-page #wrapper,
body.gps-docs-page #site-wrapper,
body.gps-docs-page #page,
body.gps-docs-page #main,
body.gps-docs-page #content,
body.gps-docs-page #primary,
body.gps-docs-page .site,
body.gps-docs-page .site-content,
body.gps-docs-page .site-main,
body.gps-docs-page .site-inner,
body.gps-docs-page .main-content,
body.gps-docs-page .machic-wrapper,
body.gps-docs-page .klb-wrapper,
body.gps-docs-page .klb-content,
body.gps-docs-page .container-fluid,
body.gps-docs-page > div:not(#gps-docs):not(#wpadminbar):not([class*="floating"]):not([class*="bottom-sheet"]):not([class*="popup"]) {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  background: transparent !important;
}

/* Якщо лишився Machic footer wrapper після нашого #gps-docs — приховуємо */
body.gps-docs-page #colophon,
body.gps-docs-page .site-footer,
body.gps-docs-page #machic-footer-wrapper,
body.gps-docs-page .machic-footer-area,
body.gps-docs-page .footer-widgets,
body.gps-docs-page .footer-copyright {
  display: none !important;
}

/* Подвійна страховка на самому #gps-docs */
#gps-docs.gps-docs-search,
#gps-docs.gps-docs-404 {
  background-color: #f5f7fb !important;
}
/* І на main — щоб flex spacer не світив */
#gps-docs.gps-docs-search .docs-tax-wrap,
#gps-docs.gps-docs-404 .docs-404-main {
  background-color: #f5f7fb;
}


/* ─── 18. PAGINATION ──────────────────────────── */

#gps-docs .docs-search-pagi {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
  margin: 32px 0 0;
}
#gps-docs .docs-search-pagi__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-btn);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
  color: var(--text);
  transition: var(--transition-bounce);
}
#gps-docs .docs-search-pagi__link:hover {
  background: var(--brand-light);
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}
#gps-docs .docs-search-pagi__num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-btn);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
  color: var(--text-sec);
  transition: var(--transition-bounce);
}
#gps-docs .docs-search-pagi__num:hover {
  background: var(--brand-light);
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}
#gps-docs .docs-search-pagi__num.is-current {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  cursor: default;
}
#gps-docs .docs-search-pagi__dots {
  color: var(--text-mut); padding: 0 4px;
}


/* ─── 19. SEARCH EMPTY STATE ──────────────────── */

#gps-docs .docs-search-empty {
  text-align: center;
  padding: 32px 0 0;
}
#gps-docs .docs-search-empty__icon {
  color: var(--brand);
  margin: 0 auto 16px;
  display: flex; justify-content: center;
}
#gps-docs .docs-search-empty__title {
  font-size: 22px; font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
#gps-docs .docs-search-empty__hint {
  font-size: 15px;
  color: var(--text-sec);
  margin: 0 0 24px;
  max-width: 480px;
  line-height: 1.55;
  display: block;
  margin-left: auto; margin-right: auto;
}
#gps-docs .docs-search-empty__tags {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  margin-bottom: 36px;
}
#gps-docs .docs-search-empty__tags-label {
  font-size: 13px; color: var(--text-mut); font-weight: 600;
}
#gps-docs .docs-search-empty__tag {
  font-size: 13px; font-weight: 500;
  color: var(--brand);
  background: var(--brand-light);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  transition: var(--transition-bounce);
}
#gps-docs .docs-search-empty__tag:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 30%, transparent);
}

#gps-docs .docs-search-empty__cats {
  margin: 0 0 36px;
}
#gps-docs .docs-search-empty__cats-title {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  text-align: left;
}
#gps-docs .docs-search-empty__cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
#gps-docs .docs-search-empty__cat {
  --cat-color: var(--brand);
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-block);
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
  text-align: left;
}
#gps-docs .docs-search-empty__cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border-color: color-mix(in srgb, var(--cat-color) 20%, transparent);
}
#gps-docs .docs-search-empty__cat-icon {
  display: flex; flex-shrink: 0;
}
#gps-docs .docs-search-empty__cat-name {
  flex: 1;
  font-size: 14px; font-weight: 600; color: var(--text);
}
#gps-docs .docs-search-empty__cat-count {
  font-size: 12px; font-weight: 600;
  color: var(--cat-color);
  background: color-mix(in srgb, var(--cat-color) 12%, transparent);
  padding: 3px 9px;
  border-radius: 6px;
}


/* ============================================================
   404 PAGE (v2 — simplified: visual head + suggestions + paid CTA band)
   ============================================================ */

/* ─── 20. 404 VISUAL HEAD ─────────────────────── */

/* Soft blue tint фон — суцільний (на тому ж background гладко переходить у наступну секцію).
   Header sticky 60px → додаємо большой padding-top щоб 404 не приплюснутий під ним. */
#gps-docs .docs-404-head {
  position: relative;
  background: linear-gradient(180deg,
    rgba(70, 103, 255, 0.04) 0%,
    rgba(70, 103, 255, 0.08) 50%,
    rgba(70, 103, 255, 0.02) 100%);
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
#gps-docs .docs-404-head__bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(70, 103, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 103, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 80%);
}
#gps-docs .docs-404-head__inner {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
}
#gps-docs .docs-404-head__code {
  /* Великий — основний візуальний елемент сторінки */
  font-size: 180px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -8px;
  background: linear-gradient(135deg, #4667ff 0%, #5e5ce6 50%, #bf5af2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0 0 16px;
  user-select: none;
}
#gps-docs .docs-404-head__title {
  font-size: 28px; font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}
#gps-docs .docs-404-head__subtitle {
  font-size: 16px;
  color: var(--text-sec);
  margin: 0;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}


/* ─── 21. 404 SUGGESTIONS ─────────────────────── */
/* Без власного header — він уже в hero subtitle ("Можливо вам підійде ось це:").
   Зменшений top padding — для single flow continuation з hero. */

#gps-docs .docs-404-suggest {
  background: var(--bg);
  padding: 24px 24px 12px;  /* було 40px top — тепер 24 для single flow */
}
#gps-docs .docs-404-suggest__inner {
  max-width: 1200px;
  margin: 0 auto;
}


/* ─── 22. PAID CTA BAND wrapper (на 404) ─────── */

/* Зайвий padding-bottom щоб дати дихання перед footer */
#gps-docs.gps-docs-404 .docs-paid-cta-band {
  padding-bottom: 48px;
  padding-top: 24px;
}


/* ============================================================
   PAID CTA — Shared component (search empty, 404, інші dead-ends)
   ============================================================ */

/* ─── 22. PAID CTA ────────────────────────────── */

#gps-docs .docs-paid-cta {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(70, 103, 255, 0.04), rgba(123, 97, 255, 0.04));
  border: 1px solid rgba(70, 103, 255, 0.12);
  border-radius: var(--radius-card);
  margin: 24px 0;
}
#gps-docs .docs-paid-cta__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(70, 103, 255, 0.1);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#gps-docs .docs-paid-cta__title {
  font-size: 17px; font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
#gps-docs .docs-paid-cta__text {
  font-size: 14px; color: var(--text-sec);
  margin: 0 0 8px;
  line-height: 1.55;
}
#gps-docs .docs-paid-cta__text strong {
  color: var(--brand); font-weight: 700;
}
/* Clickable "платні послуги" inline у тексті — стилізовано як link, не button */
#gps-docs .docs-paid-cta__inline-link {
  background: none; border: none; padding: 0;
  font: inherit; color: var(--brand); font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
#gps-docs .docs-paid-cta__inline-link:hover {
  color: var(--brand-hover);
}
/* Secondary CTA — тепер button (data-open-services), стилізуємо як previous link */
#gps-docs button.docs-paid-cta__secondary {
  background: none; border: none; padding: 4px 0;
  font: inherit; cursor: pointer;
}

/* ─── Band variant overrides — inline-link і button на dark gradient bg ─── */
#gps-docs .docs-paid-cta-band .docs-paid-cta__inline-link {
  /* На dark gradient — білий з underline */
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
#gps-docs .docs-paid-cta-band .docs-paid-cta__inline-link:hover {
  color: #fff;
  text-decoration-color: #fff;
}
/* Secondary CTA у band — button styled like existing <a> з white underline */
#gps-docs button.docs-arch-cta__secondary {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0 0 2px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s, border-color 0.2s;
}
#gps-docs button.docs-arch-cta__secondary:hover {
  color: #fff;
  border-bottom-color: #fff;
}
#gps-docs .docs-paid-cta__note {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-mut);
  margin: 0;
  line-height: 1.4;
}
#gps-docs .docs-paid-cta__note svg {
  color: var(--text-mut); flex-shrink: 0;
}
#gps-docs .docs-paid-cta__actions {
  display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0;
}
#gps-docs .docs-paid-cta__primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  background: var(--brand);
  color: #fff;
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(70, 103, 255, 0.3);
  transition: var(--transition-bounce);
}
#gps-docs .docs-paid-cta__primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(70, 103, 255, 0.45);
}
#gps-docs .docs-paid-cta__primary svg { color: #fff; }
#gps-docs .docs-paid-cta__secondary {
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  text-align: center;
  padding: 4px 0;
}
#gps-docs .docs-paid-cta__secondary:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}


/* ============================================================
   RESPONSIVE — Mobile (<1024px) [breakpoint sync з docs-styles.css]
   ============================================================ */

@media (max-width: 1023px) {

  /* Hero archive */
  #gps-docs .docs-arch-hero { padding: 48px 16px 56px; }
  #gps-docs .docs-arch-hero__title { font-size: 30px; }
  #gps-docs .docs-arch-hero__subtitle { font-size: 15px; }
  #gps-docs .docs-arch-hero__tags { display: none; }
  #gps-docs .docs-search--hero .docs-search__box { padding: 12px 16px; }
  #gps-docs .docs-search--hero .docs-search__input { font-size: 14px; }

  /* Sections */
  #gps-docs .docs-arch-section { padding-left: 16px; padding-right: 16px; }
  #gps-docs .docs-arch-section__head { flex-direction: column; align-items: flex-start; }
  #gps-docs .docs-arch-section__title { font-size: 22px; }
  #gps-docs .docs-arch-section__title--with-emoji { font-size: 20px; }

  /* Categories grid */
  #gps-docs .docs-arch-cats-grid { grid-template-columns: 1fr; }
  #gps-docs .docs-arch-cat { padding: 24px 20px; }

  /* Basics — horizontal scroll */
  #gps-docs .docs-arch-basics-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  #gps-docs .docs-arch-basic {
    min-width: 200px; flex: 0 0 auto;
    scroll-snap-align: start;
  }

  /* Popular + Quick Start — stack */
  #gps-docs .docs-arch-popquick { grid-template-columns: 1fr; gap: 28px; }

  /* CTA */
  #gps-docs .docs-arch-cta { padding-left: 16px; padding-right: 16px; }
  #gps-docs .docs-arch-cta__inner {
    flex-direction: column; align-items: stretch;
    padding: 32px 24px;
  }
  #gps-docs .docs-arch-cta__title { font-size: 20px; }
  #gps-docs .docs-arch-cta__primary { justify-content: center; }


  /* TAXONOMY */

  #gps-docs .docs-tax-hero { padding: 28px 16px 36px; }
  #gps-docs .docs-tax-hero__title { font-size: 26px; }
  #gps-docs .docs-tax-hero__subtitle { font-size: 14px; }
  #gps-docs .docs-search--hero-compact .docs-search__input { font-size: 14px; }

  #gps-docs .docs-tax-wrap { padding: 16px 16px 24px; }

  /* Grid — stack */
  #gps-docs .docs-tax-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Sidebar — collapsible */
  #gps-docs .docs-tax-sidebar { position: static; }
  #gps-docs .docs-tax-sidebar__mob-toggle { display: flex; }
  #gps-docs .docs-tax-sidebar__body { display: none; }
  #gps-docs .docs-tax-sidebar__mob-toggle[aria-expanded="true"] + .docs-tax-sidebar__body { display: block; }

  /* Featured — stack */
  #gps-docs .docs-tax-feat { grid-template-columns: 1fr; }
  #gps-docs .docs-tax-feat__cover {
    min-height: 120px;
    padding: 24px;
  }
  #gps-docs .docs-tax-feat__title { font-size: 17px; }
  #gps-docs .docs-tax-feat__body { padding: 20px; }

  /* Subcategories — single col */
  #gps-docs .docs-tax-subs__grid { grid-template-columns: 1fr; }
  #gps-docs .docs-tax-sub { padding: 22px 18px; }

  /* Article rows */
  #gps-docs .docs-tax-row {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 16px;
  }
  #gps-docs .docs-tax-row__desc { white-space: normal; }

  /* Floating CTA mobile spacing — глобальний .docs-floating-cta вже керує padding-bottom
     на <body> через docs-styles.css. Тут лише виправляємо spacer для consistency. */
  #gps-docs .docs-tax-spacer { height: 70px; }


  /* ─── SEARCH RESULTS — Mobile ────────────── */

  /* Hero — даємо більше дихання щоб заголовок не приплюснутий до header */
  #gps-docs .docs-search-hero { padding: 40px 16px 48px; }
  #gps-docs .docs-search-hero__eyebrow {
    font-size: 11px; padding: 5px 12px; margin-bottom: 14px;
  }
  #gps-docs .docs-search-hero .docs-tax-hero__title {
    font-size: 24px; line-height: 1.25;
  }

  #gps-docs .docs-search-pagi__link span,
  #gps-docs .docs-search-pagi__link { font-size: 13px; padding: 8px 12px; }
  #gps-docs .docs-search-pagi__num { min-width: 34px; height: 34px; font-size: 13px; }

  /* Search empty — mobile */
  #gps-docs .docs-search-empty__title { font-size: 19px; }
  #gps-docs .docs-search-empty__hint { font-size: 14px; }
  #gps-docs .docs-search-empty__cats-grid { grid-template-columns: 1fr; }

  /* Mobile floating CTA active на search/404 */
  #gps-docs.gps-docs-search,
  #gps-docs.gps-docs-404 {
    padding-bottom: 70px;
  }


  /* ─── 404 v2 — Mobile ─────────────────────── */

  /* Значно більший padding-top щоб header не "приплюснутий" до 404 */
  #gps-docs .docs-404-head { padding: 100px 16px 64px; }
  #gps-docs .docs-404-head__code {
    font-size: 110px;
    letter-spacing: -5px;
  }
  #gps-docs .docs-404-head__title { font-size: 22px; }
  #gps-docs .docs-404-head__subtitle { font-size: 14px; }

  #gps-docs .docs-404-suggest { padding: 16px 16px 8px; }

  #gps-docs.gps-docs-404 .docs-paid-cta-band { padding-top: 16px; padding-bottom: 32px; }


  /* ─── PAID CTA — Mobile ──────────────────── */

  #gps-docs .docs-paid-cta {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 18px;
    gap: 14px;
  }
  #gps-docs .docs-paid-cta__icon {
    margin: 0 auto;
  }
  #gps-docs .docs-paid-cta__note {
    justify-content: center;
  }
  #gps-docs .docs-paid-cta__actions {
    flex-direction: column;
  }
}
