/* ==========================================================================
   help.crewbyte.io
   Loaded after base.css and site.css, which supply the shell, the nav, the
   footer, .section, .ix and .prose. Only what is unique to the help centre
   lives here.
   ========================================================================== */

/* ------------------------------------------------------------------- hero */
.help-hero {
  background: var(--ink-900);
  padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 72px);
}
.help-hero h1 {
  margin: 0 0 var(--s4);
  max-width: 18ch;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.038em;
  font-weight: 660;
  color: #F8F7F4;
}
.help-hero__sub {
  max-width: 56ch;
  margin: 0 0 clamp(28px, 3.5vw, 40px);
  font-size: clamp(1rem, .96rem + .35vw, 1.1875rem);
  line-height: 1.6;
  color: rgba(248, 247, 244, .64);
}

/* Quick links under the search box — the things people actually arrive for. */
.help-hero__quick {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  margin: var(--s5) 0 0;
  padding: 0;
  font-size: .875rem;
}
.help-hero__quick li { margin: 0; }
.help-hero__quick a { color: rgba(248, 247, 244, .62); text-decoration: none; }
.help-hero__quick a:hover { color: var(--accent-on-dark); text-decoration: underline; }

/* ----------------------------------------------------------------- search */
.help-search {
  position: relative;
  display: flex;
  gap: var(--s2);
  max-width: 620px;
}
.help-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-300);
  pointer-events: none;
}
.help-search__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px 12px 42px;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 1rem;               /* 16px stops iOS zooming on focus */
  color: var(--ink-900);
  -webkit-appearance: none;
  appearance: none;
}
.help-search__input::placeholder { color: var(--ink-200); }
.help-search__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 183, 154, .28);
}
.help-search__go { flex: 0 0 auto; min-height: 52px; }
@media (max-width: 520px) {
  .help-search { flex-direction: column; }
  .help-search__go { width: 100%; }
}

/* ------------------------------------------------------------- categories */
.help-cats { display: grid; gap: var(--s4); }
@media (min-width: 620px) { .help-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .help-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.help-cat {
  display: flex;
  flex-direction: column;
  padding: var(--s5);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color .14s ease, transform .06s ease;
}
.help-cat:hover { border-color: var(--line-strong); border-top-color: var(--accent-deep); }
.help-cat:active { transform: translateY(1px); }
.help-cat__title { font-size: 1.0625rem; margin: 0 0 var(--s2); }
.help-cat__sub {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink-400);
  margin: 0 0 var(--s4);
}
.help-cat__count {
  margin-top: auto;
  font-size: .6875rem;
  font-weight: 660;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-300);
}

/* ------------------------------------------------------- numbered set-up */
.help-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.help-steps li { margin: 0; border-top: 1px solid var(--line); }
.help-steps li:first-child { border-top: 0; }
.help-steps a {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s5) var(--s3);
  text-decoration: none;
  color: inherit;
  transition: background .12s ease;
}
.help-steps a:hover { background: var(--paper-raised); }
.help-steps__n {
  flex: 0 0 auto;
  font-size: 1.125rem;
  font-weight: 640;
  color: var(--accent);
  letter-spacing: -.02em;
}
.help-steps__body { flex: 1 1 auto; min-width: 0; }
.help-steps__title { display: block; font-size: 1rem; font-weight: 600; color: var(--ink-900); }
.help-steps__sub {
  display: block;
  margin-top: 3px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-400);
}
.help-steps__time {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--ink-300);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ tips */
.help-tips { display: grid; gap: var(--s4); }
@media (min-width: 720px) { .help-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .help-tips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.help-tip {
  display: block;
  padding: var(--s5);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  text-decoration: none;
  color: inherit;
}
.help-tip:hover { border-color: var(--line-strong); border-left-color: var(--warn); }
.help-tip h3 { font-size: 1rem; margin: 0 0 var(--s2); }
.help-tip p { font-size: .875rem; line-height: 1.55; color: var(--ink-400); margin: 0; }

/* -------------------------------------------------------- article listing */
.help-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.help-list li { margin: 0; border-bottom: 1px solid var(--line); }
.help-list a {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s5) var(--s3);
  text-decoration: none;
  color: inherit;
  transition: background .12s ease;
}
.help-list a:hover { background: var(--paper-raised); }
.help-list__body { flex: 1 1 auto; min-width: 0; }
.help-list__title { display: block; font-size: 1rem; font-weight: 600; color: var(--ink-900); }
.help-list__sub {
  display: block;
  margin-top: 3px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-400);
  max-width: 70ch;
}
.help-list__crumb {
  display: block;
  margin-top: var(--s2);
  font-size: .6875rem;
  font-weight: 660;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.help-list__meta { flex: 0 0 auto; display: flex; align-items: center; gap: var(--s3); }
.help-list__time { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-300); white-space: nowrap; }
@media (max-width: 560px) {
  .help-list a { flex-wrap: wrap; }
  .help-list__meta { width: 100%; }
}

/* --------------------------------------------------------------- article */
.help-article { max-width: 72ch; }
.help-article__head { padding-bottom: var(--s5); border-bottom: 1px solid var(--line); margin-bottom: var(--s6); }
.help-article__head h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  letter-spacing: -.032em;
  margin: 0 0 var(--s3);
}
.help-article__sub { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-400); margin: 0 0 var(--s4); }
.help-article__meta {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .05em;
  color: var(--ink-300);
  margin: 0;
}

/* Long-form body. .prose sets the measure; these tighten the rhythm for
   step-by-step instructions, which are mostly short paragraphs and lists. */
.help-article__body h2 { font-size: 1.25rem; margin: var(--s8) 0 var(--s3); }
.help-article__body h3 { font-size: 1.0625rem; margin: var(--s6) 0 var(--s2); }
.help-article__body ul,
.help-article__body ol { margin-bottom: var(--s5); }
.help-article__body li { margin-bottom: var(--s2); }
.help-article__body code {
  font-family: var(--font-mono);
  font-size: .875em;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--paper-sunk);
  border: 1px solid var(--line);
}
.help-article__body blockquote {
  margin: var(--s5) 0;
  padding: var(--s4) var(--s5);
  background: var(--paper-sunk);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.help-article__body blockquote p { margin: 0; font-size: .9375rem; }

.help-article__foot { max-width: 72ch; margin-top: clamp(40px, 5vw, 64px); }
.help-article__more { font-size: 1.0625rem; margin: var(--s8) 0 var(--s4); }

.help-cta {
  display: grid;
  gap: var(--s4);
  align-items: center;
  padding: var(--s5) var(--s6);
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
@media (min-width: 640px) { .help-cta { grid-template-columns: minmax(0, 1fr) auto; } }
.help-cta h3 { font-size: 1rem; margin: 0 0 var(--s2); }
.help-cta p { font-size: .875rem; line-height: 1.55; color: var(--ink-400); margin: 0; }

.back-link {
  display: inline-block;
  margin-bottom: var(--s5);
  font-size: .875rem;
  color: var(--ink-400);
  text-decoration: none;
}
.back-link:hover { color: var(--accent-deep); }
