/* The user manuals (Nova Forms, and the Hindi manuals): the page, the contents list, the sections and the small parts a manual is made of.
   The colours (--bg, --accent, …) come from the page shell; the PDF version is in manual-print.css. */

.page-hero { padding: 56px 0 28px; text-align: center; }
.page-hero .eyebrow { font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.page-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.page-hero p { margin: 16px auto 0; font-size: 18px; color: var(--text-2); max-width: 600px; }
.print-only { display: none; }

/* contents: a side list on wide screens, a drop-down list on phones */
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-bottom: 80px; align-items: start; }
.docs-sidebar { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.docs-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.docs-sidebar a { font-size: 14px; color: var(--text-2); padding: 6px 10px; border-radius: 6px; display: block; transition: background .12s, color .12s; }
.docs-sidebar a:hover, .docs-sidebar a.active { background: var(--accent-lo); color: var(--accent); }
.docs-sidebar .sb-section { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 14px 10px 4px; }
.mn-toc-m { display: none; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-sidebar { display: none; }
  .mn-toc-m { display: block; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; margin: 0 0 24px; }
  .mn-toc-m summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; min-height: 48px; align-items: center; }
  .mn-toc-m summary::-webkit-details-marker { display: none; }
  .mn-toc-m summary::after { content: '+'; color: var(--accent); font-weight: 700; }
  .mn-toc-m[open] summary::after { content: '–'; }
  .mn-toc-m ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 0 12px 12px; }
  .mn-toc-m a { display: block; padding: 10px 8px; font-size: 14.5px; color: var(--text-2); border-radius: 6px; }
  .mn-toc-m a:hover { background: var(--accent-lo); color: var(--accent); }
}
@media (max-width: 420px) { .mn-toc-m ul { grid-template-columns: 1fr; } }

/* sections */
.docs-content { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.doc-section { scroll-margin-top: 84px; }
.doc-section h2 { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; margin-bottom: 16px; line-height: 1.25; }
.doc-section h3 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; margin: 24px 0 10px; color: var(--accent); line-height: 1.3; }
.doc-section p { color: var(--text-2); margin-bottom: 12px; line-height: 1.7; }
.doc-section ol, .doc-section ul { color: var(--text-2); padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.7; margin-bottom: 16px; }
.doc-section strong, .doc-section b { color: var(--text); font-weight: 600; }
.doc-section code { background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 13px; font-family: ui-monospace, monospace; color: var(--accent); overflow-wrap: anywhere; }
.doc-section a.link, .doc-section p a, .doc-section li a, .doc-section .ans a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
kbd { background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-size: 12px; font-family: ui-monospace, monospace; }
.tip { background: var(--accent-lo); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 16px 0; font-size: 14.5px; color: var(--text); line-height: 1.65; }
.tip.warn { background: rgba(255, 183, 77, .12); border-left-color: #FFB74D; }
.tip a { color: var(--accent); text-decoration: underline; }

/* tables (shortcuts, sizes, "I want to…") scroll inside their box on a phone instead of widening the page */
.gest-wrap { overflow-x: auto; margin-bottom: 8px; }
.kbd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kbd-table th { text-align: left; padding: 10px 12px; background: var(--bg-3); color: var(--text-2); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.kbd-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: top; }
.kbd-table tr:last-child td { border-bottom: none; }
.kbd-table td:first-child { color: var(--text); }
.gest td:first-child { white-space: nowrap; font-weight: 600; }
@media (max-width: 480px) { .gest td:first-child { white-space: normal; } .gest th, .gest td { padding: 10px 8px; } }

/* questions and answers */
.doc-section details { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); margin-bottom: 10px; }
.doc-section summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center; }
.doc-section summary::-webkit-details-marker { display: none; }
.doc-section summary::after { content: '+'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.doc-section details[open] summary::after { content: '–'; }
.doc-section details .ans { padding: 0 16px 14px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.doc-section details .ans p:last-child { margin-bottom: 0; }

/* the parts of a manual */
.req { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.req div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.req b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.mn-quick { background: linear-gradient(135deg, var(--accent-lo), var(--violet-lo)); border: 1px solid var(--border); border-radius: 16px; padding: 22px clamp(16px, 3vw, 28px); margin: 0 0 8px; }
.mn-quick h2 { margin-bottom: 12px !important; }
.mn-quick ol { counter-reset: q; list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px !important; margin: 0 !important; }
.mn-quick li { counter-increment: q; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 12px 48px; position: relative; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.mn-quick li::before { content: counter(q); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #08080E; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.mn-quick li b { color: var(--text); }
.mn-steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.mn-steps li { counter-increment: s; position: relative; padding-left: 38px; }
.mn-steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-lo); border: 1px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.mn-glance { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 14px 0; font-size: 14.5px; color: var(--text-2); }
.mn-glance b { color: var(--text); }
.mn-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: var(--accent-lo); color: var(--accent); vertical-align: middle; }
.mn-tag.one { background: var(--violet-lo); color: var(--violet); }
.soon { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); background: var(--violet-lo); border-radius: 4px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.mn-recipes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.mn-recipe { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.mn-recipe h3 { margin: 0 0 6px !important; color: var(--text) !important; font-size: 16px !important; }
.mn-recipe p { margin: 0 !important; font-size: 14.5px; }

/* pictures of the app */
.mn-fig { margin: 18px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mn-fig figcaption { font-size: 13px; color: var(--text-2); text-align: center; max-width: 34ch; }
.mn-shot { width: min(100%, 250px); border-radius: 20px; border: 3px solid var(--bg-3); background: var(--bg-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .28); overflow: hidden; }
.mn-shot img { width: 100%; height: auto; display: block; }
.mn-pair { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 18px 0; }
.mn-pair .mn-fig { margin: 0; }
.mn-split { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: start; margin: 6px 0; }
.mn-split.left { grid-template-columns: 250px minmax(0, 1fr); }
.mn-split .mn-fig { margin: 6px 0; }
@media (max-width: 760px) { .mn-split, .mn-split.left { grid-template-columns: 1fr; } .mn-split .mn-fig { order: 2; } }
.mn-tour { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; margin: 14px 0; }
@media (max-width: 700px) { .mn-tour { grid-template-columns: 1fr; justify-items: center; } .mn-tour ol { justify-self: stretch; } }
.mn-pic { position: relative; width: 260px; max-width: 100%; border-radius: 20px; border: 3px solid var(--bg-3); box-shadow: 0 16px 40px rgba(0, 0, 0, .28); }
.mn-pic img { width: 100%; height: auto; display: block; border-radius: 17px; }
.mn-pin { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: #FFD23F; color: #08080E; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #08080E; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.mn-tour ol { list-style: none; padding-left: 0 !important; display: grid !important; grid-template-columns: 1fr; gap: 8px !important; margin: 0 !important; }
.mn-tour li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }
.mn-tour li .mn-n { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #FFD23F; color: #08080E; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.mn-moves td:first-child { white-space: nowrap; font-weight: 600; }
.mn-moves .e { font-size: 20px; margin-right: 6px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* the closing box */
.mn-cta { margin-top: 48px; text-align: center; background: linear-gradient(135deg, var(--accent-lo), var(--violet-lo)); border: 1px solid var(--border); border-radius: 16px; padding: 32px 18px; }
.mn-cta h2 { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.mn-cta p { color: var(--text-2); }
.mn-cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.mn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 700; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); text-align: center; }
.mn-btn.primary { background: var(--accent); color: #08080E; border-color: var(--accent); }

/* ── Hindi ──
   The Hindi pages use Noto Sans Devanagari for the Hindi words (loaded from Google Fonts by the page); the English words and numbers keep DM Sans.
   Devanagari needs more room between lines, and no capital letters or spread-out letters (they break the joined letters). */
html[lang="hi"] body { font-family: 'DM Sans', 'Noto Sans Devanagari', 'Nirmala UI', 'Mukta', system-ui, sans-serif; font-size: 17px; line-height: 1.85; }
html[lang="hi"] .page-hero h1, html[lang="hi"] .doc-section h2, html[lang="hi"] .doc-section h3, html[lang="hi"] .mn-cta h2,
html[lang="hi"] .mn-recipe h3 { font-family: 'DM Sans', 'Noto Sans Devanagari', 'Nirmala UI', 'Mukta', system-ui, sans-serif; letter-spacing: 0; line-height: 1.4; font-weight: 700; }
html[lang="hi"] .page-hero h1 { font-weight: 800; line-height: 1.3; }
html[lang="hi"] .page-hero .eyebrow, html[lang="hi"] .docs-sidebar .sb-section, html[lang="hi"] .kbd-table th, html[lang="hi"] .mn-tag, html[lang="hi"] .soon { text-transform: none; letter-spacing: 0; font-family: 'Noto Sans Devanagari', 'DM Sans', sans-serif; }
html[lang="hi"] .page-hero .eyebrow { font-size: 13px; }
html[lang="hi"] .docs-sidebar a { font-size: 15px; line-height: 1.5; }
html[lang="hi"] .docs-sidebar .sb-section { font-size: 13px; }
html[lang="hi"] .doc-section p, html[lang="hi"] .doc-section li { line-height: 1.85; }
html[lang="hi"] .doc-section details .ans, html[lang="hi"] .tip { line-height: 1.8; }
html[lang="hi"] .kbd-table { font-size: 15px; }
html[lang="hi"] .kbd-table th { font-size: 13.5px; }
html[lang="hi"] .doc-section code, html[lang="hi"] kbd { font-size: 13px; }
