/* Shared presentation for Masters, Patterns, and Coaches; chrome stays in site.js. */
.library-page {
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: var(--font-display);
  --library-ink: #20212a;
  --library-muted: #786f67;
  --library-border: #eee5d9;
  color: var(--library-ink);
  background: #fffdf9;
  -webkit-font-smoothing: antialiased;
}
.library-page [hidden] { display: none !important; }
.library-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.library-page h1, .library-page h2, .library-page h3, .library-page p { margin: 0; }
.library-page :focus-visible { outline: 3px solid #93411b; outline-offset: 4px; }
.library-page button { font-family: 'Nunito', sans-serif; }
.library-page .pressBtn, .library-page .bannerBtn { font-family: 'Nunito', sans-serif; }
.library-page .accountBtn { font-family: 'Baloo 2', 'Nunito', sans-serif; }
.library-page main { padding: 42px 44px 50px; align-items: stretch; background: radial-gradient(ellipse 680px 420px at 85% 10%, #fff0d970, transparent 78%); }
.library-page #wrap, .library-page .pageIntro { width: 100%; max-width: var(--page-width); margin-inline: auto; }
.library-page .pageIntro { padding: 0; gap: 15px; align-items: center; margin-bottom: 29px; }
.library-page .pageEmblem { width: 42px; height: 45px; flex: 0 0 42px; }
.library-page .pageIntro h1 { font-size: clamp(28px, 3vw, 39px); font-weight: 800; letter-spacing: -.05em; line-height: 1.14; }
.library-page .pageSubtitle { font-size: 13px; line-height: 1.7; color: var(--library-muted); margin-top: 10px; }
.library-eyebrow { font-size: 9px; font-weight: 800; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; color: #b14719; }
.pageIntro .library-eyebrow { margin-bottom: 10px; }
.library-back { margin-left: auto; white-space: nowrap; }
.library-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.lib-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.library-page .skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 20px; background: white; border-radius: 10px; color: var(--library-ink); transform: translateY(-160%); }
.library-page .skip-link:focus { transform: translateY(0); }
.library-page #siteHeader { --header-pad: max(44px, calc((100% - 1200px) / 2)); padding: 19px var(--header-pad); border-bottom: 1px solid #f3ece1; background: #fffdf9; flex-wrap: nowrap; z-index: 10; }
.library-page .siteLogo { font-size: 25px; font-weight: 800; letter-spacing: -.065em; gap: 9px; color: var(--library-ink); }
.library-page .siteLogoMark { height: 47px; }
.library-page .siteHeaderRight { gap: 25px; }
@media (min-width: 1080px) {
  .library-page .siteNav, .library-page #siteHeader.navOpen .siteNav { display: flex; position: static; flex-direction: row; gap: 20px; min-width: 0; border: 0; padding: 0; background: transparent; box-shadow: none; }
  .library-page .siteNav a { padding: 8px 0; border-radius: 0; font-size: 12px; font-weight: 600; }
  .library-page .siteNav a:hover, .library-page .siteNav a.active { background: transparent; color: #d44308; }
  .library-page .siteNav a.active { box-shadow: 0 2px 0 #d44308; }
  .library-page .navToggle { display: none; }
}
.library-page #siteFooter { background: #fffdf9; border-color: #f3ece1; padding: 21px 24px 25px; }
.library-page .footerSignoff { color: #8d8074; font-size: 12px; }
.library-page .footerLinks { margin-top: 13px; gap: 6px 24px; }
.library-page .footerLinks a { color: #7b7168; font-size: 10px; }
.library-page .footerLinks a + a::before { display: none; }
.library-page .demoBanner, .library-notice { display: flex; align-items: center; gap: 12px; border: 1px solid #efdbbb; background: #fff6e7; border-radius: 13px; padding: 13px 17px; margin: 0 0 24px; box-shadow: none; }
.library-page .demoBanner { border: 2px solid #f0a052; background: #fff1de; }
.library-page .demoTag, .library-notice-tag { border: 0; background: #fbe1b7; color: #87531b; border-radius: 6px; font-size: 9px; padding: 5px 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.library-page .demoTag { background: #ed8123; color: #fff; font-size: 11px; padding: 6px 10px; }
.library-page .demoBanner .demoCopy { color: #5e3d1c; font-weight: 600; font-size: 14px; line-height: 1.6; flex-basis: 280px; }
.library-notice p { color: #7e6753; font-size: 11px; line-height: 1.6; }
.library-page .demoBanner [data-analysis-progress] { font-size: 10px; line-height: 1.5; }
.library-page #error:empty { display: none; }
.library-page #error { padding: 19px; border: 1px solid #ecc5b3; border-radius: 14px; background: #fff0e8; color: #9d3021; font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.library-loading, .library-page #empty { display: flex; align-items: center; gap: 12px; padding: 32px 26px; border: 1px solid var(--library-border); border-radius: 19px; background: #fff; color: #947b62; font-size: 13px; line-height: 1.8; grid-column: 1 / -1; }
.loading-dot { width: 10px; height: 10px; flex-shrink: 0; background: #ed8123; border-radius: 50%; box-shadow: 0 0 0 5px #fff0d9; }

.library-hero { display: grid; grid-template-columns: minmax(0, 1fr) 350px; position: relative; border: 1px solid #efddc4; border-radius: 23px; background: linear-gradient(110deg, #fffaf0, #fff1d8); overflow: hidden; margin-bottom: 26px; }
.hero-copy { position: relative; z-index: 1; padding: 32px 36px 30px; }
.hero-copy .library-eyebrow { color: #996a36; margin-bottom: 14px; }
.hero-copy h2 { font-size: clamp(33px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.06em; line-height: 1.13; }
.hero-copy h2 span { color: #d44308; }
.hero-copy > p:not(.library-eyebrow) { font-size: 12px; line-height: 1.8; color: #8b745c; margin-top: 15px; max-width: 570px; }
.hero-art { position: relative; min-height: 239px; }
.hero-art::before { content: ''; position: absolute; width: 235px; height: 235px; background: #f9d89b80; border-radius: 50%; bottom: -60px; right: 77px; }
.hero-art img { position: absolute; width: 250px; height: 250px; object-fit: contain; right: 88px; bottom: -49px; transform: rotate(-5deg); z-index: 1; }
.hero-art p { position: absolute; right: 28px; top: 51px; font: 600 25px/1.1 'Caveat', cursive; color: #8f592d; transform: rotate(7deg); z-index: 2; }
.hero-spark { position: absolute; top: 26px; right: 76px; width: 21px; height: 21px; fill: #f5b739; stroke: none; }
.hero-metrics { position: relative; z-index: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 19px 36px 21px; background: #fffcf6; border-top: 1px solid #f0dfc5; }
.hero-metric { padding-right: 20px; }
.hero-metric + .hero-metric { border-left: 1px solid #eee2cf; padding-left: 27px; }
.hero-metric strong { display: block; font-size: 27px; line-height: 1.3; letter-spacing: -.05em; font-weight: 800; color: #684b30; }
.hero-metric span { display: block; font-size: 10px; color: #a18467; line-height: 1.6; margin-top: 4px; }
.library-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 31px 0 19px; }
.library-section-heading h2 { font-size: 25px; font-weight: 800; letter-spacing: -.045em; line-height: 1.3; margin-top: 8px; }
.library-section-heading > p { max-width: 300px; color: #94806d; font-size: 11px; line-height: 1.8; }
.library-search { position: relative; display: flex; align-items: center; width: 300px; max-width: 100%; }
.library-search .lib-icon { position: absolute; left: 12px; width: 16px; height: 16px; color: #b79c7e; pointer-events: none; }
.library-search input { width: 100%; min-width: 0; padding: 11px 13px 11px 37px; border: 1px solid #e8dccb; border-radius: 11px; background: #fff; color: #78634e; font: 600 11px 'Manrope', sans-serif; }
.library-search input::placeholder { color: #b79c7e; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 23px; flex-wrap: wrap; }
.library-toolbar .pressBtn { font-size: 11px; padding: 9px 14px; }
.library-filter-buttons { display: flex; gap: 9px; flex-wrap: wrap; }
.library-filter-buttons .pressBtn[aria-pressed="true"] { background: #fff0d8; border-color: #edc18a; color: #a35d25; box-shadow: 0 4px 0 #dfb278; }
.library-filter-buttons .pressBtn[aria-pressed="true"]:active { box-shadow: 0 0 0 #dfb278; }
.library-results { color: #a18b74; font-size: 10px; line-height: 1.7; margin-bottom: 14px !important; }
.library-signoff { display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 22px/1.3 'Caveat', cursive; color: #a18a74; text-align: center; margin-top: 34px !important; }
.library-signoff .lib-icon { width: 14px; height: 14px; fill: #eab667; stroke: none; }

@media (max-width: 980px) {
  .library-page main { padding: 32px 24px 42px; }
  .library-page #siteHeader { --header-pad: 24px; }
  .library-back { font-size: 11px; padding: 9px 13px; }
  .library-hero { grid-template-columns: minmax(0, 1fr) 260px; }
  .hero-copy { padding: 28px; }
  .hero-copy h2 { font-size: 37px; }
  .hero-art img { width: 225px; height: 225px; right: 37px; bottom: -34px; }
  .hero-art::before { right: 35px; width: 220px; height: 220px; }
  .hero-art p { right: 15px; top: 32px; font-size: 23px; }
  .hero-spark { right: 47px; top: 13px; width: 17px; height: 17px; }
  .hero-metrics { padding-inline: 28px; }
  .hero-metric + .hero-metric { padding-left: 19px; }
  .library-section-heading > p { max-width: 210px; }
}
@media (max-width: 680px) {
  .library-page main { padding: 27px 20px 36px; }
  .library-page #siteHeader { --header-pad: 20px; padding-block: 14px; }
  .library-page .siteLogo { font-size: 23px; }
  .library-page .siteLogoMark { height: 41px; }
  .library-page .siteHeaderRight { gap: 10px; }
  .library-page .navToggle { width: 36px; height: 36px; background: transparent; border-color: #e8dfd2; }
  .library-page .pageIntro { flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
  .library-page .pageEmblem { display: none; }
  .library-page .pageIntro h1 { font-size: 32px; max-width: 360px; }
  .library-page .pageSubtitle { font-size: 12px; line-height: 1.8; margin-top: 12px; max-width: 360px; }
  .pageIntro .library-eyebrow { margin-bottom: 14px; }
  .library-back { margin-left: 0; font-size: 11px; }
  .library-page .demoBanner, .library-notice { padding: 13px; gap: 9px; margin-bottom: 21px; flex-wrap: wrap; }
  .library-page .demoBanner .demoCopy { font-size: 13px; flex-basis: calc(100% - 60px); }
  .library-notice p { font-size: 10px; }
  .library-hero { grid-template-columns: minmax(0, 1fr); border-radius: 19px; margin-bottom: 21px; }
  .hero-copy { padding: 25px 24px 0; }
  .hero-copy .library-eyebrow { font-size: 8px; }
  .hero-copy h2 { font-size: 36px; }
  .hero-copy > p:not(.library-eyebrow) { font-size: 11px; line-height: 1.8; margin-top: 13px; }
  .hero-art { min-height: 163px; margin-top: 18px; }
  .hero-art img { width: 225px; height: 225px; right: auto; left: -8px; bottom: -52px; }
  .hero-art::before { width: 220px; height: 220px; right: auto; left: -13px; bottom: -110px; }
  .hero-art p { right: 20px; top: 44px; font-size: 24px; }
  .hero-spark { right: 34px; top: 15px; width: 18px; height: 18px; }
  .hero-metrics { padding: 18px 24px; gap: 10px; }
  .hero-metric { padding-right: 0; }
  .hero-metric + .hero-metric { padding-left: 11px; }
  .hero-metric strong { font-size: 23px; }
  .hero-metric span { font-size: 10px; line-height: 1.7; }
  .library-section-heading { display: block; margin-top: 27px; }
  .library-section-heading h2 { font-size: 24px; }
  .library-section-heading > p { max-width: none; font-size: 11px; margin-top: 10px; }
  .library-toolbar { gap: 17px; margin-bottom: 20px; }
  .library-search { width: 100%; }
  .library-search input { font-size: 12px; padding-block: 13px; }
  .library-filter-buttons { gap: 8px; }
  .library-toolbar .pressBtn { font-size: 10px; padding: 9px 12px; }
  .library-signoff { font-size: 19px; gap: 5px; margin-top: 27px !important; }
}
@media (max-width: 360px) {
  .library-page main { padding-inline: 16px; }
  .library-page .pageIntro h1 { font-size: 28px; }
  .hero-copy { padding-inline: 20px; }
  .hero-copy h2 { font-size: 31px; }
  .hero-art img { width: 195px; height: 195px; left: -17px; bottom: -39px; }
  .hero-art { min-height: 145px; }
  .hero-art p { font-size: 22px; right: 14px; }
  .hero-metrics { padding-inline: 20px; }
  .hero-metric + .hero-metric { padding-left: 9px; }
  .hero-metric strong { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .library-page *, .library-page *::before, .library-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
