/* Help center styles. Deliberately plain and documentation-like - no hero
   sections, no app-store badges, no conversion CTAs. Someone here is trying to
   get something done, not be sold to. Reuses sense-theme.css variables for
   brand colors and fonts, with fallbacks so this file stands on its own. */

:root {
    --help-ink: var(--ink, #2d3265);
    --help-muted: var(--ink-soft, #6b6e8d);
    --help-hair: var(--hair, rgba(50, 60, 120, 0.12));
    /* Match the rest of the site: warm cream page, white surfaces on top. */
    --help-bg: var(--bg, #f5f1ef);
    --help-accent: var(--brand, #2d3265);
    --help-surface: #ffffff;
}

body.help {
    margin: 0;
    background: var(--help-bg);
    color: var(--help-ink);
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Slim top bar - a logo home link and a way back to all guides. That is all a
   help page needs up top. */
.help-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--help-hair);
}
.help-topbar-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
}
.help-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--help-ink);
    font-weight: 600;
    font-size: 1.02rem;
}
.help-brand img { display: block; }
.help-brand .help-brand-sub {
    color: var(--help-muted);
    font-weight: 500;
}
.help-topbar-inner .help-allguides {
    margin-left: auto;
    text-decoration: none;
    color: var(--help-muted);
    font-size: 0.92rem;
}
.help-topbar-inner .help-allguides:hover { color: var(--help-ink); }

/* Content column */
.help-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.25rem 1.25rem 4.5rem;
}

.help-breadcrumb {
    font-size: 0.85rem;
    color: var(--help-muted);
    margin: 0 0 1.5rem;
}
.help-breadcrumb a { color: var(--help-muted); text-decoration: none; }
.help-breadcrumb a:hover { color: var(--help-ink); text-decoration: underline; }
.help-breadcrumb span { margin: 0 0.4rem; }

/* Article typography */
.help-article h1 {
    font-size: 1.9rem;
    line-height: 1.2;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}
.help-article .help-updated {
    color: var(--help-muted);
    font-size: 0.85rem;
    margin: 0 0 2rem;
}
.help-article h2 {
    font-size: 1.28rem;
    margin: 2.4rem 0 0.6rem;
    letter-spacing: -0.01em;
}
.help-article h3 {
    font-size: 1.05rem;
    margin: 1.6rem 0 0.4rem;
}
.help-article p { margin: 0 0 1rem; }
.help-article ul,
.help-article ol {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}
.help-article ol { list-style: decimal; }
.help-article li { margin: 0.3rem 0; }
.help-article a { color: var(--help-accent); text-decoration: underline; text-underline-offset: 2px; }
.help-article a:hover { text-decoration: none; }
.help-article strong { font-weight: 600; }
.help-article code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--help-surface);
    border: 1px solid var(--help-hair);
    border-radius: 5px;
    padding: 0.05em 0.4em;
}

/* A quiet callout for the "if you're on free Cozi" type asides. No colored left
   border (house rule) - just a soft fill and hairline. */
.help-note {
    background: var(--help-surface);
    border: 1px solid var(--help-hair);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    margin: 0 0 1.4rem;
    font-size: 0.96rem;
}
.help-note p:last-child { margin-bottom: 0; }

/* Hub: simple white cards on the site's warm background, like a real help
   center. Clean and quiet - no hero, no app badges, no colored tiles. */
.help-hub-head {
    text-align: center;
    max-width: 640px;
    margin: 1.75rem auto 2.75rem;
}
.help-hub-head h1 {
    font-size: 2.1rem;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
}
.help-hub-head p {
    color: var(--help-muted);
    font-size: 1.05rem;
    margin: 0;
}

.help-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
    gap: 1rem;
}
.help-card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--help-hair);
    border-radius: 18px;
    padding: 1.6rem 1.45rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.help-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.help-card-icon {
    display: block;
    width: 26px;
    height: 26px;
    color: var(--help-ink);
    margin-bottom: 1.1rem;
}
.help-card h2 {
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
}
.help-card p {
    color: var(--help-muted);
    font-size: 0.94rem;
    line-height: 1.5;
    margin: 0;
}

/* Grouping: guides (articles) sit apart from support actions. Each group gets
   a quiet label, and the two groups are separated by a hairline so the reader
   can tell "here's how to do things" from "here's how to get help." */
.help-group { margin-bottom: 2.75rem; }
.help-group + .help-group {
    padding-top: 2.5rem;
    border-top: 1px solid var(--help-hair);
}
.help-group-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--help-muted);
    font-weight: 600;
    margin: 0 0 1.1rem;
}

/* Support actions: lighter than the guide cards. Outlined, flat, icon beside
   the label - reads as a quick link, not an article. */
.help-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.75rem;
}
.help-action {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid var(--help-hair);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.help-action:hover {
    background: var(--help-surface);
    border-color: rgba(50, 60, 120, 0.2);
}
.help-action-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--help-muted);
}
.help-action-text h3 {
    font-size: 0.98rem;
    margin: 0 0 0.12rem;
}
.help-action-text p {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--help-muted);
    margin: 0;
}

/* Slim footer */
.help-footer {
    border-top: 1px solid var(--help-hair);
    margin-top: 3rem;
}
.help-footer-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.5rem;
    color: var(--help-muted);
    font-size: 0.88rem;
}
.help-footer-inner a { color: var(--help-muted); text-decoration: none; }
.help-footer-inner a:hover { color: var(--help-ink); text-decoration: underline; }
.help-footer-inner .help-footer-links { margin: 0 0 0.5rem; }
.help-footer-inner .help-footer-links span { margin: 0 0.4rem; }
