/* A separate flat-card shelf, scoped independently from the ordinary bookshelf. */
.featured-page{--accent:#0068a8;--accent-dark:#005185;min-height:100vh;display:flow-root;background:#eef3f7;color:#304755}
.featured-brand{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1120px;margin:auto;padding:16px 24px;border-bottom:1px solid #ccd9e3}
.featured-brand>a:first-child{display:flex;align-items:center;width:160px;min-height:44px;background:#fff}
.featured-brand img{display:block;width:100%;height:auto}.featured-brand .button{font-size:12px}
.featured-shell{width:min(1120px,calc(100% - 40px));margin:30px auto 60px}
.featured-heading{margin:0 0 30px;padding:0 0 24px;border-bottom:2px solid #0068a8}
.featured-heading h1{font-size:clamp(26px,4vw,38px);line-height:1.4;margin:0 0 14px;overflow-wrap:anywhere}
.featured-heading>p:not(.eyebrow){font-size:14px;line-height:1.8;color:#596f7d}
.featured-heading .eyebrow{color:#0068a8;letter-spacing:.2em}.featured-total{display:inline-block;font-size:12px;color:#536c7d}
.featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.featured-card{min-width:0;scroll-margin-top:20px;border:1px solid #d4dfe7;border-radius:14px;background:#fff;box-shadow:0 5px 16px #203b5010;overflow:hidden}
.featured-open{display:block;color:inherit;text-decoration:none}.featured-open:hover .featured-cta{color:#005185;text-decoration:underline}
.featured-open:focus-visible{outline:3px solid #0068a8;outline-offset:-3px}
.featured-image-wrap{aspect-ratio:3/4;width:100%;padding:14px;background:#e5edf3;border-bottom:1px solid #dbe4eb}
.featured-image-wrap img{display:block;width:100%;height:100%;object-fit:contain;background:#fff;box-shadow:0 2px 10px #30485a18}
.featured-copy{padding:8px 10px}
.featured-source{display:flex;flex-wrap:wrap;gap:2px 8px;margin:0 0 3px;color:#607887;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.featured-source span{flex:none}.featured-copy h2{font-size:clamp(21px,2.1vw,25px);line-height:1.24;margin:0 0 4px;overflow-wrap:anywhere}
.featured-description{font-size:17px;line-height:1.33;color:#5b6f7c;margin:0 0 4px;overflow-wrap:anywhere}
.featured-cta{display:flex;justify-content:space-between;gap:8px;color:#0068a8;font-size:15px;line-height:1.3;font-weight:700;align-items:center}
.featured-page .site-footer{color:#607887;font-size:11px}.featured-page .empty-state{background:#fff;border-radius:14px;padding:30px}
.bookshelf-page .featured-shelf-link{gap:12px;border-style:dashed}
.viewer-bar .featured-back-link{min-width:0;background:#c45000;border-color:#eaa066;color:#fff;box-shadow:0 2px 0 #903900}
.viewer-bar .featured-back-link:hover{background:#9f3f00}.viewer-bar .featured-back-link:focus-visible{background:#9f3f00;outline:3px solid #ffd29f;outline-offset:2px}.embedded .viewer-bar>a.featured-back-link{display:inline-flex}
.featured-admin>.editor-card{margin-bottom:24px}.featured-admin-item{display:flex;align-items:center;justify-content:space-between;gap:20px}.featured-admin-item>div:first-child{min-width:0;overflow-wrap:anywhere}
.featured-editor-preview{display:flex;align-items:center;gap:16px}.featured-editor-preview[hidden]{display:none!important}.featured-editor-preview img{display:block;width:100px;max-height:150px;object-fit:contain;background:#f2f4f6;border:1px solid #d4dfe7}.featured-editor-preview .button{font-size:12px}
@media(max-width:1099px){.featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.featured-brand{padding:12px 16px}.featured-brand>a:first-child{width:140px}.featured-brand .button{font-size:11px;min-height:44px}.featured-shell{width:calc(100% - 28px);margin-top:24px}.featured-heading{margin-bottom:22px;padding-bottom:18px}.featured-heading>p:not(.eyebrow){font-size:13px}.featured-grid{grid-template-columns:minmax(0,1fr);gap:22px}.featured-image-wrap{padding:12px}.viewer-bar .featured-back-link{gap:5px;padding:3px 6px}.viewer-bar .featured-back-link b{font-size:11px}.viewer-bar .featured-back-link svg{width:17px}.featured-admin-item{align-items:flex-start;flex-direction:column}.featured-admin-item .form-actions{width:100%}}

.admin-page .topbar{flex-wrap:wrap}.admin-page .topbar nav{flex-wrap:wrap;gap:10px 16px}

/* Bound intrinsic image widths even with older shared CSS cached. */
.featured-page,.featured-page *{box-sizing:border-box}.featured-page img{max-width:100%}.featured-grid,.featured-card,.featured-open,.featured-copy{min-width:0}

.featured-posted-date{margin:0 0 3px;color:#526370;font-size:14px;font-weight:700;line-height:1.3}

.featured-single-page :is(#tocToggle,#thumbToggle,#autoplayToggle,#mobileThumb,#mobileAutoplay,#mobileToc,#mobilePrev,#mobileNext,.page-control,.help-grid>div:nth-child(-n+3)){display:none!important}
.featured-single-page .featured-page-number{font-size:13px;color:inherit;white-space:nowrap}
.featured-single-page .viewer-bar .featured-back-link{white-space:nowrap}
@media(max-width:767px){
  .featured-single-page .viewer-bar .featured-back-link{width:auto;min-width:max-content;padding:5px 8px}
  .featured-single-page .viewer-bar .featured-back-link span{display:inline}
  .featured-single-page .viewer-footer{grid-template-columns:1fr auto 1fr}
  .featured-single-page .featured-page-number{grid-column:2}
  .featured-single-page #mobileMenu{justify-self:end}
}
.featured-editor-preview{flex-wrap:wrap}
.featured-editor-preview p{margin:0;overflow-wrap:anywhere}

.featured-brand{flex-wrap:wrap}
.featured-brand>a:first-child{margin-right:auto}
.viewer-bar .book-admin-link{flex:none;white-space:nowrap;text-decoration:none}
@media(max-width:767px){
  .viewer-bar .book-admin-link{font-size:11px;padding:4px 6px;min-height:36px}
}
.bookshelf-page .bookshelf-brandbar{flex-wrap:wrap}
.bookshelf-brandbar>.button{margin-left:auto;white-space:nowrap}
@media(min-width:768px){
  .viewer-bar>a.book-admin-link{grid-column:3;grid-row:1;justify-self:end;align-self:start}
}

a.book-admin-link:any-link{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;padding:6px 12px;border:1px solid #82bbff;border-radius:8px;
  background:#0956a8;color:#fff;font-size:14px;font-weight:800;line-height:1.2;
  white-space:nowrap;text-decoration:none;box-shadow:none;
}
a.book-admin-link:hover{background:#063e7c;color:#fff}
a.book-admin-link:focus-visible{outline:3px solid #f9ba38;outline-offset:2px}
@media(max-width:767px){
  .viewer-bar a.book-admin-link:any-link{font-size:13px;padding:5px 7px}
}

.featured-url{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.featured-url label{flex-basis:100%;font-weight:700}
.featured-url input{flex:1 1 16rem;min-width:0}
#featuredOrderForm{margin:0 0 16px}
#featuredOrderList .featured-admin-item{margin-bottom:12px}
.featured-order-controls{display:flex;align-items:center;gap:5px;flex:none}
.featured-order-controls .button{min-width:40px}
.featured-drag-handle{display:inline-grid;place-items:center;width:36px;min-height:40px;font-size:24px;cursor:grab;user-select:none}
.featured-admin-item.is-dragging{opacity:.55}
.featured-item-info{flex:1;min-width:0;overflow-wrap:anywhere}

/* Wood shelves for the public page catalogue (features.php). */
.featured-page { background: #f5eee2; }
.featured-page .featured-grid {
  align-items: stretch;
  gap: 16px;
  padding: clamp(10px, 2vw, 24px);
  border: clamp(6px, 1vw, 12px) solid #694128;
  border-radius: 9px;
  background: repeating-linear-gradient(3deg, #a5683726 0 1px, transparent 1px 8px),
              linear-gradient(90deg, #b98b5d, #ead0aa 12% 88%, #b98b5d);
  box-shadow: inset 0 5px 14px #4c2b2660, 0 6px 12px #5e3e2c38;
}
.featured-page .featured-card {
  border-color: #785332;
  border-radius: 5px;
  background: #fffaf1;
  box-shadow: 0 3px 8px #49271648;
}
.featured-page .featured-image-wrap {
  position: relative;
  padding-bottom: 24px;
  background: repeating-linear-gradient(2deg, #9b6b3c19 0 1px, transparent 1px 7px),
              linear-gradient(90deg, #d1ad7e, #edd9b8 18% 82%, #c9a475);
}
.featured-page .featured-image-wrap::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 14px;
  background: linear-gradient(#edc594 0 3px, #b27a45 3px, #764627);
  box-shadow: 0 4px 6px #4c2f2045;
}
.featured-page .featured-image-wrap img { background: transparent; }
.featured-page .featured-copy { color: #302316; }
.featured-page .featured-source,
.featured-page .featured-description,
.featured-page .featured-posted-date { color: #514436; }
.featured-page .featured-cta { color: #075589; }
