/* Reading-focused layout; all primary colors come from Pedra's shared theme. */
.pd-rights { --pr-font-size: 1rem; padding-block: 32px 56px; }
.pd-rights .pr-hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 40px; align-items: center; padding: clamp(28px,5vw,60px); border: 1px solid var(--pd-line); border-radius: 28px; background: linear-gradient(125deg,var(--pd-soft),var(--pd-surface)); overflow: hidden; }
.pd-rights .pr-eyebrow { color: var(--pd-deep); font-size: .8rem; font-weight: 700; letter-spacing: .1px; }
.pd-rights .pr-eyebrow > span { font-size: .5rem; vertical-align: middle; margin-inline-end: 8px; }
.pd-rights h1 { font-size: clamp(1.8rem,4vw,3rem); line-height: 1.65; letter-spacing: -.7px; margin: 18px 0; max-width: 780px; }
.pd-rights .pr-hero p { max-width: 560px; color: var(--pd-muted); line-height: 2; }
.pd-rights .pr-start { display: inline-flex; align-items: center; gap: 26px; border-bottom: 1px solid var(--pd-brand); padding: 10px 0; margin-top: 12px; color: var(--pd-deep); font-weight: 700; }
.pd-rights .pr-emblem { text-align: center; color: var(--pd-deep); }
.pd-rights .pr-emblem-circle { width: 180px; height: 180px; padding: 38px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid var(--pd-line); outline: 1px solid var(--pd-line); outline-offset: 14px; border-radius: 50%; background: var(--pd-surface); }
.pd-rights .pr-emblem svg { width: 100%; height: auto; }
.pd-rights .pr-emblem > span { font-size: .8rem; display: inline-block; margin-top: 12px; }
.pd-rights .pr-reading-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin: 30px 0 24px; padding-block: 14px; border-block: 1px solid var(--pd-line); color: var(--pd-muted); font-size: .85rem; }
.pd-rights .pr-tools,.pd-rights .pr-font-tools { display: flex; align-items: center; gap: 12px; }
.pd-rights button { min-height: 44px; min-width: 44px; padding: 8px 14px; border: 1px solid var(--pd-line); border-radius: 10px; color: var(--pd-ink); background: var(--pd-surface); font: inherit; cursor: pointer; }
.pd-rights button:disabled { opacity: .45; cursor: default; }
.pd-rights .pr-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; align-items: start; }
.pd-rights.has-toc .pr-layout { grid-template-columns: 245px minmax(0,1fr); }
.pd-rights .pr-sidebar { position: sticky; top: 100px; padding: 22px 0; }
.pd-rights .pr-sidebar h2 { font-size: 1.2rem; margin: 8px 0 20px; }
.pd-rights .pr-sidebar ol { padding: 0; list-style: none; margin: 0; max-height: 55vh; overflow-y: auto; }
.pd-rights .pr-sidebar a { display: block; padding: 10px 14px; margin-bottom: 6px; border-inline-start: 2px solid var(--pd-line); color: var(--pd-muted); line-height: 1.8; font-size: .9rem; }
.pd-rights .pr-sidebar a:hover,.pd-rights .pr-sidebar a[aria-current="location"] { color: var(--pd-deep); border-color: var(--pd-brand); background: var(--pd-soft); border-radius: 8px 0 0 8px; }
.pd-rights .pr-sidebar > p { font-size: .8rem; color: var(--pd-muted); padding: 14px; }
.pd-rights .pr-document { background: var(--pd-surface); padding: clamp(24px,4vw,50px); border: 1px solid var(--pd-line); border-radius: 22px; box-shadow: var(--pd-shadow); min-width: 0; scroll-margin-top: 110px; }
.pd-rights .pr-document-heading { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--pd-line); color: var(--pd-muted); font-size: .8rem; }
.pd-rights .pr-wordmark { letter-spacing: 3px; font-family: Tahoma,sans-serif; }
.pd-rights .pr-content { max-width: 78ch; margin-inline: auto; font-size: var(--pr-font-size); line-height: 2.25; color: var(--pd-ink); text-align: start; overflow-wrap: anywhere; font-style: normal; }
.pd-rights .pr-content :is(h1,h2,h3,h4,h5,h6) { color: var(--pd-deep); margin: 2em 0 1em; line-height: 1.8; scroll-margin-top: 120px; }
.pd-rights .pr-content h1,.pd-rights .pr-content h2 { font-size: 1.35em; letter-spacing: normal; }
.pd-rights .pr-content h3 { font-size: 1.15em; }
.pd-rights .pr-content > :first-child { margin-top: 0; }
.pd-rights .pr-content p { margin-bottom: 1.35em; }
.pd-rights .pr-content :is(ol,ul) { padding-inline-start: 1.7em; }
.pd-rights .pr-content li { padding-inline-start: .35em; margin-bottom: .8em; }
.pd-rights .pr-content li::marker { color: var(--pd-deep); font-weight: 700; }
.pd-rights .pr-content blockquote { margin: 24px 0; padding: 18px 22px; border-inline-start: 3px solid var(--pd-brand); background: var(--pd-soft); border-radius: 12px; }
.pd-rights .pr-content a { text-decoration: underline; text-underline-offset: 4px; }
.pd-rights .pr-content img { max-width: 100%; height: auto; }
.pd-rights .pr-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.pd-rights .pr-content :is(td,th) { padding: 12px; border: 1px solid var(--pd-line); }
.pd-rights .pr-document-end { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 40px; color: var(--pd-brand); }
.pd-rights .pr-document-end span { width: 60px; height: 1px; background: var(--pd-line); }
.pd-rights .pr-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 28px; color: var(--pd-muted); }
.pd-rights .pr-bottom a { padding: 10px; text-decoration: underline; text-underline-offset: 5px; }
.pd-rights :is(a,button,[tabindex]):focus-visible { outline: 3px solid var(--pd-brand); outline-offset: 4px; }
.pd-rights [hidden] { display: none !important; }
.pd-rights .pr-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:950px) {
 .pd-rights.has-toc .pr-layout { grid-template-columns: minmax(0,1fr); }
 .pd-rights .pr-sidebar { position: static; padding: 20px; background: var(--pd-soft); border-radius: 16px; }
 .pd-rights .pr-sidebar ol { max-height: 220px; }
 .pd-rights .pr-sidebar > p { margin-bottom: 0; }
}
@media(max-width:650px) {
 .pedra-public .pd-rights { width: calc(100% - 24px); padding-top: 20px; }
 .pd-rights .pr-hero { grid-template-columns: minmax(0,1fr); padding: 28px 22px; gap: 20px; }
 .pd-rights .pr-emblem { display: none; }
 .pd-rights .pr-reading-bar { align-items: flex-start; }
 .pd-rights .pr-tools { flex-wrap: wrap; }
 .pd-rights .pr-document { padding: 24px 20px; }
}
@media print {
 body.pr-printing > * { display: none !important; }
 body.pr-printing > #pr-print-copy { display: block !important; direction: rtl; color: black; background: white; font-family: Tahoma,sans-serif; font-size: 12pt; line-height: 1.9; }
 #pr-print-copy * { color: black !important; background: transparent !important; box-shadow: none !important; }
 #pr-print-copy img { max-width: 100%; }
 #pr-print-copy :is(h1,h2,h3,h4) { break-after: avoid; }
 #pr-print-copy tr { break-inside: avoid; }
}
@media screen { #pr-print-copy { display: none; } }