
/* Source-reader surfaces inherit the publication's paper, ink and reading theme. */
:is(.premium-document,.document-library,.document-text-reader,.document-first-page){
 --doc-space-1:.25rem;--doc-space-2:.5rem;--doc-space-3:.75rem;--doc-space-4:1rem;--doc-space-6:1.5rem;--doc-space-8:2rem;
 --doc-small:.875rem;--doc-body:1rem;--doc-heading:1.25rem;--doc-title:clamp(1.75rem,1.2rem + 2vw,2.5rem);
}
.document-preview-card{margin:0 0 1rem;max-width:14rem}
.document-preview-card img{display:block;width:100%;height:auto;max-height:19rem;object-fit:contain;background:white;border:1px solid var(--line)}
.document-preview-card figcaption{font:400 .75rem/1.5 var(--sans);color:var(--muted);margin-top:.5rem}
.document-preview-card figcaption strong{color:var(--ink);letter-spacing:.03em}
.document-card .document-preview-card{max-width:10rem}
.document-file-icon{display:flex;flex-direction:column;gap:.75rem;justify-content:center;align-items:center;max-width:14rem;padding:2rem 1rem;border:1px solid var(--line);background:var(--paper);color:var(--ink);text-align:center;margin-bottom:1rem}
.document-file-icon strong{font:600 1.5rem var(--sans)}
.document-file-icon span{font-size:.875rem}
.document-library .page-heading{padding-block:var(--doc-space-6) var(--doc-space-2);margin:0;max-width:65ch}
.document-library .page-heading h1{font-size:var(--doc-title);margin-bottom:var(--doc-space-3)}
.premium-document{max-width:80rem;margin-inline:auto;overflow-wrap:anywhere}
.premium-document .document-heading{padding-block:var(--doc-space-6) var(--doc-space-4)}
.premium-document .document-heading .eyebrow{margin-bottom:var(--doc-space-2)}
.premium-document .document-heading h1{font:400 var(--doc-title)/1.12 var(--serif);max-width:44ch;letter-spacing:-.015em;margin:0 0 var(--doc-space-3)}
.document-record-status{display:flex;flex-wrap:wrap;gap:var(--doc-space-2) var(--doc-space-4);align-items:baseline;font-size:var(--doc-small)}
.document-record-status .badge{margin:0;padding:0;border:0;font-size:var(--doc-small);color:var(--accent)}
.premium-document .document-facts{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,.8fr);gap:var(--doc-space-2) var(--doc-space-6);margin:var(--doc-space-3) 0 0;padding:0;background:none}
.premium-document .document-facts dt{font:500 var(--doc-small)/1.5 var(--sans);text-transform:none;letter-spacing:0}
.premium-document .document-facts dd{font-size:var(--doc-small);line-height:1.6;margin:var(--doc-space-1) 0 0}
.document-facts .document-date{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:0 var(--doc-space-3)}
.document-facts .document-date dd{flex:1 1 30rem;margin-top:0}
.document-header-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--doc-space-2) var(--doc-space-3);margin-top:var(--doc-space-3)}
.document-header-actions [data-reader-toolbar]:empty{display:none}
.document-header-actions .source-tools{margin:0}
.document-header-actions .document-read-link{display:inline-flex;align-items:center;min-height:44px;padding:var(--doc-space-2) var(--doc-space-3);border:1px solid var(--ink);background:var(--ink);color:var(--paper);font:600 var(--doc-small)/1.5 var(--sans);text-decoration:none}
.document-header-actions .document-read-link:hover{text-decoration:underline;text-underline-offset:.18em}
.document-header-actions .source-tools button,.document-return{font-size:var(--doc-small)}
.document-return{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:.18em}
.document-workspace{display:grid;grid-template-columns:minmax(0,2fr) minmax(17rem,1fr);grid-template-rows:auto auto 1fr;grid-template-areas:"navigation navigation" "reader limits" "reader context";column-gap:var(--doc-space-8);row-gap:var(--doc-space-6);align-items:start}
.document-workspace>*{min-width:0}
.premium-document .document-view-nav{grid-area:navigation;display:flex;gap:var(--doc-space-6);padding:0;border-block:1px solid var(--line);background:var(--paper)}
.document-view-nav a{display:inline-flex;align-items:center;min-height:44px;padding:var(--doc-space-2) 0;font:600 var(--doc-body)/1.4 var(--sans);text-decoration:underline;text-underline-offset:.25em}
.premium-document .document-critical{grid-area:limits;border:0;padding:0;margin:0}
.premium-document .document-view{grid-area:reader;border:0;padding:0;min-width:0}
.premium-document .document-context{grid-area:context;max-width:none;border-top:1px solid var(--line);padding-top:var(--doc-space-4)}
.premium-document :is(.document-critical,.document-context) :is(h2,h3){font:600 var(--doc-heading)/1.3 var(--sans);margin:0 0 var(--doc-space-3)}
.premium-document .document-context h3{margin-top:var(--doc-space-6)}
.premium-document :is(.document-critical,.document-context) p,.premium-document .document-context li{font-size:var(--doc-small);line-height:1.75;margin-bottom:var(--doc-space-3)}
.premium-document .document-critical p{margin:0}
.premium-document .document-context ul{padding-left:var(--doc-space-4);margin:0}
.premium-document .document-view :is(section,details){scroll-margin-top:6rem}
.premium-document :is(.document-view,.document-critical,.document-context){scroll-margin-top:6rem}
.premium-document .document-view section{padding:0;border:0;margin:0}
.premium-document .document-view h2{font:600 var(--doc-heading)/1.3 var(--sans);margin:0 0 var(--doc-space-2)}
.document-preview-overview p{overflow-wrap:anywhere;margin:0 0 var(--doc-space-2)}
.document-preview-overview .meta{font-size:var(--doc-small)}
.document-mode-nav{display:flex;flex-wrap:wrap;gap:0 var(--doc-space-4);border-bottom:1px solid var(--line);margin-bottom:var(--doc-space-3)}
.document-mode-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:var(--doc-small);text-decoration:underline;text-underline-offset:.2em}
.document-extraction-note,.document-file-note{font-size:var(--doc-small);color:var(--muted)}
.document-first-page{border-block:1px solid var(--line);margin-block:var(--doc-space-3);min-width:0}
.document-first-page summary{min-height:44px;padding-block:var(--doc-space-3);cursor:pointer;font:600 var(--doc-small)/1.5 var(--sans)}
.document-first-page figure{margin:0 0 var(--doc-space-4)}
.document-first-page .meta,.document-first-page figcaption{font-size:var(--doc-small);line-height:1.6;margin:0 0 var(--doc-space-3);color:var(--muted)}
.document-first-page figcaption{margin:var(--doc-space-2) 0 0}
.document-image-viewport{width:100%;max-height:70vh;max-height:70dvh;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);background:var(--paper)}
.document-image-viewport img{display:block;width:100%;max-width:100%;height:auto;background:white}
.document-image-viewport[data-zoom="100"] img{width:695px;max-width:none}
.document-image-viewport[data-zoom="150"] img{width:1042.5px;max-width:none}
.document-first-page .document-image-zoom{display:flex;align-items:center;gap:var(--doc-space-3);margin-bottom:var(--doc-space-3);font:500 var(--doc-small)/1.5 var(--sans);text-transform:none;letter-spacing:0}
.document-image-zoom select{width:auto;min-height:44px;max-width:100%;padding:var(--doc-space-2);margin:0;font:inherit;background:var(--paper);color:var(--ink);border:1px solid var(--line)}
.document-text-reader{min-width:0;margin-block:var(--doc-space-6);scroll-margin-top:6rem}
.premium-document .document-view .document-text-reader{margin-top:var(--doc-space-4)}
.document-text-reader form,.document-page-controls{display:flex;flex-wrap:wrap;align-items:end;gap:var(--doc-space-2);margin:var(--doc-space-3) 0}
.document-text-reader label{display:flex;flex-direction:column;gap:var(--doc-space-1);flex:1 1 13rem;font:500 var(--doc-small)/1.5 var(--sans);text-transform:none;letter-spacing:0;min-width:0}
.document-page-controls label{flex:0 1 7rem}
.document-text-reader input{width:100%;min-height:44px;padding:var(--doc-space-2) var(--doc-space-3);margin:0;border:1px solid var(--line);border-radius:0;background:var(--paper);color:var(--ink);font:inherit}
.document-text-reader button{min-height:44px;padding:var(--doc-space-2) var(--doc-space-3);border:1px solid var(--line);border-radius:0;background:var(--paper);color:var(--ink);font:500 var(--doc-small)/1.5 var(--sans);cursor:pointer;white-space:normal}
.document-text-reader button:disabled{opacity:.55;cursor:default}
.document-text-reader button:hover:not(:disabled){border-color:var(--ink)}
:is(.premium-document,.document-text-reader,.document-first-page) :focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.document-text-page{border:1px solid var(--line);background:var(--reader-document-surface,var(--paper));color:var(--ink);padding:var(--doc-space-4);min-width:0}
.document-text-page h3{font:600 var(--doc-heading)/1.4 var(--sans);margin:0 0 var(--doc-space-2)}
.document-text-page .meta{margin:0 0 var(--doc-space-3)}
.document-text-page pre{font:400 var(--doc-body)/1.75 var(--sans);white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.document-text-results{padding:var(--doc-space-3) var(--doc-space-3) var(--doc-space-3) var(--doc-space-8);max-height:24rem;overflow:auto;border:1px solid var(--line)}
.document-text-results li{margin:0 0 var(--doc-space-3);overflow-wrap:anywhere}
.document-text-results button{padding:var(--doc-space-2)}
.document-text-results span{font-size:var(--doc-small)}
.document-text-reader .qualification{border:0;padding:0;font-size:var(--doc-small);line-height:1.6;color:var(--muted);background:none;margin:0 0 var(--doc-space-3)}
.document-text-reader .document-extraction-method{margin-top:var(--doc-space-4)}
.document-text-reader [role=status]{font-size:var(--doc-small);overflow-wrap:anywhere;margin:var(--doc-space-3) 0}
.document-text-reader .document-page-help{font-size:var(--doc-small);margin-top:var(--doc-space-3)}
.document-text-reader a{display:inline-block;min-height:44px;padding-block:var(--doc-space-2);text-decoration:underline;text-underline-offset:.2em}
.premium-document .document-view .document-reader{max-width:none;margin-top:var(--doc-space-6);padding-block:var(--doc-space-4);border-top:1px solid var(--ink)}
.premium-document .document-reader p{font-size:var(--doc-small)}
.premium-document .document-reader [role=status]:empty{display:none}
@media(max-width:55rem){
 .document-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"limits" "navigation" "reader" "context";row-gap:var(--doc-space-4)}
 .premium-document .document-heading{padding-top:var(--doc-space-4)}
 .premium-document .document-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .document-facts .document-date{display:block}
 .premium-document .document-view-nav{gap:0}
 .document-view-nav a{flex:1;justify-content:center;text-align:center;padding-inline:var(--doc-space-3)}
 .document-view-nav [aria-selected="true"]{border-bottom:3px solid var(--accent);color:var(--accent)}
 .document-view-nav [aria-selected="false"]{text-decoration:none}
}
@media(max-width:32rem){
 .premium-document .document-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .premium-document .document-facts>div:first-child{grid-column:1/-1}
 .document-page-controls>*{flex:1 1 40%}
 .document-page-controls label{flex:1 1 40%}
 .document-text-reader form button{flex:1 1 40%}
 .document-text-reader form label{flex-basis:100%}
 .document-header-actions>*{min-width:0;max-width:100%}
 .document-first-page .document-image-zoom{flex-wrap:wrap}
}
@media(max-width:22rem){.premium-document .document-facts{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.premium-document *{scroll-behavior:auto}}
@media print{
 .document-workspace{display:block}
 .document-view[hidden],.document-context[hidden]{display:block!important}
 .document-view-nav,.document-mode-nav,.document-text-reader form,.document-page-controls,.document-text-results,.document-image-zoom,.document-header-actions,.document-reader button,.document-reader [data-ready]{display:none!important}
 .document-context,.document-critical{margin-bottom:1rem}
 .document-text-page{border:0}
 .document-image-viewport{max-height:none;overflow:visible}
 .document-image-viewport img{width:100%!important;max-width:100%!important}
}
