/* Generated by Tideline\tools\help\build-help.cs from Tideline.Help\wwwroot. Do not edit here. */
/* Tideline NZ's help: the page and its clips.

   One stylesheet for the website's help page (build-help.cs copies it to
   public_html/tideline/help/help.css) and, later, the app's Help page. Only
   colour tokens BOTH palettes define: --bg, --card, --border, --chip-bg,
   --row-bg, --text, --muted, --accent, --amber (the site's tideline/app.css
   and the app's wwwroot/css/app.css; checked 21 Oct 2026). The app has no
   --shadow-phone, hence the fallback.

   Shapes from Plotstead's Help.razor.css and HelpClip.razor.css, renamed to
   these tokens. Every :hover sits inside @media (hover: hover), the app's
   rule (RepoRulesTests). */

/* The website's header logo is a link back to the Tideline page. */
.help-site-logo {
    color: inherit;
    text-decoration: none;
}

.help-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 8px 16px 48px;
}

.help-intro h1 {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 16px 0 14px;
}

.help-lead {
    font-size: 1.075rem;
    color: var(--text);
}

.help-availability,
.help-disclosure {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── Contents: chips grouped, no script, no sticky rail (yet). ───────────── */

.help-toc {
    display: grid;
    gap: 14px;
    margin: 22px 0 8px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
}

.help-toc-heading {
    margin: 0 0 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.help-toc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-toc-chips a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--text);
    font-size: 0.875rem;
    text-decoration: none;
}

.help-toc-chips a i {
    color: var(--accent);
    font-size: 1rem;
}

@media (hover: hover) {
    .help-toc-chips a:hover {
        border-color: var(--accent);
    }
}

.help-toc-chips a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* On a wide screen the contents are a rail down the left that stays in view
   while the page scrolls (Plotstead's, James 21 Oct 2026). The page becomes
   two columns: the rail in the first, spanning every row so it can stick,
   and every other child in the second. The span is a number because grid
   can't say "to the end"; rows past the last child are empty and have no
   height. help-sections.js marks the section being read. */
@media (min-width: 64rem) {
    .help-page {
        max-width: 1120px;
        display: grid;
        grid-template-columns: 15rem minmax(0, 1fr);
        column-gap: 40px;
        align-items: start;
    }

    .help-page > * {
        grid-column: 2;
    }

    .help-toc {
        grid-column: 1;
        grid-row: 1 / span 500;
        position: sticky;
        top: 12px;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        margin: 22px 0 0;
        padding: 4px 8px 16px 0;
        gap: 16px;
        border: 0;
        background: none;
    }

    .help-toc-chips {
        flex-direction: column;
        gap: 1px;
    }

    .help-toc .help-toc-chips a {
        padding: 5px 10px;
        border: 0;
        border-left: 2px solid transparent;
        border-radius: 0 8px 8px 0;
        background: none;
        color: var(--muted);
    }

    .help-toc .help-toc-chips a.is-current {
        color: var(--text);
        background: var(--chip-bg);
        border-left-color: var(--accent);
    }
}

@media (min-width: 64rem) and (hover: hover) {
    .help-toc .help-toc-chips a:hover {
        color: var(--text);
        background: var(--chip-bg);
        border-color: transparent;
        border-left-color: transparent;
    }

    .help-toc .help-toc-chips a.is-current:hover {
        border-left-color: var(--accent);
    }
}

/* ── Groups and cards ─────────────────────────────────────────────────── */

.help-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 0 14px;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.help-group i,
.help-card h3 i {
    color: var(--accent);
}

.help-card {
    margin: 0 0 16px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    scroll-margin-top: 16px;
}

.help-card h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.help-card p,
.help-card li {
    line-height: 1.6;
}

.help-card p {
    margin: 0 0 12px;
}

.help-card a {
    color: var(--accent);
}

.help-platforms,
.help-since {
    color: var(--amber);
    font-size: 0.875rem;
}

.help-platforms {
    margin-top: -4px;
}

.help-list {
    margin: 0 0 12px;
    padding-left: 1.2rem;
}

.help-list li {
    margin-bottom: 6px;
}

.help-note {
    padding-left: 12px;
    border-left: 3px solid var(--accent);
    color: var(--muted);
}

/* A card with a clip: words beside the phone on a wide screen, the phone
   under the words on a narrow one. */
@media (min-width: 768px) {
    .help-card.has-clip {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 24px;
        align-items: start;
    }
}

/* ── The clip ─────────────────────────────────────────────────────────── */

.clip {
    margin: 6px auto 4px;
    width: min(64vw, 260px);
}

@media (min-width: 768px) {
    .clip {
        width: 240px;
        margin: 4px 0 0;
    }
}

/* The gallery's Android bezel, black in both themes as the phone is. */
.clip-frame {
    position: relative;
    display: block;
    border: 6px solid #0b0b0d;
    border-radius: 24px;
    background: #000;
    overflow: hidden;
    box-shadow: 0 22px 44px var(--shadow-phone, rgba(0, 0, 0, 0.35));
}

.clip-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 360 / 708;
    object-fit: cover;
    background: #000;
}

/* The play mark until the clip plays (Plotstead's): without it a clip that
   hasn't started reads as a tall screenshot. */
.clip-frame::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    background: rgba(13, 17, 23, 0.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M5.5 3.5v9l7-4.5z'/%3E%3C/svg%3E") center / 24px no-repeat;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: opacity 0.25s;
}

.clip.is-playing .clip-frame::after,
.clip.has-controls .clip-frame::after {
    opacity: 0;
}

/* Pause and play, for a clip clips.js is playing by itself: bottom right,
   always reachable by keyboard (WCAG 2.2.2). */
.clip-toggle {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(13, 17, 23, 0.7);
    cursor: pointer;
}

.clip-toggle-pause {
    display: block;
    width: 14px;
    height: 16px;
    margin: 0 auto;
    border-left: 4px solid #fff;
    border-right: 4px solid #fff;
}

.clip-toggle[aria-pressed="true"] .clip-toggle-pause {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    margin-left: 15px;
}

.clip-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.clip figcaption {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
}

/* The app, offline or until it may fetch from the website: a link instead. */
.help-clip-link a {
    color: var(--accent);
}

.help-footer {
    margin-top: 28px;
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    .clip-frame::after {
        transition: none;
    }
}
