/* PairItWeb-only styles (app.pairit.cards). Not loaded by the iOS app.
   tag=20261016_1530 — palette mirrors Site/public/site.css (pairit.cards); change both together. */
:root {
    --wb-red: #E62317;
    --wb-green: #27A044;
    --wb-orange: #F59300;
    --wb-text: #1f2328;
    --wb-muted: #5f6672;
    --wb-border: #dfe3ec;
    --wb-cta: linear-gradient(135deg, #F59300 0%, #E62317 72%);
}

/* The black/blue box around page titles: Blazor's <FocusOnNavigate Selector="h1"> focuses the h1
   after every navigation (good for screen readers), and the browser paints a focus ring on it.
   It is programmatic focus on a non-interactive element, so hide the ring but keep the focus move. */
h1:focus, h1:focus-visible { outline: none; }

body { color: var(--wb-text); }
a { color: #1b6ec2; }

/* ── Site chrome (every page except the review screen, which has its own header) ── */
.wb-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--wb-red) 0%, var(--wb-orange) 33%, #BFD400 66%, var(--wb-green) 100%) 1;
}
.wb-header-inner { max-width: 1000px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 20px; }
.wb-brand img { height: 28px; width: auto; display: block; }
.wb-nav { margin-left: auto; display: flex; gap: 6px; font-size: 15px; }
.wb-nav a { color: var(--wb-text); text-decoration: none; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.wb-nav a:hover { background: rgba(0, 0, 0, .06); }
.wb-nav a.active { background: var(--wb-red); color: #fff; }
.wb-footer { max-width: 1000px; margin: 40px auto 0; padding: 20px 16px 8px; border-top: 1px solid var(--wb-border); color: var(--wb-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.wb-footer a { color: var(--wb-muted); }
@media (max-width: 520px) { .wb-nav a { padding: 6px 8px; font-size: 14px; } .wb-header-inner { gap: 8px; } }

/* ── Shared page + card look for Account / Decks / Help ── */
.acct-page, .decks-page, .wb-page { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important; }
.acct-page h1, .decks-page h1, .wb-page h1 { font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin: 8px 0 14px; }
.acct-page { background: rgba(255, 255, 255, .7); border: 1px solid var(--wb-border); border-radius: 14px; padding: 8px 28px 28px !important; }
.decks-nav { display: none; }   /* the site header now carries navigation */

/* ── Help page ── */
.wb-page { max-width: 760px; margin: 32px auto; padding: 0 20px 20px; }
.wb-page h2 { font-size: 22px; margin: 34px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--wb-border); }
.wb-page h3 { font-size: 17px; margin: 22px 0 4px; }
.wb-page .wb-lede { font-size: 18px; color: var(--wb-muted); }
.wb-toc { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 14px 0 0; }
.wb-callout { background: rgba(255, 255, 255, .75); border-left: 4px solid var(--wb-green); border-radius: 6px; padding: 12px 16px; margin: 16px 0; }

/* ── Welcome screen (first visit) ── */
.wb-welcome { max-width: 860px; margin: 0 auto; padding: 24px 24px 60px; }
.wb-welcome-logo { display: block; margin: 0 0 8px; height: auto; }
.wb-welcome-hero { display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: center; margin: 12px 0 28px; }
.wb-welcome-title { font-size: clamp(32px, 6vw, 46px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 14px; font-weight: 700; }
.wb-accent { background: var(--wb-cta); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wb-welcome-lede { font-size: 18px; line-height: 1.5; color: #3b4150; margin: 0 0 22px; }
.wb-welcome-parrot { width: 100%; height: auto; }
.wb-welcome-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.wb-welcome-step { background: rgba(255, 255, 255, .75); border: 1px solid var(--wb-border); border-radius: 12px; padding: 16px 18px; }
.wb-welcome-step b { display: block; margin-bottom: 4px; }
.wb-welcome-step span { color: var(--wb-muted); font-size: 15px; }
.wb-welcome-note { color: var(--wb-muted); font-size: 14px; margin: 22px 0 0; text-align: center; }
@media (max-width: 640px) {
    .wb-welcome-hero { grid-template-columns: 1fr; text-align: center; }
    .wb-welcome-parrot { order: -1; width: 150px; margin: 0 auto; }
}

/* Review-screen header links */
.header-nav-link { color: #3b4150; text-decoration: none; font-size: 14px; font-weight: 500; }
.header-nav-link:hover { color: var(--wb-red); }


.wb-page h2, .wb-page h3 { font-weight: 700; }
.wb-page h2 { font-size: 24px; }
.wb-toc a { font-weight: 500; }

/* Blazor's unhandled-error bar was unstyled (plain text at the top-left). */
#blazor-error-ui {
    background: #fff4d6; color: #5b4300; border-top: 2px solid var(--wb-orange);
    bottom: 0; left: 0; right: 0; position: fixed; z-index: 1000; display: none;
    padding: .7rem 1.25rem .7rem 1.25rem; box-shadow: 0 -1px 6px rgba(0, 0, 0, .15); font-size: 14px;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
