/* Scoped public library. Paper covers are links, not new publication claims. */
.fcrl-library, .fcrl-library *, .fcrl-resource-link, .fcrl-resource-link * { box-sizing: border-box; }
.fcrl-library { --fcrl-green: #183f32; max-width: 1240px; margin: 24px auto 64px; padding: 24px; color: #233b34; background: #fcfbf7; font: 16px/1.6 system-ui,sans-serif; }
.fcrl-library [hidden] { display: none !important; }
.fcrl-library h1, .fcrl-library h2, .fcrl-library h3, .fcrl-library p { margin: 0; color: inherit; }
.fcrl-library a { color: #145b54; text-underline-offset: 4px; }
.fcrl-library :focus-visible { outline: 3px solid #166976; outline-offset: 4px; }
.fcrl-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.fcrl-header .fcrl-eyebrow { color: #775527; font: 700 11px/1.5 system-ui,sans-serif; letter-spacing: .16em; }
.fcrl-header h1 { margin: 8px 0; font: 700 clamp(30px,4vw,46px)/1.1 Georgia,serif; }
.fcrl-header > a { flex: 0 0 210px; }
.fcrl-header img { display: block; width: 210px; height: auto; }
.fcrl-controls { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; padding: 18px; background: #ecefe8; border: 1px solid #cbd5cb; border-radius: 8px; }
.fcrl-controls label { display: grid; gap: 5px; color: #233b34; font: 600 13px/1.4 system-ui,sans-serif; }
.fcrl-controls label:first-child { flex: 1 1 260px; }
.fcrl-controls :is(input,select,button) { min-height: 44px; border: 1px solid #829a8e; border-radius: 5px; padding: 9px 12px; font: 16px/1.4 system-ui,sans-serif; background: #fff; color: #203d32; max-width: 100%; }
.fcrl-controls button { cursor: pointer; background: #183f32; color: #fff; }
.fcrl-controls [data-fcrl-count] { flex-basis: 100%; font-size: 13px; }
.fcrl-guide { padding: 12px 0 4px; font-size: 13px; color: #54645c !important; }
.fcrl-collection { margin-top: 30px; }
.fcrl-collection > h2 { font: 700 26px/1.3 Georgia,serif; padding-bottom: 16px; }
.fcrl-shelf { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; margin-bottom: 18px; padding: 10px 0 12px; }
.fcrl-shelf-track { --fcrl-cover-height: 300px; position: relative; min-width: 860px; isolation: isolate; }
/* A structural baseline stays visible before artwork loads or if it fails. */
.fcrl-shelf-seat { position: absolute; z-index: 0; top: calc(var(--fcrl-cover-height) - 1px); left: 24px; right: 24px; height: 12px; border-radius: 2px; background: #89572f; border-bottom: 2px solid #614027; }
.fcrl-books { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; list-style: none !important; margin: 0 !important; padding: 0 24px !important; }
.fcrl-item { display: block; min-width: 0; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; }
.fcrl-item::before, .fcrl-item::after { content: none !important; }
.fcrl-cover { position: relative; z-index: 1; display: block; height: var(--fcrl-cover-height); text-decoration: none; border-radius: 1px 4px 4px 1px; background: #143d34; color: #fff !important; box-shadow: -4px 3px 7px #0003, inset 6px 0 #ffffff1a; transition: box-shadow .16s; isolation: isolate; }
.fcrl-cover:hover { box-shadow: -4px 3px 7px #0004, inset 6px 0 #ffffff1a, 0 0 0 2px #b68e4b; }
.fcrl-cover-insights { background: #1b3d53; }
.fcrl-cover-blog { background: #694432; }
.fcrl-cover-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 12px; }
.fcrl-type { font: 700 10px/1.4 system-ui,sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.fcrl-cover-copy strong { font: 700 clamp(17px,1.8vw,24px)/1.2 Georgia,serif; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.fcrl-emblem { width: 44px; height: 44px; object-fit: contain; background: #fffdf7; border-radius: 50%; padding: 3px; }
.fcrl-imprint { margin-top: auto; padding-top: 10px; border-top: 1px solid #ffffff55; width: 100%; font: 700 9px/1.3 system-ui,sans-serif; letter-spacing: .12em; }
.fcrl-cover-image { width: 100%; height: 100%; object-fit: contain; background: #f6f2e7; border-radius: inherit; }
.fcrl-has-image .fcrl-cover-copy { background: linear-gradient(transparent 42%,#132c25ed); justify-content: end; padding: 18px; }
.fcrl-has-image .fcrl-cover-copy strong { font-size: 19px; -webkit-line-clamp: 3; }
.fcrl-has-image .fcrl-imprint { display: none; }
.fcrl-caption { padding: 164px 0 14px; position: relative; z-index: 1; }
.fcrl-caption > span { display: block; font-size: 11px; color: #59665e; }
.fcrl-caption h3 { font: 600 16px/1.35 system-ui,sans-serif; margin: 7px 0 9px; }
.fcrl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fcrl-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 10px; border: 1px solid #96aaa1; border-radius: 4px; font-size: 13px; text-decoration: none; background: #fff; }
.fcrl-actions a:last-child { color: #fff; background: #183f32; border-color: #183f32; }
.fcrl-wood { position: absolute; z-index: 0; pointer-events: none; top: calc(var(--fcrl-cover-height) - 16px); left: 0; right: 0; height: 170px; overflow: hidden; }
/* The PNG's rear plank begins at row 268/724. Seat covers within its top plane,
   not above the transparent margin; preserve space for both support brackets. */
.fcrl-wood img { display: block; width: 100%; max-width: none; height: auto; transform: translateY(-36.5%); }
html[data-fivec-text-first="true"] .fcrl-library .fcrl-wood img[data-fivec-essential],
html[data-fivec-text-first="true"] .fcrl-library img.fcrl-cover-image[data-fivec-essential],
html[data-fivec-text-first="true"] .fcrl-library .fcrl-header img[data-fivec-essential] { display: block !important; }
.fcrl-empty { padding: 36px 18px; border: 1px solid #cbd5cb; margin-block: 28px !important; }
.fcrl-footer { margin-top: 28px; padding-top: 24px; border-top: 1px solid #cbd5cb; font-size: 13px; }
.fcrl-footer p { margin-bottom: 12px; }
.fcrl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fcrl-resource-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; margin: 28px auto; max-width: 1200px; border: 1px solid #b6c6bd; border-left: 5px solid #146b72; background: #eef3ed; color: #183f32; font: 16px/1.5 system-ui,sans-serif; }
.fcrl-resource-link p { margin: 6px 0 0; color: #354d45; }
.fcrl-resource-link a { flex: 0 0 auto; display: inline-block; background: #183f32; color: #fff; padding: 12px 18px; border-radius: 4px; text-decoration: none; }
@media(max-width:600px) { .fcrl-library { padding: 16px 8px; } .fcrl-header { display: block; } .fcrl-header img { width: 175px; margin-top: 20px; } .fcrl-controls label { flex: 1 1 100%; } .fcrl-controls select { width: 100%; } .fcrl-resource-link { align-items: start; flex-direction: column; } }
@media(prefers-reduced-motion:reduce) { .fcrl-cover { transition: none; } }
@media(forced-colors:active) { .fcrl-cover { border: 2px solid CanvasText; } .fcrl-cover-copy { background: Canvas; color: CanvasText; } .fcrl-wood { display: none; } .fcrl-shelf-seat { background: Canvas; border: 2px solid CanvasText; } }
@media print { .fcrl-controls,.fcrl-wood,.fcrl-shelf-seat { display: none; } .fcrl-shelf { overflow: visible; } .fcrl-shelf-track { min-width: 0; } .fcrl-books { display: block !important; } .fcrl-cover { display: none; } .fcrl-caption { padding: 10px 0; break-inside: avoid; } }
