.guide {
  color-scheme: dark;
  --g-bg: #101018; --g-panel: #181722; --g-line: #383344; --g-fg: #f3f1fa;
  --g-body: #d7d4e0; --g-muted: #b6b0c2; --g-lilac: #cab1ff; --g-accent: #9973f4;
  min-height: 100vh; background: var(--g-bg); color: var(--g-fg);
  font: 400 1rem/1.6 'DM Sans',system-ui,sans-serif; -webkit-text-size-adjust: 100%;
}
.guide *, .guide *::before, .guide *::after {box-sizing:border-box}
.guide :where(h1,h2,h3,p,form) {margin:0}
.guide [hidden] {display:none!important}
.guide a {color:inherit;text-decoration:none}
.guide button, .guide input {font:inherit;color:inherit}
.guide button, .guide summary {cursor:pointer}
.guide :focus-visible {outline:2px solid var(--g-lilac);outline-offset:3px}
.g-width {width:min(1190px,calc(100% - 7vw));margin-inline:auto}
.g-sr,.g-skip:not(:focus) {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.g-skip:focus {position:fixed;top:.5rem;left:1rem;z-index:20;padding:.6rem 1rem;background:#211733}
.g-hero {position:relative;isolation:isolate;overflow:hidden;background:#171226;border-bottom:1px solid #494052}
.g-hero-image,.g-hero-shade {position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.g-hero-image {object-fit:cover;object-position:70% 48%}
.g-hero-shade {background:linear-gradient(90deg,rgba(16,12,29,.97) 0%,rgba(27,16,42,.86) 28%,rgba(29,20,45,.4) 57%,rgba(20,15,34,.04) 88%),linear-gradient(0deg,rgba(14,12,25,.6),transparent 40%,rgba(13,12,24,.24))}
.g-hero-inner {padding:1.55rem 0 2.25rem}
.g-mast {display:flex;justify-content:space-between;align-items:center;gap:1rem}
.g-brand {display:inline-flex;align-items:center;gap:.45rem;color:#f6f1ff;font-weight:780;letter-spacing:.14em;font-size:.95rem;line-height:1}
.g-brand b {color:#dccefe;font-weight:550;letter-spacing:.08em}
.g-brand i {display:inline-block;width:21px;height:21px;transform:skewX(-19deg);border-inline:6px solid #b795ff;margin-right:.35rem}
.g-review-button {font-size:.875rem;padding:.4rem .8rem;border:1px solid #73677e;border-radius:4px;background:rgba(20,17,28,.74)}
.g-review-button:hover {border-color:var(--g-lilac)}
.g-hero-title {margin-top:2.55rem}
.g-hero-title h1 {font-family:'Barlow Condensed','Arial Narrow',system-ui,sans-serif;font-weight:750;font-size:clamp(3rem,5.6vw,5.1rem);letter-spacing:-.043em;line-height:.98;color:#fff}
.g-hero-title p {margin-top:.7rem;font-size:1.04rem;color:#e5dfed}
.g-bar {position:sticky;top:0;z-index:5;background:rgba(23,21,32,.98);border-bottom:1px solid var(--g-line)}
.g-bar-inner,.g-tabs {display:flex;align-items:center;gap:1.6rem}
.g-bar-inner {justify-content:space-between;min-height:64px}
.g-tabs a {display:flex;align-items:center;align-self:stretch;min-height:64px;font-weight:650;font-size:.99rem;color:var(--g-muted);border-bottom:3px solid transparent;padding:3px .1rem 0}
.g-tabs a[aria-current],.g-tabs a:hover {color:#f5edff}
.g-tabs a[aria-current] {border-bottom-color:var(--g-accent)}
.g-search {display:flex;align-items:center;gap:.65rem;background:#100f18;border:1px solid #474050;border-radius:6px;padding:0 .8rem;min-height:39px;width:min(295px,36vw)}
.g-search:focus-within {border-color:var(--g-lilac)}
.g-search input {width:100%;min-width:0;background:none;border:0;outline:0!important;font-size:.9rem;line-height:1.4;padding:.5rem 0}
.g-search input::placeholder {color:#b6afc1}
.g-search input::-webkit-search-cancel-button {display:none}
.g-search button {background:none;border:0;font:1.4rem/1 system-ui;padding:.2rem .15rem}
.g-lens {width:14px;height:14px;border:1.6px solid var(--g-muted);border-radius:100%;position:relative;flex:0 0 14px}
.g-lens::after {content:'';position:absolute;left:10px;top:10px;width:6px;height:1.6px;background:var(--g-muted);transform:rotate(45deg);transform-origin:left center}
.g-layout {display:grid;grid-template-columns:clamp(210px,23%,272px) minmax(0,1fr);gap:clamp(1.7rem,4vw,4.3rem);align-items:start;padding-block:2.25rem 4rem}
.g-sidebar {position:sticky;top:85px;max-height:calc(100dvh - 105px);overflow:auto;scrollbar-width:thin;scrollbar-color:#51485e transparent;padding-right:.85rem}
.g-sidebar summary {list-style:none;user-select:none}
.g-sidebar summary::-webkit-details-marker {display:none}
#g-index>summary {font-weight:750;font-size:1rem;line-height:1.45;margin:0 0 .85rem;color:var(--g-fg)}
.g-index-group {border-bottom:1px solid #302c3a}
.g-index-group>summary {font-weight:620;font-size:.9rem;padding:.7rem 1.15rem .7rem .55rem;position:relative}
.g-index-group>summary::after,#g-index>summary::after {content:'';position:absolute;border:solid var(--g-muted);border-width:0 1.6px 1.6px 0;width:7px;height:7px;transform:rotate(45deg);right:.45rem;top:calc(50% - 5px)}
.g-index-group[open]>summary::after,#g-index[open]>summary::after {transform:rotate(225deg);top:calc(50% - 1px)}
#g-index>summary::after {display:none}
.g-index-group>div {padding-bottom:.55rem}
.g-index-link {display:flex;align-items:baseline;gap:.5rem;padding:.48rem .6rem;color:var(--g-muted)!important;font-size:.9rem;line-height:1.42;border-radius:4px;border-left:2px solid transparent}
.g-index-link:hover {background:#211e2c;color:var(--g-fg)!important}
.g-index-link[aria-current] {background:#2c223d;border-left-color:#ac88fa;color:#e3cfff!important}
.g-index-number {font-size:.82rem;font-variant-numeric:tabular-nums;min-width:1.45rem;color:#bbafd0}
.g-main {min-width:0;width:100%;max-width:865px;padding-bottom:1rem}
.g-main:focus:not(:focus-visible),.g-main article:focus:not(:focus-visible),.guide [data-entry]:focus:not(:focus-visible) {outline:0}
.g-main,.g-main article,.guide [data-entry],#g-results {scroll-margin-top:84px}
.g-doc-head {display:flex;align-items:baseline;justify-content:space-between;gap:.55rem 1rem;flex-wrap:wrap;padding-bottom:.8rem;border-bottom:1px solid var(--g-line);margin-bottom:1.25rem}
.g-book-name {font-size:.79rem;letter-spacing:.11em;font-weight:690;text-transform:uppercase;color:var(--g-lilac);line-height:1.55}
.g-date {font-size:.83rem;color:var(--g-muted);white-space:nowrap}
.g-group-name {font-size:.8rem;line-height:1.5;letter-spacing:.07em;color:var(--g-muted);margin-bottom:.55rem}
.g-main h2 {font:700 clamp(1.8rem,3vw,2.7rem)/1.14 'Barlow Condensed','Arial Narrow',system-ui,sans-serif;letter-spacing:-.036em;overflow-wrap:anywhere;max-width:33ch;color:#f5f2fb;margin:.2rem 0 1.3rem}
.g-source {color:var(--g-body);line-height:1.76;overflow-wrap:anywhere}
.g-source p {margin:.8rem 0;font-size:1rem}
.g-source .g-paragraph {margin:1rem 0;max-width:86ch}
.g-source .g-clause {padding:.78rem .2rem .85rem;border-bottom:1px solid #2c2936;margin:0}
.g-source .g-item {margin:.45rem 0 .45rem 1.2rem}
.g-source .g-ref {font-size:.93rem;color:#deccfe;font-weight:720;margin-right:.24rem}
.g-source a {color:var(--g-lilac);text-decoration:underline;text-underline-offset:.16em}
.g-source-label,.g-summary h3 {font:700 .94rem/1.4 'DM Sans',system-ui,sans-serif;color:var(--g-fg)}
.g-source-label {margin:1.6rem 0 .25rem}
.g-summary {border-left:3px solid var(--g-accent);background:#201c2b;padding:.85rem 1.1rem;margin:0 0 1.2rem;border-radius:0 6px 6px 0}
.g-summary h3 {color:#d9c3ff;margin:0 0 .25rem}
.g-summary p {font-size:1rem;line-height:1.6;color:#e3ddeb}
.guide .g-target {background:#2b223a;box-shadow:inset 3px 0 var(--g-accent);border-radius:3px}
.g-source p.g-target {padding-inline:.8rem}
.g-sheet-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin-top:1rem}
.g-sheet-grid a,.g-pager a,.g-hit {border:1px solid var(--g-line);background:#1b1924;border-radius:6px;padding:.75rem .9rem}
.g-sheet-grid a {display:flex;align-items:baseline;gap:.65rem;font-weight:620;line-height:1.4}
.g-sheet-grid a span {font-size:.83rem;color:var(--g-lilac);white-space:nowrap}
.g-sheet-grid a:hover,.g-pager a:hover,.g-hit:hover {border-color:#9c80be;background:#252030}
.g-pager {display:flex;flex-wrap:wrap;justify-content:space-between;gap:.65rem;margin-top:2.1rem;padding-top:1.2rem;border-top:1px solid var(--g-line)}
.g-pager a {flex:1;min-width:145px;max-width:49%;line-height:1.4}
.g-pager a:last-child {margin-left:auto;text-align:right}
.g-pager span,.g-pager strong {display:block}
.g-pager span {font-size:.8rem;color:var(--g-lilac);margin-bottom:.24rem}
.g-pager strong {font-weight:620;font-size:.95rem}
.g-table-wrap {margin:1.25rem 0 1.75rem;border:1px solid var(--g-line);border-radius:12px;overflow:hidden;background:var(--g-panel)}
.g-table {width:100%;border-spacing:0;text-align:left;line-height:1.5;font-size:1rem;color:var(--g-body)}
.g-table thead th {font-size:.875rem;letter-spacing:.025em;color:#e5d7fa;background:#31283e}
.g-table th,.g-table td {padding:.85rem .75rem;vertical-align:top}
.g-table tbody tr+tr>* {border-top:1px solid var(--g-line)}
.g-table tbody tr:nth-child(even) {background:#201c29}
.g-table tbody th {font-weight:640;font-size:.9rem;color:var(--g-fg);width:32%}
.g-table td:nth-child(3) {white-space:nowrap;font-variant-numeric:tabular-nums}
.g-table-note {display:block;color:var(--g-muted);font-size:.875rem;margin-top:.25rem}
.g-severity {display:inline-block;border-radius:20px;padding:.13rem .55rem;font-size:.875rem;font-weight:600;background:#35303e}
.g-severity[data-level="leve"] {background:#203d34;color:#afe3cb}
.g-severity[data-level="medio"] {background:#45371f;color:#f5d399}
.g-severity[data-level="grave"] {background:#492d29;color:#ffbcab}
.g-severity[data-level="gravissimo"] {background:#492637;color:#ffc0d9}
#g-results [data-result-count] {color:var(--g-muted);margin:.65rem 0 1.15rem}
.g-hit {display:block;margin:.5rem 0}
.g-hit small,.g-hit strong,.g-hit span {display:block}
.g-hit small {color:var(--g-lilac);font-size:.81rem}
.g-hit strong {margin:.15rem 0;font-weight:680;line-height:1.4}
.g-hit span {color:var(--g-body);font-size:.94rem}
.g-more {border:1px solid var(--g-line);border-radius:4px;background:#282135;padding:.55rem 1rem}
.g-review-intro {color:var(--g-body);max-width:75ch}
.g-review-list {padding:0;list-style:none}
.g-review-list li {border-top:1px solid var(--g-line);padding:1.1rem 0}
.g-review-list h3 {font:650 1.12rem/1.4 'DM Sans',system-ui,sans-serif;margin:0 0 .3rem}
.g-review-list p {color:var(--g-body);margin:.2rem 0 .6rem}
.g-review-refs {display:flex;flex-wrap:wrap;gap:.4rem .6rem}
.g-review-refs a {font-size:.88rem;border:1px solid #564767;border-radius:4px;padding:.12rem .45rem;color:#dac4fb}
@media (min-width:1500px) {.g-hero-inner{padding-block:1.8rem 2.8rem}.g-hero-title{margin-top:3rem}}
@media (max-width:899px) {
  .g-width{width:min(760px,calc(100% - 2rem))}.g-layout{display:block;padding-top:1.2rem}.g-sidebar{position:static;max-height:none;overflow:visible;padding:0;margin-bottom:1.2rem}
  #g-index{border:1px solid var(--g-line);border-radius:6px;background:var(--g-panel)}#g-index>summary{position:relative;margin:0;padding:.65rem 2rem .65rem .85rem}#g-index>summary::after{display:block;right:1rem}
  #g-index>nav{max-height:55vh;overflow:auto;padding:0 .45rem .5rem}.g-hero-title{margin-top:2rem}
}
@media (max-width:620px) {
  .g-hero-inner{padding:1.05rem 0 1.5rem}.g-hero-image{object-position:61% 45%}.g-hero-shade{background:linear-gradient(90deg,rgba(20,13,34,.9),rgba(22,16,36,.48) 65%,rgba(22,16,36,.16)),linear-gradient(0deg,rgba(15,13,24,.55),transparent 60%)}
  .g-hero-title h1{font-size:3.1rem}.g-hero-title p{font-size:.95rem}.g-review-button{font-size:.82rem;padding:.34rem .55rem}.g-brand{font-size:.84rem}
  .g-bar-inner{display:flex;flex-direction:column;align-items:stretch;gap:0;padding-bottom:.55rem}.g-tabs{gap:1.45rem}.g-tabs a{min-height:44px;font-size:.95rem}.g-search{width:100%;min-height:36px;margin-top:.4rem}.g-search input{font-size:1rem;padding:.27rem 0}
  .g-main,.g-main article,.guide [data-entry],#g-results {scroll-margin-top:118px}.g-layout{padding-bottom:2.2rem}.g-doc-head{gap:.25rem .7rem;margin-bottom:.9rem}.g-book-name{font-size:.76rem}.g-group-name{font-size:.75rem}.g-main h2{font-size:1.84rem}.g-summary{padding:.75rem .8rem}.g-sheet-grid{grid-template-columns:1fr}
  .g-pager a{max-width:100%;min-width:110px}.g-source .g-item{margin-left:.6rem}
  .g-table-wrap{border:0;background:transparent}.g-table,.g-table tbody{display:block}.g-table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.g-table tbody tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--g-line);background:var(--g-panel);border-radius:10px;margin:.75rem 0;padding:1rem;gap:.32rem .5rem}.g-table th,.g-table td,.g-table tbody tr+tr>*{border:0;padding:0}.g-table tbody th,.g-table td:last-child{grid-column:1/-1;width:auto}.g-table tbody th{padding-bottom:.17rem}.g-table td::before{display:block;content:attr(data-label);margin-bottom:.2rem;color:var(--g-muted);font-size:.8rem;font-weight:550}.g-table td:last-child::before{content:none}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

.g-action-finder {margin:1.4rem 0 2rem}
.g-action-finder>label {display:block;font-weight:650;margin-bottom:.5rem}
#g-action-q {width:100%;padding:.85rem 1rem;border:1px solid #73627e;border-radius:9px;color:var(--g-fg);background:#201c29;font:inherit}
.g-action-tools {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem;margin:.75rem 0;color:var(--g-muted);font-size:.875rem}
.g-action-tools input {accent-color:#c3a2eb}
.g-sheet-grid a {display:grid;align-content:start;justify-items:start;gap:.3rem;border-radius:10px;padding:.95rem 1rem}
.g-sheet-grid a[hidden] {display:none}
.g-sheet-grid a small {color:#b4ddce;font-size:.81rem}
.g-perimeter {margin:1.2rem 0}
.g-perimeter img {display:block;width:100%;height:auto;border-radius:10px}
.g-perimeter figcaption {color:var(--g-muted);margin-top:.4rem}

.g-map-section {margin-block:2rem}
.g-map-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem}
.g-map-grid .g-perimeter {margin:0}
.g-map-grid figcaption {font-weight:600}

@media (min-width:900px) {
  .g-layout[data-mode="actions"] #g-index>summary {position:relative;cursor:pointer;width:fit-content;padding:.55rem 2.2rem .55rem .85rem;background:var(--g-panel);border:1px solid var(--g-line);border-radius:8px}
  .g-layout[data-mode="actions"] #g-index>summary::after {display:block;right:.85rem}
  .g-layout[data-mode="actions"]:has(#g-index:not([open])) {grid-template-columns:minmax(0,1fr);gap:1rem}
  .g-layout[data-mode="actions"]:has(#g-index:not([open])) .g-sidebar {position:static;overflow:visible}
  .g-layout[data-mode="actions"]:has(#g-index:not([open])) .g-main {max-width:none}
  .g-layout[data-mode="actions"]:has(#g-index:not([open])) .g-sheet-grid {grid-template-columns:repeat(auto-fit,minmax(15rem,1fr))}
}

.g-rule-blocks {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.75rem;margin:1.3rem 0 1.8rem}
.g-rule-blocks a {display:grid;align-content:start;gap:.45rem;padding:1rem 1.15rem;border:1px solid var(--g-line);border-top:3px solid #aa86d5;border-radius:8px;background:var(--g-panel)}
.g-rule-blocks a:hover,.g-rule-blocks a:focus-visible {border-color:var(--g-lilac);background:#292134}
.g-rule-blocks small {font-size:.875rem;color:var(--g-muted)}
.g-rule-blocks strong {font-size:1.1rem;color:var(--g-fg)}
.g-layout[data-mode="rules"] .g-source {max-width:76ch;line-height:1.72}
.g-layout[data-mode="rules"] .g-clause {padding:.95rem 0 .45rem;border-top:1px solid var(--g-line)}
.g-layout[data-mode="rules"] .g-clause>.g-ref {display:inline-block;margin-right:.35rem;padding:.04rem .4rem;border-radius:4px;background:#30253c;color:#e3c9ff;font-variant-numeric:tabular-nums}
.g-layout[data-mode="rules"] .g-item {margin-left:.5rem;padding-left:1rem;border-left:2px solid #44374f}
.g-layout[data-mode="rules"] .g-index-group>summary {padding-block:.85rem}

.g-layout:has(#apresentacao:not([hidden])) {display:block}
.g-layout:has(#apresentacao:not([hidden])) .g-sidebar {display:none}
.g-layout:has(#apresentacao:not([hidden])) .g-main {margin-inline:auto}
.g-topic {background:var(--g-panel);border:1px solid var(--g-line);border-radius:8px;margin:.65rem 0}
.g-topic summary {cursor:pointer;padding:1rem;color:var(--g-fg);font-weight:650}
.g-topic summary::marker {color:var(--g-lilac)}
.g-topic>div {padding:0 1rem 1rem}
.g-topic a {display:flex;align-items:baseline;gap:.8rem;padding:.7rem 0;border-top:1px solid var(--g-line)}
.g-topic a:hover {color:var(--g-lilac);text-decoration:underline}
.g-topic small {min-width:2ch;color:var(--g-muted);font-variant-numeric:tabular-nums}

.g-reading {max-width:72ch;margin-inline:auto}
.g-reading>header {margin-bottom:1.6rem}
.g-reading>header h2 {margin-top:.4rem}
.g-layout[data-mode="rules"] .g-reading .g-clause {display:grid;grid-template-columns:4.2rem minmax(0,1fr);align-items:baseline;gap:.55rem;padding:1.15rem 0;border:0;border-top:1px solid var(--g-line);line-height:1.72}
.g-layout[data-mode="rules"] .g-reading .g-clause>.g-ref {background:transparent;padding:0;margin:0;color:var(--g-lilac)}
.g-layout[data-mode="rules"] .g-reading .g-item {margin:.3rem 0 .8rem 4.75rem;padding-left:.85rem;line-height:1.65}
@media (max-width:620px) {
  .g-layout[data-mode="rules"] .g-reading .g-clause {grid-template-columns:minmax(0,1fr);gap:.25rem;padding:.9rem 0}
  .g-layout[data-mode="rules"] .g-reading .g-item {margin-left:.3rem}
}
