/* Library hub and sample viewer, on the shared page frame (site-ia.css
   body.site-frame): the Cue logo, breadcrumbs, title, slides and table share
   one left edge; the Download pill shares the right edge. */
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--cue-ink,#1d1a1a);line-height:1.65}
::selection{background:#dce8ff;color:#171717}

.office-library{width:var(--frame-width,min(1240px,calc(100% - 40px)));max-width:var(--frame-wrap,1240px);margin:0 auto;padding:0 0 96px}
.office-library a{color:var(--cue-blue,#2563eb);text-underline-offset:4px}
.office-library a:focus-visible{outline:3px solid var(--cue-blue,#2563eb);outline-offset:4px;border-radius:6px}
.office-library p{max-width:68ch;color:var(--cue-muted,#555)}

/* Page head: title and one line of context, on the frame edge. */
.office-library .library-head{padding:32px 0 8px}
.office-library .library-head h1{max-width:20ch;margin:0;font-size:clamp(40px,1.6rem + 3vw,68px);line-height:1.04;letter-spacing:-.035em;font-weight:750}
.office-library .library-lede{margin:16px 0 0;font-size:clamp(17px,1rem + .3vw,20px);line-height:1.6}
.office-library>.breadcrumbs+.library-head{padding-top:16px}

/* Hub entry: the result first (the cover), then what it is and one action. */
.office-library .library-entry{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(24px,4vw,56px);align-items:center;margin-top:40px;padding:clamp(16px,2vw,24px);border:1px solid var(--cue-line-strong,#dfe1e6);border-radius:20px;background:var(--cue-surface,#f7f8fa)}
.office-library .library-cover{display:block;border-radius:14px;overflow:hidden;box-shadow:0 1px 2px rgb(29 26 26 / .06),0 18px 40px -24px rgb(29 26 26 / .35)}
.office-library .library-cover img{display:block;width:100%;height:auto}
.office-library .library-cover:focus-visible{outline-offset:6px}
.office-library .library-entry-body h2{margin:6px 0 10px;font-size:clamp(24px,1.1rem + 1vw,32px);line-height:1.2;letter-spacing:-.02em}
.office-library .library-entry-body p{margin:0 0 20px}
.office-library .library-kind{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--cue-label,#6e6e6e)!important;margin:0!important}
.office-library .library-open{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:999px;background:var(--cue-blue,#2563eb);color:#fff!important;font-weight:600;text-decoration:none}
.office-library .library-open:hover{background:var(--cue-blue-hover,#1d4ed8)}

/* Sample viewer: a slide rail, then each slide at the frame width. */
.office-library .page-rail{margin:28px 0 8px}
.office-library .page-links{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.office-library .page-links a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;border:1px solid var(--cue-line-strong,#dfe1e6);border-radius:10px;background:#fff;color:var(--cue-ink,#1d1a1a);font-weight:600;text-decoration:none;font-variant-numeric:tabular-nums}
body.site-frame .office-library .page-links a,body.site-frame .office-library .library-open,body.site-frame .office-library .library-cover{text-decoration:none}
.office-library .page-links a:hover{border-color:var(--cue-blue-line,#cbdcfb);background:var(--cue-blue-surface,#eff4fe);color:var(--cue-blue,#2563eb)}
.office-library figure{margin:48px 0 0;scroll-margin-top:84px}
.office-library figure h2{margin:0 0 14px;font-size:clamp(20px,1rem + .6vw,24px);line-height:1.3;letter-spacing:-.015em}
.office-library figure>a{display:block;border-radius:14px}
.office-library figure img{display:block;width:100%;height:auto;border:1px solid var(--cue-line,#ecedf0);border-radius:14px}
.office-library figcaption{margin-top:10px;font-size:14px;color:var(--cue-label,#6e6e6e)}

/* Data and provenance: readable measure, quieter surfaces. */
.office-library .library-data{max-width:760px;margin-top:72px}
.office-library .library-data h2,.office-library .source h2{margin:0 0 12px;font-size:clamp(24px,1.1rem + .9vw,30px);line-height:1.2;letter-spacing:-.02em}
.office-library table{width:100%;margin-top:20px;border-collapse:collapse;font-variant-numeric:tabular-nums}
.office-library caption{padding-bottom:10px;text-align:left;font-size:14px;color:var(--cue-label,#6e6e6e)}
.office-library th,.office-library td{padding:12px 8px;text-align:left;border-bottom:1px solid var(--cue-line,#ecedf0)}
.office-library thead th{font-size:14px;font-weight:600;color:var(--cue-muted,#555);background:none}
.office-library td{text-align:right}
.office-library thead th:not(:first-child){text-align:right}
.office-library .source{max-width:760px;margin-top:56px;padding:24px;border:1px solid var(--cue-line-strong,#dfe1e6);border-radius:14px;background:var(--cue-surface,#f7f8fa);font-size:15px}
.office-library .source p:last-child{margin-bottom:0}

@media (max-width:899px){
  .office-library .library-entry{grid-template-columns:1fr;align-items:start}
}
@media (max-width:600px){
  .office-library .library-head{padding-top:24px}
  .office-library th,.office-library td{padding:10px 4px;font-size:15px}
  .office-library figure{margin-top:36px}
  .office-library .source{padding:18px}
}
