/* OneDiary help centre */
.od-help-site {
  background:
    radial-gradient(circle at 12% 2%, rgba(20, 184, 166, 0.08), transparent 28rem),
    var(--warm, #fafaf6);
}

.od-help-site [hidden] {
  display: none !important;
}

.help-page,
.help-article-page {
  width: min(1240px, calc(100vw - 36px));
  margin-inline: auto;
}

.help-page {
  padding-bottom: clamp(40px, 7vw, 88px);
}

.help-eyebrow,
.help-article-category {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.62fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  margin-top: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.09), rgba(255, 255, 255, 0.92) 42%),
    #fff;
  padding: clamp(28px, 6vw, 66px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.help-hero > div:first-child {
  display: grid;
  gap: 16px;
  align-content: start;
}

.help-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.help-hero > div > p {
  max-width: 670px;
  margin: 0;
  color: var(--stone);
  font-size: clamp(1.02rem, 2vw, 1.17rem);
  line-height: 1.65;
}

.help-search {
  position: relative;
  width: min(700px, 100%);
  margin-top: 8px;
}

.help-search > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.help-search-control {
  position: relative;
  display: flex;
  align-items: center;
}

.help-search-icon {
  position: absolute;
  left: 18px;
  z-index: 1;
  display: grid;
  width: 22px;
  color: #0f766e;
  pointer-events: none;
}

.help-search-icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.help-search input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 16px;
  background: #fff;
  padding: 14px 52px 14px 54px;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.help-search input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.help-search input:focus {
  border-color: rgba(20, 184, 166, 0.8);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.13), 0 16px 38px rgba(15, 23, 42, 0.1);
}

.help-search-clear {
  position: absolute;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f4;
  color: var(--stone);
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.help-search-clear:hover,
.help-search-clear:focus-visible {
  background: #dff7f3;
  color: #0f766e;
}

.help-search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 50;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: #fff;
  padding: 9px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.help-search-suggestions .help-search-suggestions-title,
.help-search-suggestions .help-search-suggestions-empty {
  max-width: none;
  margin: 0;
  padding: 8px 10px;
  color: var(--stone);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.help-search-suggestions ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-search-suggestions a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 11px;
  padding: 11px 12px;
  color: var(--ink);
}

.help-search-suggestions a:hover,
.help-search-suggestions a:focus-visible {
  background: #eafaf7;
  outline: none;
}

.help-search-suggestions a > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.help-search-suggestions a strong,
.help-search-suggestions a small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-search-suggestions a small {
  color: var(--stone);
  font-size: 0.8rem;
  font-weight: 600;
}

.help-search-suggestions a em {
  color: #0f766e;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.help-hero-card {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  padding: 22px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.help-hero-card > span {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-hero-card h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.help-hero-card nav {
  display: grid;
  margin-top: 3px;
}

.help-hero-card a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  color: var(--ink);
  font-weight: 800;
}

.help-hero-card a:last-child {
  padding-bottom: 2px;
}

.help-hero-card a span {
  color: var(--teal);
}

.help-catalog {
  margin-top: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #fff;
  padding: clamp(24px, 5vw, 46px);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.06);
}

.help-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
  margin: 0 0 12px;
}

.help-section-heading > div {
  display: grid;
  gap: 8px;
}

.help-section-heading h2,
.help-section-heading p {
  margin: 0;
}

.help-section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
}

.help-section-heading > p {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef8f6;
  padding: 8px 12px;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 900;
}

.help-category-section {
  padding: 30px 0 6px;
  scroll-margin-top: 100px;
}

.help-category-section + .help-category-section {
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.help-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.help-category-heading h2,
.help-category-heading p {
  margin: 0;
}

.help-category-heading h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.help-category-heading p {
  max-width: 680px;
  margin-top: 5px;
  color: var(--stone);
  line-height: 1.5;
}

.help-category-heading > span {
  flex: 0 0 auto;
  color: var(--stone);
  font-size: 0.8rem;
  font-weight: 800;
}

.help-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.help-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 205px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 19px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.help-card:hover,
.help-card:focus-visible {
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
  outline: none;
}

.help-card > span {
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.help-card h3,
.help-card p {
  margin: 0;
}

.help-card h3 {
  font-size: 1.08rem;
  line-height: 1.3;
}

.help-card p {
  color: var(--stone);
  line-height: 1.52;
}

.help-card > strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 9px;
  color: #0f766e;
  font-size: 0.84rem;
}

.help-no-results {
  margin-top: 26px;
  border: 1px dashed #94a3b8;
  border-radius: 16px;
  background: #f8fafc;
  padding: 26px;
}

.help-no-results h2,
.help-no-results p {
  margin: 0 0 8px;
}

.help-no-results p {
  color: var(--stone);
}

.help-contact-strip,
.help-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #fff;
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
}

.help-contact-strip h2,
.help-contact-strip p,
.help-next-step h2,
.help-next-step p {
  margin: 0;
}

.help-contact-strip > div,
.help-next-step > div {
  display: grid;
  gap: 7px;
}

.help-contact-strip p,
.help-next-step p {
  color: var(--stone);
  line-height: 1.55;
}

.help-breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: clamp(20px, 4vw, 34px) 0 16px;
  color: var(--stone);
  font-size: 0.82rem;
  font-weight: 800;
}

.help-breadcrumb a {
  color: #0f766e;
}

.help-breadcrumb a + a::before,
.help-breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: #94a3b8;
}

.help-article-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: clamp(26px, 5vw, 54px);
}

.help-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  scrollbar-width: thin;
}

.help-sidebar .help-search {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0;
  background: #fff;
}

.help-sidebar .help-search input {
  min-height: 46px;
  border-radius: 12px;
  padding-left: 43px;
  font-size: 0.9rem;
  box-shadow: none;
}

.help-sidebar .help-search-icon {
  left: 14px;
  width: 18px;
}

.help-sidebar .help-search-icon svg {
  width: 18px;
}

.help-sidebar .help-search-clear {
  right: 7px;
  width: 32px;
  height: 32px;
}

.help-sidebar .help-search-suggestions {
  position: fixed;
  top: auto;
  right: auto;
  width: min(520px, calc(100vw - 36px));
}

.help-sidebar h2 {
  margin: 3px 2px 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-article-nav {
  display: grid;
  gap: 6px;
}

.help-nav-group {
  border-radius: 11px;
}

.help-nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.help-nav-group summary::-webkit-details-marker {
  display: none;
}

.help-nav-group summary:hover {
  background: #f5f8f7;
}

.help-nav-group summary > span {
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.help-nav-group[open] summary > span {
  transform: rotate(225deg) translate(-1px, -1px);
}

.help-nav-group > div {
  display: grid;
  gap: 3px;
  padding: 2px 0 6px 8px;
}

.help-article-nav a {
  display: block;
  border-left: 2px solid #e2e8f0;
  border-radius: 0 8px 8px 0;
  padding: 8px 10px;
  color: var(--stone);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.help-article-nav a:hover,
.help-article-nav a[aria-current="page"] {
  border-left-color: var(--teal);
  background: #e9f9f6;
  color: #0f766e;
}

.help-article {
  min-width: 0;
  border-radius: 20px;
  padding: clamp(22px, 5vw, 48px);
}

.help-article h1 {
  max-width: 820px;
  margin: 10px 0 13px;
  font-size: clamp(2rem, 4.4vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.help-article .help-lede {
  max-width: 760px;
  margin: 0 0 17px;
  color: var(--stone);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.help-article-intro {
  max-width: 780px !important;
  margin: 0 0 19px !important;
  color: var(--ink) !important;
  font-size: 1rem;
  line-height: 1.7 !important;
}

.help-surface-jump {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.help-surface-jump a {
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 999px;
  background: #eefaf8;
  padding: 8px 12px;
  color: #0f766e;
  font-size: 0.84rem;
  font-weight: 900;
}

.help-guide-sections {
  display: grid;
  gap: 12px;
}

.help-guide-accordion {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: clip;
  scroll-margin-top: 92px;
}

.help-guide-accordion[open] {
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

.help-guide-accordion > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.help-guide-accordion > summary::-webkit-details-marker {
  display: none;
}

.help-guide-accordion > summary:hover {
  background: #f8fbfa;
}

.help-guide-accordion > summary > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.help-guide-accordion summary strong {
  color: var(--ink);
  font-size: 1rem;
}

.help-guide-accordion summary small {
  color: var(--stone);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.help-surface-icon {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 40px;
  border-radius: 11px;
  padding: 5px 8px;
  background: #e7f8f5;
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.help-surface-icon.is-portal {
  background: #eef2ff;
  color: #4338ca;
}

.help-surface-icon.is-client {
  background: #fff1f2;
  color: #be123c;
}

.help-accordion-toggle {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f4;
}

.help-accordion-toggle::before,
.help-accordion-toggle::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 7px;
  width: 12px;
  height: 2px;
  border-radius: 99px;
  background: #475569;
}

.help-accordion-toggle::after {
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.help-guide-accordion[open] .help-accordion-toggle::after {
  transform: rotate(0);
}

.help-accordion-content {
  border-top: 1px solid var(--line);
  padding: clamp(17px, 3vw, 26px);
  background: #fcfdfc;
}

.help-steps {
  display: grid;
  gap: 0;
  max-width: 800px;
  margin: 0 !important;
  padding: 0 !important;
  counter-reset: help-step;
  list-style: none;
}

.help-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  min-height: 54px;
  counter-increment: help-step;
}

.help-steps li::before {
  content: counter(help-step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(20, 184, 166, 0.35);
  border-radius: 50%;
  background: #fff;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 900;
}

.help-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: #dce7e5;
}

.help-steps p {
  max-width: none;
  margin: 4px 0 18px;
  color: var(--stone);
  line-height: 1.62;
}

.help-inline-link {
  color: #0f766e;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(20, 184, 166, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.help-inline-link:hover,
.help-inline-link:focus-visible {
  color: #115e59;
  text-decoration-color: currentColor;
}

.help-customer-accordion {
  margin-top: 12px;
}

.help-customer-content p {
  max-width: 780px;
  margin: 0;
  color: var(--stone);
  line-height: 1.65;
}

.help-practical-note {
  margin-top: 24px;
  border-left: 4px solid var(--teal);
  border-radius: 0 14px 14px 0;
  background: #eefaf8;
  padding: 18px 20px;
}

.help-practical-note h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.help-practical-note ul {
  display: grid;
  gap: 8px;
  max-width: 780px;
  margin: 0;
  padding-left: 20px;
  color: #43566a;
  line-height: 1.55;
}

.help-related {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.help-related h2 {
  margin: 0 0 13px;
  font-size: 1.3rem;
}

.help-related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.help-related-list a {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  color: var(--ink);
}

.help-related-list a:hover,
.help-related-list a:focus-visible {
  border-color: rgba(20, 184, 166, 0.5);
  background: #f7fcfb;
  outline: none;
}

.help-related-list span {
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.help-related-list strong {
  font-size: 0.9rem;
  line-height: 1.35;
}

.help-next-step {
  margin: 0 0 36px;
}

@media (max-width: 980px) {
  .help-hero {
    grid-template-columns: 1fr;
  }

  .help-hero-card {
    max-width: 680px;
  }

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

  .help-article-layout {
    grid-template-columns: 1fr;
  }

  .help-sidebar {
    position: static;
    max-height: none;
  }

  .help-sidebar > h2,
  .help-sidebar .help-article-nav {
    display: none;
  }

  .help-sidebar .help-search-suggestions {
    position: absolute;
    width: auto;
  }
}

@media (max-width: 680px) {
  .help-page,
  .help-article-page {
    width: min(100% - 24px, 1240px);
  }

  .help-page {
    padding-top: 0;
  }

  .help-hero {
    margin-top: 14px;
    border-radius: 18px;
    padding: 24px 18px;
  }

  .help-hero h1 {
    font-size: clamp(2.35rem, 14vw, 3.6rem);
  }

  .help-search input {
    min-height: 54px;
    padding-left: 48px;
    font-size: 0.94rem;
  }

  .help-search-suggestions a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .help-search-suggestions a em {
    display: none;
  }

  .help-catalog {
    border-radius: 18px;
    padding: 20px 16px;
  }

  .help-section-heading,
  .help-category-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-section-heading > p,
  .help-category-heading > span {
    align-self: flex-start;
  }

  .help-card-grid,
  .help-related-list {
    grid-template-columns: 1fr;
  }

  .help-card {
    min-height: auto;
  }

  .help-contact-strip,
  .help-next-step {
    align-items: stretch;
    flex-direction: column;
  }

  .help-breadcrumb a:nth-child(2) {
    display: none;
  }

  .help-breadcrumb a:nth-child(2) + span::before {
    content: "/";
  }

  .help-sidebar {
    border-radius: 14px;
    padding: 12px;
  }

  .help-article {
    border-radius: 16px;
    padding: 21px 17px;
  }

  .help-article h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .help-guide-accordion > summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px;
  }

  .help-guide-accordion summary small {
    display: none;
  }

  .help-surface-icon {
    min-width: 42px;
    min-height: 36px;
    font-size: 0.62rem;
  }

  .help-accordion-content {
    padding: 16px 13px;
  }

  .help-steps li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .help-steps li::before {
    width: 30px;
    height: 30px;
  }

  .help-steps li:not(:last-child)::after {
    top: 30px;
    left: 14px;
  }
}

@media print {
  .od-help-site .od-site-header,
  .od-help-site .od-site-footer,
  .help-sidebar,
  .help-breadcrumb,
  .help-surface-jump,
  .help-next-step {
    display: none !important;
  }

  .help-article-page,
  .help-article-layout {
    display: block;
    width: 100%;
  }

  .help-guide-accordion > *:not(summary) {
    display: block !important;
  }
}
