/* Slyra - help centre (/help). The page follows the theme of the site (body.mkt-auto, see
   main.css) and is dressed like the app it is reached from: the colour of the page with the
   faint glow of the accent from its top-left corner (no band of another colour), Inter, boxes
   without an outline, fields that are fills.
   From the top: logo, language and way back; the question, the search and — on the first
   screen — the questions asked most often; the topics as cards (a topic opens on its
   questions); and always, at the bottom, the form to write to us beside one's tickets.
   Loaded after main.css by help/index.html; tokens come from main.css. */

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* What changes with the theme, in one place. Light: dark ink on white. Dark: mint on black. */
.hp-page {
  --hp-mark: var(--ink);              /* icons, links, focus */
  --hp-cta: var(--ink);               /* main button */
  --hp-cta-hover: var(--ink-hover);
  --hp-cta-fg: var(--card);
  --hp-faint: color-mix(in srgb, var(--text-dim) 78%, transparent);   /* counts, captions, hints */
  --hp-tile: color-mix(in srgb, var(--accent) 17%, transparent);      /* the square behind an icon */
  --hp-fill: color-mix(in srgb, var(--text) 5%, transparent);         /* a field, a pill: a fill, no outline */
  --hp-fill-hover: color-mix(in srgb, var(--text) 9%, transparent);
  --hp-glow: color-mix(in srgb, var(--accent) 13%, transparent);      /* the glow of the page's corner */
  /* Boxes have no outline: on the light page they stand out by this soft shadow, on the dark
     one by their surface colour */
  --hp-box: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --hp-box-up: 0 2px 4px rgba(0,0,0,0.05), 0 14px 34px rgba(0,0,0,0.11);
  min-height: 100vh; display: flex; flex-direction: column; color: var(--text-dim);
  background: radial-gradient(circle 780px at 0 0, var(--hp-glow), transparent) no-repeat var(--bg);
}
html:not([data-theme="light"]) .hp-page {
  --hp-mark: var(--accent);
  --hp-cta: var(--accent);
  --hp-cta-hover: var(--accent-2);
  --hp-cta-fg: var(--ink);
  --hp-tile: color-mix(in srgb, var(--accent) 11%, transparent);
  --hp-glow: color-mix(in srgb, var(--accent) 9%, transparent);
  --hp-box: none;
  --hp-box-up: none;
  color-scheme: dark;
}

.hp-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.hp-wrap { width: 100%; max-width: 1008px; margin: 0 auto; padding: 0 24px; }

/* ══ Top: logo · language · way back ══ */
/* The same top as Settings and the plans: one width, one logo, one round button to go back */
.hp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1176px; margin: 0 auto; padding: 24px 24px 0; }
/* Slyra_name.png is a 1000×1000 square with the logo centred in it (56% wide, 20% tall, from
   21.9% of the width): it is shown through a window cut to the logo. --logo-w sets the size
   (the side of the square as displayed). */
.hp-logo {
  --logo-w: 160px;
  display: block; flex-shrink: 0; overflow: hidden;
  width: calc(var(--logo-w) * 0.582); height: calc(var(--logo-w) * 0.33);
}
.hp-logo img {
  display: block; width: var(--logo-w); max-width: none; height: 100%;
  margin-left: calc(var(--logo-w) * -0.21); object-fit: cover;
}
.hp-logo:focus-visible { outline: 2px solid var(--hp-mark); outline-offset: 4px; border-radius: 6px; }
.hp-top-right { display: flex; align-items: center; gap: 8px; }
/* Language: a plain list, dressed as "globe · name · chevron" */
.hp-lang { position: relative; display: inline-flex; align-items: center; color: var(--text); }
.hp-lang svg { position: absolute; pointer-events: none; }
.hp-lang-globe { left: 12px; width: 16px; height: 16px; }
.hp-lang-chev { right: 11px; width: 12px; height: 12px; }
.hp-lang select {
  height: 36px; padding: 0 30px 0 35px; border: none; border-radius: 999px; background: none;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer;
  appearance: none; -webkit-appearance: none; transition: background 0.2s;
}
.hp-lang select:hover { background: var(--hp-fill); }
.hp-lang select:focus-visible { outline: 2px solid var(--hp-mark); outline-offset: 2px; }
.hp-lang option { background: var(--card); color: var(--text); }
.hp-close {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.hp-close:hover { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
.hp-close:focus-visible { outline: 2px solid var(--hp-mark); outline-offset: 2px; }

/* ══ The question and the search; beside them, the questions asked most often ══ */
.hp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 372px); gap: 28px 56px; align-items: end; padding: 44px 0 12px; }
.hp-title { font-size: 36px; font-weight: 700; line-height: 1.14; letter-spacing: -1px; color: var(--text); text-wrap: balance; }
.hp-sub { max-width: 44ch; margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--text-dim); }
.hp-sub button {
  padding: 0; border: none; background: none; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 30%, transparent); text-underline-offset: 3px; transition: text-decoration-color 0.2s;
}
.hp-sub button:hover { text-decoration-color: currentColor; }
.hp-sub button:focus-visible { outline: 2px solid var(--hp-mark); outline-offset: 3px; border-radius: 4px; }
.hp-search { position: relative; max-width: 600px; margin-top: 26px; }
.hp-search svg { position: absolute; left: 18px; top: 17px; width: 20px; height: 20px; color: var(--hp-faint); pointer-events: none; transition: color 0.2s; }
.hp-search:focus-within svg { color: var(--text); }
.hp-search input {
  width: 100%; height: 54px; padding: 0 18px 0 50px; border: none; border-radius: 14px;
  background: var(--card); box-shadow: var(--hp-box); font-family: var(--font); font-size: 16px; color: var(--text);
  outline: none; appearance: none; -webkit-appearance: none; transition: background 0.2s, box-shadow 0.2s;
}
.hp-search input::placeholder { color: var(--hp-faint); }
.hp-search input:hover { background: var(--card-hover); }
.hp-search input:focus-visible { background: var(--card); box-shadow: 0 0 0 2px var(--hp-mark); }
.hp-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
/* Asked most often: a short list, one question a line */
.hp-often { padding: 14px 8px 8px; border-radius: 16px; background: var(--card); box-shadow: var(--hp-box); }
.hp-often[hidden] { display: none; }
.hp-often-title { padding: 0 12px 6px; font-size: 12.5px; font-weight: 600; color: var(--hp-faint); }
.hp-often-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 12px; border: none; border-radius: 10px; background: none;
  font-family: var(--font); font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left; color: var(--text); cursor: pointer; transition: background 0.15s;
}
.hp-often-link:hover { background: var(--hp-fill); }
.hp-often-link:focus-visible { outline: 2px solid var(--hp-mark); outline-offset: -2px; }
.hp-often-link svg { flex-shrink: 0; width: 13px; height: 13px; color: var(--hp-faint); transition: transform 0.2s, color 0.2s; }
.hp-often-link:hover svg { transform: translateX(2px); color: var(--text); }

/* ══ Body ══ */
.hp-main { flex: 1; padding-top: 32px; padding-bottom: 80px; }
.hp-main [hidden] { display: none; }
.hp-section { margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--hp-faint); }

/* The square behind an icon (a topic, on its card and at the top of its page) */
.hp-tile { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--hp-tile); color: var(--hp-mark); }
.hp-card-icon { width: 21px; height: 21px; }

/* Topics: cards with an icon, a name, a line of description, the number of articles and an arrow */
.hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-card {
  display: flex; flex-direction: column; align-items: flex-start; min-height: 184px; padding: 20px 20px 16px;
  border: none; border-radius: 16px; background: var(--card); box-shadow: var(--hp-box);
  font-family: var(--font); text-align: left; color: var(--text-dim); cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.hp-card:hover { background: var(--card-hover); box-shadow: var(--hp-box-up); transform: translateY(-2px); }
.hp-card:focus-visible { outline: 2px solid var(--hp-mark); outline-offset: 2px; }
.hp-card-name { margin-top: 16px; font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -0.2px; color: var(--text); }
.hp-card-desc { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.hp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--hp-faint); }
.hp-card-arrow { flex-shrink: 0; width: 16px; height: 16px; transition: transform 0.2s, color 0.2s; }
.hp-card:hover .hp-card-arrow { transform: translateX(3px); color: var(--text); }

/* A topic, or the result of a search: where one is, then the questions */
.hp-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--hp-faint); }
.hp-crumb-btn {
  padding: 0; border: none; background: none; font-family: var(--font); font-size: 13.5px; font-weight: 600;
  color: var(--text); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.hp-crumb-btn:hover { text-decoration-color: currentColor; }
.hp-crumb-btn:focus-visible { outline: 2px solid var(--hp-mark); outline-offset: 3px; border-radius: 4px; }
.hp-crumbs svg { width: 12px; height: 12px; flex-shrink: 0; }
.hp-topic-head { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.hp-topic-name { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.5px; color: var(--text); }
.hp-topic-desc { margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--text-dim); }
.hp-list { margin-top: 22px; padding: 6px; border-radius: 16px; background: var(--card); box-shadow: var(--hp-box); }
.hp-q { border-radius: 11px; transition: background 0.15s; }
.hp-q + .hp-q { margin-top: 2px; }
.hp-q summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 11px;
  font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--text); cursor: pointer; list-style: none;
  transition: background 0.15s;
}
.hp-q summary::-webkit-details-marker { display: none; }
.hp-q summary:hover { background: var(--hp-fill); }
.hp-q summary:focus-visible { outline: 2px solid var(--hp-mark); outline-offset: -2px; }
/* The question unfolded: the whole of it, answer included, on a faint fill */
.hp-q[open] { background: var(--hp-fill); }
.hp-q[open] summary:hover { background: none; }
.hp-q-chev { flex-shrink: 0; width: 15px; height: 15px; color: var(--hp-faint); transition: transform 0.2s; }
.hp-q[open] .hp-q-chev { transform: rotate(90deg); color: var(--text); }
.hp-q-topic { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--hp-faint); }
.hp-a { max-width: 720px; padding: 0 16px 16px; font-size: 15px; line-height: 1.65; color: var(--text-dim); }
.hp-a p + p { margin-top: 10px; }
.hp-a a { font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.hp-a a:focus-visible { outline: 2px solid var(--hp-mark); outline-offset: 2px; border-radius: 3px; }
.hp-none { margin-top: 22px; padding: 34px 24px; border-radius: 16px; background: var(--hp-fill); text-align: center; }
.hp-none-title { font-size: 16px; font-weight: 600; color: var(--text); }
.hp-none-hint { margin-top: 4px; font-size: 14px; color: var(--hp-faint); }
/* Under the questions of a topic: the way to the others */
.hp-others { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hp-others-label { margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--hp-faint); }
.hp-pill {
  height: 32px; padding: 0 13px; border: none; border-radius: 999px; background: var(--hp-fill);
  font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; transition: background 0.2s;
}
.hp-pill:hover { background: var(--hp-fill-hover); }
.hp-pill:focus-visible { outline: 2px solid var(--hp-mark); outline-offset: 2px; }

/* ══ Writing to us: one box, the form on the left, one's tickets on the right ══ */
.hp-contact { margin-top: 48px; padding: 28px; border-radius: 20px; background: var(--card); box-shadow: var(--hp-box); scroll-margin-top: 24px; }
.hp-contact-title { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; color: var(--text); }
.hp-contact-sub { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-dim); }
.hp-contact-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 48px; align-items: start; }
.hp-contact form { margin-top: 22px; }
.hp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.hp-label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.hp-select, .hp-textarea {
  width: 100%; border: none; border-radius: 12px; background: var(--hp-fill);
  font-family: var(--font); font-size: 14.5px; color: var(--text); outline: none; transition: background 0.2s, box-shadow 0.2s;
}
.hp-select:hover, .hp-textarea:hover { background: var(--hp-fill-hover); }
.hp-select { height: 46px; padding: 0 36px 0 14px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.hp-select-wrap { position: relative; }
.hp-select-wrap svg { position: absolute; right: 14px; top: 17px; width: 12px; height: 12px; color: var(--hp-faint); pointer-events: none; }
.hp-select option { background: var(--card); color: var(--text); }
.hp-textarea { display: block; min-height: 132px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.hp-textarea::placeholder { color: var(--hp-faint); }
.hp-select:focus-visible, .hp-textarea:focus-visible { background: var(--hp-fill-hover); box-shadow: 0 0 0 2px var(--hp-mark); }
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 46px; padding: 0 20px;
  border: none; border-radius: 999px; background: var(--hp-cta);
  font-family: var(--font); font-size: 14.5px; font-weight: 600; color: var(--hp-cta-fg); cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.hp-btn:hover { background: var(--hp-cta-hover); }
.hp-btn:focus-visible { outline: 2px solid var(--hp-mark); outline-offset: 2px; }
.hp-btn:disabled { opacity: 0.55; cursor: default; }
.hp-status { min-height: 20px; margin-top: 10px; font-size: 13px; text-align: center; color: var(--hp-faint); }
.hp-status.is-error { color: var(--danger); }
.hp-status.is-ok { color: var(--success); }

.hp-tickets-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 14px; }
.hp-tickets-title { font-size: 16px; font-weight: 600; color: var(--text); }
/* The other ways to reach us, beside the form */
.hp-other { display: flex; flex-direction: column; gap: 10px; }
.hp-other-line { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-dim); }
.hp-other-line a { color: var(--text); font-weight: 600; }
.hp-tabs { display: flex; gap: 2px; }
.hp-tab {
  height: 30px; padding: 0 12px; border: none; border-radius: 999px; background: none;
  font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--hp-faint); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hp-tab:hover { color: var(--text); }
.hp-tab.active { background: var(--hp-fill-hover); color: var(--text); }
.hp-tab:focus-visible { outline: 2px solid var(--hp-mark); outline-offset: 2px; }
/* A ticket: a block set in the box, on a faint fill */
.hp-ticket-list { display: flex; flex-direction: column; gap: 8px; }
.hp-ticket { padding: 14px 16px; border-radius: 12px; background: var(--hp-fill); }
.hp-ticket-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hp-ticket-subject { font-size: 14.5px; font-weight: 600; color: var(--text); }
.hp-ticket-badge {
  flex-shrink: 0; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--hp-faint);
}
.hp-ticket-badge.is-open { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--hp-mark); }
.hp-ticket-meta { margin-top: 3px; font-size: 12.5px; color: var(--hp-faint); }
.hp-ticket-preview {
  margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-tickets-empty { padding: 36px 16px; border-radius: 12px; background: var(--hp-fill); text-align: center; font-size: 14px; color: var(--hp-faint); }
.hp-sk { padding: 16px 18px; border-radius: 12px; background: var(--hp-fill); }
.hp-sk-line {
  height: 12px; border-radius: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 0%, color-mix(in srgb, var(--text) 12%, transparent) 50%, color-mix(in srgb, var(--text) 6%, transparent) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
.hp-sk-line + .hp-sk-line { width: 45%; height: 10px; margin-top: 9px; }

/* ── Narrower windows ── */
@media (max-width: 900px) {
  .hp-hero { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 40px; }
  .hp-search { max-width: none; }
  .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  .hp-wrap { padding: 0 16px; }
  .hp-top { padding-top: 16px; }
  .hp-logo { --logo-w: 150px; }
  .hp-hero { gap: 22px; padding-top: 30px; }
  .hp-title { font-size: 28px; letter-spacing: -0.7px; }
  .hp-sub { font-size: 15px; }
  .hp-search { margin-top: 20px; }
  .hp-main { padding-top: 26px; padding-bottom: 56px; }
  .hp-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hp-card { min-height: 0; padding: 18px 18px 14px; }
  .hp-topic-head { align-items: flex-start; }
  .hp-topic-name { font-size: 21px; }
  .hp-contact { margin-top: 36px; padding: 20px 18px; border-radius: 18px; }
}
@media (pointer: coarse) {
  .hp-close { width: 44px; height: 44px; }
  .hp-lang select { height: 44px; }
  .hp-tab { height: 44px; padding: 0 16px; }
  .hp-crumb-btn { min-height: 44px; }
  .hp-pill { height: 44px; padding: 0 16px; }
  .hp-often-link { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-card, .hp-card-arrow, .hp-often-link svg, .hp-q-chev, .hp-btn, .hp-tab, .hp-pill { transition: none; }
  .hp-card:hover { transform: none; }
  .hp-card:hover .hp-card-arrow, .hp-often-link:hover svg { transform: none; }
  .hp-sk-line { animation: none; }
}

/* The complete guide also works without JavaScript. */
.seo-help-guide { margin-block: 32px; }
.seo-help-guide > summary { font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.seo-help-guide h2 { font-size: 1.1rem; margin-block: 24px 12px; }
.seo-help-guide section details { padding-block: 10px; }
.seo-help-guide section summary { cursor: pointer; }
.seo-help-guide p { line-height: 1.7; overflow-wrap: anywhere; }
.seo-help-guide a { color: var(--text); text-decoration: underline; }
