/*
Theme Name: Jeff Jones Creator Hub
Theme URI: https://jeffjones.blog
Author: Jeff Jones / PopLight Design
Author URI: https://poplightdesign.com
Description: A fast, editorial WordPress theme for Jeff Jones' creator products, articles, email growth, and PopLight Design ecosystem.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: jeff-jones-creator-hub
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --jj-ink: #14161b;
  --jj-ink-soft: #20242c;
  --jj-paper: #f6f2e9;
  --jj-paper-deep: #ece6da;
  --jj-white: #fffefa;
  --jj-blue: #2864ff;
  --jj-blue-dark: #1545c5;
  --jj-blue-soft: #dce6ff;
  --jj-cyan: #6ee7ff;
  --jj-text: #20232a;
  --jj-muted: #666b76;
  --jj-line: rgba(20, 22, 27, 0.14);
  --jj-line-dark: rgba(255, 255, 255, 0.14);
  --jj-success: #177a51;
  --jj-danger: #b42318;
  --jj-radius-sm: 10px;
  --jj-radius: 18px;
  --jj-radius-lg: 30px;
  --jj-shadow: 0 24px 70px rgba(20, 22, 27, 0.12);
  --jj-shadow-sm: 0 12px 30px rgba(20, 22, 27, 0.08);
  --jj-container: 1180px;
  --jj-reading: 760px;
  --jj-heading: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --jj-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--jj-paper);
  color: var(--jj-text);
  font-family: var(--jj-sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

svg {
  height: 1em;
  width: 1em;
}

a {
  color: var(--jj-blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--jj-blue);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
[type="button"],
[type="submit"] {
  cursor: pointer;
}

:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--jj-cyan);
  outline-offset: 3px;
}

::selection {
  background: var(--jj-blue);
  color: var(--jj-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--jj-ink);
  font-family: var(--jj-heading);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 0.65em;
}

h1 { font-size: clamp(2.75rem, 6vw, 5.75rem); }
h2 { font-size: clamp(2.15rem, 4vw, 3.75rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }

p,
ul,
ol {
  margin: 0 0 1.35em;
}

blockquote {
  border-left: 4px solid var(--jj-blue);
  color: var(--jj-ink);
  font-family: var(--jj-heading);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  margin: 2em 0;
  padding: 0.25em 0 0.25em 1.25em;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--jj-white);
  clip: auto !important;
  clip-path: none;
  color: var(--jj-ink);
  display: block;
  height: auto;
  left: 1rem;
  padding: 0.8rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.jj-container {
  margin-inline: auto;
  max-width: var(--jj-container);
  padding-inline: 28px;
  width: 100%;
}

.jj-reading-width {
  margin-inline: auto;
  max-width: var(--jj-reading);
}

.jj-section {
  padding-block: clamp(76px, 9vw, 132px);
}

.jj-section--compact {
  padding-block: clamp(52px, 7vw, 90px);
}

.jj-section--dark {
  background: var(--jj-ink);
  color: #cdd1da;
  overflow: hidden;
  position: relative;
}

.jj-section--dark h2,
.jj-section--dark h3,
.jj-section--dark h4 {
  color: var(--jj-white);
}

.jj-section--white { background: var(--jj-white); }

.jj-section--blue {
  background: var(--jj-blue);
  color: var(--jj-white);
}

.jj-section--blue h2,
.jj-section--blue h3 { color: var(--jj-white); }

.jj-eyebrow {
  align-items: center;
  color: var(--jj-blue);
  display: flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0.13em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.jj-eyebrow::before {
  background: currentColor;
  content: "";
  height: 2px;
  width: 30px;
}

.jj-section--dark .jj-eyebrow { color: var(--jj-cyan); }

.jj-lede {
  color: var(--jj-muted);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  max-width: 680px;
}

.jj-section--dark .jj-lede { color: #b8beca; }

.jj-section-heading {
  align-items: end;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.jj-section-heading > div { max-width: 760px; }

.jj-button,
.wp-element-button,
.wp-block-button__link,
button[type="submit"] {
  align-items: center;
  background: var(--jj-blue);
  border: 1px solid var(--jj-blue);
  border-radius: 999px;
  color: var(--jj-white);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  line-height: 1;
  min-height: 50px;
  padding: 0.95rem 1.35rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.jj-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover {
  background: var(--jj-blue-dark);
  border-color: var(--jj-blue-dark);
  box-shadow: 0 12px 26px rgba(40, 100, 255, 0.24);
  color: var(--jj-white);
  transform: translateY(-2px);
}

.jj-button--secondary {
  background: transparent;
  border-color: var(--jj-line);
  color: var(--jj-ink);
}

.jj-button--secondary:hover {
  background: var(--jj-ink);
  border-color: var(--jj-ink);
  color: var(--jj-white);
}

.jj-button--light {
  background: var(--jj-white);
  border-color: var(--jj-white);
  color: var(--jj-ink);
}

.jj-button--light:hover {
  background: var(--jj-cyan);
  border-color: var(--jj-cyan);
  color: var(--jj-ink);
}

.jj-button--ghost-dark {
  background: transparent;
  border-color: var(--jj-line-dark);
  color: var(--jj-white);
}

.jj-button--ghost-dark:hover {
  background: var(--jj-white);
  border-color: var(--jj-white);
  color: var(--jj-ink);
}

.jj-text-link {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 8px;
  text-decoration: none;
}

.jj-text-link:hover { gap: 12px; }

.jj-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header */
.jj-announcement {
  background: var(--jj-blue);
  color: var(--jj-white);
  font-size: 0.83rem;
  font-weight: 750;
  padding: 8px 20px;
  text-align: center;
}

.jj-announcement a {
  color: inherit;
  text-decoration: none;
}

.jj-announcement a:hover { text-decoration: underline; }

.jj-site-header {
  background: rgba(246, 242, 233, 0.92);
  border-bottom: 1px solid transparent;
  position: relative;
  top: 0;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  z-index: 1000;
}

.jj-site-header.is-sticky {
  backdrop-filter: blur(16px);
  border-color: var(--jj-line);
  box-shadow: 0 8px 28px rgba(20, 22, 27, 0.07);
  position: sticky;
}

.admin-bar .jj-site-header.is-sticky { top: 32px; }

.jj-header-inner {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  min-height: 82px;
}

.jj-brand {
  align-items: center;
  color: var(--jj-ink);
  display: inline-flex;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.jj-brand__dot { color: var(--jj-blue); }
.jj-brand .custom-logo { max-height: 46px; width: auto; }
.custom-logo-link { align-items: center; display: inline-flex; }
.custom-logo-link .custom-logo { max-height: 46px; width: auto; }

.jj-header-nav {
  align-items: center;
  display: flex;
  gap: 28px;
}

.jj-primary-menu,
.jj-footer-menu,
.jj-social-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jj-primary-menu a {
  color: var(--jj-ink);
  font-size: 0.87rem;
  font-weight: 750;
  text-decoration: none;
}

.jj-primary-menu .current-menu-item > a,
.jj-primary-menu a:hover { color: var(--jj-blue); }

.jj-menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--jj-line);
  border-radius: 999px;
  display: none;
  height: 46px;
  justify-content: center;
  padding: 0;
  width: 46px;
}

.jj-menu-toggle svg { font-size: 1.35rem; }

/* Hero */
.jj-hero {
  background: #f1f3f7;
  color: var(--jj-ink);
  overflow: hidden;
  width: 100%;
}

.jj-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  min-height: clamp(560px, 72vh, 760px);
  padding: clamp(54px, 6vw, 96px) clamp(28px, 6vw, 110px);
  width: 100%;
}

.jj-hero__content {
  max-width: 660px;
  position: relative;
  z-index: 2;
}

.jj-hero .jj-eyebrow {
  color: var(--jj-blue);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  margin-bottom: 1.15rem;
}

.jj-hero .jj-eyebrow::before { display: none; }

.jj-hero h1 {
  color: var(--jj-ink);
  font-family: var(--jj-sans);
  font-size: clamp(2.65rem, 4.25vw, 4.2rem);
  font-weight: 820;
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin-bottom: 1.35rem;
  max-width: 650px;
}

.jj-hero__copy {
  color: #4f5562;
  font-size: clamp(1.03rem, 1.4vw, 1.2rem);
  line-height: 1.62;
  margin-bottom: 0;
  max-width: 610px;
}

.jj-hero .jj-button-row {
  margin-top: 2rem;
}

.jj-hero .jj-button {
  font-size: 0.9rem;
  min-height: 48px;
  padding: 0.9rem 1.25rem;
}

.jj-hero__media {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
  position: relative;
}

.jj-hero__media img {
  height: auto;
  max-height: 650px;
  object-fit: contain;
  width: 100%;
}

.jj-trust-strip {
  background: var(--jj-white);
  border-bottom: 1px solid var(--jj-line);
}

.jj-trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.jj-trust-item {
  align-items: center;
  border-right: 1px solid var(--jj-line);
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 72px;
  padding: 14px;
  text-align: center;
}

.jj-trust-item:last-child { border-right: 0; }
.jj-trust-item svg { color: var(--jj-blue); }

/* Cards and grids */
.jj-path-grid,
.jj-product-grid,
.jj-post-grid,
.jj-step-grid,
.jj-benefit-grid {
  display: grid;
  gap: 22px;
}

.jj-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jj-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jj-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jj-step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jj-benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.jj-path-card {
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius-lg);
  min-height: 500px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 50px);
  position: relative;
}

.jj-path-card--creator {
  background: var(--jj-blue);
  color: var(--jj-white);
}

.jj-path-card--creator h3 { color: var(--jj-white); }

.jj-path-card--web {
  background: var(--jj-white);
}

.jj-path-card__number {
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 64px;
  opacity: 0.78;
  padding: 6px 11px;
}

.jj-path-card h3 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 500px; }

.jj-path-card ul {
  columns: 2;
  font-size: 0.9rem;
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.jj-path-card li { margin-bottom: 8px; padding-left: 18px; position: relative; }
.jj-path-card li::before { content: "+"; font-weight: 900; left: 0; position: absolute; }

.jj-product-card {
  background: var(--jj-white);
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.jj-product-card:hover {
  border-color: rgba(40, 100, 255, 0.42);
  box-shadow: var(--jj-shadow-sm);
  transform: translateY(-5px);
}

.jj-product-card__media {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 80% 20%, rgba(110,231,255,.55), transparent 26%),
    linear-gradient(145deg, #1b2232, #2864ff);
  overflow: hidden;
  position: relative;
}

.jj-product-card__media img { height: 100%; object-fit: cover; width: 100%; }

.jj-product-card__fallback {
  align-items: flex-end;
  color: var(--jj-white);
  display: flex;
  font-family: var(--jj-heading);
  font-size: 2rem;
  font-weight: 700;
  inset: 0;
  letter-spacing: -0.04em;
  line-height: 1;
  padding: 26px;
  position: absolute;
}

.jj-product-card__badge {
  background: var(--jj-white);
  border-radius: 999px;
  color: var(--jj-ink);
  font-size: 0.68rem;
  font-weight: 850;
  left: 16px;
  letter-spacing: 0.07em;
  padding: 7px 10px;
  position: absolute;
  text-transform: uppercase;
  top: 16px;
  z-index: 2;
}

.jj-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.jj-product-card__meta,
.jj-post-card__meta,
.jj-article-meta {
  align-items: center;
  color: var(--jj-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.74rem;
  font-weight: 800;
  gap: 8px 14px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.jj-product-card h3 { font-size: 1.55rem; margin-bottom: 0.55rem; }
.jj-product-card p { color: var(--jj-muted); font-size: 0.92rem; }

.jj-product-card__footer {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
}

.jj-product-card__price { color: var(--jj-ink); font-size: 0.78rem; font-weight: 850; }

.jj-post-card {
  background: transparent;
  min-width: 0;
}

.jj-post-card__media {
  aspect-ratio: 16 / 10;
  background: var(--jj-paper-deep);
  border-radius: var(--jj-radius);
  display: block;
  margin-bottom: 20px;
  overflow: hidden;
}

.jj-post-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

.jj-post-card:hover .jj-post-card__media img { transform: scale(1.035); }

.jj-post-card__placeholder {
  align-items: center;
  background: linear-gradient(135deg, var(--jj-ink), var(--jj-blue));
  color: var(--jj-white);
  display: flex;
  font-family: var(--jj-heading);
  font-size: 1.6rem;
  height: 100%;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.jj-post-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.jj-post-card h3 a { color: var(--jj-ink); text-decoration: none; }
.jj-post-card h3 a:hover { color: var(--jj-blue); }
.jj-post-card__excerpt { color: var(--jj-muted); font-size: 0.9rem; }

.jj-step-card,
.jj-benefit-card {
  border-top: 1px solid var(--jj-line-dark);
  padding: 30px 0 0;
}

.jj-step-card__number {
  color: var(--jj-cyan);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 52px;
}

.jj-step-card p,
.jj-benefit-card p { color: #b8beca; font-size: 0.92rem; }

/* Signup */
.jj-signup-panel {
  background:
    linear-gradient(120deg, rgba(40,100,255,.12), transparent 44%),
    var(--jj-white);
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius-lg);
  box-shadow: var(--jj-shadow);
  display: grid;
  gap: clamp(32px, 6vw, 82px);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  overflow: hidden;
  padding: clamp(30px, 6vw, 72px);
  position: relative;
}

.jj-signup-panel--dark {
  background: var(--jj-ink-soft);
  border-color: var(--jj-line-dark);
  box-shadow: none;
  color: #c7ccd6;
}

.jj-signup-panel--dark h2,
.jj-signup-panel--dark h3 { color: var(--jj-white); }

.jj-signup-panel__marker {
  align-items: center;
  background: var(--jj-blue);
  border-radius: 50%;
  color: var(--jj-white);
  display: flex;
  font-size: 0.75rem;
  font-weight: 900;
  height: 72px;
  justify-content: center;
  letter-spacing: 0.08em;
  margin-bottom: 44px;
  text-transform: uppercase;
  width: 72px;
}

.jj-signup-form {
  align-self: center;
  background: var(--jj-paper);
  border-radius: var(--jj-radius);
  padding: 26px;
}

.jj-signup-form label {
  color: var(--jj-ink);
  display: block;
  font-size: 0.77rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.jj-field { margin-bottom: 14px; }

.jj-signup-form input[type="text"],
.jj-signup-form input[type="email"],
.jj-search-form input[type="search"],
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  background: var(--jj-white);
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius-sm);
  min-height: 50px;
  padding: 0.8rem 0.9rem;
  width: 100%;
}

.jj-signup-form button { width: 100%; }

.jj-consent {
  color: var(--jj-muted);
  font-size: 0.7rem;
  line-height: 1.55;
  margin: 12px 0 0;
}

.jj-form-status {
  border-radius: var(--jj-radius-sm);
  display: none;
  font-size: 0.82rem;
  margin-top: 12px;
  padding: 10px 12px;
}

.jj-form-status.is-visible { display: block; }
.jj-form-status.is-error { background: #fee4e2; color: var(--jj-danger); }
.jj-form-status.is-success { background: #dcfae6; color: var(--jj-success); }

.jj-klaviyo-embed:empty::before {
  color: var(--jj-muted);
  content: "Loading the signup form...";
  display: block;
  font-size: 0.86rem;
  padding: 20px;
  text-align: center;
}

/* About and calls to action */
.jj-about-grid {
  align-items: center;
  display: grid;
  gap: clamp(44px, 8vw, 100px);
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
}

.jj-about-photo {
  aspect-ratio: 1 / 1;
  background: var(--jj-paper-deep);
  border-radius: var(--jj-radius-lg);
  overflow: hidden;
  position: relative;
}

.jj-about-photo img { height: 100%; object-fit: cover; width: 100%; }

.jj-about-photo::after {
  border: 1px solid rgba(255,255,255,.55);
  border-radius: calc(var(--jj-radius-lg) - 8px);
  content: "";
  inset: 12px;
  pointer-events: none;
  position: absolute;
}

.jj-cta-band {
  align-items: center;
  background: var(--jj-blue);
  border-radius: var(--jj-radius-lg);
  color: var(--jj-white);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(30px, 5vw, 60px);
  position: relative;
}

.jj-cta-band::after {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  content: "";
  height: 240px;
  position: absolute;
  right: -70px;
  top: -120px;
  width: 240px;
}

.jj-cta-band h2,
.jj-cta-band h3 { color: var(--jj-white); margin-bottom: 0.2em; }
.jj-cta-band p { margin: 0; opacity: 0.88; }
.jj-cta-band .jj-button-row { flex: 0 0 auto; position: relative; z-index: 1; }

/* Inner pages */
.jj-page-hero {
  background: var(--jj-ink);
  color: #bfc5d0;
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 138px);
  position: relative;
}

.jj-page-hero::after {
  background: radial-gradient(circle, rgba(40,100,255,.46), transparent 64%);
  content: "";
  height: 520px;
  position: absolute;
  right: -180px;
  top: -240px;
  width: 520px;
}

.jj-page-hero h1 { color: var(--jj-white); max-width: 980px; }
.jj-page-hero p { font-size: clamp(1.08rem, 1.8vw, 1.3rem); max-width: 720px; }

.jj-guide-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jj-guide-card {
  background: var(--jj-white);
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius);
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.jj-guide-card__icon {
  align-items: center;
  background: var(--jj-blue-soft);
  border-radius: 14px;
  color: var(--jj-blue);
  display: flex;
  font-size: 1.4rem;
  height: 50px;
  justify-content: center;
  margin-bottom: 36px;
  width: 50px;
}

.jj-guide-card ul { color: var(--jj-muted); font-size: 0.9rem; padding-left: 1.2em; }
.jj-guide-card .jj-button { margin-top: auto; }

.jj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.jj-filter-button {
  background: transparent;
  border: 1px solid var(--jj-line);
  border-radius: 999px;
  color: var(--jj-ink);
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0.65rem 1rem;
}

.jj-filter-button.is-active,
.jj-filter-button:hover { background: var(--jj-ink); color: var(--jj-white); }
.jj-product-card[hidden] { display: none; }

.jj-external-note {
  background: var(--jj-blue-soft);
  border-radius: var(--jj-radius-sm);
  color: #173675;
  font-size: 0.82rem;
  margin-top: 28px;
  padding: 14px 16px;
}

.jj-archive-toolbar {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 44px;
}

.jj-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

ul.jj-category-nav { list-style: none; margin: 0; padding: 0; }

.jj-category-nav a {
  border: 1px solid var(--jj-line);
  border-radius: 999px;
  color: var(--jj-ink);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
}

.jj-category-nav a:hover { background: var(--jj-ink); color: var(--jj-white); }

.jj-search-form {
  align-items: center;
  display: flex;
  min-width: min(100%, 320px);
}

.jj-search-form input { border-radius: 999px 0 0 999px !important; }
.jj-search-form button { border-radius: 0 999px 999px 0; min-height: 50px; padding-inline: 18px; }

.pagination,
.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 54px;
}

.page-numbers {
  align-items: center;
  border: 1px solid var(--jj-line);
  border-radius: 999px;
  color: var(--jj-ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0 10px;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover { background: var(--jj-ink); color: var(--jj-white); }

/* Article */
.jj-breadcrumbs {
  color: var(--jj-muted);
  font-size: 0.74rem;
  font-weight: 750;
  margin-bottom: 28px;
}

.jj-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jj-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: 0.5; }
.jj-breadcrumbs a { color: inherit; }

.jj-article-header {
  padding-block: clamp(64px, 9vw, 120px) 48px;
}

.jj-article-header h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); max-width: 1040px; }
.jj-article-header__excerpt { color: var(--jj-muted); font-size: 1.22rem; max-width: 760px; }

.jj-article-featured {
  margin: 0 auto clamp(48px, 7vw, 84px);
  max-width: 1320px;
  padding-inline: 28px;
}

.jj-article-featured img {
  aspect-ratio: 16 / 8.5;
  border-radius: var(--jj-radius-lg);
  object-fit: cover;
  width: 100%;
}

.jj-article-layout {
  display: grid;
  gap: 60px;
  grid-template-columns: 220px minmax(0, var(--jj-reading));
  justify-content: center;
}

.jj-article-toc {
  align-self: start;
  position: sticky;
  top: 130px;
}

.jj-article-toc h2 {
  font-family: var(--jj-sans);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.jj-article-toc ol { font-size: 0.78rem; list-style: none; margin: 0; padding: 0; }
.jj-article-toc li { border-top: 1px solid var(--jj-line); padding: 9px 0; }
.jj-article-toc a { color: var(--jj-muted); text-decoration: none; }
.jj-article-toc a:hover { color: var(--jj-blue); }

.jj-article-content {
  font-size: 1.05rem;
  min-width: 0;
}

.jj-article-content > h2 { margin-top: 1.8em; }
.jj-article-content > h3 { margin-top: 1.7em; }
.jj-article-content a { overflow-wrap: anywhere; }
.jj-article-content pre { overflow-x: auto; }
.jj-article-content table { border-collapse: collapse; display: block; overflow-x: auto; width: 100%; }
.jj-article-content th,
.jj-article-content td { border: 1px solid var(--jj-line); padding: 10px; text-align: left; }

.jj-inline-cta {
  background: var(--jj-ink);
  border-radius: var(--jj-radius);
  color: #c8ced8;
  margin: 52px 0;
  padding: clamp(26px, 5vw, 46px);
}

.jj-inline-cta h2,
.jj-inline-cta h3 { color: var(--jj-white); }

.jj-author-box {
  align-items: center;
  border-bottom: 1px solid var(--jj-line);
  border-top: 1px solid var(--jj-line);
  display: grid;
  gap: 22px;
  grid-template-columns: 86px 1fr;
  margin-top: 64px;
  padding: 28px 0;
}

.jj-author-box img { border-radius: 50%; height: 86px; object-fit: cover; width: 86px; }
.jj-author-box h2 { font-family: var(--jj-sans); font-size: 1rem; letter-spacing: 0; margin-bottom: 0.25em; }
.jj-author-box p { color: var(--jj-muted); font-size: 0.84rem; margin: 0; }

.jj-comments { margin-top: 64px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { border-top: 1px solid var(--jj-line); padding: 24px 0; }
.comment-meta { font-size: 0.78rem; }
.comment-form > p { margin-bottom: 16px; }

/* Standard content and WordPress blocks */
.jj-page-content { padding-block: clamp(64px, 9vw, 120px); }
.jj-page-content > .entry-content { margin-inline: auto; max-width: var(--jj-reading); }

.entry-content > .alignwide { margin-left: calc((min(100vw - 56px, var(--jj-container)) - min(100vw - 56px, var(--jj-reading))) / -2); max-width: var(--jj-container); width: auto; }
.entry-content > .alignfull { margin-left: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

.wp-block-image img { border-radius: var(--jj-radius); }
.wp-caption-text,
.wp-element-caption { color: var(--jj-muted); font-size: 0.75rem; }

.jj-empty-state {
  background: var(--jj-white);
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius);
  padding: 40px;
  text-align: center;
}

.jj-404 { padding-block: clamp(80px, 12vw, 160px); text-align: center; }
.jj-404__code { color: var(--jj-blue); font-family: var(--jj-heading); font-size: clamp(7rem, 22vw, 18rem); font-weight: 700; letter-spacing: -0.08em; line-height: 0.8; }

/* Footer */
.jj-site-footer {
  background: #0d0f13;
  color: #aeb4c0;
  padding-top: clamp(64px, 9vw, 112px);
}

.jj-footer-grid {
  display: grid;
  gap: 50px;
  grid-template-columns: 1.15fr 0.7fr 0.7fr 1fr;
  padding-bottom: 64px;
}

.jj-site-footer h2,
.jj-site-footer h3 { color: var(--jj-white); font-family: var(--jj-sans); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.jj-site-footer .jj-brand { color: var(--jj-white); margin-bottom: 20px; }
.jj-site-footer p { font-size: 0.85rem; }

.jj-footer-menu {
  flex-direction: column;
  gap: 8px;
}

.jj-footer-menu a,
.jj-site-footer a { color: #c8cdd6; font-size: 0.83rem; text-decoration: none; }
.jj-site-footer a:hover { color: var(--jj-cyan); }

.jj-footer-signup .jj-signup-form { background: #171a21; padding: 18px; }
.jj-footer-signup .jj-signup-form label { color: var(--jj-white); }
.jj-footer-signup .jj-consent { color: #9299a7; }

.jj-footer-bottom {
  align-items: center;
  border-top: 1px solid var(--jj-line-dark);
  display: flex;
  font-size: 0.72rem;
  gap: 24px;
  justify-content: space-between;
  padding-block: 22px;
}

.jj-footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }

/* WooCommerce compatibility */
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
  background: var(--jj-blue);
  border-radius: 999px;
  color: var(--jj-white);
}

.woocommerce ul.products li.product,
.woocommerce div.product {
  background: var(--jj-white);
  border-radius: var(--jj-radius);
  padding: 18px;
}

/* Responsive */
@media (max-width: 1080px) {
  .jj-header-nav .jj-button { display: none; }
  .jj-primary-menu { gap: 18px; }
  .jj-product-grid,
  .jj-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jj-guide-grid { grid-template-columns: 1fr 1fr; }
  .jj-footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; }
  .jj-footer-grid > :nth-child(3) { display: none; }
}

@media (max-width: 860px) {
  .jj-hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 64px 48px;
  }
  .jj-hero__content { max-width: 720px; }
  .jj-hero__media img { max-height: 520px; }
  .admin-bar .jj-site-header.is-sticky { top: 46px; }
  .jj-menu-toggle { display: inline-flex; }
  .jj-header-nav {
    align-items: stretch;
    background: var(--jj-paper);
    border-bottom: 1px solid var(--jj-line);
    box-shadow: 0 24px 50px rgba(20,22,27,.14);
    display: none;
    flex-direction: column;
    gap: 18px;
    left: 0;
    padding: 24px 28px 32px;
    position: absolute;
    right: 0;
    top: 100%;
  }
  .jj-header-nav.is-open { display: flex; }
  .jj-primary-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .jj-primary-menu a { border-bottom: 1px solid var(--jj-line); display: block; font-size: 1rem; padding: 13px 0; }
  .jj-header-nav .jj-button { display: inline-flex; }
  .jj-signup-panel,
  .jj-about-grid { grid-template-columns: 1fr; }
  .jj-path-grid,
  .jj-step-grid,
  .jj-benefit-grid { grid-template-columns: 1fr; }
  .jj-path-card { min-height: auto; }
  .jj-path-card__number { margin-bottom: 36px; }
  .jj-trust-strip__inner { grid-template-columns: 1fr 1fr; }
  .jj-trust-item:nth-child(2) { border-right: 0; }
  .jj-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--jj-line); }
  .jj-article-layout { display: block; }
  .jj-article-toc { background: var(--jj-white); border: 1px solid var(--jj-line); border-radius: var(--jj-radius-sm); margin-bottom: 36px; padding: 18px; position: static; }
  .jj-guide-grid { grid-template-columns: 1fr; }
  .jj-footer-grid { grid-template-columns: 1fr 1fr; }
  .jj-footer-grid > :nth-child(3) { display: block; }
  .jj-footer-signup { grid-column: 1 / -1; max-width: 560px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 90px; }
  .jj-container { padding-inline: 20px; }
  .jj-section { padding-block: 70px; }
  .jj-header-inner { min-height: 72px; }
  .jj-hero__grid {
    gap: 34px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 20px 44px;
  }
  .jj-hero h1 { font-size: clamp(2.55rem, 12vw, 3.6rem); }
  .jj-hero__media img { max-height: 430px; }
  .jj-product-grid,
  .jj-post-grid { grid-template-columns: 1fr; }
  .jj-path-card { padding: 28px; }
  .jj-path-card ul { columns: 1; }
  .jj-signup-panel { padding: 24px; }
  .jj-signup-panel__marker { height: 58px; margin-bottom: 28px; width: 58px; }
  .jj-signup-form { padding: 18px; }
  .jj-section-heading,
  .jj-cta-band,
  .jj-archive-toolbar { align-items: stretch; flex-direction: column; }
  .jj-cta-band .jj-button-row { width: 100%; }
  .jj-cta-band .jj-button { flex: 1 1 100%; }
  .jj-search-form { width: 100%; }
  .jj-footer-grid { grid-template-columns: 1fr; }
  .jj-footer-grid > :nth-child(3) { display: none; }
  .jj-footer-signup { grid-column: auto; }
  .jj-footer-bottom { align-items: flex-start; flex-direction: column; }
  .entry-content > .alignwide { margin-inline: 0; }
  .jj-about-photo { max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .jj-announcement,
  .jj-site-header,
  .jj-site-footer,
  .jj-article-toc,
  .jj-inline-cta,
  .jj-signup-panel { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
