/* Documents page composition; existing storage controls keep their data bindings. */
.rd-documents { --rd-ink:var(--text); --rd-muted:var(--text-muted); background:var(--surface); }
.rd-documents .rd-wrap { width:min(1140px,calc(100% - 64px)); margin-inline:auto; }
.public-design #main-content .rd-documents :is(h1,h1>span,h2,h2>span) { font:700 40px/1.4 Poppins,"Open Sans",sans-serif!important; letter-spacing:-.02em!important; text-wrap:initial; }
.public-design #main-content .rd-documents h3 { font:700 22px/1.4 "Open Sans",sans-serif; }
.public-design #main-content .rd-documents :is(p,li,dd) { font-size:18px; line-height:1.55; }
.rd-documents .rd-copy > p:not(.rd-eyebrow,.rd-small) { margin-top:20px; color:var(--rd-muted); }
.public-design #main-content .rd-documents .rd-eyebrow { margin-bottom:14px; font:700 14px/1.4 "Open Sans",sans-serif; letter-spacing:.07em; text-transform:uppercase; color:var(--link-ink); }
.public-design #main-content .rd-documents .rd-small { font-size:14px; line-height:1.5; color:var(--rd-muted); margin-top:14px; }
.rd-documents h1 > span { color:var(--brand-purple-ink); }
.rd-documents [id] { scroll-margin-top:110px; }
.rd-documents .rd-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding-block:24px 0; color:var(--rd-muted); font-size:14px; }
.rd-breadcrumb a { display:inline-flex; align-items:center; min-height:44px; }
.rd-documents .rd-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.08fr); gap:44px; align-items:center; padding-block:36px 48px; }
.rd-documents .rd-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; margin-top:24px; }
.rd-documents .rd-actions > a { min-height:44px; display:inline-flex; align-items:center; }
.rd-documents .rd-actions > .pd-action { min-height:36px; }
.rd-documents .rd-link { display:inline-flex; align-items:center; min-height:44px; margin-top:12px; font-size:16px; font-weight:600; color:var(--link-ink)!important; }
.rd-documents .rental-film-inline { width:100%; }
.rd-documents .rental-film-inline iframe { height:440px; }
.rd-documents .rd-route { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-block:1px solid var(--border); gap:24px; padding-block:20px; }
.rd-route a { display:flex; align-items:center; gap:10px; min-height:44px; font-size:16px; line-height:1.5; }
.rd-route span { font-size:12px; color:var(--rd-muted); font-weight:700; }
.rd-documents .rd-section { padding-block:64px; }
.rd-documents .rd-setup { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.08fr); gap:44px; align-items:center; }
.rd-documents .rd-decisions { display:grid; gap:20px; margin-top:24px; }
.rd-decisions dt { font-size:18px; font-weight:700; margin-bottom:5px; }
.rd-decisions dd { color:var(--rd-muted); }
.rd-owner img { width:100%; height:400px; object-fit:cover; object-position:center; border-radius:6px; }
.rd-owner figcaption { margin-top:12px; font-size:14px; line-height:1.5; color:var(--rd-muted); }
.rd-library-band { background:var(--surface-canvas); }
.rd-section-intro { max-width:720px; margin-bottom:32px; }
.rd-section-intro > p:last-child { margin-top:16px; color:var(--rd-muted); }
.rd-documents .rd-signed { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:64px; }
.rd-records { display:grid; gap:24px; }
.rd-records article { position:relative; padding:0 0 24px 44px; border-bottom:1px solid var(--border); }
.rd-records .rd-number { position:absolute; top:5px; left:0; font-size:14px; font-weight:700; color:var(--brand-purple-ink); }
.rd-records p { color:var(--rd-muted); margin-top:10px!important; }
.rd-records a { display:inline-flex; align-items:center; min-height:44px; margin-top:8px; }
.rd-documents .rd-related { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:32px; align-items:start; border-block:1px solid var(--border); padding-block:32px; }
.public-design #main-content .rd-documents .rd-related h2 { font-size:28px!important; }
.rd-related > a { display:grid; gap:8px; padding-left:24px; border-left:1px solid var(--border); font-size:18px; line-height:1.5; text-decoration:none; }
.rd-related > a:hover strong { text-decoration:underline; }
.rd-related > a span { font-size:16px; color:var(--rd-muted); }
.rd-documents .rd-faq { display:grid; grid-template-columns:1fr 1.3fr; gap:64px; }
.rd-documents .doc-faq-list details { border-bottom:1px solid var(--border); }
.rd-documents .doc-faq-list summary { display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:56px; padding:16px 0; cursor:pointer; font-size:18px; font-weight:600; line-height:1.5; }
.rd-documents .doc-faq-list summary svg { width:16px; height:16px; }
.rd-documents .doc-faq-list details[open] summary svg { transform:rotate(90deg); }
.rd-documents .doc-faq-list p { padding:0 0 20px; color:var(--rd-muted); }
.rd-documents .rd-closing { background:var(--surface-tint-2); padding-block:48px; }
.rd-closing .rd-wrap { max-width:760px; text-align:center; }
.rd-closing p:not(.rd-eyebrow) { margin-top:16px!important; color:var(--rd-muted); }
.rd-closing .rd-actions { justify-content:center; margin-top:12px; }
.public-design #main-content .rd-documents :is(a,button,summary,input,select):focus-visible { outline:2px solid var(--brand-purple-ink)!important; outline-offset:4px!important; }
/* Readable, compact controls within the retained interactive storage library. */
.rd-documents .doc-workspace { border:1px solid var(--border); border-radius:6px; box-shadow:none; overflow:visible; }
.rd-documents .doc-workspace :is(button,a,input,select) { max-width:100%; }
.rd-documents .doc-workspace :is(.doc-small,.doc-workspace-bottom,.doc-overline,.doc-workspace-name>div>span,.doc-file-info>span:not(.doc-badge)) { font-size:14px; line-height:1.5; }
.rd-documents .doc-workspace :is(.doc-detail-field label,.doc-library-filters label,.doc-private-choice,.doc-library-filter-meta,.doc-search input,.doc-detail-field input,.doc-detail-field select,.doc-library-filters select) { font-size:16px; line-height:1.5; }
.rd-documents .doc-detail-field label { font-weight:600; }
.public-design #main-content .rd-documents :is(.doc-detail-field label,.doc-library-filters label,.doc-private-choice>span>span) { font-size:16px; line-height:1.5; }
.rd-documents .doc-private-choice { border:0; outline:0; box-shadow:none; background:transparent; padding-inline:0; gap:12px; align-items:start; min-height:44px; }
.rd-documents .doc-private-choice>input { width:18px; height:18px; margin-top:4px; flex:none; }
.rd-documents .doc-private-choice>span>span { font-size:16px; line-height:1.5; }
.rd-documents .doc-detail-field :is(input,select),.rd-documents .doc-library-filters select { height:auto; min-height:44px; padding:8px 30px 8px 10px; }
.rd-documents .doc-upload-stage,.rd-documents .doc-details-stage { min-height:0; }
.rd-documents .doc-workspace :is(.doc-upload-copy p,.doc-upload-picker p,.doc-details-form p,.doc-upload-explainer,.doc-paper p,.doc-optional-branch p) { font-size:16px!important; line-height:1.5!important; }
.rd-documents .doc-workspace :is(.doc-checks li,.doc-paper-details dd,.doc-paper-heading>span,.doc-timeline p,.doc-condition-list li) { font-size:16px; line-height:1.5; }
.rd-documents .doc-workspace .doc-workflow-steps { gap:12px; }
.rd-documents .doc-workflow-steps button { min-height:44px; padding:12px 8px; font-size:14px; line-height:1.5; white-space:normal; }
.rd-documents .doc-workflow-steps button strong { font-size:14px; line-height:1.5; }
.rd-documents .doc-workspace :is(.doc-file,.doc-result-banner button,.doc-optional-branch button) { min-height:44px; }
.rd-documents .doc-file-info>strong { font-size:16px; line-height:1.5; }
.rd-documents .doc-tabs button { font-size:14px; }
.rd-documents .doc-upload-picker .pd-secondary,.rd-documents .doc-details-form .pd-secondary { align-self:start; justify-self:start; min-height:36px; margin-top:18px; }
.rd-documents .doc-workspace :is(.doc-paper-panel,.doc-activity-panel) { min-height:0; }
.rd-documents .doc-paper { box-shadow:none; }
.rd-documents .doc-workspace-bottom { gap:12px; }
.rd-documents .doc-paper-details,.rd-documents .doc-paper-brand,.rd-documents .doc-result-banner,.rd-documents .doc-preview-top { overflow-wrap:anywhere; }
@media (max-width:900px) {
  .rd-documents :is(.rd-hero,.rd-setup,.rd-signed,.rd-faq) { gap:28px; }
  .rd-documents .rd-route { gap:12px; }
  .rd-documents .rd-related { grid-template-columns:1fr 1fr; }
  .rd-related > div { grid-column:1/-1; }
}
@media (max-width:650px) {
  .rd-documents .rd-wrap { width:calc(100% - 28px); }
  .public-design #main-content .rd-documents :is(h1,h1>span,h2,h2>span) { font-size:30px!important; line-height:1.4!important; }
  .public-design #main-content .rd-documents h3 { font-size:22px; }
  .rd-documents :is(.rd-hero,.rd-setup,.rd-signed,.rd-faq,.rd-related) { grid-template-columns:minmax(0,1fr); }
  .rd-documents .rd-hero { padding-block:24px 32px; gap:28px; }
  .rd-documents .rd-breadcrumb { padding-top:12px; font-size:12px; }
  .rd-documents .rd-section { padding-block:40px; }
  .rd-documents .rd-route { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; padding-block:16px; }
  .rd-route a { font-size:14px; align-items:start; }
  .rd-route span { margin-top:3px; }
  .rd-documents .rental-film-inline iframe { height:462px; }
  .rd-owner img { height:300px; }
  .rd-documents .rd-actions > .pd-action { min-height:44px; }
  .rd-related > a { border-left:0; border-top:1px solid var(--border); padding:20px 0 0; }
  .rd-documents .rd-faq { gap:20px; }
  .rd-documents .doc-workspace-top { padding:16px; }
  .rd-documents .doc-workflow-steps { grid-template-columns:minmax(0,1fr); padding:12px 16px; gap:4px; }
  .rd-documents .doc-workflow-steps button { flex-direction:row; align-items:center; justify-content:flex-start; }
  .rd-documents .doc-workspace :is(.doc-upload-stage,.doc-details-stage) { padding:20px 16px; gap:24px; }
  .rd-documents .doc-library { padding:16px; }
  .rd-documents .doc-library-filters { grid-template-columns:minmax(0,1fr); gap:12px; }
  .rd-documents .doc-workspace :is(.doc-paper-panel,.doc-activity-panel) { padding:12px; }
  .rd-documents .doc-paper { padding:16px; }
  .rd-documents .doc-paper-details { grid-template-columns:minmax(0,1fr); }
  .rd-documents .doc-preview-top { flex-wrap:wrap; padding:16px; }
  .rd-documents .doc-preview-top>div { flex-basis:100%; }
  .rd-documents .doc-workspace-bottom { padding:16px; }
  .rd-documents .doc-upload-picker .pd-secondary,.rd-documents .doc-details-form .pd-secondary { min-height:44px; }
  .rd-documents .doc-upload-picker { padding:20px 12px; }
}
@media (prefers-reduced-motion:reduce) { .rd-documents *, .rd-documents *::before, .rd-documents *::after { scroll-behavior:auto!important; } }
