/* Round lp3, 2026-10-30: the Help center. After help.mobbin.com's three levels (home with topic cards,
   a topic's article list, the article), in our tokens: the canvas with no band or sky (Home keeps the one
   atmospheric moment), Bitter for the page titles and the 20px section headings, Work Sans for the rest.
   Light mode lifts the cards with the hairline ring, dark mode with the surface step. Ink-2 is 6.31:1 on
   surface and 5.33:1 on sunken in light, 9.72:1 and 8.83:1 in dark (see docs/research-2026-10-30-help-center-and-contact.md). */
.help-page { background: var(--color-canvas); }
.help-page [hidden] { display: none !important; }
.help-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* main stays full width: the footer reveals from under it. The content column is 1080px, set by the padding;
   min-height keeps short pages from opening the footer under the header. The top padding leaves Mochiboard's
   gap under the header: 91px under our 88px header here, 84px under the 80px one from 900px, 54px on phones. */
.help-main { box-sizing: border-box; min-height: 100vh; padding: 180px max(24px, calc((100% - 1080px) / 2)) 96px; color: var(--color-ink); font-family: var(--font-sans); }
/* The home is one row of three cards, so a full-height main left 170–470px of empty canvas under them before the
   footer (2026-11-07). The home lets its content set the height; topics and articles keep the minimum. */
.help-main:has(> .help-home:not([hidden])) { min-height: 0; }
/* Serif titles open to 0.01em and 20px section headings to 0.02em: at 600
   weight, Bitter's -0.01em crowded the letters (9 Nov 2026). */
.help-page h1 { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0.01em; color: var(--color-ink); }
.help-page h1:focus { outline: none; }
.help-page :is(a, button, input, [tabindex="0"]):focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Home: the title, the search, three cards. */
.help-hero { max-width: 640px; margin: 0 auto; text-align: center; }
.help-hero h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.15; margin: 0 0 28px; }
.help-search { position: relative; }
.help-search svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; fill: none; stroke: var(--color-ink-icon); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.help-search input { width: 100%; height: 48px; padding: 0 20px 0 50px; border: 1px solid var(--color-line-control); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-ink); font: 400 16px/1.4 var(--font-sans); }
.help-search input::placeholder { color: var(--color-ink-2); opacity: 1; }
.help-search-status { max-width: 760px; margin: 40px auto 12px; font-size: 14px; color: var(--color-ink-2); }
.help-search-status:empty { display: none; }
.help-results { max-width: 760px; margin: 0 auto; }
.help-empty { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.6; color: var(--color-ink-2); }

/* Four topics in a 2 × 2 grid, after Mobbin's help center (two 402px cards, 24px apart, 828px in all). */
.help-cards { list-style: none; max-width: 840px; margin: 56px auto 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* Centred, with a larger icon tile (Mobbin's: a 64px tile, 16px corners, a 32px icon; 2026-10-30). */
.help-card { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; box-sizing: border-box; padding: 28px; border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--shadow-hairline); color: var(--color-ink); text-decoration: none; transition: box-shadow 0.2s var(--ease-out-soft), background-color 0.2s var(--ease-out-soft); }
.help-card:hover { box-shadow: var(--shadow-lift); }
.help-card-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 16px; background: var(--color-sunken); }
.help-card-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--color-ink-icon); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.help-card-name { font: 600 18px/1.35 var(--font-sans); }
.help-card-desc { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--color-ink-2); }
.help-card-count { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--color-ink-2); }

/* Article rows, after Mobbin's: a grey card each, 16px apart, no dividers. A document icon, the title and when it
   was edited on one line, the summary on the next, both cut to one line. Light: sunken, the line colour on hover
   (ink-2 5.33:1 and 4.82:1); dark: sunken, raised on hover (8.83:1 and 7.94:1). */
.help-rows { list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; }
.help-row { display: block; padding: 18px 20px; border-radius: 16px; background: var(--color-sunken); color: var(--color-ink); text-decoration: none; transition: background-color 0.15s var(--ease-out-soft); }
.help-row:hover { background: var(--color-line); }
.help-row-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.help-row-icon { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--color-ink-icon); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.help-row-title { flex: 1; min-width: 0; overflow: hidden; font: 600 16px/1.4 var(--font-sans); text-overflow: ellipsis; white-space: nowrap; }
.help-edited { font-size: 13px; line-height: 1.4; color: var(--color-ink-2); white-space: nowrap; }
.help-row-summary { display: block; margin-top: 4px; padding-left: 24px; overflow: hidden; font-size: 14px; line-height: 1.45; color: var(--color-ink-2); text-overflow: ellipsis; white-space: nowrap; }

/* Topic and article pages. */
.help-topic, .help-article { max-width: 840px; margin: 0 auto; }
/* style.css hides every nav at 700px and below (the old header's); the breadcrumbs stay. */
.help-page .help-crumbs { display: block; }
/* Breadcrumbs, after Mobbin's: the path only (the page you're on is read out but not shown), each link followed by
   a chevron, ink-2 that turns ink on hover. 5.78:1 on the light canvas, 10.72:1 on the dark. */
.help-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 16px; padding: 0; }
.help-crumbs li { display: flex; align-items: center; gap: 6px; }
.help-crumbs li:not(.help-sr)::after { content: ""; width: 12px; height: 12px; background: var(--color-ink-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.help-crumbs a { display: inline-block; padding: 4px 0; font: 600 13px/16px var(--font-sans); color: var(--color-ink-2); text-decoration: none; transition: color 0.15s var(--ease-out-soft); }
.help-crumbs a:hover { color: var(--color-ink); }
.help-topic h1, .help-article h1 { font-size: clamp(36px, 4vw, 44px); line-height: 1.2; margin: 0 0 12px; }
/* The article sits in one card, as on Mobbin: white with the lift shadow in light, the surface step in dark. */
.help-article-card { padding: 56px 64px 40px; border-radius: 24px; background: var(--color-surface); box-shadow: var(--shadow-lift); }
.help-article-card h1 { margin-bottom: 4px; }
.help-article-edited { margin: 0 0 20px; }
.help-topic-desc, .help-lead { margin: 0 0 40px; font-size: 18px; line-height: 1.6; color: var(--color-ink-2); }
.help-group + .help-group { margin-top: 40px; }
.help-group h2, .help-body h2 { margin: 0 0 12px; font: 600 20px/1.35 var(--font-serif); letter-spacing: 0.02em; color: var(--color-ink); }

.help-body { font-size: 16px; line-height: 1.6; }
.help-body p { margin: 0 0 16px; }
.help-body h2 { margin-top: 32px; }
.help-body h3 { margin: 20px 0 6px; font: 600 16px/1.45 var(--font-sans); color: var(--color-ink); }
.help-body h3 + p { margin-top: 0; }
.help-body > h2:first-child { margin-top: 0; }
/* Section dividers, as in the Mobbin reference. Decorative: the h2 after each one carries the structure. */
.help-body hr { margin: 32px 0; border: 0; border-top: 1px solid var(--color-line-strong); }
.help-body hr + h2 { margin-top: 0; }
/* A bracketed aside stays on one line, so "(see" never ends a line apart from its link. */
.help-nowrap { white-space: nowrap; }
.help-body a, .help-inline-link { color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.help-inline-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.help-steps { counter-reset: step; list-style: none; margin: 0 0 20px; padding: 0; }
.help-steps li { counter-increment: step; position: relative; min-height: 28px; margin-bottom: 14px; padding-left: 44px; }
.help-steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--color-sunken); color: var(--color-ink); font: 600 14px/28px var(--font-sans); text-align: center; }
.help-list { margin: 0 0 20px; padding-left: 22px; }
.help-list li { margin-bottom: 10px; }
/* Numbered issues, as on Mobbin: a bold label, the fix under it. Plain numbers, so they don't read as steps. */
.help-issues { margin: 0 0 20px; padding-left: 22px; }
.help-issues > li { margin-bottom: 16px; padding-left: 4px; }
.help-issues > li::marker { font-weight: 600; color: var(--color-ink); }
.help-issues strong { display: block; color: var(--color-ink); }
.help-issues p { margin: 4px 0 0; }
/* Policies Mimokeep hasn't settled show as drafts, so nobody reads a guess as the rule. */
.help-need { margin: 12px 0 16px; padding: 12px 16px; border: 1px dashed var(--color-line-control); border-radius: 12px; background: var(--color-sunken); font-size: 15px; line-height: 1.55; color: var(--color-ink-2); }
.help-need strong { color: var(--color-ink); }
.help-table-wrap { overflow-x: auto; margin: 0 0 24px; border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-hairline); }
.help-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.help-table th, .help-table td { padding: 10px 12px; border-bottom: 1px solid var(--color-line); text-align: left; white-space: nowrap; }
.help-table thead th { font-weight: 600; }
.help-table tbody th { font-weight: 500; color: var(--color-ink-2); }
.help-table tr:last-child > * { border-bottom: 0; }

/* Was this helpful?, after Mobbin's: centred under the article with no divider above it, the question, then the
   two answers 24px under it (Mobbin has 16px; ours was too tight) and 16px apart, each with a thumb icon 8px before the label. */
.help-article-foot { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 56px; text-align: center; }
.help-feedback { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.help-feedback-ask { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.help-feedback p { margin: 0; color: var(--color-ink); font: 600 18px/1.35 var(--font-sans); }
.help-feedback-buttons { display: flex; gap: 16px; }
.help-feedback-buttons button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--color-line-control); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-ink); font: 500 15px/1 var(--font-sans); cursor: pointer; transition: background-color 0.15s var(--ease-out-soft); }
.help-feedback-icon { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.help-feedback-buttons button:hover { background: var(--color-surface-hover); }
/* After an answer, as on Mobbin: Yes swaps the question for a check and thanks; No swaps it for "Can you tell us
   more?" with a box and Send, which stays disabled (exempt from 1.4.3) until something is typed. Mobbin swaps with
   no motion; ours fades the new state in and lifts it 4px over 200ms, and holds still under reduced motion. */
.help-feedback > :not([hidden]) { animation: help-feedback-in 0.2s var(--ease-out-soft); }
@keyframes help-feedback-in { from { opacity: 0; transform: translateY(4px); } }
.help-feedback-more { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: min(400px, 100%); text-align: left; }
.help-feedback .help-feedback-title { margin: 0 0 8px; text-align: center; }
.help-feedback-more label { font-size: 14px; font-weight: 600; color: var(--color-ink-2); }
.help-feedback-more textarea { box-sizing: border-box; width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid var(--color-line-control); border-radius: 12px; background: var(--color-sunken); color: var(--color-ink); font: 400 15px/1.5 var(--font-sans); resize: vertical; }
.help-feedback-more textarea::placeholder { color: var(--color-ink-2); opacity: 1; }
/* Focus, as on Mobbin: the box's own edge turns accent and thickens to 2px (an inset 1px shadow, so nothing
   shifts), with no outline around it. Accent on sunken 4.87:1 light, 4.64:1 dark. */
.help-feedback-more textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
/* Send: 16px under the box (was 8px; Mobbin's is 12px) and 16px side padding (was 22px), still 44px tall. */
.help-feedback-more .button { align-self: flex-end; min-height: 44px; margin-top: 8px; padding: 0 16px; font-size: 15px; }
.help-feedback-more .button:disabled { opacity: 0.45; cursor: default; }
.help-feedback .help-feedback-done { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.help-feedback-done:focus { outline: none; }
/* The sent check is moss green, as Mobbin's is green: 5.67:1 on the card light, 7.06:1 dark. */
.help-feedback-done svg { width: 20px; height: 20px; fill: none; stroke: var(--color-moss); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.help-stuck { margin: 0; font-size: 15px; color: var(--color-ink-2); }

/* Dark mode lifts the hovered card a surface step instead of a deeper shadow. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.help-card, .help-row):hover { background: var(--color-raised); } }
:root[data-theme="dark"] :is(.help-card, .help-row):hover { background: var(--color-raised); }

/* Below 1024 the three cards stack, still centred. */
@media (max-width: 1023px) {
  .help-cards { max-width: 720px; margin: 48px auto 0; gap: 12px; }
  .help-card { padding: 24px; }
  .help-card-icon { margin-bottom: 16px; }
  .help-card-count { padding-top: 12px; }
}
@media (max-width: 900px) { .help-main { padding-top: 164px; } }
@media (max-width: 700px) {
  .help-cards { grid-template-columns: 1fr; }
  .help-main { padding: 134px 16px 64px; }
  .help-hero h1 { font-size: 36px; margin-bottom: 24px; }
  .help-topic h1, .help-article h1 { font-size: 30px; }
  .help-topic-desc, .help-lead { margin-bottom: 32px; font-size: 16px; }
  .help-card { padding: 20px; }
  .help-card-icon { width: 56px; height: 56px; border-radius: 14px; }
  .help-card-icon svg { width: 28px; height: 28px; }
  /* On phones the date drops under the title and the title may take two lines, as on Mobbin. */
  .help-row { padding: 16px; }
  .help-row-head { flex-wrap: wrap; align-items: flex-start; row-gap: 2px; }
  .help-row-icon { margin-top: 3px; }
  .help-row-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
  .help-row-head .help-edited { flex: 0 0 100%; padding-left: 24px; }
  .help-article-card { padding: 28px 20px 24px; border-radius: 20px; }
  .help-article-foot { margin-top: 40px; }
}

/* A two-plan table fits a phone, so it drops the six-column table's minimum width and never scrolls sideways. */
.help-table.help-table-two { min-width: 0; }
.help-table.help-table-two :is(th, td) { white-space: normal; }

/* The Help center's doodle icons (user, credit card, open folder, life ring, file with lines; Mimokeep's own drawings,
   built the way Oreo Doodle Icons are: notice in LICENSE-oreo-doodle-icons.txt next to this file) with their own motion: each line draws in on its own timing, then
   the hand-drawn boil loops (one shared #hc-boil filter, its seed stepping every 0.14s). Drawn in our icon grey, so
   dark mode follows the token. With reduced motion the lines show complete and still. */
.hc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hc-doodle path { fill: none; stroke: var(--color-ink-icon); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; visibility: hidden; animation: hc-draw var(--d) cubic-bezier(.65, .05, .36, 1) var(--w) forwards; }
.help-row-icon.hc-doodle { width: 18px; height: 18px; margin: -1px; }
.help-card-icon svg.hc-doodle { width: 40px; height: 40px; }
@keyframes hc-draw { from { visibility: visible; } to { visibility: visible; stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hc-doodle path { animation: none; stroke-dashoffset: 0; visibility: visible; }
  .hc-doodle g { filter: none; }
}
@media (max-width: 700px) { .help-card-icon svg.hc-doodle { width: 34px; height: 34px; } }

/* Article titles use the app's page-title step (--text-title: 36px desktop, 32px tablet; 28px on phones, the Settings phone step), the
   smallest the display serif goes. Mobbin's article titles are 24px, below that floor, so this is as close as
   the system allows. Section headings already sit at 20px, against Mobbin's 21px. */
.help-article h1 { font-size: 36px; }
@media (max-width: 1024px) { .help-article h1 { font-size: 32px; } }
@media (max-width: 600px) { .help-article h1 { font-size: 28px; } }

/* Phones keep the tighter step, so "How can we help?" and the 20px "How do you ...?" headings stay on one line at 375. */
@media (max-width: 700px) { .help-page h1 { letter-spacing: 0; } .help-group h2, .help-body h2 { letter-spacing: 0.01em; } }
