/* ==========================================================================
   Kaymbu Help Center — Zendesk Guide Theme
   Based on: Kaymbu Design System (colors_and_type.css + page-home.jsx reference)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  /* Brand */
  --teal: #179F9E;
  --teal-hover: #1A8B8A;
  --teal-active: #158584;
  --teal-deep: #358492;
  --charcoal: #323139;

  /* Accents */
  --sage: #B5D4BD;
  --green-soft: #E2F1CF;
  --green-pale: #F3F9EC;
  --blue-pale: #DEECFB;
  --blue-light: #F1F7FD;
  --pink-soft: #F0C0E8;
  --peach-warm: #FBEAD9;

  /* Neutrals */
  --gray-warm: #504F4F;
  --gray-dark: #222222;
  --gray-300: #CCCCCC;
  --gray-200: #DDDDDD;
  --gray-100: #EEEEEE;
  --gray-50: #F5F5F5;
  --white: #FFFFFF;
  --black: #000000;

  /* Semantic */
  --fg-1: var(--black);
  --fg-2: var(--charcoal);
  --fg-3: var(--gray-warm);
  --fg-link: var(--teal);
  --fg-on-teal: var(--white);
  --bg-1: var(--white);
  --bg-2: var(--green-pale);
  --border-1: var(--gray-300);
  --border-2: var(--gray-200);

  /* Fonts */
  --font-display: "Galano Grotesque", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Type scale */
  --t-h1: 26px;
  --lh-h1: 31px;
  --t-h2: 24px;
  --lh-h2: 29px;
  --t-h3: 20px;
  --lh-h3: 24px;
  --t-h4: 18px;
  --lh-h4: 22px;
  --t-body: 16px;
  --lh-body: 24px;
  --t-sm: 14px;
  --lh-sm: 21px;
  --t-xs: 12px;
  --lh-xs: 18px;
  --t-code: 13px;
  --lh-code: 19px;

  /* Spacing (4px base) */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-base: 12px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-2xl: 48px;
  --s-3xl: 64px;
  --s-4xl: 80px;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 32px;
  --r-pill: 200px;
  --r-full: 50%;

  /* Elevation */
  --shadow-1: 0 2px 4px rgba(0, 0, 0, .06);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, .08);
  --shadow-3: 0 8px 24px rgba(0, 0, 0, .12);
  --shadow-4: 0 12px 40px rgba(0, 0, 0, .16);
  --shadow-teal: 0 8px 24px rgba(23, 159, 158, .15);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(23, 159, 158, .12);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 200ms ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--fg-1);
  background: var(--bg-1);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--fg-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.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;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.hc-container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1;
  padding: 11px 20px;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.hc-btn:hover {
  text-decoration: none;
}

.hc-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.hc-btn--primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.hc-btn--primary:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: #fff;
}

.hc-btn--secondary {
  background: var(--white);
  color: var(--fg-2);
  border-color: var(--border-2);
}

.hc-btn--secondary:hover {
  border-color: var(--border-1);
  color: var(--fg-2);
}

.hc-btn--outline {
  background: transparent;
  color: var(--fg-2);
  border-color: var(--border-2);
}

.hc-btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hc-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--fg-3);
}

.hc-btn--ghost:hover {
  background: var(--gray-50);
  color: var(--fg-2);
}

/* White button for use on teal/dark surfaces (e.g. CTA block) */
.hc-btn--on-teal {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}

.hc-btn--on-teal:hover {
  background: var(--green-pale);
  border-color: var(--green-pale);
  color: var(--teal-active);
}

.hc-btn--sm {
  padding: 8px 16px;
  font-size: var(--t-xs);
}

.hc-btn--lg {
  padding: 14px 28px;
  font-size: var(--t-body);
}

.hc-btn--full {
  width: 100%;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.hc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: .2px;
}

.hc-badge--teal {
  background: rgba(23, 159, 158, .10);
  color: var(--teal);
}

.hc-badge--neutral {
  background: var(--gray-50);
  color: var(--fg-3);
}

.hc-badge--sage {
  background: #E8F5E2;
  color: #2E7D32;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.hc-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-2);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--t-base);
}

.hc-header--scrolled {
  box-shadow: var(--shadow-1);
}

.hc-header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-xl);
}

.hc-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.hc-header__brand:hover {
  text-decoration: none;
}

.hc-header__brand-link {
  display: flex;
  flex-direction: horizontal;
  gap: 16px;
  align-items: center;
}

.hc-header__logo {
  height: 26px;
  width: auto;
}

.hc-header__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(23, 159, 158, .10);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* Nav */
.hc-header__nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.hc-header__nav-list {
  display: flex;
  align-items: center;
  height: 72px;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.hc-header__nav-link {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--t-base), border-color var(--t-base);
  white-space: nowrap;
}

.hc-header__nav-link:hover {
  color: var(--teal);
  text-decoration: none;
}

.hc-header__nav-link--active,
.hc-header__nav-link[aria-current="page"] {
  color: var(--teal);
  font-weight: 600;
  border-bottom-color: var(--teal);
}

/* Header actions */
.hc-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hc-header__sign-in {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  padding: 0 8px;
  text-decoration: none;
  transition: color var(--t-base);
}

.hc-header__sign-in:hover {
  color: var(--teal);
  text-decoration: none;
}

/* User dropdown */
.hc-header__user {
  position: relative;
}

.hc-header__user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: border-color var(--t-base);
  font-family: var(--font-body);
}

.hc-header__user-btn:hover {
  border-color: var(--teal);
}

.hc-header__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.hc-header__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}

.hc-header__user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-3);
  z-index: 200;
  overflow: hidden;
}

.hc-header__user-menu.is-open {
  display: block;
}

.hc-header__menu-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--fg-2);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}

.hc-header__menu-item:hover {
  background: var(--gray-50);
  color: var(--teal);
}

.hc-header__menu-divider {
  border: none;
  border-top: 1px solid var(--border-2);
  margin: 4px 0;
}

/* Staging badge */
.hc-header__staging-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: #fef3c7;
  color: #92400e;
  border-radius: var(--r-pill);
  padding: 2px 8px;
}

/* Mobile toggle */
.hc-header__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-xs);
}

.hc-header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.hc-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg-2);
  border-radius: 2px;
  transition: transform var(--t-base);
}

/* Mobile menu */
.hc-mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: #fff;
  z-index: 90;
  overflow-y: auto;
  border-top: 1px solid var(--border-2);
}

.hc-mobile-menu[aria-hidden="false"] {
  display: block;
}

.hc-mobile-menu__inner {
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.hc-mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hc-mobile-menu__link {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-2);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}

.hc-mobile-menu__link:hover {
  background: var(--gray-50);
  color: var(--teal);
}

.hc-mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: var(--s-lg);
  border-top: 1px solid var(--border-2);
}

.hc-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   HERO — Home Page
   ========================================================================== */
.hc-hero {
  background: var(--green-pale);
  padding: 80px 0;
}

.hc-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hc-hero__content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 576px;
}

.hc-hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.hc-hero__title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0;
}

.hc-hero__subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: var(--gray-warm);
  margin: 0;
}

.hc-hero__form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 576px;
}

/* Mascot sits on the hero's bottom edge and spills 24px into the next section:
   negative margin = hero bottom padding + overlap; z-index keeps it above the
   following (static) section. */
.hc-hero__visual {
  --hero-overlap: 24px;
  flex-shrink: 0;
  width: 560px;
  align-self: flex-end;
  margin-bottom: calc(-80px - var(--hero-overlap));
  position: relative;
  z-index: 1;
}

.hc-hero__visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   SEARCH FORM — targets Zendesk's {{search}} generated HTML:
   <form class="[our-class]"><input type="search"><input type="submit"></form>
   ========================================================================== */
.hc-search-form {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 6px 8px 6px 20px;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.hc-search-form:focus-within {
  border-color: var(--teal);
  box-shadow: var(--focus-ring);
}

.hc-search-form input[type="search"],
.hc-search-form .search-query {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-1);
  min-width: 0;
  padding: 4px 0;
  -webkit-appearance: none;
  appearance: none;
}

.hc-search-form input[type="search"]::placeholder,
.hc-search-form .search-query::placeholder {
  color: var(--gray-300);
}

.hc-search-form input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.hc-search-form input[type="submit"],
.hc-search-form .search-button,
.hc-search-form button[type="submit"] {
  flex-shrink: 0;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-base);
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.hc-search-form input[type="submit"]:hover,
.hc-search-form .search-button:hover,
.hc-search-form button[type="submit"]:hover {
  background: var(--teal-hover);
}

.hc-search-form input[type="submit"]:focus-visible,
.hc-search-form button[type="submit"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Hero variant — taller, lighter border */
.hc-search-form--hero {
  padding: 8px 8px 8px 24px;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.hc-search-form--hero input[type="search"],
.hc-search-form--hero .search-query {
  font-size: 17px;
  font-weight: 500;
}

.hc-search-form--hero input[type="search"]::placeholder,
.hc-search-form--hero .search-query::placeholder {
  color: #AAAAAA;
}

.hc-search-form--hero input[type="submit"],
.hc-search-form--hero .search-button,
.hc-search-form--hero button[type="submit"] {
  padding: 12px 24px;
  font-size: 15px;
}

/* Popular search tags under hero */
.hc-hero__popular {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-warm);
}

.hc-hero__popular-label {
  margin-right: 0;
}

.hc-hero__popular-tag {
  color: var(--teal);
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--t-fast);
  text-decoration: none;
}

.hc-hero__popular-tag:hover {
  text-decoration: underline;
}

.hc-hero__popular-sep {
  color: var(--gray-300);
  font-weight: 400;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.hc-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.hc-section-header__left {}

.hc-section-header__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.hc-section-header__subtitle {
  font-size: 15px;
  line-height: 24px;
  color: var(--gray-warm);
  margin: 0;
}

/* ==========================================================================
   CATEGORY CARDS — Browse by topic
   ========================================================================== */
.hc-categories-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px 32px;
}

.hc-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-category-card {
  list-style: none;
}

.hc-category-card__link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 28px;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  height: 100%;
}

.hc-category-card__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  border-color: var(--teal);
  text-decoration: none;
}

.hc-category-card__icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: var(--r-md);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  overflow: hidden;
}

.hc-category-card__icon-wrap img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.hc-category-card__icon-default {
  width: 88px;
  height: 88px;
}

.hc-category-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hc-category-card__title {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--charcoal);
  margin: 0 0 6px;
}

.hc-category-card__desc {
  font-size: 14px;
  line-height: 22px;
  color: var(--gray-warm);
  margin: 0 0 12px;
  flex: 1;
}

.hc-category-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.hc-category-card__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-warm);
}

.hc-category-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  transition: color var(--t-base);
}

.hc-category-card__link:hover .hc-category-card__arrow {
  color: var(--teal-hover);
}

/* ==========================================================================
   POPULAR ARTICLES
   ========================================================================== */
.hc-popular-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 32px;
}

.hc-article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-article-row {
  list-style: none;
}

.hc-article-row__link {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 24px;
  text-decoration: none;
  cursor: pointer;
  height: 100%;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.hc-article-row__link:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  text-decoration: none;
}

.hc-article-row__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hc-article-row__content {
  flex: 1;
  min-width: 0;
}

.hc-article-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.hc-article-row__category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--teal);
}

.hc-article-row__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--charcoal);
  margin: 0 0 4px;
}

.hc-article-row__link:hover .hc-article-row__title {
  color: var(--charcoal);
}

.hc-article-row__snippet {
  font-size: 14px;
  line-height: 22px;
  color: var(--gray-warm);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hc-article-row__footer-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-warm);
}

.hc-article-row__arrow {
  flex-shrink: 0;
  color: var(--gray-300);
  transition: color var(--t-base);
  margin-top: 12px;
}

.hc-article-row__link:hover .hc-article-row__arrow {
  color: var(--teal);
}

/* Loading skeleton + empty state for the popular articles list. The skeleton
   placeholders are server-rendered when popular_source = 'section' or 'recent'
   so the grid keeps its height while JS fetches the real articles. */
.hc-article-row--skeleton {
  list-style: none;
  background: var(--gray-100);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  min-height: 132px;
  animation: hc-skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes hc-skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.hc-article-list__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  margin: 0;
  font-size: var(--t-sm);
  color: var(--gray-warm);
}

@media (prefers-reduced-motion: reduce) {
  .hc-article-row--skeleton {
    animation: none;
  }
}

/* ==========================================================================
   CTA / CONTACT BLOCK — "Still need help?"
   ========================================================================== */
.hc-cta-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px 0;
}

.hc-cta-block__inner {
  background: var(--teal-deep);
  border-radius: var(--r-lg);
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hc-cta-block__content {
  flex: 1 1 360px;
  min-width: 0;
}

.hc-cta-block__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16); /* white overlay tint on teal */
  color: var(--white);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 20px;
}

.hc-cta-block__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 12px;
}

.hc-cta-block__text {
  font-size: 15px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.85); /* translucent white on teal */
  margin: 0 auto;
  max-width: 560px;
}

.hc-cta-block__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

/* legacy icon variant (sidebar) */
.hc-cta-block__icon {
  flex-shrink: 0;
}

/* Visual variant (home): content left-aligned, mascot on the right sitting
   flush on the card's bottom edge (negative margin = inner bottom padding). */
.hc-cta-block--visual .hc-cta-block__inner {
  flex-direction: row;
  align-items: center;
  gap: var(--s-xl);
  padding: 56px 88px;
  text-align: left;
  overflow: hidden;
}

.hc-cta-block--visual .hc-cta-block__text {
  margin: 0;
}

.hc-cta-block--visual .hc-cta-block__actions {
  justify-content: flex-start;
}

.hc-cta-block__visual {
  flex: 0 0 340px;
  align-self: flex-end;
  margin: -24px 96px -56px 0;
}

.hc-cta-block__visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hc-footer {
  background: var(--white);
  border-top: 1px solid var(--border-2);
  margin-top: 80px;
  padding: 64px 32px 40px;
}

.hc-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hc-footer__brand {
  display: flex;
  flex-direction: column;
}

.hc-footer__logo-link {
  display: inline-flex;
  margin-bottom: 16px;
}

.hc-footer__logo {
  height: 28px;
  width: auto;
}

.hc-footer__tagline {
  font-size: 14px;
  line-height: 22px;
  color: var(--gray-warm);
  margin: 0;
  max-width: 280px;
}

.hc-footer__nav {}

.hc-footer__nav-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 16px;
  letter-spacing: .2px;
}

.hc-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hc-footer__nav-link {
  font-size: 14px;
  color: var(--gray-warm);
  text-decoration: none;
  transition: color var(--t-base);
}

.hc-footer__nav-link:hover {
  color: var(--teal);
  text-decoration: none;
}

.hc-footer__bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-warm);
}

.hc-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
}

.hc-footer__copy {
  margin: 0;
}

.hc-footer__bottom-links {
  display: flex;
  gap: 24px;
}

.hc-footer__locale-link {
  font-size: 13px;
  color: var(--gray-warm);
  text-decoration: none;
  transition: color var(--t-base);
}

.hc-footer__locale-link:hover {
  color: var(--teal);
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.hc-breadcrumb {
  margin-bottom: var(--s-lg);
}

.hc-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--gray-warm);
}

.hc-breadcrumb__item+.hc-breadcrumb__item::before {
  content: '›';
  margin: 0 8px;
  color: var(--gray-300);
}

.hc-breadcrumb__link {
  font-size: 13px;
  color: var(--gray-warm);
  text-decoration: none;
  transition: color var(--t-base);
}

.hc-breadcrumb__link:hover {
  color: var(--teal);
}

.hc-breadcrumb__item--current {
  color: var(--charcoal);
  font-weight: 500;
}

/* Zendesk {{breadcrumbs}} emits its own <ol class="breadcrumbs"> markup —
   style that output to match the horizontal __list/__item/__link design. */
.hc-breadcrumb .breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-breadcrumb .breadcrumbs li {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--gray-warm);
}

.hc-breadcrumb .breadcrumbs li+li::before {
  content: '›';
  margin: 0 8px;
  color: var(--gray-300);
}

.hc-breadcrumb .breadcrumbs a {
  font-size: 13px;
  color: var(--gray-warm);
  text-decoration: none;
  transition: color var(--t-base);
}

.hc-breadcrumb .breadcrumbs a:hover {
  color: var(--teal);
}

.hc-breadcrumb .breadcrumbs li:last-child {
  color: var(--charcoal);
  font-weight: 500;
}

/* ==========================================================================
   PAGE HERO (inner pages — Category, Article, Search, Error)
   ========================================================================== */
.hc-page-hero {
  background: var(--green-pale);
  border-bottom: 1px solid var(--border-2);
  padding: var(--s-2xl) 0 var(--s-xl);
}

.hc-page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.hc-page-hero__content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Visual variant (community landing): mascots sit flush on the hero's bottom
   edge — the hero drops its bottom padding and the inner keeps the spacing. */
.hc-page-hero.hc-page-hero--visual {
  padding-bottom: 0; /* beats the responsive .hc-page-hero padding shorthand */
}

.hc-page-hero--visual .hc-page-hero__inner {
  position: relative;
  padding-bottom: var(--s-xl);
}

.hc-page-hero__visual {
  position: absolute;
  right: 32px;
  bottom: 0;
  width: 460px;
}

.hc-page-hero__visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Submit a request: wider illustration, centred-right. The inner is tall enough
   for the art (178px tall, starting ~18px under the hero top) and the right
   offset shrinks from 152px to 32px as the container narrows, so the art never
   reaches the title. */
.hc-page-hero--request .hc-page-hero__inner {
  min-height: 148px;
}

.hc-page-hero--request .hc-page-hero__visual {
  width: 552px;
  right: clamp(32px, calc(100% - 1128px), 152px);
}

/* Category pages with an illustration (added per category by the
   category_page inline script). All art shares one 680x430 canvas, shown at up
   to 400x253; it narrows between ~1100px and 1025px so it never reaches the
   search (left column = 32 + 576 + 64 gap). min-height keeps it inside the
   hero even when the category has no description. */
.hc-page-hero--category .hc-page-hero__inner {
  min-height: 222px;
}

.hc-page-hero--category .hc-page-hero__visual {
  width: min(400px, calc(100% - 672px));
}

.hc-page-hero__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0 0 6px;
}

.hc-page-hero__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-warm);
  margin: 0;
}

.hc-page-hero__lock {
  width: 22px;
  height: 22px;
  margin-left: 10px;
  color: var(--gray-300);
  vertical-align: -2px;
}

/* ==========================================================================
   CATEGORY PAGE
   ========================================================================== */
.hc-category-page {
  background: var(--white);
}

.hc-category-page__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--s-2xl);
  align-items: start;
  padding-block: var(--s-2xl) var(--s-4xl);
}

.hc-category-page__main {
  min-width: 0;
}

/* Sections list */
.hc-sections-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-section-card {
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  list-style: none;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.hc-section-card:hover,
.hc-section-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  border-color: var(--teal);
}

.hc-section-card__header {}

.hc-section-card__title {
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 4px;
}

.hc-section-card__title-link {
  color: var(--charcoal);
  text-decoration: none;
  transition: color var(--t-base);
}

.hc-section-card__title-link:hover {
  color: var(--teal);
}

.hc-section-card__desc {
  font-size: var(--t-sm);
  color: var(--gray-warm);
  margin: 0;
  line-height: 1.5;
}

.hc-section-card__articles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-2);
  padding-top: var(--s-md);
}

.hc-section-card__article-item {
  list-style: none;
}

.hc-section-card__article-link {
  display: block;
  font-size: 14px;
  color: var(--gray-warm);
  padding: 5px 0;
  text-decoration: none;
  transition: color var(--t-base);
}

.hc-section-card__article-link:hover {
  color: var(--teal);
}

.hc-section-card__view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  margin-top: 4px;
  transition: gap var(--t-base);
}

.hc-section-card__view-all:hover {
  gap: 8px;
}

/* Sidebar */
.hc-category-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hc-category-sidebar__widget {
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-lg);
}

.hc-category-sidebar__heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-warm);
  margin: 0 0 var(--s-md);
}

.hc-category-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hc-category-sidebar__item {
  list-style: none;
}

.hc-category-sidebar__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--gray-warm);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: var(--r-xs);
  transition: background var(--t-fast), color var(--t-fast);
}

.hc-category-sidebar__link:hover {
  color: var(--charcoal);
}

.hc-category-sidebar__link--active {
  color: var(--teal);
  font-weight: 600;
}

.hc-category-sidebar__count {
  font-size: 12px;
  color: var(--gray-300);
  font-weight: 400;
}

.hc-cta-widget {
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

.hc-cta-widget__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

.hc-cta-widget__text {
  font-size: 13px;
  color: var(--gray-warm);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   ARTICLE PAGE
   ========================================================================== */
.hc-article-header-wrap {
  background: var(--green-pale);
  border-bottom: 1px solid var(--border-2);
  padding: var(--s-lg) 0 0;
}

.hc-article-page {
  background: var(--white);
}

.hc-article-page__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--s-2xl);
  align-items: start;
  padding: var(--s-2xl) 0 var(--s-4xl);
}

.hc-article-main {
  min-width: 0;
}

.hc-article-header {
  margin-bottom: var(--s-xl);
}

.hc-article-header__labels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hc-article-header__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0 0 16px;
}

.hc-article-header__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-warm);
}

.hc-article-header__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hc-article-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.hc-article-header__author-name {
  font-weight: 600;
  color: var(--charcoal);
}

.hc-article-header__date {
  color: var(--gray-warm);
}

/* Article body — rich text styles */
.hc-article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-1);
  max-width: 680px;
}

.hc-article-body h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 2em 0 .75em;
  color: var(--charcoal);
}

.hc-article-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 1.75em 0 .5em;
  color: var(--charcoal);
}

.hc-article-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 1.5em 0 .5em;
  color: var(--charcoal);
}

.hc-article-body p {
  margin: 0 0 1.25em;
}

.hc-article-body ul,
.hc-article-body ol {
  padding-left: 1.5em;
  margin: 0 0 1.25em;
}

.hc-article-body li {
  margin-bottom: .5em;
}

.hc-article-body a {
  color: var(--teal);
}

.hc-article-body a:hover {
  text-decoration: underline;
}

/* In-article "Table of Contents" list (tagged by article_page inline script):
   the chevron replaces the list marker; nested items align under the parent text */
.hc-article-body .hc-article-toc,
.hc-article-body .hc-article-toc ul,
.hc-article-body .hc-article-toc ol {
  list-style: none;
}

.hc-article-body .hc-article-toc ul,
.hc-article-body .hc-article-toc ol {
  padding-left: 22px;
  margin: .5em 0 0;
}

.hc-article-body .hc-article-toc a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.hc-article-body .hc-article-toc a svg {
  flex-shrink: 0;
  margin-top: calc(.5lh - 7px);
}

.hc-article-body strong {
  font-weight: 700;
}

.hc-article-body em {
  font-style: italic;
}

.hc-article-body img {
  max-width: 100%;
  border-radius: var(--r-sm);
  margin: 1em 0;
}

.hc-article-body hr {
  border: none;
  border-top: 1px solid var(--border-2);
  margin: 2em 0;
}

.hc-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}

.hc-article-body th,
.hc-article-body td {
  padding: 10px 14px;
  border: 1px solid var(--border-2);
  text-align: left;
}

.hc-article-body th {
  background: var(--gray-50);
  font-weight: 600;
}

.hc-article-body code {
  font-family: var(--font-mono);
  font-size: var(--t-code);
  background: var(--gray-50);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  color: var(--teal-active);
}

.hc-article-body pre {
  background: var(--gray-50);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.hc-article-body pre code {
  background: none;
  padding: 0;
  color: var(--fg-1);
  font-size: 13px;
}

.hc-article-body blockquote {
  border-left: 4px solid var(--teal);
  background: var(--green-pale);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  padding: 14px 20px;
  margin: 1.5em 0;
}

.hc-article-body blockquote p {
  margin: 0;
}

/* Callouts */
.hc-callout {
  border-radius: var(--r-sm);
  padding: 14px 20px;
  margin: 1.5em 0;
  border-left: 4px solid;
}

.hc-callout--tip {
  background: var(--green-pale);
  border-color: var(--teal);
}

.hc-callout--warning {
  background: #fdf6ef;
  border-color: #f97316;
}

.hc-callout p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* Article footer */
.hc-article-footer {
  margin-top: var(--s-2xl);
  padding-top: var(--s-2xl);
  border-top: 1px solid var(--border-2);
}

/* Feedback widget */
.hc-article-feedback {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hc-article-feedback__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

.hc-article-feedback__actions {
  display: flex;
  gap: 8px;
}

.hc-article-feedback__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-pill);
  background: var(--white);
  cursor: pointer;
  color: var(--fg-2);
  transition: border-color var(--t-base), color var(--t-base), background var(--t-base);
}

.hc-article-feedback__btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hc-article-feedback__btn--yes:hover {
  background: rgba(23, 159, 158, .06);
}

.hc-article-feedback__result {}

.hc-article-feedback__thanks {
  font-size: 14px;
  color: var(--gray-warm);
  margin: 0;
}

/* Comments */
.hc-article-comments {
  margin-top: var(--s-2xl);
  padding-top: var(--s-2xl);
  border-top: 1px solid var(--border-2);
}

.hc-article-comments__heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 var(--s-xl);
}

.hc-comment {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s-md) var(--s-lg);
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
}

.hc-comment__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hc-comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hc-comment__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.hc-comment__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hc-comment__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
}

.hc-comment__date {
  font-size: 12px;
  color: var(--gray-warm);
}

.hc-comment__body {
  font-size: 15px;
  color: var(--gray-warm);
  line-height: 1.65;
}

.hc-comment-form {
  margin-top: var(--s-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.hc-comment-form__heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

.hc-comment-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hc-comment-form__sign-in {
  font-size: 14px;
  color: var(--gray-warm);
}

.hc-comment-form__footer {
  display: flex;
  justify-content: flex-end;
}

/* Style the editor generated by {{wysiwyg}} — target the generated element,
   the same way the search form targets Zendesk's generated inputs. */
.hc-comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-1);
  background: var(--gray-50);
  resize: vertical;
  box-sizing: border-box;
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}

.hc-comment-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: var(--focus-ring);
}

.hc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}

.hc-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-1);
  background: var(--gray-50);
  resize: vertical;
  transition: border-color var(--t-base);
  box-sizing: border-box;
}

.hc-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--focus-ring);
}

.hc-link {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

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

/* Article sidebar */
.hc-article-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* TOC widget */
.hc-toc-widget {
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-lg);
}

.hc-toc-widget__heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-warm);
  margin: 0 0 var(--s-md);
}

.hc-toc__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-toc__item {}

.hc-toc__item--h3 {
  padding-left: 12px;
}

.hc-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-warm);
  text-decoration: none;
  padding: 6px 4px;
  border-radius: var(--r-xs);
  transition: color var(--t-base), background var(--t-base);
  line-height: 1.4;
}

/* Same arrow as .hc-related-widget__link */
.hc-toc__link svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.hc-toc__link:hover {
  color: var(--teal);
}

.hc-toc__link--active {
  color: var(--teal);
}

/* Related widget */
.hc-related-widget {
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-lg);
}

.hc-related-widget__heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-warm);
  margin: 0 0 var(--s-md);
}

.hc-related-widget__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-related-widget__item {
  list-style: none;
}

.hc-related-widget__link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-warm);
  text-decoration: none;
  padding: 6px 4px;
  border-radius: var(--r-xs);
  transition: color var(--t-base);
  line-height: 1.4;
}

.hc-related-widget__link svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.hc-related-widget__link:hover {
  color: var(--teal);
}

/* ==========================================================================
   SEARCH RESULTS PAGE
   ========================================================================== */
.hc-search-hero {
  background: var(--green-pale);
  padding: 64px 32px;
}

.hc-search-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-lg);
}

.hc-search-hero__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0;
}

.hc-search-hero__count {
  font-size: 15px;
  color: var(--gray-warm);
  margin: 0;
}

/* Search results — rich .hc-article-row cards in the full-width 3-col
   .hc-article-list grid (inherits the 3 → 2 → 1 responsive collapse). */
.hc-search-results {
  padding-top: var(--s-2xl);
  padding-bottom: var(--s-4xl);
}

.hc-search-results__count {
  font-size: var(--t-sm);
  color: var(--gray-warm);
  margin: 0 0 var(--s-lg);
}

.hc-search-results-section {
  padding: var(--s-2xl) 0 var(--s-4xl);
}

.hc-search-results-section__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--s-2xl);
  align-items: start;
}

.hc-search-results-main {
  min-width: 0;
}

.hc-search-sidebar {
  position: sticky;
  top: 88px;
}

/* Filters */
.hc-search-filters {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  margin-bottom: var(--s-xl);
  flex-wrap: wrap;
}

.hc-search-filters__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-warm);
  white-space: nowrap;
}

.hc-search-filters__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hc-search-filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-warm);
  text-decoration: none;
  background: var(--white);
  transition: border-color var(--t-base), color var(--t-base), background var(--t-base);
  cursor: pointer;
}

.hc-search-filter-tag:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hc-search-filter-tag--active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* Search result list */
.hc-search-result-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-search-result-card {
  list-style: none;
}

.hc-search-result-card__inner {
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-xl);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.hc-search-result-card__inner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  border-color: var(--teal);
}

.hc-search-result-card__meta {
  margin-bottom: 8px;
}

.hc-search-result-card__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  color: var(--gray-warm);
}

.hc-search-result-card__breadcrumb-item {}

.hc-search-result-card__breadcrumb-sep {
  margin: 0 6px;
  color: var(--gray-300);
}

.hc-search-result-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 8px;
}

.hc-search-result-card__link {
  color: var(--charcoal);
  text-decoration: none;
  transition: color var(--t-base);
}

.hc-search-result-card__link:hover {
  color: var(--teal);
}

.hc-search-result-card__snippet {
  font-size: 14px;
  color: var(--gray-warm);
  line-height: 1.6;
  margin: 0 0 12px;
}

.hc-search-result-card__snippet mark {
  background: rgba(23, 159, 158, .12);
  color: var(--teal-active);
  border-radius: 2px;
  padding: 0 2px;
}

.hc-search-result-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hc-search-result-card__date {
  font-size: 12px;
  color: var(--gray-warm);
}

.hc-search-result-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition: gap var(--t-base);
}

.hc-search-result-card__read-more:hover {
  gap: 8px;
}

/* No results */
.hc-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-3xl) var(--s-xl);
  text-align: center;
}

.hc-no-results__icon {}

.hc-no-results__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

.hc-no-results__text {
  font-size: 15px;
  color: var(--gray-warm);
  margin: 0;
}

.hc-no-results__suggestions {
  font-size: 14px;
  color: var(--gray-warm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding-left: 1.5em;
}

.hc-no-results__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   ERROR PAGE
   ========================================================================== */
.hc-error-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--s-4xl) 32px;
}

.hc-error-state__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-lg);
  max-width: 560px;
}

.hc-error-state__icon {}

/* 404 illustration: wider than the 560px column, overflows it evenly */
.hc-error-state__visual {
  width: 650px;
  max-width: calc(100vw - 64px);
  flex-shrink: 0;
}

.hc-error-state__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hc-error-state__heading {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0;
}

.hc-error-state__desc {
  font-size: 16px;
  color: var(--gray-warm);
  margin: 0;
}

.hc-error-state__search {
  max-width: 480px;
  width: 100%;
}

.hc-error-state__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hc-error-state__categories {
  margin-top: var(--s-xl);
}

.hc-error-state__categories-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 var(--s-md);
}

.hc-error-state__categories-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-error-state__category-link {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--gray-warm);
  text-decoration: none;
  transition: border-color var(--t-base), color var(--t-base);
}

.hc-error-state__category-link:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ==========================================================================
   SUBSECTIONS (section page)
   ========================================================================== */
.hc-subsections {
  display: flex;
  flex-direction: column;
  gap: var(--s-2xl);
}

.hc-subsection__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 var(--s-md);
  border-bottom: 2px solid var(--teal);
  display: inline-block;
  padding-bottom: 4px;
}

.hc-article-list--compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hc-article-row--compact .hc-article-row__link {
  padding: 12px 16px;
}

.hc-article-row__icon-sm {
  color: var(--gray-warm);
  flex-shrink: 0;
}

/* Section page — two-column layout (article list + sidebar) */
.hc-article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--s-2xl);
  align-items: start;
  padding-block: var(--s-2xl) var(--s-4xl);
}

.hc-article-layout__main {
  min-width: 0;
}

/* Section page article list: 2-up rich cards in the main column
   (inherits the .hc-article-list responsive collapse: 2 → 1 at 768px) */
.hc-section-articles {
  grid-template-columns: repeat(2, 1fr);
}

/* ==========================================================================
   TAGS
   ========================================================================== */
.hc-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: rgba(23, 159, 158, .10);
  color: var(--teal);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.hc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-3xl) var(--s-xl);
  text-align: center;
}

.hc-empty-state__text {
  font-size: 15px;
  color: var(--gray-warm);
  margin: 0;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.hc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-md);
  margin-top: var(--s-xl);
}

.hc-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-warm);
  padding: 8px 16px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: border-color var(--t-base), color var(--t-base);
}

.hc-pagination__btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hc-pagination__info {
  font-size: 13px;
  color: var(--gray-warm);
}

/* Search result eyebrow: render all path_steps but show only the deepest
   (the section/topic) — avoids needing a Curlybars "last" helper. */
.hc-article-row__category .hc-crumb {
  display: none;
}

.hc-article-row__category .hc-crumb:last-child {
  display: inline;
}

/* ==========================================================================
   PAGINATION (the {{pagination}} helper's generated markup)
   Zendesk renders .pagination with .pagination-prev-link / .pagination-next-link
   / .pagination-page / .pagination-current. Style them as centered pills,
   reusing the .hc-pagination__btn look.
   ========================================================================== */
/* Robust to the real {{pagination}} structure: links may sit directly in
   .pagination OR be wrapped in a <ul>/<li> (which would otherwise stack). */
.pagination,
.pagination ul,
.pagination ol,
.pagination-page-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination {
  margin-top: var(--s-2xl);
}

.pagination li {
  display: flex;
  list-style: none;
}

/* Only show when there's more than one page (i.e. real nav links exist) */
.pagination:empty {
  display: none;
}

.pagination:not(:has(a)) {
  display: none;
}

.pagination a,
.pagination-prev-link,
.pagination-next-link,
.pagination-first-link,
.pagination-last-link,
.pagination-page,
.pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: var(--t-sm);
  font-weight: 600;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-2);
  color: var(--gray-warm);
  text-decoration: none;
  transition: border-color var(--t-base), color var(--t-base), background var(--t-base);
}

.pagination a:hover,
.pagination-prev-link:hover,
.pagination-next-link:hover,
.pagination-first-link:hover,
.pagination-last-link:hover,
.pagination-page:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.pagination-current {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  /* Stack the hero already at the tablet breakpoint so the fixed-width
     illustration doesn't overflow/clip between 768–1024px. */
  .hc-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .hc-hero__visual {
    width: 100%;
    max-width: 420px;
    align-self: center;
  }

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

  .hc-cta-block--visual .hc-cta-block__inner {
    padding-left: 48px;
    padding-right: 48px;
  }

  .hc-cta-block__visual {
    flex-basis: 300px;
    margin-right: 0;
  }

  /* Community hero: mascots drop below the search, still flush at the bottom */
  .hc-page-hero--visual .hc-page-hero__inner {
    padding-bottom: 0;
  }

  .hc-page-hero__visual {
    position: static;
    align-self: center;
    width: 100%;
    max-width: 420px;
    margin-top: var(--s-sm);
  }

  .hc-page-hero--request .hc-page-hero__inner {
    min-height: 0;
  }

  .hc-page-hero--request .hc-page-hero__visual {
    width: 100%;
  }

  .hc-page-hero--category .hc-page-hero__inner {
    min-height: 0;
  }

  .hc-page-hero--category .hc-page-hero__visual {
    width: 100%;
    max-width: 360px;
  }

  .hc-article-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hc-category-page__inner,
  .hc-article-page__inner,
  .hc-article-layout,
  .hc-search-results-section__inner {
    grid-template-columns: 1fr;
  }

  .hc-category-sidebar,
  .hc-article-sidebar,
  .hc-search-sidebar {
    position: static;
  }

  .hc-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .hc-header__nav,
  .hc-header__user,
  .hc-header__sign-in,
  .hc-header__cta {
    display: none;
  }

  .hc-header__mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hc-hero {
    padding: 64px 0;
  }

  .hc-hero__visual {
    margin-bottom: calc(-64px - var(--hero-overlap));
  }

  .hc-hero__inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hc-hero__title {
    font-size: 42px;
  }

  .hc-hero__subtitle {
    font-size: 17px;
  }

  .hc-hero__form-wrap {
    max-width: 100%;
  }

  .hc-categories-section,
  .hc-popular-section,
  .hc-cta-block {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hc-categories-grid {
    grid-template-columns: 1fr;
  }

  .hc-article-list {
    grid-template-columns: 1fr;
  }

  .hc-cta-block__inner {
    padding: 40px 24px;
  }

  .hc-cta-block__actions {
    width: 100%;
  }

  .hc-cta-block__actions .hc-btn {
    flex: 1;
    justify-content: center;
  }

  /* Visual variant stacks: centered text, mascot flush at the bottom */
  .hc-cta-block--visual .hc-cta-block__inner {
    flex-direction: column;
    gap: var(--s-lg);
    padding: 40px 24px;
    text-align: center;
  }

  .hc-cta-block--visual .hc-cta-block__content {
    flex-basis: auto;
    width: 100%;
  }

  .hc-cta-block__visual {
    flex: 0 0 auto;
    width: 280px;
    max-width: 100%;
    align-self: center;
    margin: 0 0 -40px;
  }

  .hc-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hc-footer__bottom-inner {
    flex-direction: column;
    gap: 12px;
  }

  .hc-footer__bottom-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hc-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hc-search-hero {
    padding: 40px 24px;
  }

  .hc-search-hero__title {
    font-size: 26px;
  }

  .hc-page-hero {
    padding: var(--s-xl) 0 var(--s-lg);
  }

  .hc-page-hero__title {
    font-size: 24px;
  }

  .hc-article-header__title {
    font-size: 24px;
  }

  .hc-search-results-section {
    padding: var(--s-xl) 0 var(--s-2xl);
  }
}

@media (max-width: 480px) {
  .hc-hero__title {
    font-size: 30px;
  }

  .hc-section-header__title {
    font-size: 22px;
  }

  .hc-cta-block__title {
    font-size: 22px;
  }

  .hc-error-state__heading {
    font-size: 28px;
  }

  .hc-error-state__visual {
    width: 308px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   COMMUNITY — landing (topic list + post list)
   ========================================================================== */
.hc-community__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-xl);
  padding-block: var(--s-2xl) var(--s-4xl);
}

.hc-community-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  flex-wrap: wrap;
}

.hc-community-nav {
  display: inline-flex;
  gap: var(--s-sm);
}

/* Topic cards reuse .hc-categories-grid + .hc-category-card* */
.hc-topic-card__lock {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  color: var(--gray-300);
  vertical-align: middle;
}

.hc-topic-card__meta {
  display: flex;
  gap: var(--s-md);
  font-size: 13px;
  color: var(--gray-warm);
}

/* Filters / sorters dropdowns */
.hc-community-filters {
  display: flex;
  gap: var(--s-sm);
  flex-wrap: wrap;
}

.hc-dropdown {
  position: relative;
}

.hc-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color var(--t-base);
}

.hc-dropdown__toggle:hover {
  border-color: var(--border-1);
}

.hc-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
  padding: 6px;
  display: none;
  z-index: 20;
}

.hc-dropdown__menu.is-open {
  display: block;
}

.hc-dropdown__item {
  display: block;
  font-size: var(--t-sm);
  color: var(--gray-warm);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--r-xs);
}

.hc-dropdown__item:hover {
  background: var(--gray-50);
  color: var(--charcoal);
}

.hc-dropdown__item[aria-checked="true"] {
  color: var(--teal);
  font-weight: 600;
}

/* Post list */
.hc-community-posts {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-community-post {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-lg);
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-lg);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.hc-community-post:hover,
.hc-community-post:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  border-color: var(--teal);
}

.hc-community-post__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hc-community-post__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hc-community-post__title {
  font-size: var(--t-h4);
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.3;
}

.hc-community-post__title:hover {
  color: var(--charcoal);
  text-decoration: none;
}

/* Stretched link: whole card is clickable via the title's href */
.hc-community-post__title::after {
  content: '';
  position: absolute;
  inset: 0;
}

.hc-community-post__meta {
  display: flex;
  gap: var(--s-md);
  font-size: 13px;
  color: var(--gray-warm);
}

.hc-community-post__counts {
  display: flex;
  gap: var(--s-lg);
  flex-shrink: 0;
}

.hc-community-post__count {
  font-size: 12px;
  color: var(--gray-warm);
  text-align: center;
  white-space: nowrap;
}

.hc-community-post__count strong {
  display: block;
  font-size: 16px;
  color: var(--charcoal);
}

/* Featured posts */
.hc-community-featured__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
  list-style: none;
  margin: var(--s-md) 0 0;
  padding: 0;
}

.hc-community-featured__item {
  list-style: none;
}

.hc-community-featured__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-sm);
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-md) var(--s-lg);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.35;
  transition: border-color var(--t-base), color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.hc-community-featured__link::after {
  content: '›';
  color: var(--gray-300);
  font-size: 18px;
  flex-shrink: 0;
}

.hc-community-featured__link:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}

/* Recent activity — custom cards via fetch (replaces the black-box {{recent_activity}}) */
.hc-community-activity {
  margin-top: var(--s-md);
}

.hc-community-activity__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
  list-style: none;
  margin: var(--s-md) 0 0;
  padding: 0;
}

.hc-community-activity__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-lg);
  list-style: none;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.hc-community-activity__card:not(.hc-community-activity__card--skeleton):hover,
.hc-community-activity__card:not(.hc-community-activity__card--skeleton):focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  border-color: var(--teal);
}

.hc-community-activity__card--skeleton {
  min-height: 104px;
  background: var(--gray-50);
  border-color: transparent;
}

.hc-community-activity__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--teal);
}

.hc-community-activity__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.35;
}

.hc-community-activity__title:hover {
  color: var(--charcoal);
  text-decoration: none;
}

/* Stretched link: whole card is clickable via the title's href */
.hc-community-activity__title::after {
  content: '';
  position: absolute;
  inset: 0;
}

.hc-community-activity__meta {
  display: flex;
  gap: var(--s-md);
  font-size: 12px;
  color: var(--gray-warm);
  margin-top: auto;
}

.hc-community-activity__empty {
  font-size: var(--t-sm);
  color: var(--gray-warm);
  margin: var(--s-md) 0 0;
}

@media (max-width: 1024px) {
  .hc-community-featured__list,
  .hc-community-activity__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hc-community-featured__list,
  .hc-community-activity__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hc-community-post {
    flex-direction: column;
    gap: var(--s-md);
  }

  .hc-community-post__counts {
    gap: var(--s-xl);
  }
}

/* ==========================================================================
   COMMUNITY — post page (post + vote + comments)
   ========================================================================== */
.hc-page-hero__heading .hc-post-header__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Author block */
.hc-post-author {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.hc-post-author__avatar {
  position: relative;
  flex-shrink: 0;
}

.hc-post-author__avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.hc-post-author__agent {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  color: var(--teal);
  background: var(--white);
  border-radius: 50%;
}

.hc-post-author__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hc-post-author__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
}

.hc-post-author__name a {
  color: inherit;
  text-decoration: none;
}

.hc-post-author__name a:hover {
  color: var(--teal);
}

.hc-post-author__date {
  font-size: 13px;
  color: var(--gray-warm);
}

.hc-post-author__labels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Community badges (titles + achievements) */
.hc-community-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 2px 0;
  padding: 0;
}

.hc-community-badges:empty,
.hc-community-badges:not(:has(> li)) {
  display: none;
}

.hc-community-badge {
  list-style: none;
}

.hc-community-badge--title {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(23, 159, 158, .10);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.hc-community-badge--achievement img {
  width: 18px;
  height: 18px;
  display: block;
}

.hc-community-badge__more {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-warm);
  text-decoration: none;
}

.hc-community-badge__more:hover {
  color: var(--teal);
}

/* ==========================================================================
   USER PROFILE PAGE
   ========================================================================== */
.hc-profile-header {
  background: var(--white);
  padding: var(--s-2xl) 0;
}

.hc-profile-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-xl);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-2xl);
}

.hc-profile-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-xl);
  flex-wrap: wrap;
}

.hc-profile-identity {
  display: flex;
  align-items: flex-start;
  gap: var(--s-lg);
  min-width: 0;
}

.hc-profile-avatar__img {
  width: 72px;
  height: 72px;
}

.hc-profile-identity__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hc-profile-identity__name-row {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  flex-wrap: wrap;
}

.hc-profile-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0;
}

.hc-profile-name a {
  color: inherit;
  text-decoration: none;
}

.hc-profile-name a:hover {
  color: var(--teal);
}

.hc-profile-private {
  text-transform: none;
  letter-spacing: 0;
}

.hc-profile-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 4px 0 0;
  max-width: 60ch;
}

.hc-profile-actions {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  flex-shrink: 0;
}

/* Zendesk-generated controls: {{subscribe}} + {{actions}} */
.hc-profile-follow button,
.hc-profile-actions__menu .dropdown-toggle,
.hc-profile-actions__menu button {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--fg-2);
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color var(--t-base), color var(--t-base);
}

.hc-profile-follow button:hover,
.hc-profile-actions__menu .dropdown-toggle:hover,
.hc-profile-actions__menu button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Stats */
.hc-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-lg);
  list-style: none;
  margin: 0;
  padding: var(--s-xl) 0 0;
  border-top: 1px solid var(--border-2);
}

.hc-profile-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hc-profile-stat__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--gray-warm);
}

.hc-profile-stat__value {
  font-size: 18px;
  font-weight: 600;
  color: var(--charcoal);
}

@media (max-width: 768px) {
  .hc-profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hc-profile-card__top {
    flex-direction: column;
  }

  .hc-profile-actions {
    width: 100%;
  }
}

/* Profile body, filter nav, content sections */
.hc-profile-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-xl);
  padding-block: var(--s-xl) var(--s-4xl);
}

.hc-profile-nav {
  flex-wrap: wrap;
}

.hc-profile-section {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.hc-profile-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-md);
  flex-wrap: wrap;
}

.hc-profile-section__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
  text-transform: capitalize;
}

.hc-profile-section__desc {
  font-size: 14px;
  color: var(--gray-warm);
}

/* Activity + contribution cards */
.hc-profile-contribution-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-profile-activity {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  list-style: none;
}

.hc-profile-activity__head {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}

.hc-profile-activity__icon {
  display: inline-flex;
  color: var(--teal);
}

.hc-profile-activity__label {
  font-size: 14px;
  color: var(--fg-2);
  margin: 0;
}

.hc-profile-contribution {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-lg);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.hc-profile-contribution:hover,
.hc-profile-contribution:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  border-color: var(--teal);
}

.hc-profile-contribution__head {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  flex-wrap: wrap;
}

.hc-profile-contribution__icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--teal);
}

.hc-profile-contribution__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.hc-profile-contribution__title a {
  color: var(--charcoal);
  text-decoration: none;
}

.hc-profile-contribution__title a:hover {
  color: var(--charcoal);
  text-decoration: none;
}

/* Stretched link: whole card clickable via the title (article/post cards).
   Comment cards have no title link — they stay clickable via "view comment". */
.hc-profile-contribution__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.hc-profile-contribution__path .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.hc-profile-contribution__path .breadcrumbs li {
  display: flex;
  align-items: center;
}

.hc-profile-contribution__path .breadcrumbs li+li::before {
  content: '›';
  margin: 0 6px;
  color: var(--gray-300);
}

.hc-profile-contribution__path .breadcrumbs a {
  position: relative;
  z-index: 1;
  color: var(--gray-warm);
  text-decoration: none;
}

.hc-profile-contribution__path .breadcrumbs a:hover {
  color: var(--teal);
}

.hc-profile-contribution__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

.hc-profile-contribution__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  font-size: 13px;
  color: var(--gray-warm);
}

.hc-profile-contribution__meta a {
  position: relative;
  z-index: 1;
  color: var(--teal);
  text-decoration: none;
}

/* Badges grid */
.hc-profile-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-profile-badge {
  display: flex;
  align-items: flex-start;
  gap: var(--s-md);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-lg);
}

.hc-profile-badge__icon img {
  width: 40px;
  height: 40px;
  display: block;
}

.hc-profile-badge__body {
  flex: 1;
  min-width: 0;
}

.hc-profile-badge__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
}

.hc-profile-badge__desc {
  font-size: 13px;
  color: var(--gray-warm);
  margin: 2px 0 0;
}

.hc-profile-badge__date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  text-align: right;
  font-size: 12px;
  color: var(--gray-warm);
}

.hc-profile-badge__date-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}

@media (max-width: 768px) {
  .hc-profile-badges {
    grid-template-columns: 1fr;
  }

  .hc-profile-badge__date {
    text-align: left;
  }
}

/* Content tags */
.hc-post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: var(--s-lg);
}

/* Vote UI — styles the {{vote}} helper output (classes set via the helper params) */
.hc-vote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-50);
  border-radius: var(--r-pill);
  padding: 4px;
}

.hc-vote__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--gray-warm);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

.hc-vote__btn svg {
  width: 16px;
  height: 16px;
}

.hc-vote__btn--up svg {
  transform: rotate(180deg);
}

.hc-vote__btn:hover {
  background: var(--white);
  color: var(--teal);
}

.hc-vote__btn--voted {
  color: var(--teal);
}

.hc-vote__sum {
  min-width: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
}

.hc-post-share {
  margin-top: var(--s-lg);
}

.hc-post-share ul {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hc-post-share li {
  margin: 0;
}

/* Comments — head row (heading + sorter) */
.hc-community-comments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  flex-wrap: wrap;
  margin-bottom: var(--s-md);
}

.hc-community-comments__head .hc-article-comments__heading {
  margin: 0;
}

.hc-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

/* Community extras on the shared hc-comment* component */
.hc-comment--official {
  background: var(--green-pale);
  border-color: transparent;
}

.hc-comment__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-md);
}

.hc-comment__corner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Post body card (Phase 3 refinement) */
.hc-post-card {
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s-xl);
  margin-bottom: var(--s-lg);
}

.hc-post-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-md);
  padding-bottom: var(--s-lg);
  margin-bottom: var(--s-lg);
  border-bottom: 1px solid var(--border-2);
}

.hc-post-card__corner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Actions menu trigger (kebab) — styles the {{#actions}} helper output */
.hc-post-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 4px;
  color: var(--gray-warm);
}

.hc-post-actions svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* The {{#actions}} helper generates a trigger button — reset it to match the vote pill */
.hc-post-actions button,
.hc-post-actions .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

.hc-post-actions button:hover,
.hc-post-actions .dropdown-toggle:hover {
  background: var(--gray-50);
  color: var(--teal);
}

.hc-comment__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.hc-comment__labels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hc-comment__footer {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

/* Comment form — community extras (official checkbox row) */
.hc-comment-form__footer--split {
  justify-content: space-between;
  align-items: center;
}

.hc-comment-form__official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-warm);
}

.hc-comment-form__callout {
  font-size: 13px;
  color: var(--gray-warm);
  margin: var(--s-md) 0 0;
}

/* ==========================================================================
   COMMUNITY — new post form (Phase 4); reusable .hc-form-field
   ========================================================================== */
.hc-new-post {
  max-width: 760px;
  padding-block: var(--s-2xl) var(--s-4xl);
}

.hc-new-post .hc-breadcrumb {
  margin-bottom: 4px;
}

.hc-new-post__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 var(--s-xl);
}

/* The {{wysiwyg}} (rich editor) and {{multiselect}} are JS-enhanced widgets with
   their own markup. We wrap each in .hc-field-control (which WE control) so the
   box — gray-50 + border-2 + radius + focus ring — always matches the other
   inputs, then neutralize the widget's own outer border so it doesn't double up. */
.hc-field-control {
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--gray-50);
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}

.hc-field-control:focus-within {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: var(--focus-ring);
}

.hc-field-control > * {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.hc-field-control--editor {
  overflow: hidden;
  /* Details is CKEditor 5 — theme it via its own CSS variables: transparent
     surfaces (wrapper gray shows through) AND transparent inner borders/focus
     so ONLY the .hc-field-control box is visible, exactly like the Title input. */
  --ck-color-base-background: transparent;
  --ck-color-toolbar-background: transparent;
  --ck-color-base-border: transparent;
  --ck-color-toolbar-border: transparent;
  --ck-color-focus-border: transparent;
}

.hc-field-control--editor [contenteditable],
.hc-field-control--editor textarea {
  min-height: 160px;
}

/* Kill CKEditor's own borders / focus ring / toolbar separator so there's a
   single border (the wrapper). Focus is shown by .hc-field-control:focus-within. */
.hc-field-control--editor .ck-editor__editable,
.hc-field-control--editor .ck-editor__editable.ck-focused,
.hc-field-control--editor .ck.ck-toolbar,
.hc-field-control--editor .ck-editor__top {
  border: none !important;
  box-shadow: none !important;
}

/* NOTE: the content_tags "Related to" multiselect is a Zendesk Garden Web Component
   rendered inside an OPEN SHADOW ROOT (styled-components). Theme CSS cannot reach
   its encapsulated internals, so it can't be repainted gray-50 like the other
   inputs — it's left as the default widget (no .hc-field-control wrapper). */

.hc-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.hc-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hc-form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
}

.hc-form-field__optional {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-warm);
}

.hc-form-field__hint {
  font-size: 13px;
  color: var(--gray-warm);
}

/* Style the controls generated by the Zendesk field helpers (input/select/wysiwyg),
   the same way .hc-comment-form targets its generated textarea. */
.hc-form-field input:not([type="submit"]),
.hc-form-field textarea,
.hc-form-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-1);
  background: var(--gray-50);
  box-sizing: border-box;
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}

.hc-form-field textarea {
  min-height: 160px;
  resize: vertical;
}

/* Topic <select>: hide the native arrow and use the same chevron as the
   "Related to" multiselect / community dropdowns. */
.hc-form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23504F4F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 40px;
}

.hc-form-field input:not([type="submit"]):focus,
.hc-form-field textarea:focus,
.hc-form-field select:focus {
  outline: none;
  border-color: var(--teal);
  background-color: var(--white);
  box-shadow: var(--focus-ring);
}

.hc-form-field__error {
  font-size: 13px;
  color: #C0392B;
}

/* Suggested articles list (from the title) */
.hc-suggestion-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-suggestion-list a {
  display: block;
  font-size: 14px;
  color: var(--teal);
  text-decoration: none;
  padding: 6px 0;
}

.hc-suggestion-list a:hover {
  text-decoration: underline;
}

.hc-form-actions {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   SUBMIT A REQUEST (new_request_page)
   The form is injected at runtime by Zendesk's renderNewRequestForm module —
   it cannot be replaced with custom HTML, so we only style the generated
   elements, scoped to #new-request-form. Selectors target generic elements
   (input/textarea/select/button/label) to survive Garden class churn; this is
   fragile by design (Copenhagen rule) and may need refinement against the live
   rendered DOM (dropzone / required marker / help text especially).
   ========================================================================== */
.hc-request-page {
  padding: var(--s-2xl) 0 var(--s-4xl);
}

#new-request-form {
  max-width: 720px;
}

#new-request-form label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

/* Required-field asterisk (Zendesk renders it inside the label) */
#new-request-form label abbr,
#new-request-form label [title="Required"] {
  color: var(--teal);
  text-decoration: none;
  border: 0;
}

#new-request-form input[type="text"],
#new-request-form input[type="email"],
#new-request-form input[type="search"],
#new-request-form input[type="number"],
#new-request-form input[type="url"],
#new-request-form input[type="tel"],
#new-request-form input:not([type]),
#new-request-form textarea,
#new-request-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  color: var(--fg-1);
  background: var(--white);
  box-sizing: border-box;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

#new-request-form textarea {
  min-height: 140px;
  line-height: 1.6;
  resize: vertical;
}

#new-request-form input:focus,
#new-request-form textarea:focus,
#new-request-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--focus-ring);
}

/* Field help / description text */
#new-request-form [class*="-description"],
#new-request-form [class*="hint"],
#new-request-form [class*="Hint"] {
  font-size: var(--t-xs);
  color: var(--gray-warm);
  line-height: 1.5;
}

/* Attachments dropzone ("Add file or drop files here") */
#new-request-form [data-garden-id*="file-upload"],
#new-request-form [class*="dropzone"],
#new-request-form [class*="DropZone"],
#new-request-form [class*="Dropzone"] {
  border: 1.5px dashed var(--border-1);
  border-radius: var(--r-md);
  background: var(--gray-50);
  color: var(--gray-warm);
}

/* Submit → primary teal button */
#new-request-form button[type="submit"],
#new-request-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1;
  padding: 11px 22px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--teal);
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-base), border-color var(--t-base);
}

#new-request-form button[type="submit"]:hover,
#new-request-form input[type="submit"]:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
}

#new-request-form button[type="submit"]:focus-visible,
#new-request-form input[type="submit"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ==========================================================================
   MY ACTIVITIES (requests / contributions / following)
   Shared tab nav + a responsive activities table (stacks into labelled cards
   on mobile). Requests is injected by renderRequestList (black-box): its
   generated DOM is styled generically, scoped to .hc-activities #main-content
   — fragile by design (Copenhagen rule), may need refinement vs the live DOM.
   ========================================================================== */
.hc-activities-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

.hc-activities {
  padding: var(--s-2xl) 0 var(--s-4xl);
}

.hc-activities-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
  margin-bottom: var(--s-xl);
}

.hc-activities__filter {
  margin-bottom: var(--s-lg);
}

/* Activities table */
.hc-activities-table {
  width: 100%;
  border-collapse: collapse;
}

.hc-activities-table thead th {
  text-align: left;
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-warm);
  padding: 0 var(--s-md) 12px;
  border-bottom: 1px solid var(--border-2);
}

.hc-activities-table td {
  padding: var(--s-md);
  border-bottom: 1px solid var(--border-2);
  font-size: var(--t-sm);
  color: var(--gray-warm);
  vertical-align: middle;
}

.hc-activities-table__title {
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
}

.hc-activities-table__title:hover {
  color: var(--charcoal);
  text-decoration: none;
}

.hc-activities-table__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
}

.hc-activities-table__actions {
  text-align: right;
}

/* Responsive: stack rows into labelled cards on mobile */
@media (max-width: 768px) {
  .hc-activities-table thead {
    display: none;
  }

  .hc-activities-table,
  .hc-activities-table tbody,
  .hc-activities-table tr,
  .hc-activities-table td {
    display: block;
    width: 100%;
  }

  .hc-activities-table tr {
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    padding: var(--s-sm) var(--s-md);
    margin-bottom: var(--s-md);
  }

  .hc-activities-table td {
    border: 0;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-md);
  }

  .hc-activities-table td::before {
    content: attr(data-label);
    font-size: var(--t-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--gray-warm);
    flex-shrink: 0;
  }

  .hc-activities-table td:empty {
    display: none;
  }

  .hc-activities-table__actions {
    justify-content: flex-end;
  }
}

/* Following: subscribe action button (renderer-generated) */
.hc-activities-table__actions button,
.hc-activities-table__actions input[type="submit"] {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-2);
  background: var(--white);
  color: var(--fg-2);
  cursor: pointer;
  transition: border-color var(--t-base), color var(--t-base);
}

.hc-activities-table__actions button:hover,
.hc-activities-table__actions input[type="submit"]:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Requests: style the renderRequestList-injected DOM (best-effort, generic) */
.hc-activities #main-content table {
  width: 100%;
  border-collapse: collapse;
}

.hc-activities #main-content th {
  text-align: left;
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-warm);
  padding: 0 var(--s-md) 12px;
  border-bottom: 1px solid var(--border-2);
}

.hc-activities #main-content td {
  padding: var(--s-md);
  border-bottom: 1px solid var(--border-2);
  font-size: var(--t-sm);
  color: var(--gray-warm);
}

.hc-activities #main-content a {
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
}

.hc-activities #main-content a:hover {
  color: var(--teal);
}

.hc-activities #main-content input[type="text"],
.hc-activities #main-content input[type="search"],
.hc-activities #main-content select {
  padding: 9px 12px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  color: var(--fg-1);
  background: var(--white);
}

.hc-activities #main-content input:focus,
.hc-activities #main-content select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--focus-ring);
}

/* ==========================================================================
   RESPONSIVE OVERFLOW GUARDS (QA pass)
   Contain elements that can push past the viewport's right edge. NOTE: we do
   NOT use overflow-x:hidden on html/body/main — the theme relies on
   position:sticky (header + sidebars at top:88px) and clipping an ancestor
   breaks sticky. Each guard contains its own element instead.
   ========================================================================== */

/* Absolute dropdown menus must never exceed the viewport width */
.hc-dropdown__menu,
.hc-header__user-menu {
  max-width: calc(100vw - 2 * var(--s-md));
}

/* Long unbroken strings (URLs, long titles) shouldn't force horizontal width */
.hc-hero__title,
.hc-page-hero__title,
.hc-search-hero__title,
.hc-article-row__title,
.hc-article-header__title,
.hc-article-body {
  overflow-wrap: break-word;
}

/* Flex/grid children with text must be allowed to shrink */
.hc-article-row__content {
  min-width: 0;
}