/* ==========================================================================
   PAGES/DIRECTORY-TOOL.CSS
   Tool detail page — sidebar, editorial body, FAQ, related.
   Pure PC desktop baseline (≥1024px). Breakpoints grouped at the bottom.
   ========================================================================== */


/* ==========================================================================
   §1. WORKSPACE SHELL
   ========================================================================== */

.tool-workspace-section {
  --tw-2xs: 4px;
  --tw-xs: 8px;
  --tw-sm: 16px;
  --tw-md: 24px;
  --tw-lg: 32px;
  --tw-xl: 48px;
  --tw-2xl: 64px;
  --tw-3xl: 88px;

  --tw-sidebar-w: 320px;
  --tw-content-max: 880px;
  --tw-shell-max: 1200px;
  --tw-gutter: clamp(36px, 4.5vw, 64px);
  --tw-sticky-top: 96px;

  --tw-rule-strong: 2.5px;
  --tw-rule-hairline: 1px;

  --tw-accent-primary: var(--color-purple-accent, #6853ff);
  --tw-accent-warm: #c8801f;

  width: 100%;
  margin-top: -88px;
  padding-top: 120px;
  padding-bottom: clamp(56px, 7vw, 88px);
  background-color: var(--color-bg-page, #ffffff);
  color: var(--color-text-main, #161616);
  box-sizing: border-box;
}

[data-theme="dark"] .tool-workspace-section {
  background-color: var(--color-bg-page, #0d0d10);
  color: var(--color-text-main, #f4f4f6);
  --tw-accent-primary: var(--color-purple-primary, #a9a1e8);
  --tw-accent-warm: #e0a53a;
}

.tool-workspace-container {
  width: 100%;
  max-width: var(--tw-shell-max);
  margin: 0 auto;
  padding-left: var(--section-px, 32px);
  padding-right: var(--section-px, 32px);
  display: grid;
  grid-template-columns: var(--tw-sidebar-w) minmax(0, 1fr);
  gap: var(--tw-gutter);
  align-items: start;
  box-sizing: border-box;
}


/* ==========================================================================
   §2. LEFT COLUMN — STICKY SIDEBAR
   ========================================================================== */

.tool-sidebar-col {
  width: 100%;
  min-width: 0;
  position: sticky;
  top: var(--tw-sticky-top);
  align-self: start;
  z-index: 20;
}

.tool-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   2.0 Sidebar breadcrumbs — panel header, mirrors policy page
   -------------------------------------------------------------------------- */
.tool-sidebar-breadcrumbs {
  padding: 0 2px 14px;
  margin-bottom: -4px;
  border-bottom: var(--tw-rule-hairline) solid var(--color-border-subtle, #e0e0e0);
}

[data-theme="dark"] .tool-sidebar-breadcrumbs {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.tool-sidebar-breadcrumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

/* Direct rules on <li> beat base.css bare `li` selector */
.tool-sidebar-breadcrumbs-list li.tool-sidebar-breadcrumb-item,
.tool-sidebar-breadcrumbs-list li.tool-sidebar-breadcrumb-sep {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-subtle, #898989);
}

[data-theme="dark"] .tool-sidebar-breadcrumbs-list li.tool-sidebar-breadcrumb-item,
[data-theme="dark"] .tool-sidebar-breadcrumbs-list li.tool-sidebar-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.45);
}

.tool-sidebar-breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.tool-sidebar-breadcrumb-item a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.tool-sidebar-breadcrumb-item a:hover,
.tool-sidebar-breadcrumb-item a:focus-visible {
  color: var(--color-purple-accent, #6853ff);
  outline: none;
}

[data-theme="dark"] .tool-sidebar-breadcrumb-item a:hover,
[data-theme="dark"] .tool-sidebar-breadcrumb-item a:focus-visible {
  color: var(--color-purple-primary, #a9a1e8);
}

.tool-sidebar-breadcrumb-sep {
  opacity: 0.5;
  user-select: none;
  letter-spacing: normal;
  flex-shrink: 0;
}

.sidebar-widget-card {
  width: 100%;
  background-color: var(--color-bg-page, #ffffff);
  border: var(--tw-rule-hairline) solid var(--color-border-subtle, #e5e5e5);
  border-radius: var(--radius-xs, 4px);
  padding: 18px;
  box-sizing: border-box;
}

[data-theme="dark"] .sidebar-widget-card {
  background-color: #16161a;
  border-color: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   2.1 GitHub stats card
   -------------------------------------------------------------------------- */
.github-stars-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.github-stars-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.star-icon {
  color: var(--color-yellow, #f8d86e);
  align-self: center;
  flex-shrink: 0;
}

.stars-val {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-black, #161616);
}

[data-theme="dark"] .stars-val {
  color: var(--color-white, #ffffff);
}

.stars-label {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--color-text-subtle, #898989);
}

.stars-trend-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 3px;
  background-color: rgba(34, 197, 94, 0.12);
  color: #15803d;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

[data-theme="dark"] .stars-trend-badge {
  background-color: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.sparkline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: var(--tw-rule-hairline) solid var(--color-border-subtle, #ececec);
  margin-bottom: 12px;
}

[data-theme="dark"] .sparkline-wrapper {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.sparkline-svg {
  width: 100%;
  height: 34px;
  overflow: visible;
}

/* Subtle single draw on load */
@media (prefers-reduced-motion: no-preference) {
  html.js .sparkline-svg path[stroke] {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: sparklineStroke 750ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }

  html.js .sparkline-svg path[fill] {
    opacity: 0;
    animation: sparklineFade 600ms ease 150ms forwards;
  }

  @keyframes sparklineStroke {
    to { stroke-dashoffset: 0; }
  }

  @keyframes sparklineFade {
    to { opacity: 1; }
  }
}

.sparkline-meta {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--color-text-subtle, #898989);
  text-align: right;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .sparkline-meta {
  color: rgba(255, 255, 255, 0.45);
}

.sidebar-spec-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.4;
}

.spec-row dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-subtle, #898989);
  flex-shrink: 0;
}

[data-theme="dark"] .spec-row dt {
  color: rgba(255, 255, 255, 0.55);
}

.spec-row dt svg {
  color: var(--color-text-subtle, #898989);
  flex-shrink: 0;
}

[data-theme="dark"] .spec-row dt svg {
  color: rgba(255, 255, 255, 0.45);
}

.spec-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-text-main, #161616);
  text-align: right;
}

[data-theme="dark"] .spec-row dd {
  color: rgba(255, 255, 255, 0.92);
}

.spec-badge-yes {
  color: #15803d !important;
  font-weight: 600;
}

[data-theme="dark"] .spec-badge-yes {
  color: #4ade80 !important;
}

.spec-repo-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--tw-accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast, 0.2s ease);
}

.spec-repo-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   2.2 Trust signals card
   -------------------------------------------------------------------------- */
.trust-card {
  padding: 14px 18px;
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-muted, #5b5f62);
}

[data-theme="dark"] .trust-row {
  color: rgba(255, 255, 255, 0.65);
}

.trust-row svg {
  flex-shrink: 0;
  color: #16a34a;
}

[data-theme="dark"] .trust-row svg {
  color: #4ade80;
}

.trust-row strong {
  font-weight: 600;
  color: var(--color-text-main, #161616);
}

[data-theme="dark"] .trust-row strong {
  color: rgba(255, 255, 255, 0.9);
}

.trust-link {
  color: var(--tw-accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration var(--transition-fast, 0.2s ease);
}

.trust-link:hover {
  text-decoration: underline;
}


/* ==========================================================================
   §3. RIGHT COLUMN — CONTENT HEADER
   ========================================================================== */

.tool-content-col {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: var(--tw-content-max);
  display: flex;
  flex-direction: column;
}

.tool-sticky-header-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  margin-bottom: 20px;
  background-color: var(--color-bg-page, #ffffff);
  border-bottom: var(--tw-rule-hairline) solid transparent;
}

[data-theme="dark"] .tool-sticky-header-bar {
  background-color: var(--color-bg-page, #0d0d10);
}

.sticky-brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tool-avatar-box {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-xs, 4px);
  background-color: var(--color-bg-subtle, #f7f6ff);
  border: var(--tw-rule-hairline) solid var(--color-border-subtle, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-sizing: border-box;
}

[data-theme="dark"] .tool-avatar-box {
  background-color: #212126;
  border-color: rgba(255, 255, 255, 0.1);
}

.tool-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sticky-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sticky-tool-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-black, #161616);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .sticky-tool-name {
  color: var(--color-white, #ffffff);
}

.sticky-verified-seal {
  display: inline-flex;
  align-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sticky-actions-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sticky-visit-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background-color: var(--tw-accent-primary);
  color: var(--color-white, #ffffff);
  border: var(--border-thin, 1.5px) solid var(--tw-accent-primary);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.sticky-visit-cta:hover {
  background-color: var(--color-purple-hover, #8d7ff7);
  border-color: var(--color-purple-hover, #8d7ff7);
}

.sticky-visit-cta svg {
  transition: transform var(--transition-fast);
}

.sticky-visit-cta:hover svg {
  transform: translate(2px, -2px);
}

.tool-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background-color: var(--color-bg-page, #ffffff);
  border: var(--tw-rule-hairline) solid var(--color-border-subtle, #e0e0e0);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-muted, #5b5f62);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color var(--transition-fast, 0.2s ease),
    color var(--transition-fast, 0.2s ease),
    background-color var(--transition-fast, 0.2s ease);
}

[data-theme="dark"] .tool-bar-btn {
  background-color: #1a1a20;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.tool-bar-btn-icon {
  padding: 6px 8px;
}

.tool-bar-btn:hover {
  border-color: var(--tw-accent-primary);
  color: var(--tw-accent-primary);
}

.tool-bar-btn:focus-visible {
  outline: var(--border-thick, 2.5px) solid var(--tw-accent-primary);
  outline-offset: 2px;
}


/* ==========================================================================
   §4. RIGHT COLUMN — HERO BLOCKS
   ========================================================================== */

.tool-lead-deck {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.55;
  color: var(--color-text-muted, #5b5f62);
}

[data-theme="dark"] .tool-lead-deck {
  color: rgba(255, 255, 255, 0.75);
}

/* Alternatives strip */
.tool-alt-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.alt-strip-label {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--color-text-subtle, #898989);
}

[data-theme="dark"] .alt-strip-label {
  color: rgba(255, 255, 255, 0.5);
}

.alt-strip-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.alt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 3px;
  background-color: transparent;
  border: var(--tw-rule-hairline) solid var(--color-border-subtle, #e0e0e0);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-main, #161616);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color var(--transition-fast, 0.2s ease),
    background-color var(--transition-fast, 0.2s ease),
    color var(--transition-fast, 0.2s ease);
}

[data-theme="dark"] .alt-pill {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.alt-pill img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.alt-pill:hover {
  border-color: var(--tw-accent-primary);
  background-color: rgba(104, 83, 255, 0.05);
  color: var(--tw-accent-primary);
}

[data-theme="dark"] .alt-pill:hover {
  background-color: rgba(169, 161, 232, 0.08);
  color: var(--color-purple-primary, #a9a1e8);
}

/* Extra pills — hidden until expanded (state toggled by directory-tool.js) */
.alt-pill-extra {
  display: none;
}

.alt-strip-pills.is-expanded .alt-pill-extra {
  display: inline-flex;
}

.alt-pill-more {
  font-weight: 600;
  color: var(--color-text-subtle, #898989);
  background: transparent;
  font-family: var(--font-body);
}

[data-theme="dark"] .alt-pill-more {
  color: rgba(255, 255, 255, 0.55);
}

/* Primary CTA */
.tool-main-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tool-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 2px;
  background-color: var(--color-black, #161616);
  color: var(--color-white, #ffffff);
  border: var(--border-thin, 1.5px) solid var(--color-black, #161616);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color var(--transition-fast, 0.2s ease),
    border-color var(--transition-fast, 0.2s ease),
    color var(--transition-fast, 0.2s ease);
}

[data-theme="dark"] .tool-launch-btn {
  background-color: var(--color-white, #ffffff);
  color: var(--color-black, #161616);
  border-color: var(--color-white, #ffffff);
}

.tool-launch-btn:hover {
  background-color: var(--tw-accent-primary);
  border-color: var(--tw-accent-primary);
  color: var(--color-white, #ffffff);
}

.tool-launch-btn svg {
  transition: transform var(--transition-fast);
}

.tool-launch-btn:hover svg {
  transform: translate(2px, -2px);
}

.tool-screenshot-frame {
  margin: 0 0 40px;
  width: 100%;
}

.screenshot-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xs, 4px);
  overflow: hidden;
  border: var(--tw-rule-hairline) solid var(--color-border-subtle, #e0e0e0);
  background-color: #0b0d11;
}

[data-theme="dark"] .screenshot-media {
  border-color: rgba(255, 255, 255, 0.08);
}

.screenshot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ==========================================================================
   §5. RIGHT COLUMN — EDITORIAL BODY
   Typography scale matches blog-post.css §4 exactly.
   ========================================================================== */

.tool-editorial-body {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.tool-prose-block {
  margin-bottom: 40px;
}

.tool-prose-block p {
  margin: 0 0 var(--tw-md);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted, #5b5f62);
}

.tool-prose-block p:last-child {
  margin-bottom: 0;
}

[data-theme="dark"] .tool-prose-block p {
  color: rgba(255, 255, 255, 0.75);
}

/* Lead — matches blog-post .post-lead exactly */
.editorial-lede {
  font-size: 18px !important;
  line-height: 1.6 !important;
  font-weight: 600 !important;
  letter-spacing: -0.008em;
  color: var(--color-text-main, #161616) !important;
}

[data-theme="dark"] .editorial-lede {
  color: #e4e4e7 !important;
}

.editorial-section {
  margin-bottom: 48px;
}

.editorial-section:last-of-type {
  margin-bottom: 0;
}

/* Section title — matches blog-post > h2 (38px) */
.editorial-section-title {
  margin: 0 0 var(--tw-md);
  padding-bottom: 14px;
  border-bottom: var(--tw-rule-strong) solid var(--color-black, #161616);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: var(--color-black, #161616);
  scroll-margin-top: 110px;
  text-wrap: balance;
}

[data-theme="dark"] .editorial-section-title {
  border-bottom-color: var(--color-white, #ffffff);
  color: var(--color-white, #ffffff);
}

.editorial-section-caution .editorial-section-title {
  border-bottom-color: var(--tw-accent-warm);
}

.editorial-subsection {
  margin-bottom: 28px;
}

.editorial-subsection:last-child {
  margin-bottom: 0;
}

/* Subsection title — matches blog-post > h4 (18px body font) */
.editorial-subsection-title {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-text-main, #161616);
  scroll-margin-top: 110px;
}

[data-theme="dark"] .editorial-subsection-title {
  color: var(--color-white, #ffffff);
}

.editorial-subsection p {
  margin: 0 0 var(--tw-md);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted, #5b5f62);
}

.editorial-subsection p:last-child {
  margin-bottom: 0;
}

[data-theme="dark"] .editorial-subsection p {
  color: rgba(255, 255, 255, 0.75);
}

.editorial-subsection a {
  color: var(--tw-accent-primary);
  text-decoration: underline;
  text-decoration-color: rgba(104, 83, 255, 0.35);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--transition-fast, 0.2s ease);
}

.editorial-subsection a:hover {
  color: var(--color-black, #161616);
}

[data-theme="dark"] .editorial-subsection a {
  text-decoration-color: rgba(169, 161, 232, 0.4);
}

[data-theme="dark"] .editorial-subsection a:hover {
  color: var(--color-white, #ffffff);
}

.editorial-list {
  margin: var(--tw-md) 0 var(--tw-lg);
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editorial-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted, #5b5f62);
}

[data-theme="dark"] .editorial-list li {
  color: rgba(255, 255, 255, 0.75);
}

.editorial-list li strong {
  color: var(--color-text-main, #161616);
  font-weight: 600;
}

[data-theme="dark"] .editorial-list li strong {
  color: var(--color-white, #ffffff);
}

.editorial-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--tw-accent-primary);
}

.editorial-verdict {
  margin-top: 64px;
  padding-top: 44px;
  border-top: var(--tw-rule-strong) solid var(--color-black, #161616);
}

[data-theme="dark"] .editorial-verdict {
  border-top-color: var(--color-white, #ffffff);
}

.editorial-verdict-title {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--color-black, #161616);
  text-wrap: balance;
}

[data-theme="dark"] .editorial-verdict-title {
  color: var(--color-white, #ffffff);
}

.editorial-verdict-lede {
  margin: 0 0 36px;
  max-width: 720px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text-main, #161616);
}

[data-theme="dark"] .editorial-verdict-lede {
  color: rgba(255, 255, 255, 0.88);
}

.verdict-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.verdict-col {
  padding: var(--tw-md) var(--tw-md) var(--tw-md) var(--tw-lg);
  box-sizing: border-box;
}

.verdict-col-yes {
  background-color: rgba(104, 83, 255, 0.05);
  border-left: 4px solid var(--tw-accent-primary);
}

[data-theme="dark"] .verdict-col-yes {
  background-color: rgba(169, 161, 232, 0.06);
}

.verdict-col-no {
  background-color: rgba(200, 128, 31, 0.05);
  border-left: 4px solid var(--tw-accent-warm);
}

[data-theme="dark"] .verdict-col-no {
  background-color: rgba(224, 165, 58, 0.06);
}

.verdict-col-title {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-black, #161616);
}

[data-theme="dark"] .verdict-col-title {
  color: var(--color-white, #ffffff);
}

.verdict-col-yes .verdict-col-title {
  color: var(--tw-accent-primary);
}

.verdict-col-no .verdict-col-title {
  color: var(--tw-accent-warm);
}

.verdict-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verdict-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-main, #161616);
}

[data-theme="dark"] .verdict-list li {
  color: rgba(255, 255, 255, 0.85);
}

.verdict-col-yes .verdict-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--tw-accent-primary);
}

.verdict-col-no .verdict-list li::before {
  content: "−";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--tw-accent-warm);
}

/* Verdict followed by a new section (e.g. FAQ) — give it breathing room */
.editorial-verdict+.editorial-section {
  margin-top: 80px;
}


/* ==========================================================================
   §5.1 INLINE FAQ ACCORDION
   Structure matches main.js initFaqAccordions() — single-open, delegated.
   Markup lives inside .tool-editorial-body > .editorial-section.
   ========================================================================== */

.tool-editorial-body .editorial-section .faq-stack-col {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
}

.tool-editorial-body .faq-item {
  border-bottom: var(--tw-rule-hairline) solid var(--color-border-subtle, #eae7f5);
  transition: border-color var(--transition-fast, 0.2s ease);
}

.tool-editorial-body .faq-item:first-child {
  border-top: var(--tw-rule-hairline) solid var(--color-border-subtle, #eae7f5);
}

[data-theme="dark"] .tool-editorial-body .faq-item,
[data-theme="dark"] .tool-editorial-body .faq-item:first-child {
  border-color: rgba(255, 255, 255, 0.08);
}

.tool-editorial-body .faq-trigger {
  width: 100%;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.tool-editorial-body .faq-question-text {
  font-family: var(--font-heading);
  font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-black, #0d0d10);
  transition: color var(--transition-fast, 0.2s ease);
}

[data-theme="dark"] .tool-editorial-body .faq-question-text {
  color: var(--color-white, #ffffff);
}

.tool-editorial-body .faq-trigger:hover .faq-question-text {
  color: var(--color-purple-accent, #6853ff);
}

[data-theme="dark"] .tool-editorial-body .faq-trigger:hover .faq-question-text {
  color: var(--color-purple-primary, #a294ff);
}

.tool-editorial-body .faq-trigger:focus-visible {
  outline: var(--border-thick, 2.5px) solid var(--color-purple-accent, #6853ff);
  outline-offset: 4px;
  border-radius: 3px;
}

.tool-editorial-body .faq-icon-disc {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background-color: rgba(104, 83, 255, 0.08);
  color: var(--color-purple-accent, #6853ff);
  transition:
    background-color var(--transition-fast, 0.2s ease),
    color var(--transition-fast, 0.2s ease),
    transform var(--transition-fast, 0.2s ease);
}

[data-theme="dark"] .tool-editorial-body .faq-icon-disc {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white, #ffffff);
}

.tool-editorial-body .faq-plus-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-editorial-body .faq-item.is-open .faq-icon-disc {
  background-color: var(--color-black, #0d0d10);
  color: var(--color-white, #ffffff);
}

[data-theme="dark"] .tool-editorial-body .faq-item.is-open .faq-icon-disc {
  background-color: var(--color-purple-primary, #a294ff);
  color: var(--color-black, #0d0d10);
}

.tool-editorial-body .faq-item.is-open .faq-plus-icon {
  transform: rotate(45deg);
}

.tool-editorial-body .faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tool-editorial-body .faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.tool-editorial-body .faq-panel-inner {
  overflow: hidden;
}

.tool-editorial-body .faq-answer-text {
  font-family: var(--font-body);
  font-size: clamp(13.5px, 0.2vw + 12.1px, 14.5px);
  line-height: 1.65;
  color: var(--color-text-muted, #5a5870);
  padding-bottom: 22px;
  max-width: 620px;
  margin: 0;
}

[data-theme="dark"] .tool-editorial-body .faq-answer-text {
  color: rgba(255, 255, 255, 0.7);
}


/* ==========================================================================
   §6. BOTTOM UTILITY BAR
   ========================================================================== */

.tool-bottom-utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: var(--tw-rule-hairline) solid var(--color-border-subtle, #e0e0e0);
  flex-wrap: wrap;
}

[data-theme="dark"] .tool-bottom-utility-bar {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.tool-copy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background-color: var(--color-bg-page, #ffffff);
  border: var(--tw-rule-hairline) solid var(--color-border-subtle, #e0e0e0);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted, #5b5f62);
  cursor: pointer;
  transition:
    border-color var(--transition-fast, 0.2s ease),
    color var(--transition-fast, 0.2s ease),
    background-color var(--transition-fast, 0.2s ease);
}

[data-theme="dark"] .tool-copy-link-btn {
  background-color: #1a1a20;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.tool-copy-link-btn:hover {
  border-color: var(--tw-accent-primary);
  color: var(--tw-accent-primary);
}

.tool-copy-link-btn:focus-visible {
  outline: var(--border-thick, 2.5px) solid var(--tw-accent-primary);
  outline-offset: 2px;
}

/* Copied state — green "done" feel */
.tool-copy-link-btn.is-copied {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
}

[data-theme="dark"] .tool-copy-link-btn.is-copied {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

/* Icon swap — copy → check */
.tool-copy-link-btn .copy-check-icon {
  display: none;
  width: 13px;
  height: 13px;
}

.tool-copy-link-btn.is-copied .copy-link-icon {
  display: none;
}

.tool-copy-link-btn.is-copied .copy-check-icon {
  display: block;
}

.key-shortcut-hint {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  background-color: var(--color-bg-subtle, #f7f6ff);
  border: var(--tw-rule-hairline) solid var(--color-border-subtle, #cecece);
  border-radius: 3px;
  margin-left: 2px;
}

[data-theme="dark"] .key-shortcut-hint {
  background-color: #212126;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f4f4f6;
}

.tool-copy-link-btn.is-copied .key-shortcut-hint {
  opacity: 0.5;
}

.utility-share-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-subtle, #898989);
  white-space: nowrap;
}

[data-theme="dark"] .share-label {
  color: rgba(255, 255, 255, 0.5);
}

.share-icon-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background-color: var(--color-bg-subtle, #f7f6ff);
  border: var(--tw-rule-hairline) solid var(--color-border-subtle, #e0e0e0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted, #5b5f62);
  text-decoration: none;
  transition:
    border-color var(--transition-fast, 0.2s ease),
    color var(--transition-fast, 0.2s ease),
    background-color var(--transition-fast, 0.2s ease);
}

[data-theme="dark"] .share-icon-btn {
  background-color: #1a1a20;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.share-icon-btn:hover {
  border-color: var(--tw-accent-primary);
  color: var(--tw-accent-primary);
  background-color: rgba(104, 83, 255, 0.06);
}

[data-theme="dark"] .share-icon-btn:hover {
  background-color: rgba(169, 161, 232, 0.1);
}

.share-icon-btn:focus-visible {
  outline: var(--border-thick, 2.5px) solid var(--tw-accent-primary);
  outline-offset: 2px;
}


/* ==========================================================================
   §7. SIMILAR PROJECTS SECTION
   Uses .tool-spec-card styling so cards render identically to the
   directory grid. Header follows the same eyebrow + title pattern
   used on the blog post page.
   ========================================================================== */

.tool-similar-section {
  width: 100%;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(64px, 8vw, 104px);
  border-top: var(--tw-rule-hairline) solid var(--color-border-subtle, #e0e0e0);
  background-color: var(--color-bg-page, #ffffff);
  box-sizing: border-box;
}

[data-theme="dark"] .tool-similar-section {
  background-color: var(--color-bg-page, #0d0d10);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.tool-similar-container {
  width: 100%;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding-left: var(--section-px, 32px);
  padding-right: var(--section-px, 32px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.tool-similar-header {
  margin-bottom: 32px;
}

.similar-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-purple-accent, #6853ff);
}

[data-theme="dark"] .similar-eyebrow {
  color: var(--color-purple-primary, #a9a1e8);
}

.similar-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-black, #161616);
  text-wrap: balance;
}

[data-theme="dark"] .similar-title {
  color: var(--color-white, #ffffff);
}

.similar-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Tool spec card (shared with directory grid + sidebar hover card)
   -------------------------------------------------------------------------- */
.tool-spec-card {
  position: relative;
  background-color: var(--color-white, #ffffff);
  border: var(--tw-rule-hairline) solid var(--color-border-divider, #cecece);
  border-radius: var(--radius-xs, 4px);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  height: 236px;
  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

[data-theme="dark"] .tool-spec-card {
  background-color: var(--color-bg-alt, #16161a);
  border-color: rgba(255, 255, 255, 0.1);
}

.tool-spec-card:hover {
  border-color: var(--tw-accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(104, 83, 255, 0.14);
}

[data-theme="dark"] .tool-spec-card:hover {
  border-color: var(--color-purple-primary, #a9a1e8);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}

.tool-card-hitbox {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.tool-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tool-squircle-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs, 4px);
  padding: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: var(--tw-rule-hairline) solid var(--color-border-subtle, #e0e0e0);
}

[data-theme="dark"] .tool-squircle-icon {
  background-color: #1e1e24;
  border-color: rgba(255, 255, 255, 0.12);
}

.tool-squircle-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.tool-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tool-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-black, #161616);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .tool-name {
  color: #ffffff;
}

.tool-verified-check {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tool-badge-pill,
.tool-category-link {
  border-radius: 3px !important;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

[data-theme="dark"] .tool-badge-pill,
[data-theme="dark"] .tool-category-link {
  background-color: rgba(169, 161, 232, 0.1);
  border-color: rgba(169, 161, 232, 0.2);
  color: var(--color-purple-primary, #a9a1e8);
}

.tool-dual-stage {
  position: relative;
  flex: 1;
  width: 100%;
}

.tool-face-resting {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: auto;
}

.tool-desc-short {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted, #5b5f62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="dark"] .tool-desc-short {
  color: rgba(255, 255, 255, 0.65);
}

.tool-stats-strip {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
}

.tool-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-body);
  font-size: 12px;
}

.stat-label {
  color: var(--color-text-subtle, #898989);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .stat-label {
  color: rgba(255, 255, 255, 0.45);
}

.stat-dot-leader {
  flex: 1;
  margin: 0 6px;
  border-bottom: 1px dotted var(--color-border-divider, #cecece);
  height: 1px;
  align-self: center;
}

[data-theme="dark"] .stat-dot-leader {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.stat-value {
  color: var(--color-text-main, #161616);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .stat-value {
  color: rgba(255, 255, 255, 0.85);
}

.stat-value-stars {
  color: var(--color-purple-accent, #6853ff);
  font-weight: 600;
}

[data-theme="dark"] .stat-value-stars {
  color: var(--color-purple-primary, #a9a1e8);
}

.tool-face-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.tool-desc-expanded {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-text-main, #161616);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

[data-theme="dark"] .tool-desc-expanded {
  color: rgba(255, 255, 255, 0.9);
}

.tool-alt-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.tool-alt-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-subtle, #898989);
}

[data-theme="dark"] .tool-alt-label {
  color: rgba(255, 255, 255, 0.5);
}

.tool-alt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background-color: #212128;
  border: var(--tw-rule-hairline) solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

[data-theme="dark"] .tool-alt-badge {
  background-color: rgba(169, 161, 232, 0.12);
  border-color: rgba(169, 161, 232, 0.25);
  color: var(--color-purple-primary, #a9a1e8);
}

.tool-spec-card:hover .tool-face-resting {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.tool-spec-card:hover .tool-face-hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* ==========================================================================
   §8. UTILITY STATES TOGGLED BY JS
   ========================================================================== */

/* ---- Share button — brief success flash (uses .is-copied) ---- */
.tool-bar-btn.is-copied {
  color: var(--color-purple-accent, #6853ff);
  background: rgba(104, 83, 255, 0.08);
  border-color: rgba(104, 83, 255, 0.25);
}

[data-theme="dark"] .tool-bar-btn.is-copied {
  color: var(--color-purple-primary, #a294ff);
  background: rgba(162, 148, 255, 0.12);
  border-color: rgba(162, 148, 255, 0.3);
}

/* ---- Sticky bar — subtle elevation on scroll (kept, muted) ---- */
.tool-sticky-header-bar.is-stuck {
  border-bottom-color: var(--color-border-subtle, #eae7f5);
}

[data-theme="dark"] .tool-sticky-header-bar.is-stuck {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   §9. ACCESSIBILITY UTILITIES
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — hidden until focused via keyboard */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--color-black, #0d0d10);
  color: var(--color-white, #ffffff);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transform: translateY(-120%);
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: var(--border-thick, 2.5px) solid var(--color-purple-accent, #6853ff);
  outline-offset: 2px;
}

[data-theme="dark"] .skip-link {
  background: var(--color-white, #ffffff);
  color: var(--color-black, #0d0d10);
}

/* Main landmark — remove default focus outline when skip-link targets it */
#main-content:focus {
  outline: none;
}


/* ==========================================================================
   §10. RESPONSIVE
   ========================================================================== */

@media (max-width: 1023px) {
  :root {
    --section-px: 24px;
  }

  .tool-workspace-section {
    margin-top: -80px;
    padding-top: 104px;
  }

  .tool-workspace-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tool-sidebar-col {
    position: static;
    order: 2;
    margin-top: 48px;
  }

  .tool-content-col {
    order: 1;
  }

  /* GitHub card is moved into content flow via JS on tablet/mobile —
     give it breathing room above and below. Selector only matches when
     the card is a direct child of .tool-content-col (i.e. after the move),
     so desktop is unaffected. */
  .tool-content-col>.github-activity-card {
    margin-top: 24px;
    margin-bottom: 40px;
  }

  .featured-icons-grid {
    grid-template-columns: repeat(10, 1fr);
    max-width: 100%;
  }

  /* Disable hover card on tablet (touch has no reliable hover) */
  .featured-icon-slot .tool-spec-card {
    display: none;
  }

  /* Section title scales down to match blog-post tablet */
  .editorial-section-title {
    font-size: clamp(28px, 3.8vw, 34px);
  }

  .editorial-subsection-title {
    font-size: 17.5px;
  }

  .editorial-subsection p,
  .editorial-list li {
    font-size: 17px;
    line-height: 1.68;
  }

  .editorial-verdict-lede {
    font-size: 17px;
  }

  /* Similar projects — 2 columns, tighter top padding, centered header */
  .similar-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .similar-card-grid>.tool-spec-card:last-child {
    display: none;
  }

  .tool-similar-section {
    padding-top: 20px;
  }

  .tool-similar-header {
    text-align: center;
  }
}

@media (max-width: 599px) {
  :root {
    --section-px: 18px;
  }

  .tool-workspace-section {
    margin-top: -72px;
    padding-top: 88px;
  }

  .tool-sticky-header-bar {
    padding: 10px 0;
    gap: 10px;
  }

  .sticky-tool-name {
    font-size: 20px;
  }

  .tool-avatar-box {
    width: 34px;
    height: 34px;
  }

  .tool-bar-btn span {
    display: none;
  }

  .tool-bar-btn {
    padding: 6px 8px;
  }

  .tool-lead-deck {
    font-size: 15.5px;
  }

  .alt-strip-pills {
    gap: 5px;
  }

  .alt-pill {
    padding: 4px 9px;
    font-size: 12px;
  }

  .tool-main-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-launch-btn {
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
  }

  .featured-icons-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }

  /* Content typography for mobile — matches blog-post mobile block */
  .tool-prose-block p,
  .editorial-subsection p,
  .editorial-list li {
    font-size: 16px;
    line-height: 1.65;
  }

  .editorial-lede {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .editorial-section-title {
    font-size: clamp(23px, 6.2vw, 27px);
    padding-bottom: 12px;
    margin-bottom: 20px;
    scroll-margin-top: 76px;
  }

  .editorial-subsection-title {
    font-size: 16.5px;
    scroll-margin-top: 76px;
  }

  .editorial-verdict {
    margin-top: 48px;
    padding-top: 32px;
  }

  .editorial-verdict+.editorial-section {
    margin-top: 52px;
  }

  .editorial-verdict-title {
    font-size: 24px;
  }

  .editorial-verdict-lede {
    font-size: 16px;
    margin-bottom: 26px;
  }

  .verdict-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .verdict-col {
    padding: 18px 18px 18px 22px;
  }

  .verdict-list li {
    font-size: 14.5px;
  }

  /* Bottom utility bar — stack and stretch on mobile */
  .tool-bottom-utility-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .utility-left-actions {
    width: 100%;
  }

  .tool-copy-link-btn {
    width: 100%;
    justify-content: center;
  }

  .utility-share-group {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .share-icon-links {
    width: 100%;
    gap: 8px;
  }

  .share-icon-btn {
    width: 40px;
    height: 40px;
    flex: 1 1 auto;
    max-width: 56px;
  }

  /* Similar projects — 1 column, tighter spacing */
  .tool-similar-header {
    margin-bottom: 24px;
  }

  .similar-title {
    font-size: 22px;
  }

  .similar-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .similar-card-grid>.tool-spec-card:last-child {
    display: flex;
  }

  .tool-similar-section {
    padding-top: 20px;
    padding-bottom: 56px;
  }
}

@media (max-width: 400px) {
  :root {
    --section-px: 14px;
  }

  .sticky-visit-cta span {
    display: none;
  }

  .sticky-visit-cta {
    padding: 6px 8px;
  }

  .tool-bar-btn-icon:last-child {
    display: none;
  }

  .editorial-lede {
    font-size: 15.5px !important;
  }

  .editorial-section-title {
    font-size: 20px;
  }

  .featured-icons-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}


/* ==========================================================================
   §11. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}