/*
Theme Name: Narzedzia IT Classic
Theme URI: https://narzedzia.it
Author: narzedzia.it
Author URI: https://narzedzia.it
Description: Klasyczny motyw WordPress oparty o landing page narzedzia.it, z szerokim wykorzystaniem theme.json.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: narzedzia-it-classic
*/

:root {
  --site-radius: var(--wp--custom--radius--md, 10px);
  --site-radius-lg: var(--wp--custom--radius--lg, 20px);
  --shadow-card: var(--wp--preset--shadow--card, 0 8px 24px -8px rgba(12, 24, 55, 0.14));
  --shadow-elegant: var(--wp--preset--shadow--elegant, 0 10px 40px -12px rgba(33, 68, 170, 0.28));
  --gradient-hero: var(--wp--preset--gradient--hero, linear-gradient(135deg, #18253f 0%, #314f9a 60%, #4a73d1 100%));
  --gradient-subtle: var(--wp--preset--gradient--subtle, linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--wp--style--global--wide-size, 1120px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--border) 75%, transparent);
  background: color-mix(in srgb, var(--wp--preset--color--background) 85%, transparent);
  backdrop-filter: blur(10px);
  overflow: hidden;
  height: 80px;
}

body {
  padding-top: 80px;
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
}

.brand__logo {
  height: 75px;
  width: auto;
  object-fit: contain;
}

/* Mobile menu toggle - hidden on desktop */
.mobile-menu-toggle {
  display: none;
}

/* Desktop: menu items visible inline */
.site-header__menu {
  display: contents;
}

@media (max-width: 768px) {
  .brand__logo {
    height: 70px;
  }
  .site-header {
    height: 80px;
    overflow: visible;
  }
  body {
    padding-top: 80px;
  }

  /* Hamburger button */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    margin-left: auto;
  }

  .hamburger,
  .hamburger::before,
  .hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .hamburger {
    position: relative;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .hamburger::before {
    top: -7px;
  }

  .hamburger::after {
    top: 7px;
  }

  /* Open state - X icon */
  .mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }

  .mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* Mobile menu panel */
  .site-header__menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: calc(100dvh - 80px);
    background: var(--wp--preset--color--background, #fff);
    padding: 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 9999;
  }

  .site-header__menu.is-open {
    transform: translateX(0);
  }

  .site-header__menu .site-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .site-header__menu .site-nav {
    display: block;
  }

  .site-header__menu .site-nav a {
    font-size: 1.25rem;
    display: block;
    padding: 0.65rem 1rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    border-radius: 0 0.4rem 0.4rem 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .site-header__menu .site-nav a:hover,
  .site-header__menu .site-nav a:focus-visible {
    background: rgba(37, 99, 235, 0.08);
    color: var(--wp--preset--color--foreground);
  }

  .site-header__menu .site-nav li.current-menu-item > a,
  .site-header__menu .site-nav li.current_page_item > a,
  .site-header__menu .site-nav li.current-menu-ancestor > a {
    border-left-color: var(--wp--preset--color--primary, #2563eb);
    border-bottom-color: transparent;
    color: var(--wp--preset--color--foreground);
  }
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  color: var(--wp--preset--color--primary-contrast);
  background: var(--gradient-hero);
  box-shadow: var(--shadow-elegant);
}

.brand__dot {
  color: var(--wp--preset--color--primary);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.brand__tagline {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.7;
}

.menu-primary-container ul,
.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--wp--preset--color--muted);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--wp--preset--color--foreground);
  background: rgba(37, 99, 235, 0.08);
  border-radius: 0.4rem;
}

.site-nav li.current-menu-item > a,
.site-nav li.current_page_item > a,
.site-nav li.current-menu-ancestor > a {
  color: var(--wp--preset--color--foreground);
  border-bottom-color: var(--wp--preset--color--primary, #2563eb);
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 0.6rem;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.button--primary {
  color: var(--wp--preset--color--primary-contrast);
  background: var(--wp--preset--color--primary);
  box-shadow: var(--shadow-elegant);
}

.button--light {
  color: var(--wp--preset--color--primary);
  background: #fff;
}

.button--outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--wp--preset--color--primary-contrast);
  background: var(--gradient-hero);
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero__overlay {
  background:
    linear-gradient(120deg, color-mix(in srgb, #18253f 90%, transparent) 0%, color-mix(in srgb, #18253f 66%, transparent) 55%, color-mix(in srgb, #314f9a 36%, transparent) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero h1,
.section-head h2,
.benefits__title,
.cta h2 {
  letter-spacing: -0.02em;
}

.hero h1,
.tool-hero h1,
.tool-hero__title,
.cta h2 {
  color: var(--wp--preset--color--primary-contrast);
}

.hero__lead {
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.84);
}

.section {
  padding-block: clamp(3.8rem, 8vw, 6rem);
}

.section--subtle {
  background: var(--gradient-subtle);
}

.section--bordered {
  border-top: 1px solid var(--wp--preset--color--border);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.section-head {
  max-width: 44rem;
}

.section-head__eyebrow {
  margin: 0;
  color: var(--wp--preset--color--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
}

.section-head h2 {
  margin: 0.65rem 0 0;
}

.section-head p {
  margin: 0.85rem 0 0;
  color: var(--wp--preset--color--muted);
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--surface);
  border-radius: var(--site-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, var(--wp--preset--color--border));
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.card__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  color: var(--wp--preset--color--foreground);
  background: color-mix(in srgb, var(--wp--preset--color--background) 55%, var(--wp--preset--color--surface));
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--border) 75%, transparent);
}

.card__icon svg,
.eyebrow svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card p,
.benefits ul,
.site-footer {
  color: var(--wp--preset--color--muted);
}

.services .card {
  position: relative;
}

.services .card__index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: color-mix(in srgb, var(--wp--preset--color--muted) 70%, transparent);
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.services__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.services__cta .button {
  background: rgba(37, 99, 235, 0.07);
  color: var(--wp--preset--color--foreground);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-left: 4px solid var(--wp--preset--color--primary, #2563eb);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1.4rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.services__cta .button:hover,
.services__cta .button:focus-visible {
  background: rgba(37, 99, 235, 0.14);
  border-color: var(--wp--preset--color--primary, #2563eb);
  border-left-color: var(--wp--preset--color--primary, #2563eb);
  color: var(--wp--preset--color--foreground);
}

.benefits {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
}

.benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.benefits li {
  border: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--surface);
  border-radius: var(--site-radius);
  padding: 0.9rem 1rem;
}

.cta-wrap {
  padding-inline: 1rem;
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.cta {
  position: relative;
  overflow: hidden;
  max-width: var(--wp--style--global--wide-size, 1120px);
  margin-inline: auto;
  border-radius: 1.8rem;
  color: var(--wp--preset--color--primary-contrast);
  background: var(--gradient-hero);
  box-shadow: var(--shadow-elegant);
  text-align: center;
  padding: clamp(2.2rem, 6vw, 4.8rem) 1.5rem;
}

.cta__lead {
  max-width: 44rem;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.82);
}

.cta form {
  margin: 1.4rem auto 0;
  max-width: 36rem;
  display: flex;
  gap: 0.65rem;
}

.cta input[type="email"] {
  flex: 1;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.8rem 1rem;
}

.cta input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.cta__turnstile {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--wp--preset--color--border);
  padding-block: 1.3rem;
}

.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-list {
  display: grid;
  gap: 1rem;
}

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

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .grid-2,
  .grid-4,
  .benefits ul,
  .cta form {
    grid-template-columns: 1fr;
  }

  .cta form {
    flex-direction: column;
  }

  .site-footer__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Single Tool Template Styles
   ========================================================================== */

/* Universal SVG Icon styles inside tool page */
.tool-detail svg,
.tool-hero svg,
.tool-meta-grid svg,
.pros-cons-grid svg,
.features-grid svg,
.sidebar-list svg,
.alternative-card svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.pros-box__title svg,
.cons-box__title svg {
  width: 1.3rem;
  height: 1.3rem;
}

.tool-hero {
  background: var(--gradient-hero);
  color: var(--wp--preset--color--primary-contrast);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.tool-hero > .container {
  position: relative;
  z-index: 2;
}

.tool-hero--has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tool-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 80%);
}

.tool-hero--has-bg::before {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 100%) !important;
  opacity: 1 !important;
  mask-image: none !important;
}

.tool-hero__logo {
  display: block;
  max-width: 140px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--site-radius);
}

.tool-hero__row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.tool-hero__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-hero__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.tool-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.tool-hero__badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tool-hero__badge:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.tool-hero__desc {
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.tool-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.button--affiliate {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.button__text-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.button__title {
  display: block;
}

.button__subtitle {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
  font-style: italic;
}

.tool-hero__media {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.tool-hero__image-wrapper {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--site-radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-elegant);
  max-width: 100%;
}

.tool-hero__image-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--site-radius);
}

.tool-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: -2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}

.tool-meta-card {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--site-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tool-meta-card__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--muted);
}

.tool-meta-card__label svg {
  width: 1.05rem;
  height: 1.05rem;
}

.tool-meta-card__value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wp--preset--color--foreground);
}

.single-tool-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  align-items: start;
}

.single-tool-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.single-tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 150px;
}

.tool-section {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--site-radius-lg);
  padding: 2rem;
}

.tool-section__title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding-bottom: 0.75rem;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pros-box, .cons-box {
  border-radius: var(--site-radius);
  padding: 1.25rem;
}

.pros-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.cons-box {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.pros-box__title, .cons-box__title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pros-box__title { color: #059669; }
.cons-box__title { color: #dc2626; }

.pros-box ul, .cons-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

.pros-box li, .cons-box li {
  margin-bottom: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-box {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--site-radius);
  padding: 1.25rem;
  background: var(--wp--preset--color--background);
}

.feature-box__title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wp--preset--color--foreground);
}

.feature-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

.feature-box li {
  margin-bottom: 0.5rem;
}

.sidebar-box {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--site-radius-lg);
  padding: 1.5rem;
}

.sidebar-box__title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding-bottom: 0.5rem;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--wp--preset--color--muted);
}

.sidebar-list__icon {
  color: var(--wp--preset--color--primary);
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 0.15rem;
}

.sidebar-list__icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.sidebar-list__label {
  font-weight: 600;
  color: var(--wp--preset--color--foreground);
}

.alternative-card {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--site-radius);
  padding: 0.75rem 1rem;
  background: var(--wp--preset--color--background);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  font-weight: 600;
  font-size: 0.9rem;
}

.alternative-card:hover {
  border-color: var(--wp--preset--color--primary);
  background: var(--wp--preset--color--surface);
}

.alternative-card__arrow {
  color: var(--wp--preset--color--primary);
  font-size: 1.1rem;
}

@media (max-width: 980px) {
  .single-tool-layout,
  .tool-archive-grid {
    grid-template-columns: 1fr;
  }
  .tool-hero__row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tool-hero__media {
    max-width: 480px;
    margin: 0;
    justify-content: flex-start;
  }
  .tool-hero__logo {
    max-width: 90px;
    max-height: 90px;
  }
}

@media (max-width: 600px) {
  .pros-cons-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .tool-meta-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-top: 2rem;
  }
}


/* ==========================================================================
   Post Related Tools (single.php)
   ========================================================================== */

.post-related-tools {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--wp--preset--color--border);
}

.post-related-tools h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.post-related-tools__grid {
  display: grid;
  gap: 1rem;
}

.post-related-tools__card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--site-radius);
  padding: 1.25rem;
  background: var(--wp--preset--color--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-related-tools__card:hover {
  border-color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, var(--wp--preset--color--border));
  box-shadow: var(--shadow-card);
}

.post-related-tools__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.post-related-tools__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-related-tools__content {
  flex: 1;
  min-width: 0;
}

.post-related-tools__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.post-related-tools__title a {
  text-decoration: none;
  color: var(--wp--preset--color--foreground);
}

.post-related-tools__title a:hover {
  color: var(--wp--preset--color--primary);
}

.post-related-tools__desc {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.5;
}

.post-related-tools__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

.post-related-tools__link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Tool Related Content (single-tool.php)
   ========================================================================== */

.tool-related-content {
  margin-bottom: 3rem;
}

.tool-related-content__group {
  margin-bottom: 1.5rem;
}

.tool-related-content__group:last-child {
  margin-bottom: 0;
}

.tool-related-content__subtitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--wp--preset--color--foreground);
}

.tool-related-content__subtitle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--wp--preset--color--primary);
}

.tool-related-content__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-related-content__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--site-radius);
  background: var(--wp--preset--color--background);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tool-related-content__list li:hover {
  border-color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, var(--wp--preset--color--border));
  background: var(--wp--preset--color--surface);
}

.tool-related-content__list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wp--preset--color--foreground);
}

.tool-related-content__list a:hover {
  color: var(--wp--preset--color--primary);
}

.tool-related-content__list time {
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
  white-space: nowrap;
}

.tool-related-content__badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent);
  color: var(--wp--preset--color--primary);
  white-space: nowrap;
}

/* ==========================================================================
   Case Study & Setup – Tool Cards & Meta
   ========================================================================== */

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--site-radius);
  background: var(--wp--preset--color--background);
}

.cs-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--foreground);
}

.cs-meta__item svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--wp--preset--color--primary);
}

.cs-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wp--preset--color--border);
}

.cs-section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.cs-tools-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wp--preset--color--border);
}

.cs-tools-section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.cs-tools-grid {
  display: grid;
  gap: 1rem;
}

.cs-tool-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--site-radius);
  padding: 1.25rem;
  background: var(--wp--preset--color--background);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-tool-card:hover {
  border-color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, var(--wp--preset--color--border));
  box-shadow: var(--shadow-card);
}

.cs-tool-card--selected {
  border-color: color-mix(in srgb, var(--wp--preset--color--primary) 30%, var(--wp--preset--color--border));
  background: color-mix(in srgb, var(--wp--preset--color--primary) 4%, var(--wp--preset--color--background));
}

.cs-tool-card__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.cs-tool-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-tool-card__content {
  flex: 1;
  min-width: 0;
}

.cs-tool-card__title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.cs-tool-card__title a {
  text-decoration: none;
  color: var(--wp--preset--color--foreground);
}

.cs-tool-card__title a:hover {
  color: var(--wp--preset--color--primary);
}

.cs-tool-card__desc {
  margin: 0 0 0.5rem;
  font-size: 0.825rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.5;
}

.cs-tool-card__link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

.cs-tool-card__link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Tool Reviews Section (single-tool.php)
   ========================================================================== */

.tool-reviews-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tool-reviews-section__header .tool-section__title {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.tool-reviews-section__empty {
  color: var(--wp--preset--color--muted);
  font-style: italic;
}

.tool-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.review-card {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--site-radius);
  padding: 1.5rem;
  background: var(--wp--preset--color--background);
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.review-card__author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.review-card__author a {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

.review-card__author a:hover {
  text-decoration: underline;
}

.review-card__duration {
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
}

.review-card__recommendation {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.review-card__recommendation--strongly_yes,
.review-card__recommendation--yes {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.review-card__recommendation--meh {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.review-card__recommendation--no,
.review-card__recommendation--strongly_no {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.review-card__body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--wp--preset--color--foreground);
  margin-bottom: 1rem;
}

.review-card__pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.review-card__pros,
.review-card__cons {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.825rem;
}

.review-card__pros {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.review-card__cons {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.12);
}

.review-card__pros h4,
.review-card__cons h4 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.review-card__pros h4 { color: #059669; }
.review-card__cons h4 { color: #dc2626; }

@media (max-width: 600px) {
  .review-card__pros-cons {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Review Form (shortcode)
   ========================================================================== */

.nit-review-form {
  max-width: 640px;
}

.nit-review-form__field {
  margin-bottom: 1.25rem;
}

.nit-review-form__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.nit-review-form__field input[type="text"],
.nit-review-form__field input[type="url"],
.nit-review-form__field input[type="email"],
.nit-review-form__field textarea,
.nit-review-form__field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.9rem;
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  transition: border-color 0.2s ease;
}

.nit-review-form__field input:focus,
.nit-review-form__field textarea:focus,
.nit-review-form__field select:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary);
}

.nit-review-form__tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--wp--preset--color--primary) 8%, var(--wp--preset--color--background));
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 25%, var(--wp--preset--color--border));
  font-weight: 600;
  font-size: 0.9rem;
}

.nit-review-form__submit {
  margin-top: 1.5rem;
}

.nit-review-form__hint {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
}

.nit-review-form__success {
  padding: 2rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--site-radius);
  background: rgba(16, 185, 129, 0.05);
  text-align: center;
}

.nit-review-form__success h2 {
  color: #059669;
  margin-top: 0;
}

.nit-review-form__errors {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--site-radius);
  background: rgba(239, 68, 68, 0.05);
  margin-bottom: 1.5rem;
}

.nit-review-form__errors ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #dc2626;
  font-size: 0.875rem;
}

.nit-review-form__notice {
  padding: 1rem;
  border-radius: var(--site-radius);
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
}

.nit-review-form__notice--error {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.05);
  color: #dc2626;
}

.nit-review-form__notice a {
  color: var(--wp--preset--color--primary);
  font-weight: 600;
}

.nit-review-form__info {
  padding: 1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 20%, var(--wp--preset--color--border));
  border-radius: var(--site-radius);
  background: color-mix(in srgb, var(--wp--preset--color--primary) 5%, var(--wp--preset--color--background));
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.nit-review-form__info a {
  color: var(--wp--preset--color--primary);
  font-weight: 600;
}

.nit-review-form__turnstile {
  display: flex;
  justify-content: flex-start;
}


/* ==========================================================================
   Tool Archive – katalog narzędzi
   ========================================================================== */

.tool-archive__head {
  margin-bottom: 2.5rem;
}

.tool-archive__head h1 {
  margin: 0 0 0.5rem;
}

.tool-archive__desc {
  color: var(--wp--preset--color--muted);
  margin: 0;
}

.tool-filter {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px -8px rgba(12, 24, 55, 0.08);
}

.tool-filter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.tool-filter__field {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
}

.tool-filter__field input[type="text"],
.tool-filter__field select {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-left: 2.75rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 0.6rem;
  font: inherit;
  font-size: 0.95rem;
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 2.9rem;
}

.tool-filter__field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2358647f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  cursor: pointer;
}

.tool-filter__field input[type="text"]:focus,
.tool-filter__field select:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 15%, transparent);
}

.tool-filter__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--wp--preset--color--muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-filter__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-filter__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.tool-filter__actions .button {
  padding: 0 1.5rem;
  font-size: 0.95rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-filter__button--reset {
  background: transparent;
  border: 1px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--foreground);
}

.tool-filter__button--reset:hover {
  background: color-mix(in srgb, var(--wp--preset--color--foreground) 5%, transparent);
  border-color: var(--wp--preset--color--muted);
}

.tool-filter__button--reset svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.tool-archive__pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.tool-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 1rem;
  box-shadow: 0 2px 12px -4px rgba(12, 24, 55, 0.10);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.tool-card:hover {
  box-shadow: 0 12px 32px -8px rgba(12, 24, 55, 0.18);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--wp--preset--color--primary) 40%, var(--wp--preset--color--border));
}

.tool-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--gradient-subtle);
}

.tool-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.tool-card:hover .tool-card__image {
  transform: scale(1.06);
}

.tool-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.3;
}

.tool-card__badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tool-card__badge--open {
  background: rgba(16, 185, 129, 0.85); /* Emerald green */
  border-color: rgba(255, 255, 255, 0.3);
}

.tool-card__badge--closed {
  background: rgba(31, 43, 71, 0.75); /* Slate / Foreground color */
  border-color: rgba(255, 255, 255, 0.15);
}

.tool-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.tool-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wp--preset--color--foreground);
  line-height: 1.3;
}

.tool-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tool-card__cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent);
  color: var(--wp--preset--color--primary);
}

.tool-card__desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 980px) {
  .tool-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tool-archive-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Sticky Sub-Navigation & Related Content Overhaul
   ========================================================================== */

.tool-subnav {
  position: sticky;
  top: 80px;
  z-index: 40;
  background: var(--wp--preset--color--surface);
  border-bottom: 1px solid var(--wp--preset--color--border);
  box-shadow: 0 4px 12px -8px rgba(12, 24, 55, 0.08);
  margin-bottom: 2.5rem;
  transition: top 0.25s ease;
}

.admin-bar .tool-subnav {
  top: 112px;
}

.tool-subnav__container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.tool-subnav__container::-webkit-scrollbar {
  display: none;
}

.tool-subnav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tool-subnav__link:hover {
  color: var(--wp--preset--color--primary);
}

.tool-subnav__link.active {
  color: var(--wp--preset--color--primary);
  border-bottom-color: var(--wp--preset--color--primary);
}

/* Scroll Offset for Navigation Targets */
.single-tool-main #about[id],
#pricing[id],
#reviews[id],
#related[id] {
  scroll-margin-top: 150px;
}

.admin-bar .single-tool-main #about[id],
.admin-bar #pricing[id],
.admin-bar #reviews[id],
.admin-bar #related[id] {
  scroll-margin-top: 182px;
}

/* Related Content Grid & Cards */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.related-card {
  display: flex;
  gap: 1rem;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--site-radius);
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.related-card:hover {
  border-color: var(--wp--preset--color--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant);
}

.related-card__image-wrapper {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: calc(var(--site-radius) - 2px);
  overflow: hidden;
  background: var(--wp--preset--color--background);
  border: 1px solid var(--wp--preset--color--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card__image {
  transform: scale(1.05);
}

.related-card__placeholder {
  font-size: 1.75rem;
  opacity: 0.6;
}

.related-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.related-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--wp--preset--color--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card__meta {
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
  font-weight: 500;
}

.related-card__badge {
  display: inline-block;
  background: color-mix(in srgb, var(--wp--preset--color--primary) 8%, transparent);
  color: var(--wp--preset--color--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  align-self: flex-start;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ==========================================================================
   Latest Content (front-page.php)
   ========================================================================== */

.latest-content__group {
  margin-bottom: 2.5rem;
}

.latest-content__group:last-child {
  margin-bottom: 0;
}

.latest-content__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.latest-content__subtitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wp--preset--color--foreground);
}

.latest-content__subtitle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--wp--preset--color--primary);
}

.latest-content__more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  white-space: nowrap;
}

.latest-content__more:hover {
  text-decoration: underline;
}

