/* User Guide (/user-guide) — the connected study cycle. Uses homepage-v3 tokens only; no JS, no motion. */
/* Full container width, so the guide lines up with the header on both edges. */
.ug { font-family: "Noto Sans Gujarati", "Plus Jakarta Sans", "Nirmala UI", system-ui, sans-serif; color: var(--ink-800); }
.ug [lang="en"] { font-family: "Plus Jakarta Sans", "Noto Sans Gujarati", system-ui, sans-serif; }
.ug-ic { width: 22px; height: 22px; flex: none; color: var(--brand-600); }

.ug-hero h1 { line-height: 1.3; }
.ug-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ug-section { margin-top: 44px; }
.ug-section > h2 { margin-bottom: 8px; color: var(--ink-950); }
.ug-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 24px; color: var(--ink-600); font-size: .92rem; }

/* Button / screen labels exactly as the app shows them */
.ug-ui { display: inline-block; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); color: var(--ink-950); font-family: "Plus Jakarta Sans", "Noto Sans Gujarati", system-ui, sans-serif; font-size: .86em; font-weight: 700; line-height: 1.7; white-space: nowrap; }

.ug-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.ug-tag--you { border: 1.5px solid var(--brand-500); background: #fff; color: var(--brand-700); }
.ug-tag--auto { border: 1.5px solid var(--accent-200); background: var(--accent-50); color: var(--accent-700); }

/* ── Cycle: desktop snake (1 2 3 / 6 5 4) with arrows in the gaps ── */
.ug-cycle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin: 0; padding: 0; list-style: none; }
.ug-step { position: relative; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ug-step:nth-child(4) { grid-column: 3; grid-row: 2; }
.ug-step:nth-child(5) { grid-column: 2; grid-row: 2; }
.ug-step:nth-child(6) { grid-column: 1; grid-row: 2; }
.ug-step::after { position: absolute; color: var(--brand-500); font: 700 1.5rem/1 system-ui, sans-serif; }
.ug-step:nth-child(1)::after, .ug-step:nth-child(2)::after { content: "\2192"; top: 50%; right: -34px; transform: translateY(-50%); }
.ug-step:nth-child(3)::after { content: "\2193"; bottom: -36px; left: 50%; transform: translateX(-50%); }
.ug-step:nth-child(4)::after, .ug-step:nth-child(5)::after { content: "\2190"; top: 50%; left: -34px; transform: translateY(-50%); }

.ug-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ug-num { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--brand-600); color: #fff; font: 800 .95rem/1 "Plus Jakarta Sans", system-ui, sans-serif; }
.public-main .ug-step h3 { margin: 0; color: var(--ink-950); font-size: 1.08rem; line-height: 1.4; }
.ug-step p { margin: 0 0 10px; font-size: .97rem; line-height: 1.75; }
.ug-step .ug-note { padding: 8px 10px; border-radius: 10px; background: var(--surface-soft); color: var(--ink-600); font-size: .86rem; line-height: 1.65; }
.ug-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }

/* ── The cycle closes: back to practice and progress ── */
.ug-loop { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border: 2px dashed var(--brand-500); border-radius: 14px; background: var(--brand-50); }
.ug-loop-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--brand-600); color: #fff; }
.ug-loop-mark svg { width: 20px; height: 20px; }
.public-main .ug-loop h3 { margin: 4px 0 4px; color: var(--brand-700); font-size: 1.08rem; }
.ug-loop p { margin: 0; font-size: .97rem; line-height: 1.75; }

.ug-remember { margin-top: 16px; padding: 14px 18px; border: 1px solid var(--accent-200); border-radius: 14px; background: var(--accent-50); font-size: .97rem; line-height: 1.75; }
.ug-remember strong { color: var(--accent-700); }
.ug-remember b { color: var(--ink-950); }

/* ── Tools ── */
.ug-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.ug-tool { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ug-tool-name { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--ink-950); font-weight: 800; font-size: .95rem; }
.ug-tool p { margin: 0; font-size: .9rem; line-height: 1.65; }
.ug-tool .ug-tool-next { margin-top: 6px; color: var(--brand-700); font-size: .82rem; font-weight: 600; }
.public-main .ug-subhead { margin: 24px 0 10px; color: var(--ink-950); font-size: 1rem; }
.ug-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ug-chips li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; }
.ug-fine { margin: 14px 0 0; color: var(--ink-600); font-size: .86rem; }

.ug-help { display: flex; gap: 12px; align-items: flex-start; margin-top: 44px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.public-main .ug-help h2 { margin: 0 0 4px; font-size: 1.08rem; }
.ug-help p { margin: 0; }

@media (max-width: 1023px) {
    .ug-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Phones and small tablets: one vertical timeline ── */
@media (max-width: 899px) {
    .ug-cycle { display: block; position: relative; padding-left: 28px; }
    .ug-cycle::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 9px; width: 2px; background: var(--brand-100); }
    .ug-step { margin-bottom: 14px; }
    .ug-cycle .ug-step:nth-child(n)::after { content: ""; top: 26px; right: auto; bottom: auto; left: -25px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-600); box-shadow: 0 0 0 4px var(--surface); transform: none; }
    .ug-loop { margin-top: 4px; }
}

@media (max-width: 599px) {
    .ug-section { margin-top: 36px; }
    .ug-step, .ug-tool { padding: 14px; }
    .ug-tools { grid-template-columns: 1fr; }
    .ug-hero-actions .btn { width: 100%; }
}
