/* Central de Ajuda do JurisOS (30/09/2026, desenho aprovado:
   https://claude.ai/artifact/KqdKg16Wby3y734YPyXMc9). Manual em Capítulos e Artigos. */
:root {
  --paper: #F6F4EF; --surface: #FFFFFF; --sunk: #EEF2F2; --ink: #13262C; --muted: #5B6D72; --line: #DCE3E3;
  --petrol: #0E7C99; --petrol-ink: #0A5E75; --petrol-deep: #073845; --petrol-soft: #E1F0F4;
  --mint: #3FBF8C; --ok: #1F8A5B; --ok-soft: #E3F4EC; --amber: #9A6400; --amber-soft: #FFF3D6; --band-fg: #EAF6F9;
  --shadow: 0 1px 2px rgba(19,38,44,.05), 0 12px 32px -18px rgba(19,38,44,.28);
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --serif: "Source Serif 4", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D171A; --surface: #13232A; --sunk: #102026; --ink: #E3EEF0; --muted: #93A8AE; --line: #22373E;
    --petrol: #3BB0CE; --petrol-ink: #86D3E6; --petrol-deep: #06262F; --petrol-soft: #123A46;
    --ok: #4CC08A; --ok-soft: #12321F; --amber: #E9B85C; --amber-soft: #3A2C10;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 36px -18px rgba(0,0,0,.7); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.6; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -.015em; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* topo */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--petrol-deep) 96%, transparent); color: var(--band-fg); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--petrol); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; }
.logo .marca span { color: #7FD0E4; }
.logo small { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(234,246,249,.6); margin-left: 6px; padding-left: 12px; border-left: 1px solid rgba(234,246,249,.2); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; }
.top .cta { background: var(--band-fg); color: var(--petrol-deep); padding: 7px 14px; border-radius: 10px; font-weight: 600; opacity: 1; }
.mini { position: relative; display: flex; align-items: center; gap: 8px; background: rgba(234,246,249,.1); border: 1px solid rgba(234,246,249,.18); border-radius: 10px; padding: 0 10px; height: 36px; width: 280px; }
.mini input { background: none; border: 0; outline: none; width: 100%; color: var(--band-fg); font-size: 13.5px; }
.mini input::placeholder { color: rgba(234,246,249,.55); }
.mini .results { top: 42px; left: 0; right: auto; width: 380px; }

/* faixa com a busca */
.hero-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero > .wrap { position: relative; }
.hero { background: radial-gradient(60% 120% at 88% 0%, rgba(59,176,206,.35), transparent 60%), radial-gradient(40% 90% at 0% 100%, rgba(63,191,140,.18), transparent 60%), var(--petrol-deep); color: var(--band-fg); padding-block: 54px 70px; position: relative; z-index: 2; }
.hero-deco::after { content: "§"; position: absolute; right: 4%; top: -60px; font-family: var(--serif); font-size: 380px; line-height: 1; color: rgba(234,246,249,.05); pointer-events: none; }
.hero .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #7FD0E4; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.04; margin-top: 10px; max-width: 16ch; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: #9FE3C4; }
.hero p { color: rgba(234,246,249,.75); max-width: 56ch; margin: 12px 0 0; font-size: 16px; }
.search { position: relative; margin-top: 28px; max-width: 720px; }
.search input { width: 100%; height: 60px; border-radius: 16px; border: 0; background: var(--surface); color: var(--ink); padding: 0 20px 0 54px; font-size: 17px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.search input:focus { outline: 3px solid color-mix(in srgb, #7FD0E4 60%, transparent); }
.search .ico { position: absolute; left: 20px; top: 50%; translate: 0 -50%; color: var(--muted); font-size: 18px; pointer-events: none; }
.search kbd { position: absolute; right: 16px; top: 50%; translate: 0 -50%; font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; background: var(--sunk); }
.results { position: absolute; left: 0; right: 0; top: 66px; background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; z-index: 30; }
.results a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 16px; text-decoration: none; border-top: 1px solid var(--line); }
.results a:first-child { border-top: 0; }
.results a:hover, .results a.on { background: var(--sunk); }
.results b { font-family: var(--display); font-weight: 600; font-size: 14.5px; }
.results small { grid-column: 1; color: var(--muted); font-size: 12.5px; }
.results .art { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--mono); font-size: 11px; color: var(--petrol-ink); }
.results .none { padding: 14px 16px; font-size: 14px; color: var(--muted); }
.pop { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; font-size: 13px; color: rgba(234,246,249,.6); }
.pop a { background: rgba(234,246,249,.08); border: 1px solid rgba(234,246,249,.18); color: var(--band-fg); border-radius: 999px; padding: 5px 12px; font-size: 13px; text-decoration: none; }
.pop a:hover { background: rgba(234,246,249,.16); }

/* capítulos */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 46px 0 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 22px; font-weight: 800; }
.section-head span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.chap { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 14px; display: grid; gap: 10px; align-content: start; position: relative; transition: border-color .2s, transform .2s, box-shadow .2s; }
.chap:hover { border-color: color-mix(in srgb, var(--petrol) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.chap .n { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--petrol-ink); text-transform: uppercase; }
.glyph { position: absolute; right: 16px; top: 14px; width: 38px; height: 38px; border-radius: 11px; background: var(--petrol-soft); color: var(--petrol-ink); display: grid; place-items: center; font-size: 17px; }
.chap h3 { font-size: 17px; font-weight: 700; padding-right: 44px; }
.chap p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.chap ul { list-style: none; margin: 2px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
.chap li { font-size: 13.5px; display: flex; gap: 8px; }
.chap li::before { content: "§"; font-family: var(--serif); color: var(--petrol); }
.chap .more { font-size: 12.5px; color: var(--petrol-ink); font-weight: 600; }
.plan-tag { font-family: var(--mono); font-size: 10px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; text-transform: none; letter-spacing: 0; }

/* perguntas + Íris */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-top: 14px; align-items: start; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 15px 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--petrol-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 18px 16px; color: var(--muted); font-size: 14px; }
.faq .ans a { color: var(--petrol-ink); font-weight: 600; }
.iris-card { border-radius: 18px; padding: 22px; background: radial-gradient(80% 90% at 100% 0%, rgba(167,139,250,.28), transparent 60%), radial-gradient(70% 80% at 0% 100%, rgba(59,176,206,.3), transparent 60%), var(--petrol-deep); color: var(--band-fg); display: grid; gap: 12px; }
.orb { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 6%, transparent 22%), radial-gradient(circle at 72% 72%, #F6C177 0, transparent 52%), radial-gradient(circle at 25% 75%, #7FD0E4 0, transparent 55%), #8B7CF6; box-shadow: 0 0 40px rgba(139,124,246,.35); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.iris-card h3 { font-size: 20px; }
.iris-card p { margin: 0; color: rgba(234,246,249,.8); font-size: 14px; }
.iris-card .btn { justify-self: start; background: var(--band-fg); color: var(--petrol-deep); border-radius: 11px; padding: 10px 16px; font-family: var(--display); font-weight: 700; text-decoration: none; }
.iris-card small { color: rgba(234,246,249,.65); font-size: 12.5px; }

footer { margin-top: 56px; border-top: 1px solid var(--line); padding-block: 22px 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer a { color: var(--petrol-ink); }

/* capítulo */
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 26px; }
.crumbs a { color: var(--petrol-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.chap-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 14px; }
.chap-head .glyph { position: static; width: 64px; height: 64px; border-radius: 18px; font-size: 28px; }
.chap-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.chap-head p { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }
.chap-head .n { font-family: var(--mono); font-size: 12px; color: var(--petrol-ink); text-transform: uppercase; letter-spacing: .06em; }
.arts { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.arts a { text-decoration: none; border-top: 1px solid var(--line); padding: 16px 20px; display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center; }
.arts a:first-child { border-top: 0; }
.arts a:hover { background: var(--sunk); }
.arts .art { font-family: var(--mono); font-size: 12px; color: var(--petrol-ink); }
.arts b { font-family: var(--display); font-weight: 600; font-size: 15.5px; display: block; }
.arts small { color: var(--muted); font-size: 13px; }
.arts .min { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* artigo */
.article { display: grid; grid-template-columns: 220px minmax(0, 1fr) 250px; gap: 36px; margin-top: 20px; align-items: start; }
.toc, .aside { position: sticky; top: 84px; }
.toc h4, .aside h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.toc a { display: block; text-decoration: none; font-size: 13.5px; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--muted); }
.toc a.on, .toc a:hover { color: var(--petrol-ink); border-left-color: var(--petrol); }
.doc { min-width: 0; }
.doc .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.doc .meta .art { color: var(--petrol-ink); }
.doc h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.1; margin-top: 10px; }
.brief { margin: 18px 0 0; font-family: var(--serif); font-size: 19px; line-height: 1.55; padding-left: 18px; border-left: 3px solid var(--petrol); }
.brief small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.prose h2 { font-size: 21px; font-weight: 800; margin: 38px 0 12px; }
.prose h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
.prose p { margin: 10px 0; max-width: 68ch; }
.prose ul { padding-left: 20px; max-width: 68ch; }
.prose li { margin: 4px 0; }
.prose ol { list-style: none; margin: 14px 0; padding: 0; counter-reset: s; display: grid; gap: 14px; max-width: 70ch; }
/* O número fica à esquerda, posicionado; o texto do passo flui normal (negrito no meio da frase não quebra a linha). */
.prose ol > li { position: relative; padding-left: 46px; min-height: 32px; padding-top: 4px; counter-increment: s; margin: 0; }
.prose ol > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--petrol); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; }
.prose ol > li > p:first-child { margin-top: 0; }
.prose strong { font-weight: 650; }
.prose code { font-family: var(--mono); font-size: 13px; background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
.prose a { color: var(--petrol-ink); font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 14px 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--muted); font-size: 13px; }
.tablewrap { overflow-x: auto; }
.callout { display: grid; grid-template-columns: 26px 1fr; gap: 10px; border-radius: 14px; padding: 12px 14px; margin: 18px 0; font-size: 14px; max-width: 70ch; }
.callout p { margin: 0; }
.callout .i { font-size: 17px; line-height: 1.3; }
.callout.tip { background: var(--ok-soft); } .callout.tip .i { color: var(--ok); }
.callout.warn { background: var(--amber-soft); } .callout.warn .i { color: var(--amber); }
.callout.note { background: var(--petrol-soft); } .callout.note .i { color: var(--petrol-ink); }
.go { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; background: var(--petrol); color: #fff; text-decoration: none; padding: 9px 14px; border-radius: 11px; font-family: var(--display); font-weight: 700; font-size: 14px; }
.helpful { margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.helpful b { font-family: var(--display); }
.helpful button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 7px 14px; font-weight: 600; }
.helpful button:hover { border-color: var(--petrol); }
.helpful textarea { width: 100%; min-height: 70px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); }
.helpful .thanks { color: var(--ok); font-weight: 600; }
.aside .card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px; display: grid; gap: 8px; }
.aside .card + .card { margin-top: 14px; }
.aside .card a { text-decoration: none; font-size: 13.5px; display: flex; gap: 8px; }
.aside .card a::before { content: "§"; font-family: var(--serif); color: var(--petrol); }
.aside .card a:hover { color: var(--petrol-ink); }
.aside .iris-mini { background: var(--petrol-deep); color: var(--band-fg); border: 0; }
.aside .iris-mini h4 { color: rgba(234,246,249,.6); }
.aside .iris-mini p { margin: 0; font-size: 13px; color: rgba(234,246,249,.8); }
.aside .iris-mini a.cta { justify-self: start; border-radius: 10px; padding: 8px 12px; background: var(--band-fg); color: var(--petrol-deep); font-weight: 700; font-family: var(--display); font-size: 13px; text-decoration: none; }
.aside .iris-mini a.cta::before { content: none; }

@media (max-width: 1040px) { .article { grid-template-columns: minmax(0, 1fr) 240px; } .toc { display: none; } }
@media (max-width: 820px) {
  .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .article { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .top nav a:not(.cta) { display: none; }
  /* No celular a busca desce para uma linha própria, em vez de sumir. */
  .top .wrap { flex-wrap: wrap; height: auto; min-height: 60px; row-gap: 0; }
  .top .wrap > .logo, .top .wrap > nav { min-height: 60px; }
  .mini { order: 3; width: 100%; margin-bottom: 10px; }
  .mini .results { width: 100%; right: 0; }
}
@media (max-width: 560px) {
  .chapters { grid-template-columns: minmax(0, 1fr); }
  .arts a { grid-template-columns: 52px 1fr; }
  .arts .min { display: none; }
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
