/* Tomelet help centre; generated from content/help/ */
/* The help centre (docs/plans/website-help-centre.md). Built on site.css tokens only; served beside the help pages as
   /help/help.css so nothing reaches the public site before the centre is published. Logical properties throughout, so
   right-to-left locales mirror without overrides. */
.help-page main.help {
  max-width: 42rem;
  padding-block: clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  /* break-word, not anywhere: a word breaks inside itself only when it is wider than a whole line. anywhere also
     offers a break inside every word to the line breaker, which split the bound last pair ("lehet|őséget." in
     Hungarian, Tamil endings) instead of moving it down whole. */
  overflow-wrap: break-word;
}
/* Korean is set with spaces between words; without keep-all a line may break between any two Hangul syllables. */
.help-page main.help:lang(ko) { word-break: keep-all; }
.help .crumbs { margin-bottom: 0; }
/* site.css pads every section and rules the next; here the grid gap alone spaces them (the contact card keeps its own). */
.help-page main.help > section:not(.help-contact) { padding-block: 0; border-top: 0; }

.help-hero { display: grid; gap: 1rem; }
.help-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.25rem); }
.help-hero-compact h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 2.8rem); }
.help-hero .lede { color: var(--muted); font-size: 1.15rem; max-width: 40em; }

.help-search { display: grid; gap: .55rem; margin-top: .35rem; }
.help-search[hidden] { display: none; }
.help-search-label { font: 600 .85rem/1.4 var(--font-ui); color: var(--muted); }
.help-search-field { position: relative; display: block; }
.help-search-icon { position: absolute; inset-inline-start: 1rem; top: 50%; width: 1.25rem; height: 1.25rem; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.help-search-input {
  width: 100%; min-height: 3.25rem; padding-block: .85rem; padding-inline: 2.9rem 1.1rem;
  font: 400 1.05rem/1.4 var(--font-ui); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 1px 0 rgba(8, 71, 68, .04);
}
.help-search-input::placeholder { color: var(--muted); opacity: 1; }
.help-search-input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-color: var(--primary); }
.help-status { font: .9rem/1.5 var(--font-ui); color: var(--muted); max-width: 40em; }
.help-status:empty { display: none; }
.help-results { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.help-results[hidden] { display: none; }

.help-section { display: grid; gap: 1rem; }
.help-section h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.help-section-lede { color: var(--muted); margin-top: -.4rem; max-width: 40em; }

.help-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.help-row {
  display: flex; align-items: center; gap: 1rem; min-height: 44px;
  padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.help-row:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--ink); }
.help-row-text { display: grid; gap: .25rem; flex: 1; min-width: 0; }
.help-row-title { font: 700 1.1rem/1.3 var(--font-display); }
/* Row summaries stop at two lines so a list keeps one rhythm; the full answer is the first thing on the article, and
   the clamped text stays in the page for search engines and screen readers. */
.help-row-body {
  font: .95rem/1.5 var(--font-ui); color: var(--muted); max-width: 40em; text-wrap: pretty;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.help-chevron { flex: none; width: 1.25rem; height: 1.25rem; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.help-row:hover .help-chevron { color: var(--primary); transform: translateX(3px); }
html[dir="rtl"] .help-chevron { transform: scaleX(-1); }
html[dir="rtl"] .help-row:hover .help-chevron { transform: scaleX(-1) translateX(3px); }

.help-featured { gap: .6rem; }
.help-feature-card {
  display: grid; gap: .5rem; padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--line)); border-inline-start: 4px solid var(--accent);
  border-radius: var(--r-lg); background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--ink); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.help-feature-card:hover { border-color: var(--primary); border-inline-start-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.help-feature-title { font: 700 clamp(1.35rem, 1.1rem + .9vw, 1.7rem)/1.2 var(--font-display); }
.help-feature-body { color: var(--muted); max-width: 40em; text-wrap: pretty; }

.help-article { display: grid; gap: 1.75rem; }
.help-article-head { display: grid; gap: 1rem; }
/* A single word wider than a phone column ("Wiederherstellungsschlüssel") breaks inside rather than push the page
   sideways; every other word wraps as usual. */
.help-article h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 2.9rem); overflow-wrap: anywhere; hyphens: auto; }
.help-answer {
  font-size: 1.2rem; line-height: 1.55; max-width: 36em;
  padding: 1rem 1.2rem; border-inline-start: 4px solid var(--primary); border-radius: var(--r-md);
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}
.help-meta { font: .85rem/1.5 var(--font-ui); color: var(--muted); max-width: 40em; }

.help-prose { display: grid; gap: 1rem; font-size: 1.08rem; line-height: 1.7; max-width: 40em; }
.help-prose h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.65rem); margin-top: .75rem; }
.help-prose h3 { font-size: 1.2rem; margin-top: .25rem; }
.help-prose ol, .help-prose ul { margin: 0; padding-inline-start: 1.5rem; display: grid; gap: .55rem; }
.help-prose li::marker { color: var(--primary); font-weight: 700; }

/* A label the app shows, quoted from its own strings: set apart like a button caption. Like one it never breaks
   (a break inside "Sign-in" stranded "in." on a line of its own), except a label too long for a phone line, which the
   renderer marks .ui-label-long and sets in a .ui-label-box. The box moves to the next line whole, and the label wraps
   inside it, at its spaces and with each word whole, only when it is wider than the column; set as a bare inline run
   it would split mid-caption wherever the line happened to end, though it fits. The box also carries the punctuation
   and the one last word that follow the label (tools/help.mjs), since the browser may break after an atomic box even
   at a no-break space. */
.ui-label {
  font: 600 .92em/1.3 var(--font-ui); padding: .06em .32em; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--primary) 11%, transparent); color: var(--primary-deep);
  white-space: nowrap;
}
.ui-label-box { display: inline-block; max-width: 100%; }
/* Its words stay whole unless one alone is wider than the column (a long single-word label), which then breaks inside. */
.ui-label-long { white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ui-label-tight { margin-inline-end: -.2em; }
/* The renderer wraps a hyphenated last word of a reading block (tools/help.mjs bindLastTwo) so it never breaks. */
.help-keep { white-space: nowrap; }
.ui-path { color: var(--muted); }

.help-contact {
  display: grid; gap: .6rem; padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.help-contact h2 { font-size: 1.4rem; }
.help-contact p { color: var(--muted); max-width: 40em; }
.help-cta { margin: 0; }
.help-cta .btn { white-space: normal; text-align: center; max-width: 100%; }
/* Chinese and Japanese break between any two characters, so a short last line is one character; the generator binds
   the last two (bindLastTwo), and the line breaker evens the rest out (AI-2613). */
.help-page:is(:lang(zh), :lang(ja)) main.help :is(p, li, .help-row-body, .help-feature-body) { text-wrap: pretty; }
.help-page:is(:lang(zh), :lang(ja)) main.help :is(h1, h2, h3, .help-row-title, .help-feature-title) { text-wrap: balance; }
