/*
Theme Name:     Traders Till Help Center (Kadence Child)
Theme URI:      https://traderstill.com
Description:    Kadence child theme that adds the Traders Till help-center templates at /help/, /help/<slug>/, and /help/category/<cat>/. Mirrors the brand tokens from farmstand-hub/app/globals.css and scopes all custom styles to body.tt-help-center so nothing leaks into other Kadence templates.
Author:         Traders Till
Author URI:     https://traderstill.com
Template:       kadence
Version:        1.0.0
Requires PHP:   7.4
License:        Proprietary
Text Domain:    tt-help-center
*/

/* =============================================================================
   Brand tokens — mirror of farmstand-hub/app/globals.css @theme block.
   Keep hex values in sync. Source: docs/brand-identity-guide.md § 6.
============================================================================= */
:root {
  /* === Primary palette (sampled from logo) === */
  --tt-primary-green:   #5B6629;
  --tt-tagline-rust:    #BB6B1F;
  --tt-leaf-green:      #708030;
  --tt-lavender:        #6E3A82;
  --tt-cream:           #F8F0E0;

  /* === Warm-toned neutrals === */
  --tt-bone:            #FBF8F1;
  --tt-stone-100:       #EFEAE0;
  --tt-stone-200:       #D9D2C2;
  --tt-stone-400:       #9C9482;
  --tt-stone-600:       #5C5747;
  --tt-stone-800:       #36332A;
  --tt-charcoal:        #2B2B2B;

  /* === State colors (muted, earth-toned) === */
  --tt-state-success:   #4F8A4F;
  --tt-state-warning:   #C68A2E;
  --tt-state-partial:   #C16C2A;
  --tt-state-error:     #B5462E;
  --tt-state-info:      #3F6B8A;

  /* === Ink variants (small-text-on-cream/bone) ===
     Darker palette-faithful variants. Use for SMALL TEXT only; the original
     brand/state tokens stay correct for 4px rails, 15%-alpha pill backgrounds,
     avatar gradients, and large display copy (≥24px qualifies at 3:1). */
  --tt-rust-ink:        #8F4F12;
  --tt-leaf-ink:        #4F5C20;
  --tt-success-ink:     #2E6B30;
  --tt-warning-ink:     #8C5710;

  /* === Tip-card tints === */
  --tt-tip-honey:       #F5E7C5;
  --tt-tip-sage:        #DDE8DC;
  --tt-tip-clay:        #EED9C8;
  --tt-tip-lavender:    #E8D8EE;

  /* === Semantic surface aliases === */
  --tt-bg-app:          var(--tt-cream);
  --tt-bg-surface:      var(--tt-bone);
  --tt-bg-elevated:     #FFFFFF;
  --tt-fg-default:      var(--tt-charcoal);
  --tt-fg-muted:        var(--tt-stone-600);
  --tt-fg-subtle:       var(--tt-stone-400);
  --tt-fg-on-brand:     #FFFFFF;
  --tt-border-subtle:   var(--tt-stone-100);
  --tt-border-default:  var(--tt-stone-200);

  /* === Typography === */
  --tt-font-display:    "DM Serif Display", Georgia, serif;
  --tt-font-tagline:    "Hammersmith One", sans-serif;
  --tt-font-sans:       "Inter", system-ui, -apple-system, sans-serif;
  --tt-font-mono:       "JetBrains Mono", ui-monospace, monospace;

  /* === Letter spacing === */
  --tt-tracking-tagline:    0.18em;
  --tt-tracking-smallcaps:  0.05em;
  --tt-tracking-display:    -0.01em;

  /* === Type scale (rem-based, mobile-first) === */
  --tt-size-display:    2.25rem;
  --tt-size-h1:         1.75rem;
  --tt-size-h2:         1.375rem;
  --tt-size-h3:         1.125rem;
  --tt-size-h4:         1rem;
  --tt-size-body:       1rem;
  --tt-size-small:      0.875rem;
  --tt-size-micro:      0.75rem;

  --tt-leading-display: 1.05;
  --tt-leading-heading: 1.2;
  --tt-leading-body:    1.5;
  --tt-leading-prose:   1.65;

  /* === Spacing (4px base grid) === */
  --tt-space-1:  0.25rem;
  --tt-space-2:  0.5rem;
  --tt-space-3:  0.75rem;
  --tt-space-4:  1rem;
  --tt-space-5:  1.25rem;
  --tt-space-6:  1.5rem;
  --tt-space-8:  2rem;
  --tt-space-10: 2.5rem;
  --tt-space-12: 3rem;
  --tt-space-16: 4rem;
  --tt-space-24: 6rem;
  --tt-space-32: 8rem;

  /* === Radii === */
  --tt-radius-sm:    0.375rem;
  --tt-radius-md:    0.5rem;
  --tt-radius-lg:    0.75rem;
  --tt-radius-card:  0.875rem;
  --tt-radius-xl:    1rem;
  --tt-radius-full:  9999px;

  /* === Shadows === */
  --tt-shadow-sm:    0 1px 2px  rgba(43,43,43,0.04);
  --tt-shadow-md:    0 2px 8px  rgba(43,43,43,0.06);
  --tt-shadow-lg:    0 4px 16px rgba(43,43,43,0.08);
  --tt-shadow-card:  0 1px 2px  rgba(43,43,43,0.04);
  --tt-shadow-card-hover: 0 4px 16px rgba(43,43,43,0.10);

  /* === Motion === */
  --tt-transition-fast: 120ms ease-out;
  --tt-transition-base: 200ms ease-out;

  /* === Layout === */
  --tt-maxw-content:   1200px;
  --tt-maxw-prose:     720px;
  --tt-touch-target:   44px;
}

@media (min-width: 768px) {
  :root {
    --tt-size-display: 3rem;
    --tt-size-h1:      2.25rem;
    --tt-size-h2:      1.75rem;
    --tt-size-h3:      1.375rem;
    --tt-size-h4:      1.125rem;
  }
}

/* =============================================================================
   Scope guard — every help-center style below is gated to body.tt-help-center
   so it cannot leak into other Kadence templates. The body class is added by
   functions.php on archive-help_article, single-help_article, and
   taxonomy-help_category pages.
============================================================================= */

body.tt-help-center {
  background: var(--tt-bg-app);
  color: var(--tt-fg-default);
  font-family: var(--tt-font-sans);
  font-size: var(--tt-size-body);
  line-height: var(--tt-leading-body);
  -webkit-font-smoothing: antialiased;
}

body.tt-help-center .tt-help-container {
  width: 100%;
  max-width: var(--tt-maxw-content);
  margin-inline: auto;
  padding-inline: var(--tt-space-5);
}

@media (min-width: 768px) {
  body.tt-help-center .tt-help-container { padding-inline: var(--tt-space-8); }
}

/* =============================================================================
   Typography utilities (help-center-scoped)
============================================================================= */

body.tt-help-center .tt-help-display {
  font-family: var(--tt-font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: var(--tt-leading-display);
  letter-spacing: var(--tt-tracking-display);
  color: var(--tt-primary-green);
  margin: 0;
}

body.tt-help-center .tt-help-h1 {
  font-family: var(--tt-font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: var(--tt-leading-display);
  letter-spacing: var(--tt-tracking-display);
  color: var(--tt-primary-green);
  margin: 0;
}

body.tt-help-center .tt-help-h2 {
  font: 600 1.5rem/var(--tt-leading-heading) var(--tt-font-sans);
  color: var(--tt-fg-default);
  letter-spacing: -0.005em;
  margin: 0 0 var(--tt-space-4);
  scroll-margin-top: 80px;
}

@media (min-width: 768px) {
  body.tt-help-center .tt-help-h2 { font-size: 1.75rem; }
}

body.tt-help-center .tt-help-eyebrow {
  font-family: var(--tt-font-tagline);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--tt-tracking-tagline);
  color: var(--tt-rust-ink);
  margin: 0 0 var(--tt-space-3);
}

body.tt-help-center .tt-help-eyebrow--sans {
  font-family: var(--tt-font-sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: var(--tt-tracking-smallcaps);
  color: var(--tt-rust-ink);
}

body.tt-help-center .tt-help-prose p,
body.tt-help-center .tt-help-prose ul,
body.tt-help-center .tt-help-prose ol {
  font-size: 1.0625rem;
  line-height: var(--tt-leading-prose);
  color: var(--tt-fg-default);
  margin: 0 0 var(--tt-space-5);
}

body.tt-help-center .tt-help-prose ul,
body.tt-help-center .tt-help-prose ol {
  padding-left: 1.5rem;
}

body.tt-help-center .tt-help-prose li {
  margin: 0 0 var(--tt-space-2);
}

body.tt-help-center .tt-help-prose a {
  color: var(--tt-primary-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.tt-help-center .tt-help-prose strong { color: var(--tt-fg-default); font-weight: 600; }

body.tt-help-center .tt-help-prose code {
  font: 500 0.875rem/1 var(--tt-font-mono);
  background: var(--tt-stone-100);
  padding: 0.125rem 0.375rem;
  border-radius: var(--tt-radius-sm);
  color: var(--tt-stone-600);
}

body.tt-help-center .tt-help-prose kbd {
  font: 500 0.8125rem/1 var(--tt-font-mono);
  background: #fff;
  border: 1px solid var(--tt-stone-200);
  border-bottom-width: 2px;
  padding: 0.125rem 0.4375rem;
  border-radius: var(--tt-radius-sm);
  color: var(--tt-fg-default);
}

/* =============================================================================
   Breadcrumb (bone-band strip with › separators)
============================================================================= */

body.tt-help-center .tt-help-breadcrumb-strip {
  background: var(--tt-bg-surface);
  border-bottom: 1px solid var(--tt-border-subtle);
}

body.tt-help-center .tt-help-breadcrumb-strip .tt-help-container {
  padding-top: var(--tt-space-4);
  padding-bottom: var(--tt-space-4);
}

body.tt-help-center .tt-help-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tt-space-2);
  font-size: 0.8125rem;
  color: var(--tt-fg-muted);
  margin: 0;
  padding: 0;
  list-style: none;
}

body.tt-help-center .tt-help-breadcrumb a {
  color: var(--tt-fg-muted);
  text-decoration: none;
}

body.tt-help-center .tt-help-breadcrumb a:hover { color: var(--tt-primary-green); }

body.tt-help-center .tt-help-breadcrumb [aria-current="page"] {
  color: var(--tt-stone-800);
  font-weight: 500;
}

body.tt-help-center .tt-help-breadcrumb-sep {
  color: var(--tt-stone-200);
}

/* =============================================================================
   Search field (hero large + compact variants)
============================================================================= */

body.tt-help-center .tt-help-search {
  position: relative;
  background: #fff;
  border: 1px solid var(--tt-stone-200);
  border-radius: 14px;
  box-shadow: var(--tt-shadow-md);
  display: flex;
  align-items: center;
  padding: 4px 6px 4px 22px;
  gap: 10px;
}

body.tt-help-center .tt-help-search--sm {
  border-radius: 10px;
  padding: 4px 4px 4px 14px;
  box-shadow: var(--tt-shadow-sm);
}

body.tt-help-center .tt-help-search__icon {
  flex: 0 0 auto;
  color: var(--tt-stone-600);
  display: inline-flex;
}

body.tt-help-center .tt-help-search__input {
  flex: 1 1 0;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: 400 1.0625rem/1.3 var(--tt-font-sans);
  color: var(--tt-stone-800);
  padding: 1rem 0.375rem;
}

body.tt-help-center .tt-help-search--sm .tt-help-search__input {
  font-size: 0.9375rem;
  padding: 0.625rem 0.25rem;
}

body.tt-help-center .tt-help-search__submit {
  flex: 0 0 auto;
  background: var(--tt-primary-green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font: 500 0.9375rem/1 var(--tt-font-sans);
  cursor: pointer;
  min-height: var(--tt-touch-target);
}

body.tt-help-center .tt-help-search--sm .tt-help-search__submit {
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  min-height: 36px;
}

body.tt-help-center .tt-help-search__submit:hover { background: #4d5722; }

body.tt-help-center .tt-help-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tt-space-2);
  margin-top: var(--tt-space-4);
  align-items: center;
  font-size: 0.8125rem;
  color: var(--tt-fg-muted);
}

body.tt-help-center .tt-help-search-suggestions__label {
  color: var(--tt-fg-muted);
  margin-right: 2px;
}

body.tt-help-center .tt-help-search-suggestions a {
  padding: 6px 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--tt-stone-200);
  border-radius: var(--tt-radius-full);
  color: var(--tt-stone-800);
  text-decoration: none;
  font-size: 0.78125rem;
}

body.tt-help-center .tt-help-search-suggestions a:hover {
  background: #fff;
  border-color: var(--tt-stone-400);
}

/* =============================================================================
   Hero (landing only)
============================================================================= */

body.tt-help-center .tt-help-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

body.tt-help-center .tt-help-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}

body.tt-help-center .tt-help-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248,240,224,0) 40%, rgba(248,240,224,1) 100%);
  pointer-events: none;
}

body.tt-help-center .tt-help-hero__inner {
  position: relative;
}

body.tt-help-center .tt-help-hero__subhead {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tt-fg-muted);
  margin: var(--tt-space-4) 0 var(--tt-space-8);
  max-width: 560px;
}

body.tt-help-center .tt-help-hero__search-wrap {
  max-width: 720px;
}

/* =============================================================================
   Section heading (eyebrow + h2 + optional link)
============================================================================= */

body.tt-help-center .tt-help-section { padding-block: var(--tt-space-10); }
@media (min-width: 768px) { body.tt-help-center .tt-help-section { padding-block: var(--tt-space-16); } }

body.tt-help-center .tt-help-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--tt-space-4);
  margin-bottom: var(--tt-space-6);
}

body.tt-help-center .tt-help-section-head__link {
  font: 500 0.875rem/1 var(--tt-font-sans);
  color: var(--tt-primary-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--tt-space-2);
  white-space: nowrap;
}

/* =============================================================================
   Category cards (landing grid + sidebar)
============================================================================= */

body.tt-help-center .tt-help-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tt-space-4);
}
@media (min-width: 768px) {
  body.tt-help-center .tt-help-cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tt-space-5);
  }
}

body.tt-help-center .tt-help-cat-card {
  display: block;
  background: var(--tt-bg-surface);
  border: 1px solid var(--tt-border-subtle);
  border-radius: 14px;
  padding: var(--tt-space-5);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--tt-shadow-card);
  transition: box-shadow var(--tt-transition-base), transform var(--tt-transition-base);
}
@media (min-width: 768px) {
  body.tt-help-center .tt-help-cat-card { padding: var(--tt-space-6) var(--tt-space-6); }
}

body.tt-help-center .tt-help-cat-card:hover,
body.tt-help-center .tt-help-cat-card:focus-visible {
  box-shadow: var(--tt-shadow-card-hover);
  outline: none;
}

body.tt-help-center .tt-help-cat-card__head {
  display: flex;
  align-items: center;
  gap: var(--tt-space-3);
  margin-bottom: var(--tt-space-3);
}

body.tt-help-center .tt-help-cat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(112,128,48,0.12);
  color: var(--tt-primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.tt-help-center .tt-help-cat-card__name {
  font: 600 1.125rem/1.2 var(--tt-font-sans);
  color: var(--tt-fg-default);
}

body.tt-help-center .tt-help-cat-card__summary {
  font-size: 0.90625rem;
  line-height: 1.55;
  color: var(--tt-fg-muted);
  margin: 0 0 var(--tt-space-4);
}

body.tt-help-center .tt-help-cat-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 500 0.78125rem/1 var(--tt-font-sans);
  color: var(--tt-primary-green);
}

/* =============================================================================
   Article cards (featured strip on landing, related grid on article)
============================================================================= */

body.tt-help-center .tt-help-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tt-space-4);
}
@media (min-width: 768px) {
  body.tt-help-center .tt-help-article-grid--3 { grid-template-columns: repeat(3, 1fr); gap: var(--tt-space-5); }
  body.tt-help-center .tt-help-article-grid--2 { grid-template-columns: repeat(2, 1fr); gap: var(--tt-space-4); }
}

body.tt-help-center .tt-help-article-card {
  display: block;
  background: var(--tt-bg-surface);
  border: 1px solid var(--tt-border-subtle);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--tt-shadow-card);
  transition: box-shadow var(--tt-transition-base);
}

body.tt-help-center .tt-help-article-card:hover { box-shadow: var(--tt-shadow-card-hover); }

body.tt-help-center .tt-help-article-card--accent {
  background: #fff;
  border-color: var(--tt-stone-200);
  box-shadow: var(--tt-shadow-md);
}

body.tt-help-center .tt-help-article-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--tt-stone-100) center / cover no-repeat;
  display: block;
}

body.tt-help-center .tt-help-article-card__image--placeholder {
  background:
    repeating-linear-gradient(135deg, var(--tt-stone-100) 0 14px, var(--tt-bg-surface) 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-stone-600);
  font: 500 0.6875rem/1 var(--tt-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.tt-help-center .tt-help-article-card__body {
  padding: var(--tt-space-5) var(--tt-space-6) var(--tt-space-6);
}

body.tt-help-center .tt-help-article-card__cat {
  font: 600 0.6875rem/1 var(--tt-font-sans);
  color: var(--tt-rust-ink);
  letter-spacing: var(--tt-tracking-smallcaps);
  text-transform: uppercase;
  margin-bottom: var(--tt-space-3);
}

body.tt-help-center .tt-help-article-card__title {
  font: 600 1.1875rem/1.3 var(--tt-font-sans);
  color: var(--tt-fg-default);
  margin: 0 0 var(--tt-space-3);
}

body.tt-help-center .tt-help-article-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--tt-fg-muted);
  margin: 0 0 var(--tt-space-4);
}

body.tt-help-center .tt-help-article-card__foot {
  display: flex;
  align-items: center;
  gap: var(--tt-space-2);
  font: 500 0.78125rem/1 var(--tt-font-sans);
  color: var(--tt-fg-muted);
}

body.tt-help-center .tt-help-article-card__foot-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--tt-space-1);
  color: var(--tt-primary-green);
}

/* Related-articles compact card (no image) */
body.tt-help-center .tt-help-article-card--compact {
  padding: var(--tt-space-5);
  display: block;
}

body.tt-help-center .tt-help-article-card--compact .tt-help-article-card__title {
  font-size: 1rem;
  margin-bottom: var(--tt-space-3);
}

/* =============================================================================
   Popular list (numbered, DM Serif numerals) + What's New / Changelog
============================================================================= */

body.tt-help-center .tt-help-popular {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--tt-bg-surface);
  border: 1px solid var(--tt-border-subtle);
  border-radius: 14px;
  overflow: hidden;
}

body.tt-help-center .tt-help-popular__item {
  display: flex;
  align-items: center;
  gap: var(--tt-space-5);
  padding: var(--tt-space-5);
  border-top: 1px solid var(--tt-border-subtle);
}

body.tt-help-center .tt-help-popular__item:first-child { border-top: none; }

body.tt-help-center .tt-help-popular__num {
  flex: 0 0 auto;
  width: 36px;
  font: 400 1.625rem/1 var(--tt-font-display);
  color: var(--tt-rust-ink);
  letter-spacing: -0.02em;
}

body.tt-help-center .tt-help-popular__title {
  font: 500 1rem/1.4 var(--tt-font-sans);
  color: var(--tt-fg-default);
  text-decoration: none;
  display: block;
}

body.tt-help-center .tt-help-popular__meta {
  font: 400 0.75rem/1 var(--tt-font-sans);
  color: var(--tt-fg-muted);
  margin-top: var(--tt-space-2);
}

body.tt-help-center .tt-help-changelog {
  background: #fff;
  border: 1px solid var(--tt-border-subtle);
  border-radius: 14px;
  padding: var(--tt-space-2);
}

body.tt-help-center .tt-help-changelog__row {
  display: flex;
  gap: var(--tt-space-4);
  padding: var(--tt-space-3) var(--tt-space-4);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

body.tt-help-center .tt-help-changelog__row:hover { background: var(--tt-bg-surface); }

body.tt-help-center .tt-help-changelog__date {
  flex: 0 0 56px;
  font: 400 0.6875rem/1 var(--tt-font-tagline);
  color: var(--tt-rust-ink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 4px;
}

body.tt-help-center .tt-help-changelog__kind {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: var(--tt-radius-full);
  font: 600 0.625rem/1 var(--tt-font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--tt-space-2);
}

body.tt-help-center .tt-help-changelog__kind--new {
  background: rgba(112,128,48,0.15);
  color: var(--tt-leaf-ink);
}

body.tt-help-center .tt-help-changelog__kind--update {
  background: rgba(198,138,46,0.15);
  color: var(--tt-warning-ink);
}

body.tt-help-center .tt-help-changelog__title {
  font: 500 0.84375rem/1.4 var(--tt-font-sans);
  color: var(--tt-fg-default);
}

/* =============================================================================
   Need-to-reach-support callout (lavender — sanctioned use)
============================================================================= */

body.tt-help-center .tt-help-support-callout {
  background: var(--tt-tip-lavender);
  border-left: 4px solid var(--tt-lavender);
  border-radius: 12px;
  padding: var(--tt-space-5);
  margin-top: var(--tt-space-6);
}

body.tt-help-center .tt-help-support-callout__eyebrow {
  font: 600 0.6875rem/1 var(--tt-font-sans);
  color: var(--tt-lavender);
  letter-spacing: var(--tt-tracking-smallcaps);
  text-transform: uppercase;
  margin-bottom: var(--tt-space-2);
}

body.tt-help-center .tt-help-support-callout__body {
  font-size: 0.90625rem;
  line-height: 1.55;
  color: var(--tt-fg-default);
  margin: 0 0 var(--tt-space-4);
}

body.tt-help-center .tt-help-support-callout__actions {
  display: flex;
  gap: var(--tt-space-2);
  flex-wrap: wrap;
}

body.tt-help-center .tt-help-support-callout__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--tt-space-2);
  padding: 9px 14px;
  border-radius: var(--tt-radius-md);
  font: 500 0.84375rem/1 var(--tt-font-sans);
  text-decoration: none;
  min-height: var(--tt-touch-target);
  box-sizing: border-box;
}

body.tt-help-center .tt-help-support-callout__btn--primary {
  background: var(--tt-lavender);
  color: #fff;
}

body.tt-help-center .tt-help-support-callout__btn--secondary {
  background: transparent;
  color: var(--tt-lavender);
  border: 1px solid rgba(110,58,130,0.35);
}

/* =============================================================================
   Two-column landing layout (Popular | What's New)
============================================================================= */

body.tt-help-center .tt-help-twocol {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tt-space-10);
  align-items: flex-start;
}

@media (min-width: 768px) {
  body.tt-help-center .tt-help-twocol {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--tt-space-10);
  }
}

/* =============================================================================
   Article meta row (single-help_article — last-reviewed stamp etc.)
============================================================================= */

body.tt-help-center .tt-help-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tt-space-3);
  font: 500 0.6875rem/1 var(--tt-font-sans);
  color: var(--tt-fg-muted);
  letter-spacing: var(--tt-tracking-smallcaps);
  text-transform: uppercase;
  margin-bottom: var(--tt-space-4);
}

body.tt-help-center .tt-help-meta-row__pill {
  padding: 4px 10px;
  border-radius: var(--tt-radius-full);
  background: rgba(112,128,48,0.15);
  color: var(--tt-leaf-ink);
  font-weight: 600;
}

body.tt-help-center .tt-help-meta-row__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.tt-help-center .tt-help-meta-row__last-reviewed {
  color: var(--tt-success-ink);
}

body.tt-help-center .tt-help-meta-row__sep { color: var(--tt-stone-200); }

/* =============================================================================
   Direct-answer callout (sage variant — production default)
============================================================================= */

body.tt-help-center .tt-help-direct-answer {
  background: var(--tt-tip-sage);
  border-left: 4px solid var(--tt-state-success);
  border-radius: 12px;
  padding: var(--tt-space-5) var(--tt-space-6);
  margin: 0 0 var(--tt-space-8);
}

body.tt-help-center .tt-help-direct-answer__label {
  font: 500 0.6875rem/1 var(--tt-font-sans);
  color: var(--tt-success-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--tt-space-3);
}

body.tt-help-center .tt-help-direct-answer__body {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--tt-fg-default);
}

/* =============================================================================
   Tip cards (honey/sage/clay/lavender — used inside article bodies)
============================================================================= */

body.tt-help-center .tt-help-tip {
  border-radius: 10px;
  padding: var(--tt-space-4) var(--tt-space-5);
  margin: var(--tt-space-5) 0;
  display: flex;
  gap: var(--tt-space-4);
  align-items: flex-start;
  border-left: 4px solid;
}

body.tt-help-center .tt-help-tip--honey    { background: var(--tt-tip-honey);    border-color: var(--tt-state-warning); }
body.tt-help-center .tt-help-tip--sage     { background: var(--tt-tip-sage);     border-color: var(--tt-state-success); }
body.tt-help-center .tt-help-tip--clay     { background: var(--tt-tip-clay);     border-color: var(--tt-tagline-rust); }
body.tt-help-center .tt-help-tip--lavender { background: var(--tt-tip-lavender); border-color: var(--tt-lavender); }

body.tt-help-center .tt-help-tip__icon {
  flex: 0 0 auto;
  margin-top: 2px;
}

body.tt-help-center .tt-help-tip--honey    .tt-help-tip__icon,
body.tt-help-center .tt-help-tip--honey    .tt-help-tip__label    { color: var(--tt-warning-ink); }
body.tt-help-center .tt-help-tip--sage     .tt-help-tip__icon,
body.tt-help-center .tt-help-tip--sage     .tt-help-tip__label    { color: var(--tt-success-ink); }
body.tt-help-center .tt-help-tip--clay     .tt-help-tip__icon,
body.tt-help-center .tt-help-tip--clay     .tt-help-tip__label    { color: var(--tt-rust-ink); }
body.tt-help-center .tt-help-tip--lavender .tt-help-tip__icon,
body.tt-help-center .tt-help-tip--lavender .tt-help-tip__label    { color: var(--tt-lavender); }

body.tt-help-center .tt-help-tip__label {
  font: 600 0.75rem/1 var(--tt-font-sans);
  text-transform: uppercase;
  letter-spacing: var(--tt-tracking-smallcaps);
  margin-bottom: var(--tt-space-2);
}

body.tt-help-center .tt-help-tip__body {
  font-size: 0.90625rem;
  line-height: 1.55;
  color: var(--tt-fg-default);
}

/* =============================================================================
   FAQ accordion (used on single article)
============================================================================= */

body.tt-help-center .tt-help-faq {
  background: var(--tt-bg-surface);
  border: 1px solid var(--tt-border-subtle);
  border-radius: 14px;
  overflow: hidden;
}

body.tt-help-center .tt-help-faq__item { border-top: 1px solid var(--tt-border-subtle); }
body.tt-help-center .tt-help-faq__item:first-child { border-top: none; }

body.tt-help-center .tt-help-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--tt-space-3);
  padding: var(--tt-space-5) var(--tt-space-6);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  min-height: 56px;
  font: 600 1rem/1.35 var(--tt-font-sans);
  color: var(--tt-fg-default);
}

body.tt-help-center .tt-help-faq__q-text { flex: 1; }
body.tt-help-center .tt-help-faq__chev { color: var(--tt-primary-green); transition: transform var(--tt-transition-base); }
body.tt-help-center .tt-help-faq__item[open] .tt-help-faq__chev { transform: rotate(180deg); }

body.tt-help-center .tt-help-faq__a {
  padding: 0 var(--tt-space-6) var(--tt-space-6);
  font-size: 0.96875rem;
  line-height: 1.6;
  color: var(--tt-fg-muted);
}

body.tt-help-center .tt-help-faq__a p { margin: 0 0 var(--tt-space-3); }
body.tt-help-center .tt-help-faq__a p:last-child { margin-bottom: 0; }

/* =============================================================================
   Article layout (single — content column + sticky TOC sidebar)
============================================================================= */

body.tt-help-center .tt-help-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: flex-start;
  padding-block: var(--tt-space-6);
}

@media (min-width: 1024px) {
  body.tt-help-center .tt-help-article-layout {
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 56px;
    padding-block: var(--tt-space-10);
  }
}

body.tt-help-center .tt-help-article {
  min-width: 0;
  max-width: var(--tt-maxw-prose);
}

body.tt-help-center .tt-help-article__byline {
  display: flex;
  align-items: center;
  gap: var(--tt-space-3);
  margin-bottom: var(--tt-space-6);
  padding-bottom: var(--tt-space-6);
  border-bottom: 1px solid var(--tt-border-subtle);
}

body.tt-help-center .tt-help-article__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--tt-radius-full);
  background: linear-gradient(135deg, var(--tt-tagline-rust) 0%, var(--tt-primary-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 500 0.9375rem/1 var(--tt-font-sans);
  flex: 0 0 auto;
}

body.tt-help-center .tt-help-article__avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--tt-radius-full);
  object-fit: cover;
}

body.tt-help-center .tt-help-article__author {
  font: 500 0.875rem/1.2 var(--tt-font-sans);
  color: var(--tt-fg-default);
}

body.tt-help-center .tt-help-article__author-meta {
  font: 400 0.78125rem/1.2 var(--tt-font-sans);
  color: var(--tt-fg-muted);
  margin-top: 3px;
}

body.tt-help-center .tt-help-article__featured-image {
  width: 100%;
  border-radius: 12px;
  margin: 0 0 var(--tt-space-8);
  overflow: hidden;
}

body.tt-help-center .tt-help-article__featured-image img { width: 100%; height: auto; display: block; }

body.tt-help-center .tt-help-article__footer-stamps {
  margin-top: var(--tt-space-8);
  padding-top: var(--tt-space-6);
  border-top: 1px solid var(--tt-border-subtle);
  font: 400 0.75rem/1.4 var(--tt-font-sans);
  color: var(--tt-fg-muted);
}

/* =============================================================================
   TOC (desktop only)
============================================================================= */

body.tt-help-center .tt-help-toc {
  position: sticky;
  top: 24px;
  align-self: flex-start;
  padding-top: 6px;
  display: none;
}

@media (min-width: 1024px) { body.tt-help-center .tt-help-toc { display: block; } }

body.tt-help-center .tt-help-toc__head {
  font: 600 0.6875rem/1 var(--tt-font-sans);
  color: var(--tt-fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--tt-space-4);
  padding-bottom: var(--tt-space-3);
  border-bottom: 1px solid var(--tt-border-subtle);
}

body.tt-help-center .tt-help-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.tt-help-center .tt-help-toc__link {
  display: flex;
  gap: var(--tt-space-3);
  align-items: flex-start;
  padding: var(--tt-space-2) 0 var(--tt-space-2) var(--tt-space-3);
  border-left: 2px solid var(--tt-border-subtle);
  font: 400 0.84375rem/1.4 var(--tt-font-sans);
  color: var(--tt-fg-muted);
  text-decoration: none;
  transition: border-color var(--tt-transition-base), color var(--tt-transition-base);
}

body.tt-help-center .tt-help-toc__link:hover,
body.tt-help-center .tt-help-toc__link:focus-visible {
  color: var(--tt-primary-green);
  outline: none;
}

body.tt-help-center .tt-help-toc__link.is-active {
  border-left-color: var(--tt-primary-green);
  color: var(--tt-fg-default);
  font-weight: 600;
}

/* =============================================================================
   Category page (taxonomy-help_category)
============================================================================= */

body.tt-help-center .tt-help-cat-header {
  padding: clamp(1.75rem, 5vw, 3.25rem) 0 clamp(1.25rem, 4vw, 2.25rem);
}

body.tt-help-center .tt-help-cat-header__row {
  display: flex;
  align-items: flex-start;
  gap: var(--tt-space-5);
}

body.tt-help-center .tt-help-cat-header__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(187,107,31,0.15);
  color: var(--tt-rust-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
@media (min-width: 768px) {
  body.tt-help-center .tt-help-cat-header__icon { width: 72px; height: 72px; }
}

body.tt-help-center .tt-help-cat-header__subhead {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tt-fg-muted);
  margin: var(--tt-space-4) 0 0;
  max-width: 560px;
}

body.tt-help-center .tt-help-cat-header__search-wrap {
  margin-top: var(--tt-space-6);
  max-width: 560px;
}

body.tt-help-center .tt-help-cat-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-block: var(--tt-space-5) var(--tt-space-8);
  align-items: flex-start;
}
@media (min-width: 1024px) {
  body.tt-help-center .tt-help-cat-body {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    padding-block: var(--tt-space-10) var(--tt-space-16);
  }
}

/* Pinned "Start here" card */
body.tt-help-center .tt-help-pinned {
  display: block;
  background: var(--tt-bg-surface);
  border: 1px solid var(--tt-border-subtle);
  border-radius: 14px;
  padding: var(--tt-space-5) var(--tt-space-6);
  text-decoration: none;
  color: inherit;
  margin-bottom: var(--tt-space-4);
  position: relative;
  overflow: hidden;
}

body.tt-help-center .tt-help-pinned::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  bottom: 0;
  background: var(--tt-tagline-rust);
}

body.tt-help-center .tt-help-pinned__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--tt-space-2);
  padding: 4px 10px;
  background: rgba(187,107,31,0.15);
  color: var(--tt-rust-ink);
  border-radius: var(--tt-radius-full);
  font: 600 0.65625rem/1 var(--tt-font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--tt-space-4);
}

body.tt-help-center .tt-help-pinned__title {
  font: 600 1.25rem/1.25 var(--tt-font-sans);
  color: var(--tt-fg-default);
  margin: 0 0 var(--tt-space-3);
}
@media (min-width: 768px) {
  body.tt-help-center .tt-help-pinned__title { font-size: 1.5rem; }
}

body.tt-help-center .tt-help-pinned__excerpt {
  font: 400 0.9375rem/1.55 var(--tt-font-sans);
  color: var(--tt-fg-muted);
  margin: 0 0 var(--tt-space-4);
}

body.tt-help-center .tt-help-pinned__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tt-space-4);
  font: 500 0.78125rem/1 var(--tt-font-sans);
  color: var(--tt-fg-muted);
}

body.tt-help-center .tt-help-pinned__foot-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--tt-space-1);
  color: var(--tt-primary-green);
}

/* Article list rows */
body.tt-help-center .tt-help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--tt-border-subtle);
  border-radius: 14px;
  overflow: hidden;
}

body.tt-help-center .tt-help-list__item { border-top: 1px solid var(--tt-border-subtle); }
body.tt-help-center .tt-help-list__item:first-child { border-top: none; }

body.tt-help-center .tt-help-list__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--tt-space-2);
  padding: var(--tt-space-5) var(--tt-space-5);
  text-decoration: none;
  color: inherit;
}
@media (min-width: 768px) {
  body.tt-help-center .tt-help-list__link {
    flex-direction: row;
    align-items: center;
    gap: var(--tt-space-5);
    padding: var(--tt-space-5) var(--tt-space-6);
  }
}

body.tt-help-center .tt-help-list__main { flex: 1; min-width: 0; }

body.tt-help-center .tt-help-list__title {
  font: 500 1.0625rem/1.35 var(--tt-font-sans);
  color: var(--tt-fg-default);
  margin-bottom: var(--tt-space-1);
}

body.tt-help-center .tt-help-list__excerpt {
  font-size: 0.90625rem;
  line-height: 1.55;
  color: var(--tt-fg-muted);
  margin: 0;
  max-width: 640px;
}

body.tt-help-center .tt-help-list__meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--tt-space-3);
  font: 500 0.75rem/1 var(--tt-font-sans);
  color: var(--tt-fg-muted);
  white-space: nowrap;
}
@media (min-width: 768px) {
  body.tt-help-center .tt-help-list__meta { flex-direction: column; align-items: flex-end; gap: var(--tt-space-2); }
}

body.tt-help-center .tt-help-list__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Category sidebar (other categories) */
body.tt-help-center .tt-help-cat-sidebar {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  display: none;
}
@media (min-width: 1024px) { body.tt-help-center .tt-help-cat-sidebar { display: block; } }

body.tt-help-center .tt-help-cat-nav {
  background: var(--tt-bg-surface);
  border: 1px solid var(--tt-border-subtle);
  border-radius: 14px;
  padding: var(--tt-space-2);
}

body.tt-help-center .tt-help-cat-nav__head {
  padding: var(--tt-space-3) var(--tt-space-4) var(--tt-space-3);
  font: 600 0.6875rem/1 var(--tt-font-sans);
  color: var(--tt-fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.tt-help-center .tt-help-cat-nav__list { list-style: none; margin: 0; padding: 0; }

body.tt-help-center .tt-help-cat-nav__link {
  display: flex;
  align-items: center;
  gap: var(--tt-space-2);
  padding: var(--tt-space-3) var(--tt-space-4);
  border-radius: var(--tt-radius-md);
  font: 400 0.84375rem/1.3 var(--tt-font-sans);
  color: var(--tt-fg-default);
  text-decoration: none;
}

body.tt-help-center .tt-help-cat-nav__link:hover { background: var(--tt-stone-100); }

body.tt-help-center .tt-help-cat-nav__link.is-active {
  background: var(--tt-tip-sage);
  color: var(--tt-primary-green);
  font-weight: 600;
}

body.tt-help-center .tt-help-cat-nav__count {
  font: 500 0.75rem/1 var(--tt-font-sans);
  color: var(--tt-fg-muted);
  opacity: 0.85;
}

body.tt-help-center .tt-help-cat-nav__link.is-active .tt-help-cat-nav__count {
  color: var(--tt-primary-green);
}

/* Empty-state callout (no articles in category yet) */
body.tt-help-center .tt-help-empty {
  margin-top: var(--tt-space-6);
  padding: var(--tt-space-5) var(--tt-space-6);
  background: var(--tt-bg-surface);
  border: 1px dashed var(--tt-stone-200);
  border-radius: 12px;
  display: flex;
  gap: var(--tt-space-4);
  align-items: center;
}

body.tt-help-center .tt-help-empty__icon { color: var(--tt-tagline-rust); flex: 0 0 auto; }

body.tt-help-center .tt-help-empty__title {
  font: 500 0.875rem/1.4 var(--tt-font-sans);
  color: var(--tt-fg-default);
  margin-bottom: var(--tt-space-1);
}

body.tt-help-center .tt-help-empty__body {
  font: 400 0.8125rem/1.5 var(--tt-font-sans);
  color: var(--tt-fg-muted);
}

/* =============================================================================
   Accessibility — visually-hidden helper for form labels
============================================================================= */

body.tt-help-center .tt-help-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
