/* FuzzyCode Help Center shell.
   Consumes V2 design tokens (WIP_STYLE_REVAMP/fc-design-system-base.css).
   Two registers: .hc-parent (calm, complete) and .hc-kid (bigger, playful). */

body.hc-body {
    margin: 0;
    background-color: var(--fc-cream-light);
    font-family: var(--fc-font-body);
    color: var(--fc-gray-800);
    -webkit-font-smoothing: antialiased;
}

.hc-page { max-width: 1020px; margin: 0 auto; padding: 24px 16px 64px; }

/* ---------- Nav ---------- */
.hc-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding: 0 0 18px; margin-bottom: 28px;
    border-bottom: 1px solid var(--fc-gray-200);
}
.hc-brand { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
.hc-brand img { height: 34px; width: auto; display: block; }
.hc-brand-label {
    font-family: var(--fc-font-brand); font-weight: 700; font-size: 1.05rem;
    color: var(--fc-gray-500);
}
.hc-nav-links {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    font-family: var(--fc-font-brand); font-size: var(--fc-text-sm); font-weight: 600;
}
.hc-nav-links a { color: var(--fc-gray-600); text-decoration: none; padding: 4px 2px; }
.hc-nav-links a:hover { color: var(--fc-brown); }
.hc-nav-links a[aria-current="true"] { color: var(--fc-brown); border-bottom: 2px solid var(--fc-orange); }
.hc-nav-links a:focus-visible, .hc-door:focus-visible, .hc-card-link:focus-visible {
    outline: 3px solid var(--fc-info); outline-offset: 2px; border-radius: var(--fc-radius-sm);
}

/* ---------- Breadcrumb ---------- */
.hc-crumbs {
    font-size: var(--fc-text-sm); color: var(--fc-gray-500); margin-bottom: 18px;
}
.hc-crumbs a { color: var(--fc-gray-600); text-decoration: none; }
.hc-crumbs a:hover { color: var(--fc-brown); text-decoration: underline; }
.hc-crumbs .sep { margin: 0 6px; color: var(--fc-gray-400); }

/* ---------- Article shell ---------- */
.hc-article {
    background: var(--fc-white); border: 1px solid var(--fc-gray-200);
    border-radius: var(--fc-radius-xl); box-shadow: var(--fc-shadow-sm);
    padding: clamp(24px, 4vw, 44px);
}
.hc-eyebrow {
    display: inline-block; font-family: var(--fc-font-brand); font-weight: 700;
    font-size: var(--fc-text-sm); text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--fc-orange); margin-bottom: 12px;
}
.hc-article h1 {
    font-family: var(--fc-font-brand); font-weight: 800; color: var(--fc-navy);
    font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: 1.15; margin: 0 0 10px;
}
.hc-lede { color: var(--fc-gray-600); font-size: 1.05rem; line-height: 1.65; margin: 0 0 8px; max-width: 70ch; }

.hc-article h2 {
    font-family: var(--fc-font-brand); font-weight: 700; color: var(--fc-brown);
    font-size: 1.3rem; margin: 36px 0 10px;
}
.hc-article h3 {
    font-family: var(--fc-font-brand); font-weight: 700; color: var(--fc-brown);
    font-size: 1.05rem; margin: 24px 0 8px;
}
.hc-article p, .hc-article li { line-height: 1.7; max-width: 70ch; }
.hc-article a { color: var(--fc-info-dark); }
.hc-article a:hover { color: var(--fc-navy); }
.hc-article code {
    font-family: var(--fc-font-mono); font-size: 0.9em;
    background: var(--fc-gray-50); border: 1px solid var(--fc-gray-200);
    border-radius: var(--fc-radius-sm); padding: 1px 6px;
}

/* UI words: name buttons/tabs the way the screen does */
.hc-ui {
    font-weight: 700; color: var(--fc-navy);
    background: var(--fc-gray-50); border: 1px solid var(--fc-gray-300);
    border-radius: var(--fc-radius-sm); padding: 0 6px; white-space: nowrap;
}
/* Long UI labels (e.g. "Choose something to make...") must wrap on phones
   rather than push the page into horizontal scroll. */
@media (max-width: 480px) {
    .hc-ui { white-space: normal; }
}

/* ---------- Steps ---------- */
.hc-steps { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 14px; }
.hc-step {
    display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
    background: var(--fc-gray-50); border: 1px solid var(--fc-gray-200);
    border-radius: var(--fc-radius-lg); padding: 16px 18px;
}
.hc-step-num {
    width: 40px; height: 40px; border-radius: var(--fc-radius-full);
    display: grid; place-items: center;
    font-family: var(--fc-font-brand); font-weight: 800; font-size: 1.15rem;
    background: var(--fc-navy); color: var(--fc-white);
}
/* Grid items default to min-width:auto, so a wide image inside a step could
   push the whole page into horizontal scroll on phones. Let the column shrink. */
.hc-step > div { min-width: 0; }
.hc-step h3 { margin: 6px 0 6px; }
.hc-step p { margin: 0 0 8px; }
.hc-step :last-child { margin-bottom: 0; }

/* ---------- Screenshots ---------- */
.hc-shot { margin: 18px 0; }
.hc-shot img {
    display: block; width: 100%; height: auto;
    border: 1px solid var(--fc-gray-300); border-radius: var(--fc-radius-lg);
    box-shadow: var(--fc-shadow-md);
}
.hc-shot figcaption {
    font-size: var(--fc-text-sm); color: var(--fc-gray-500);
    margin-top: 8px; text-align: center;
}
/* Region shots: meaningful chunk of a screen, capped so they read as a
   detail, not a hero. Element shots: a single control at natural size. */
.hc-shot-region img { width: auto; max-width: min(100%, 640px); margin: 0 auto; }
.hc-shot-element { margin: 12px 0; }
.hc-shot-element img {
    width: auto; max-width: min(100%, 420px);
    box-shadow: var(--fc-shadow-sm, 0 1px 3px rgba(0,0,0,0.12));
}
.hc-shot-element figcaption, .hc-shot-region figcaption { text-align: left; }
/* Concept explainers: hand-drawn diagrams shared with the blog. Framed like
   artwork (no screenshot chrome) so they read as "the idea", not "the UI". */
.hc-explainer { margin: 20px 0; }
.hc-explainer img {
    display: block; width: 100%; height: auto;
    border: 1px solid var(--fc-gray-200); border-radius: var(--fc-radius-lg);
    box-shadow: var(--fc-shadow-sm, 0 1px 3px rgba(0,0,0,0.12));
}
.hc-explainer figcaption {
    font-size: var(--fc-text-sm); color: var(--fc-gray-500);
    margin-top: 8px; text-align: center;
}
/* Collapsible advanced bits: zero visual weight until a kid opts in. */
details.hc-advanced {
    border: 1px solid var(--fc-gray-300); border-radius: var(--fc-radius-lg);
    background: var(--fc-gray-50, #fafaf8); margin: 18px 0; padding: 0;
}
details.hc-advanced summary {
    cursor: pointer; padding: 12px 18px; list-style: none;
    font-family: var(--fc-font-brand); font-weight: 700;
    color: var(--fc-navy, #011730); font-size: var(--fc-text-base);
}
details.hc-advanced summary::-webkit-details-marker { display: none; }
details.hc-advanced summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 800; }
details.hc-advanced[open] summary::before { content: "\2212"; }
details.hc-advanced > div { padding: 0 18px 14px; }
details.hc-advanced p { margin: 6px 0 0; }
li.hc-shot-li { list-style: none; }
li.hc-shot-li .hc-shot { margin: 10px 0 4px; }

/* ---------- Callouts (full borders, never side stripes) ---------- */
.hc-note, .hc-safe, .hc-kidview {
    border-radius: var(--fc-radius-lg); padding: 14px 18px; margin: 18px 0;
}
.hc-note { background: var(--fc-info-bg, #eef5fc); border: 1px solid var(--fc-info); }
.hc-safe { background: #eef7ef; border: 1px solid var(--fc-success); }
.hc-note p, .hc-safe p, .hc-kidview p { margin: 6px 0 0; }
.hc-callout-label {
    font-family: var(--fc-font-brand); font-weight: 700; font-size: var(--fc-text-sm);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.hc-note .hc-callout-label { color: var(--fc-info-dark); }
.hc-safe .hc-callout-label { color: var(--fc-success); }

/* "What your kid sees" — cream container per color rules */
.hc-kidview { background: var(--fc-cream); border: 1px solid var(--fc-orange-light); }
.hc-kidview .hc-callout-label { color: var(--fc-brown); }

/* ---------- Tables ---------- */
.hc-article table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 0.95rem; }
.hc-article th, .hc-article td {
    border: 1px solid var(--fc-gray-200); padding: 10px 12px; text-align: left;
    line-height: 1.5; vertical-align: top;
}
.hc-article th {
    background: var(--fc-gray-50); font-family: var(--fc-font-brand);
    font-weight: 700; color: var(--fc-gray-700);
}

/* ---------- Next links ---------- */
.hc-next {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px;
    padding-top: 20px; border-top: 1px solid var(--fc-gray-200);
}
.hc-next a {
    display: inline-block; text-decoration: none;
    font-family: var(--fc-font-brand); font-weight: 700; font-size: var(--fc-text-sm);
    color: var(--fc-navy); background: var(--fc-white);
    border: 1.5px solid var(--fc-gray-300); border-radius: var(--fc-radius-pill);
    padding: 10px 18px; transition: all var(--fc-ease-fast);
}
.hc-next a:hover { border-color: var(--fc-navy); background: var(--fc-gray-50); }

/* ---------- Kid register ---------- */
.hc-kid .hc-article { font-size: 1.1rem; }
.hc-kid .hc-article h1 { color: var(--fc-brown); }
.hc-kid .hc-article p, .hc-kid .hc-article li { line-height: 1.75; max-width: 60ch; }
.hc-kid .hc-step { background: var(--fc-cream-light); border-color: var(--fc-cream); padding: 18px 20px; }
.hc-kid .hc-step-num { background: var(--fc-orange); font-size: 1.3rem; width: 44px; height: 44px; }
.hc-kid .hc-step { grid-template-columns: 48px 1fr; }
.hc-kid .hc-eyebrow { color: var(--fc-orange); }

/* ---------- Help home ---------- */
.hc-home-hero { text-align: center; margin: 18px 0 30px; }
.hc-home-hero h1 {
    font-family: var(--fc-font-brand); font-weight: 800; color: var(--fc-navy);
    font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 0 0 8px;
}
.hc-home-hero p { color: var(--fc-gray-600); font-size: 1.1rem; margin: 0; }

.hc-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 34px; }
.hc-door {
    display: block; text-decoration: none;
    border-radius: var(--fc-radius-xl); padding: 30px 28px;
    border: 1px solid var(--fc-gray-200); box-shadow: var(--fc-shadow-md);
    transition: transform var(--fc-ease-fast), box-shadow var(--fc-ease-fast);
}
.hc-door:hover { transform: translateY(-2px); box-shadow: var(--fc-shadow-btn-hover, var(--fc-shadow-md)); }
.hc-door h2 {
    font-family: var(--fc-font-brand); font-weight: 800;
    font-size: 1.5rem; margin: 0 0 8px;
}
.hc-door p { margin: 0; line-height: 1.6; }
.hc-door-parent { background: var(--fc-navy); }
.hc-door-parent h2 { color: var(--fc-white); }
.hc-door-parent p { color: var(--fc-gray-300, #cdd6e0); }
.hc-door-kid { background: var(--fc-cream); border-color: var(--fc-orange-light); }
.hc-door-kid h2 { color: var(--fc-brown); font-size: 1.7rem; }
.hc-door-kid p { color: var(--fc-gray-700); font-size: 1.05rem; }

.hc-home-section {
    font-family: var(--fc-font-brand); font-weight: 700; color: var(--fc-brown);
    font-size: 1.2rem; margin: 28px 0 12px;
}
.hc-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hc-card-link {
    display: block; text-decoration: none;
    background: var(--fc-white); border: 1px solid var(--fc-gray-200);
    border-radius: var(--fc-radius-lg); padding: 16px 18px;
    box-shadow: var(--fc-shadow-sm); transition: border-color var(--fc-ease-fast);
}
.hc-card-link:hover { border-color: var(--fc-navy); }
.hc-card-link strong {
    display: block; font-family: var(--fc-font-brand); font-weight: 700;
    color: var(--fc-navy); margin-bottom: 4px;
}
.hc-card-link span { color: var(--fc-gray-600); font-size: var(--fc-text-sm); line-height: 1.5; }

/* ---------- Footer ---------- */
.hc-footer {
    margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--fc-gray-200);
    display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
    font-size: var(--fc-text-sm); color: var(--fc-gray-500);
}
.hc-footer a { color: var(--fc-gray-600); text-decoration: none; margin-right: 14px; }
.hc-footer a:hover { color: var(--fc-brown); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .hc-doors { grid-template-columns: 1fr; }
    .hc-step { grid-template-columns: 36px 1fr; padding: 14px; }
    .hc-step-num { width: 32px; height: 32px; font-size: 1rem; }
    .hc-kid .hc-step { grid-template-columns: 40px 1fr; }
    .hc-kid .hc-step-num { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .hc-door, .hc-next a, .hc-card-link { transition: none; }
    .hc-door:hover { transform: none; }
}
