/* Shared style for the in-app web pages (Help, Tutorial, Skin guide, Terms, Privacy, Submission).
   Light only: the pages always render light, even when the device is in dark mode. */

:root {
    color-scheme: light;
    --bg: #F2F2F7;
    --card: #FFFFFF;
    --text: #000000;
    --text2: #6C6C70;
    --sep: #E5E5EA;
    --accent: #27A24C;
    --tint: #E4F6EA;
    --radius: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.375;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }

.page {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 16px 40px;
}

/* Platform branching: <html> gets .platform-ios or .platform-android from guide.js */
.platform-android .ios-only,
.platform-ios .android-only { display: none !important; }

/* Back link: only shown when the page was opened from Help (?from=help) */
.back-link {
    display: none;
    align-items: center;
    gap: 2px;
    font-size: 17px;
    margin: 0 0 12px -4px;
}
.from-help .back-link { display: inline-flex; }
.back-link svg { width: 18px; height: 18px; }

/* Title */
.title { padding-left: 4px; margin-bottom: 28px; }
.title h1 { font-size: 34px; line-height: 41px; font-weight: 700; margin: 0; letter-spacing: -0.4px; }
.title p { font-size: 15px; line-height: 20px; color: var(--text2); margin: 4px 0 0; }

/* Sections */
.section { margin-bottom: 28px; }
.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text2);
    padding-left: 16px;
    margin: 0 0 8px;
}
.card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
}
.card > * + *, .steps li + li { position: relative; }
.card > * + *::before, .steps li + li::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: var(--inset, 16px);
    height: 1px;
    background: var(--sep);
}
.card.contact > * + *::before { display: none; }

/* Important note under a card (e.g. "keep Minecraft updated") */
.callout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #FFF4D6;
}
.callout svg { flex: none; width: 18px; height: 18px; margin-top: 0.5px; }
.callout p { margin: 0; font-size: 14px; line-height: 19px; color: #5C5445; }
.callout strong { color: #1A1A1A; font-weight: 600; }

/* Navigation rows (Guides, Having trouble?) */
.nav-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 12px 16px;
    color: var(--text);
}
.nav-row { --inset: 60px; }
.nav-row:active { background: #F5F5F7; }
.icon-tile {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--accent);
    display: grid;
    place-items: center;
}
.icon-tile svg { width: 18px; height: 18px; }
.nav-row .text { flex: 1; min-width: 0; }
.nav-row .text strong { display: block; font-size: 17px; line-height: 22px; font-weight: 500; }
.nav-row .text span { display: block; font-size: 14px; line-height: 19px; color: var(--text2); }
.chevron { flex: none; width: 16px; height: 16px; color: var(--text2); }

/* Numbered steps (Quick start list) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
    counter-increment: step;
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 22px;
}
.steps li + li { --inset: 54px; }
.num::before { content: counter(step); }
.num {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 13px;
    background: var(--tint);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    margin-top: -2px;
}

/* Step cards (Tutorial, Skin guide) */
.step-cards { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: step; }
.step-card {
    counter-increment: step;
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}
.step-card .head { display: flex; gap: 12px; font-size: 16px; line-height: 22px; }
.step-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    background: var(--bg);
    border-radius: 12px;
    margin-top: 14px;
}

/* FAQ accordion */
.faq details { padding: 14px 14px 14px 16px; }
.faq summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    line-height: 22px;
    font-weight: 500;
    cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: 1; }
.faq summary .chevron { transform: rotate(90deg); transition: transform 0.2s; }
.faq details[open] summary .chevron { transform: rotate(-90deg); }
.faq .answer { color: var(--text2); font-size: 15px; line-height: 21px; }
.faq .answer p, .faq .answer ol { margin: 10px 0 0; }
.faq .answer ol { padding-left: 20px; }

/* Contact */
.contact { padding: 20px 20px 16px; }
.contact h2 { font-size: 17px; line-height: 22px; font-weight: 600; margin: 0; }
.contact p { font-size: 15px; line-height: 21px; color: var(--text2); margin: 6px 0 14px; }
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border-radius: 25px;
    background: var(--accent);
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
}
.button svg { width: 20px; height: 20px; }
.contact .email { display: block; text-align: center; font-size: 13px; line-height: 20px; color: var(--text2); margin-top: 6px; }

.footer { font-size: 12px; line-height: 16px; color: var(--text2); text-align: center; padding: 0 16px; margin: 0; }

/* Plain document pages (Terms, Privacy, Submission): existing markup, new look */
body.doc { max-width: 632px; margin: 0 auto; padding: 20px 16px 40px; }
.doc section { margin: 0; }
.doc h1, .doc h3 { font-size: 28px; line-height: 34px; font-weight: 700; margin: 0 0 14px; }
.doc h2, .doc h4 { font-size: 17px; line-height: 22px; font-weight: 600; margin: 24px 0 6px; }
.doc p, .doc li { font-size: 16px; line-height: 24px; color: rgba(0, 0, 0, 0.85); margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin: 0 0 4px; }
.doc a { word-break: break-word; }
