/* Cover libraries share the same shelf rhythm on phone and desktop. */
.cc-cover-library {
  --shelf-ink: #f3f3e5;
  --shelf-muted: #b8c7bc;
  box-sizing: border-box;
  padding: clamp(16px, 2.7vw, 28px);
  margin: 24px 0;
  min-width: 0;
  color: var(--shelf-ink);
  border: 1px solid #365649;
  border-radius: 18px;
  background: radial-gradient(ellipse at 8% 0, #21463755, transparent 64%), #0b211b;
  box-shadow: 0 14px 36px #07181026;
}
.cc-cover-library *, .cc-cover-library *::before, .cc-cover-library *::after { box-sizing: border-box; }
.cc-cover-library .cc-cover-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body .cc-cover-library .cc-cover-heading :is(h1,h2) {
  margin: 0 !important; color: var(--shelf-ink) !important;
  font: 650 clamp(21px, 2.8vw, 30px)/1.15 system-ui, sans-serif !important;
  letter-spacing: -.035em; text-transform: none;
}
body .cc-cover-library p.cc-cover-intro {
  margin: 6px 0 16px !important; max-width: 62ch;
  font: 400 13px/1.5 system-ui, sans-serif !important;
  color: var(--shelf-muted) !important;
}
.cc-cover-library .cc-cover-controls { display: flex; gap: 7px; }
.cc-cover-library .cc-cover-controls[hidden] { display: none; }
.cc-cover-library .cc-cover-controls button {
  width: 44px; min-height: 44px; border: 1px solid #617d6b; border-radius: 50%;
  background: #284a3e70; color: #e0eedc; font-size: 22px; cursor: pointer;
  transition: background-color .18s;
}
.cc-cover-library .cc-cover-controls button:disabled { opacity: .35; cursor: default; }
.cc-cover-library .cc-cover-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(175px, 17vw, 210px);
  align-items: start; gap: clamp(16px, 2.6vw, 30px);
  overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory;
  list-style: none; margin: 0 !important; padding: 10px 4px 20px !important;
  scrollbar-width: thin; scrollbar-color: #799a81 #182f26;
  -webkit-overflow-scrolling: touch;
}
.cc-cover-library .cc-cover-card { min-width: 0; scroll-snap-align: start; margin: 0; padding: 0; list-style: none; }
.cc-cover-library .cc-cover-image {
  display: block; position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 2 / 3; background: #06140f; border-radius: 3px 8px 8px 3px;
  border: 1px solid #bbc09a38;
  box-shadow: 3px 4px 0 #c5c1a93b, 5px 6px 0 #5a655855, 0 13px 16px #0007;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cc-cover-library--flyers .cc-cover-image { aspect-ratio: 9 / 16; }
.cc-cover-library .cc-cover-image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #fff2d20c, #00150b4a 1%, transparent 4%, #fff9eb13 5%, transparent 9%, transparent 97%, #f5edcf20);
}
.cc-cover-library .cc-cover-image img {
  display: block !important; width: 100% !important; height: 100% !important;
  max-height: none !important; margin: 0 !important;
  object-fit: contain !important; border-radius: 0 !important;
  transform: none !important; opacity: 1 !important;
}
body .cc-cover-library h3 {
  margin: 14px 0 3px !important; color: var(--shelf-ink) !important;
  font: 650 14px/1.35 system-ui, sans-serif !important; letter-spacing: -.01em;
}
.cc-cover-library h3 a { color: inherit !important; text-decoration: none; }
body .cc-cover-library p.cc-cover-meta { margin: 0 !important; color: var(--shelf-muted) !important; font: 400 11px/1.5 system-ui, sans-serif !important; }
.cc-cover-library a.cc-cover-action {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  color: #bce6c7 !important; font: 600 12px/1.2 system-ui, sans-serif;
  text-decoration: none; border: 0; background: transparent; padding: 0;
}
.cc-cover-library .cc-cover-options summary {
  min-height: 44px; display: flex; align-items: center; font-size: 11px;
  color: #d3deca; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.cc-cover-library .cc-cover-options a { display: flex; align-items: center; min-height: 44px; font-size: 12px; color: #bce6c7; }
.cc-cover-library .cc-cover-footer { border-top: 1px solid #49645580; padding-top: 9px; margin-top: 4px; }
.cc-cover-library .cc-cover-footer a { display: inline-flex; align-items: center; min-height: 40px; font-size: 12px; color: #d2e4bd !important; text-decoration: none; }
.cc-cover-library :is(a,button,summary,[tabindex]):focus-visible { outline: 2px solid #edd5a0; outline-offset: 3px; }
.cc-cover-library .cc-cover-track:focus-visible { outline-offset: 0; }
@media (hover: hover) {
  .cc-cover-library .cc-cover-image:hover { transform: translateY(-4px); box-shadow: 3px 4px 0 #c5c1a95b, 6px 8px 0 #5a655855, 0 18px 22px #0008; }
  .cc-cover-library .cc-cover-controls button:not(:disabled):hover { background: #456d54; }
}
body.cc-library-page .cc-story-intro { margin: 0 !important; padding: 18px 0 2px !important; }
body.cc-library-page .cc-story-intro h1 { font-size: clamp(27px, 4vw, 40px) !important; line-height: 1.1 !important; margin: 0 0 4px !important; }
body.cc-library-page .cc-story-intro .cc-lead { font-size: 13px !important; line-height: 1.5 !important; margin: 0 !important; }
body.cc-library-page .cc-story-intro + .cc-cover-library { margin-top: 14px; }
body.cc-library-page main.cc-shell { padding-top: 0 !important; }
body.cc-library-page .cc-site-header__inner { padding-block: 10px !important; }
body.cc-showcase-flyers #main .founder-bridge-card { padding: clamp(16px, 3vw, 26px) !important; }
body.cc-showcase-flyers #main .founder-bridge-card > h1 { font-size: clamp(27px,4vw,40px) !important; margin: 0 0 8px !important; line-height: 1.1; }
body.cc-showcase-flyers #main .founder-bridge-card > .eyebrow { margin: 0 0 6px !important; font-size: 11px !important; }
body.cc-showcase-flyers #main .founder-bridge-card > .lead { font-size: 14px !important; line-height: 1.5 !important; margin: 0 !important; }
.cc-flyer-inclusions summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 15px; font-weight: 700; }
.cc-flyer-inclusions .review-service-detail { margin: 10px 0; }
.cc-showcase-flyers .cf-ownership { margin-block: 18px; padding: 18px; }
.cc-showcase-flyers .cf-ownership h2 { font-size: 24px !important; }
.cc-showcase-flyers .cf-ownership p { font-size: 13px !important; }
@media (max-width: 620px) {
  .cc-cover-library { padding: 15px 13px 10px; border-radius: 13px; margin-block: 16px; }
  .cc-cover-library .cc-cover-track { grid-auto-columns: 42%; gap: 17px; }
  .cc-cover-library--flyers .cc-cover-track { grid-auto-columns: 52%; gap: 17px; }
  body .cc-cover-library .cc-cover-heading :is(h1,h2) { font-size: 21px !important; }
  .cc-cover-library .cc-cover-controls { gap: 4px; }
  .cc-cover-library .cc-cover-controls button { width: 38px; min-height: 44px; }
  .cc-cover-library .cc-cover-image { box-shadow: 2px 3px 0 #c5c1a93b, 4px 5px 0 #5a655855, 0 10px 12px #0008; }
  body .cc-cover-library h3 { font-size: 13px !important; margin-top: 11px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-cover-library .cc-cover-image, .cc-cover-library .cc-cover-controls button { transition: none; }
  .cc-cover-library .cc-cover-image:hover { transform: none; }
}

/* The service document theme clears nested section backgrounds. */
body.cc-showcase-flyers #main section.cc-cover-library {
  background: radial-gradient(ellipse at 8% 0, #21463755, transparent 64%), #0b211b !important;
  color: #f3f3e5 !important;
  padding: clamp(16px, 2.7vw, 28px) !important;
  border-color: #365649 !important;
}
body.cc-showcase-flyers #main section.cf-ownership {
  background: #10271e !important;
  color: #f3f3e5 !important;
}
@media (max-width: 620px) {
  body.cc-showcase-flyers #main section.cc-cover-library { padding: 15px 13px 10px !important; }
}
