/* Kelly Creative — Help Centre */
.kc-page-help-centre :is(.kc-full-page, .kc-service-page),
.kc-page-help-centre :is(.kc-full-page__article, .kc-service-page__article),
.kc-page-help-centre :is(.kc-full-page, .kc-service-page) .entry-content {
  margin: 0;
  padding: 0;
}

.kc-page-help-centre :is(.kc-full-page, .kc-service-page) .entry-content > * + * { margin-top: 0; }
.kc-page-help-centre .site-footer { margin-top: 0; }

.help-centre-page {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  color: #f5f7f5;
  background: #181a1b;
  --help-accent: var(--oa-color-accent, #8ae100);
  --help-text: #f5f7f5;
  --help-muted: #b8bdba;
  --help-dim: #909692;
  --help-line: #4e514d;
  --help-line-soft: rgb(255 255 255 / 0.13);
  --help-card: #202324;
  --help-card-deep: #191c1c;
  --help-max: 73.75rem;
}

.help-centre-page,
.help-centre-page * { box-sizing: border-box; }

.help-centre-page :is(h1, h2, h3, p, ul) { margin-top: 0; }
.help-centre-page :is(h1, h2, h3) { color: var(--help-text); }
.help-centre-page :is(p, li) { color: var(--help-muted); }
.help-centre-page a { text-underline-offset: 0.18em; }

.help-centre-wrap {
  width: min(var(--help-max), calc(100% - (2 * var(--kc-page-gutter, 1.25rem))));
  margin-inline: auto;
}

.help-centre-section { padding-block: clamp(4.5rem, 8vw, 7rem); }
.help-centre-eyebrow,
.help-centre-panel__label,
.help-centre-card__number,
.help-centre-boundary-card__label {
  color: var(--help-accent) !important;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.help-centre-display {
  max-width: 15ch;
  margin: 0 !important;
  font-size: clamp(2.35rem, 5.2vw, 4.45rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}

.help-centre-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem !important;
}

.help-centre-actions .wp-block-button__link {
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--help-accent);
  border-radius: 0;
  color: #151715;
  background: var(--help-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}

.help-centre-actions .help-centre-button--secondary .wp-block-button__link {
  border-color: var(--help-line);
  color: #f4f6f4;
  background: transparent;
}

.help-centre-actions .wp-block-button__link:hover,
.help-centre-actions .wp-block-button__link:focus-visible {
  filter: brightness(1.06);
}

.help-centre-hero {
  padding-top: clamp(4.25rem, 8vw, 7rem);
  padding-bottom: 0;
  background:
    radial-gradient(circle at 79% 18%, rgb(138 225 0 / 0.07), transparent 28%),
    #171918;
}

.help-centre-hero__grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.72fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: end;
}

.help-centre-hero__copy { padding-bottom: clamp(4rem, 7vw, 6.5rem); }
.help-centre-hero__title {
  max-width: 12ch;
  margin: 1rem 0 0 !important;
  font-size: clamp(3.15rem, 7.8vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.062em;
  line-height: 0.91;
  text-wrap: balance;
}
.help-centre-hero__lead {
  max-width: 43rem;
  margin-top: 1.6rem !important;
  color: #d9ddda !important;
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.32rem);
  line-height: 1.65;
}
.help-centre-hero__note {
  max-width: 42rem;
  margin-top: 1.15rem !important;
  color: var(--help-dim) !important;
  font-size: 0.95rem;
  line-height: 1.7;
}

.help-centre-hero__panel {
  align-self: end;
  padding: clamp(1.65rem, 3vw, 2.35rem);
  border: 1px solid var(--help-line);
  border-bottom: 0;
  background: linear-gradient(180deg, #252928 0%, #1d2020 100%);
  box-shadow: 0 1.8rem 4.5rem rgb(0 0 0 / 0.19);
}
.help-centre-hero__panel h2 {
  max-width: 17ch;
  margin: 0.8rem 0 0 !important;
  font-size: clamp(1.55rem, 2.25vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.help-centre-panel__intro { margin-top: 1rem !important; line-height: 1.7; }
.help-centre-panel__list {
  display: grid;
  gap: 0;
  margin: 1.4rem 0 0 !important;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--help-line-soft);
}
.help-centre-panel__list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--help-line-soft);
  color: #d8dcda;
  font-size: 0.9rem;
  line-height: 1.55;
}
.help-centre-panel__list strong { color: #fff; }

.help-centre-trust {
  border-block: 1px solid var(--help-line-soft);
  background: #191c1c;
}
.help-centre-trust__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.help-centre-trust__item {
  min-height: 7.1rem;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  border-left: 1px solid var(--help-line-soft);
}
.help-centre-trust__item:last-child { border-right: 1px solid var(--help-line-soft); }
.help-centre-trust__mark {
  display: grid;
  width: 2.65rem;
  aspect-ratio: 1;
  margin: 0 !important;
  place-items: center;
  border: 1px solid rgb(138 225 0 / 0.45);
  color: var(--help-accent) !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.help-centre-trust__item p:last-child {
  margin: 0 !important;
  color: var(--help-dim);
  font-size: 0.81rem;
  line-height: 1.52;
}
.help-centre-trust__item strong { color: #f2f5f2; }

.help-centre-section--topics { background: #222526; }
.help-centre-section-head,
.help-centre-guides-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.62fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: end;
}
.help-centre-section-head__copy,
.help-centre-guides-head__copy {
  margin: 0 !important;
  color: var(--help-muted) !important;
  font-size: 1rem;
  line-height: 1.75;
}

.help-centre-topic-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-top: 3rem !important;
}
/* WordPress flow layout adds block margins to sibling Groups even after the
   parent is converted to CSS Grid. Let the grid gap own spacing so every
   topic card starts on the same row and stretches to the same height. */
.help-centre-topic-grid > .help-centre-topic-card {
  height: 100%;
  margin-block: 0 !important;
}
.help-centre-topic-card {
  min-height: 18rem;
  padding: 1.6rem;
  border: 1px solid var(--help-line);
  background: #1b1e1f;
}
.help-centre-topic-card h3 {
  margin: 2.9rem 0 0 !important;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
  line-height: 1.18;
}
.help-centre-topic-card p:last-child {
  margin-top: 0.9rem !important;
  color: var(--help-muted) !important;
  font-size: 0.91rem;
  line-height: 1.67;
}

.help-centre-section--guides { background: #181a1b; }
.help-centre-query { margin-top: 3rem !important; }
.help-centre-query .wp-block-post-template,
.help-centre-article-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.help-centre-query .wp-block-post,
.help-centre-query .wp-block-post-template > li { margin: 0 !important; }
.help-centre-article-card {
  min-height: 22rem;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 1.9rem);
  border: 1px solid var(--help-line);
  background: var(--help-card);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.help-centre-article-card:hover {
  transform: translateY(-2px);
  border-color: rgb(138 225 0 / 0.55);
  background: #242827;
}
.help-centre-article-card__date {
  margin: 0 !important;
  color: var(--help-accent) !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}
.help-centre-article-card__title {
  margin: 1.6rem 0 0 !important;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.help-centre-article-card__title a {
  color: #fff;
  text-decoration: none;
}
.help-centre-article-card__title a:hover,
.help-centre-article-card__title a:focus-visible { color: var(--help-accent); }
.help-centre-article-card__excerpt {
  margin-top: 1rem !important;
  color: var(--help-muted) !important;
  font-size: 0.91rem;
  line-height: 1.7;
}
.help-centre-article-card__excerpt p { margin: 0 !important; }
.help-centre-article-card__read {
  margin-top: auto !important;
  padding-top: 1.6rem;
  color: var(--help-accent) !important;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}
.help-centre-no-results {
  padding: 2rem;
  border: 1px solid var(--help-line);
  background: var(--help-card);
}
.help-centre-no-results h3 { margin: 0 !important; }
.help-centre-no-results p { margin-top: 0.8rem !important; }

.help-centre-pagination {
  gap: 1rem;
  align-items: center;
  margin-top: 2.4rem !important;
  padding-top: 1.3rem;
  border-top: 1px solid var(--help-line);
}
.help-centre-pagination a,
.help-centre-pagination .page-numbers {
  color: #e8ebe8;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}
.help-centre-pagination a:hover,
.help-centre-pagination a:focus-visible,
.help-centre-pagination .current { color: var(--help-accent); }

.help-centre-section--boundary {
  border-block: 1px solid var(--help-line-soft);
  background:
    radial-gradient(circle at 22% 45%, rgb(138 225 0 / 0.065), transparent 27%),
    #202324;
}
.help-centre-boundary-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.help-centre-boundary__intro { max-width: 35rem; }
.help-centre-boundary__intro > p:last-child {
  margin-top: 1.3rem !important;
  line-height: 1.75;
}
.help-centre-boundary__items { border-top: 1px solid var(--help-line); }
.help-centre-boundary-card {
  padding: 1.7rem 0 1.8rem;
  border-bottom: 1px solid var(--help-line);
}
.help-centre-boundary-card--accent { padding-left: 1.35rem; border-left: 3px solid var(--help-accent); }
.help-centre-boundary-card h3 {
  max-width: 28ch;
  margin: 0.75rem 0 0 !important;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.help-centre-boundary-card p:last-child {
  max-width: 43rem;
  margin-top: 0.8rem !important;
  font-size: 0.91rem;
  line-height: 1.7;
}

.help-centre-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #171918;
}
.help-centre-final::before {
  position: absolute;
  inset: auto 0 -6rem;
  color: rgb(138 225 0 / 0.035);
  content: "KC";
  font-size: clamp(13rem, 31vw, 27rem);
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 0.7;
  pointer-events: none;
}
.help-centre-final__inner { position: relative; }
.help-centre-final .help-centre-display {
  max-width: 18ch;
  margin-inline: auto !important;
}
.help-centre-final__inner > p:not(.help-centre-eyebrow) {
  max-width: 44rem;
  margin: 1.35rem auto 0 !important;
  line-height: 1.75;
}
.help-centre-final__actions { justify-content: center; }

@media (max-width: 68rem) {
  .help-centre-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr); gap: 2.6rem; }
  .help-centre-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-centre-query .wp-block-post-template,
  .help-centre-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 52rem) {
  .help-centre-hero__grid,
  .help-centre-section-head,
  .help-centre-guides-head,
  .help-centre-boundary-grid { grid-template-columns: 1fr; }
  .help-centre-hero__copy { padding-bottom: 0; }
  .help-centre-hero__panel { margin-top: 2.5rem !important; }
  .help-centre-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-centre-trust__item:nth-child(3),
  .help-centre-trust__item:nth-child(4) { border-top: 1px solid var(--help-line-soft); }
  .help-centre-section-head,
  .help-centre-guides-head { align-items: start; gap: 1.6rem; }
  .help-centre-section-head__copy,
  .help-centre-guides-head__copy { max-width: 38rem; }
}

@media (max-width: 43.75rem) {
  .help-centre-wrap { width: min(var(--help-max), calc(100% - 1.875rem)); }
  .help-centre-section { padding-block: clamp(4rem, 13vw, 5.5rem); }
  .help-centre-hero { padding-top: 3.75rem; padding-bottom: 0; }
  .help-centre-hero__title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .help-centre-display { font-size: clamp(2.45rem, 12vw, 3.55rem); }
  .help-centre-actions,
  .help-centre-actions .wp-block-button,
  .help-centre-actions .wp-block-button__link { width: 100%; }
  .help-centre-trust__grid,
  .help-centre-topic-grid,
  .help-centre-query .wp-block-post-template,
  .help-centre-article-grid { grid-template-columns: 1fr !important; }
  .help-centre-trust__item,
  .help-centre-trust__item:last-child {
    min-height: auto;
    border-right: 1px solid var(--help-line-soft);
    border-top: 1px solid var(--help-line-soft);
  }
  .help-centre-trust__item:first-child { border-top: 0; }
  .help-centre-topic-card,
  .help-centre-article-card { min-height: auto; }
  .help-centre-hero__panel { padding: 1.35rem; }
  .help-centre-pagination { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .help-centre-article-card { transition: none; }
}
