/* ThriveDeck's resource library: clear destinations, restrained colour, no gates. */
.materials-page { background: #f5f8fa; }
.materials-nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.97); border-bottom: 1px solid #dce6e9; }
.materials-nav nav { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.library-nav-link { margin-left: auto; color: #006c66; font-size: .875rem; font-weight: 700; }
.explore-nav { padding: 10px 16px; border: 1px solid #cddcde; border-radius: 12px; font-weight: 650; font-size: .875rem; }
.library-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 50px 32px; }
.materials-eyebrow { color: #006c66; font-size: .75rem; font-weight: 750; letter-spacing: .12em; margin-bottom: 12px; }
.materials-page h1 { font-size: clamp(2rem,4vw,3.2rem); line-height: 1.13; letter-spacing: -.035em; margin: 0 0 18px; color: #07192f; }
.materials-page h2 { font-size: clamp(1.25rem,2vw,1.7rem); line-height: 1.25; letter-spacing: -.02em; margin: 0; }
.materials-page h3 { font-size: 1.05rem; line-height: 1.4; margin: 0; letter-spacing: -.01em; }
.materials-lede { color: #415766; font-size: 1.1rem; max-width: 38rem; }
.library-stat { display: flex; align-items: center; gap: 16px; padding: 20px 28px; border-radius: 20px; border: 1px solid #b7d5d3; background: linear-gradient(130deg,#e2f3f0,#fff); color: #163e47; flex-shrink: 0; }
.library-stat strong { font-size: 3rem; line-height: 1; letter-spacing: -.06em; }
.library-stat span { font-size: .875rem; line-height: 1.5; }
.material-topics { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; }
.material-topics a { padding: 8px 13px; border: 1px solid #c9d9df; border-radius: 99px; background: white; font-size: .875rem; font-weight: 650; }
.material-topics a:hover { color: #006c66; border-color: #007f78; }
.library-note { color: #536673; font-size: .875rem; margin-bottom: 32px; }
.material-group { scroll-margin-top: 98px; margin-bottom: 36px; }
.material-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.material-group-heading > span, .material-group-heading > a { color: #506977; font-size: .875rem; flex-shrink: 0; }
.material-group-heading > a { text-decoration: underline; text-underline-offset: 4px; }
.material-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.material-card { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: start; gap: 14px; padding: 22px; border: 1px solid #d7e3e8; border-radius: 18px; background: linear-gradient(140deg,#fff 55%,#f0f8f7); box-shadow: 0 4px 10px rgba(5,20,38,.025); transition: border-color .18s, transform .18s, box-shadow .18s; }
.material-card:hover { border-color: #439e96; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5,20,38,.07); }
.material-card > div { display: flex; flex-direction: column; height: 100%; }
.material-card p { color: #536673; font-size: .875rem; line-height: 1.55; margin-block: 8px 18px; }
.material-card-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #006c66; font-size: .875rem; font-weight: 700; margin-top: auto; }
.material-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e6f3f1; color: #006c66; }
.material-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.material-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 20px; border: 1px solid transparent; border-radius: 13px; font: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.45; text-align: center; cursor: pointer; }
.material-action.primary { color: white; background: linear-gradient(110deg,#092e43,#00736c); box-shadow: 0 5px 16px rgba(0,89,81,.15); }
.material-action.primary:hover { background: #005e59; }
.material-action.secondary { color: #0b2748; border-color: #b9d1d3; background: #fff; }
.follow-tiktok { background: #07192f; color: #fff; }
.follow-tiktok svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.library-community { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 30px; border: 1px solid #c8dfdf; border-radius: 22px; background: linear-gradient(120deg,#eaf7f4,#fff); margin: 44px 0 22px; }
.library-community p:not(.materials-eyebrow) { margin-top: 10px; color: #415766; }
.library-community .follow-tiktok { flex-shrink: 0; }
.library-app { display: grid; grid-template-columns: 1fr 170px; gap: 50px; padding: 36px; border-radius: 24px; background: linear-gradient(120deg,#07192f,#064b51); color: white; align-items: center; overflow: hidden; }
.library-app .materials-eyebrow { color: #83ddd1; }
.library-app p:not(.materials-eyebrow) { max-width: 36rem; color: #d0e2e8; margin: 14px 0 22px; }
.library-app .primary { background: white; color: #073944; box-shadow: none; }
.library-app small { display: block; color: #d0e2e8; margin-top: 14px; font-size: .8125rem; }
.library-app img { width: 170px; height: 275px; object-fit: cover; object-position: top; border: 5px solid #42646f; border-radius: 22px; }
.materials-disclaimer { margin: 24px 0 40px; color: #536673; font-size: .8125rem; }
.materials-footer { padding-block: 24px; border-top: 1px solid #dce6e9; display: flex; justify-content: space-between; gap: 20px; color: #536673; font-size: .875rem; }
.materials-footer a { color: #006c66; font-weight: 650; }
.pack-layout { padding-block: 24px 20px; }
.pack-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #536673; font-size: .8125rem; margin-bottom: 24px; }
.pack-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.pack-panel { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); border-radius: 26px; overflow: hidden; border: 1px solid #cbdce2; background: white; box-shadow: 0 16px 42px rgba(5,20,38,.06); }
.pack-copy { padding: clamp(24px,4vw,52px); }
.pack-copy h1 { margin-top: 18px; max-width: 14ch; overflow-wrap: break-word; }
.pack-badge { display: inline-block; padding: 5px 10px; color: #705018; background: #fff5d8; border: 1px solid #e5d6aa; border-radius: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; }
.pack-instruction { margin: 24px 0 14px; color: #415766; }
.open-pack { width: 100%; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.external-folder-note { margin-top: 12px; color: #536673; font-size: .8125rem; }
.pack-sharing { margin-top: 24px; border-top: 1px solid #e3ebee; padding-top: 16px; }
.share-pack { padding: 10px 0; min-height: 44px; border: 0; background: none; color: #006c66; cursor: pointer; font-size: .875rem; font-weight: 650; text-align: left; }
.share-fallback { display: block; color: #415766; font-size: .875rem; margin-top: 8px; }
.share-fallback input { display: block; width: 100%; padding: 10px; border: 1px solid #bccfd7; border-radius: 8px; font: inherit; background: #f5f8fa; color: #07192f; }
.pack-next { padding: clamp(24px,3vw,38px); background: linear-gradient(150deg,#eef9f6,#f7fafb); border-left: 1px solid #d8e6e8; }
.pack-next .material-icon { margin-bottom: 20px; }
.pack-next p:not(.materials-eyebrow) { margin-block: 12px 18px; font-size: .9375rem; color: #415766; }
.pack-next .material-action { width: 100%; }
.pack-next small { display: block; margin-top: 12px; color: #536673; font-size: .75rem; }
.next-divider { display: block; height: 1px; margin-block: 26px; background: #d0e1e3; }
.pack-footnote { margin: 20px 0 38px; max-width: 52rem; color: #536673; font-size: .8125rem; }
.pack-footnote details { margin-top: 14px; }
.pack-footnote summary { cursor: pointer; min-height: 36px; font-weight: 650; color: #294c5c; }
.pack-footnote details p { margin-block: 5px 10px; }
.material-card.compact { align-items: center; }
.material-card.compact .material-card-label { margin-top: 10px; }
.materials-toast { position: fixed; z-index: 30; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: min(540px,calc(100% - 32px)); border-radius: 14px; color: white; background: #07192f; padding: 14px 18px; font-size: .875rem; box-shadow: 0 8px 30px #07192f33; }
.materials-toast:empty, [hidden] { display: none !important; }
@media(max-width:1000px) { .material-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
 .materials-nav nav { gap: 14px; min-height: 70px; }
 .materials-nav .brand span { font-size: 17px; }
 .materials-nav .brand img { width: 32px; height: 32px; }
 .materials-nav .explore-nav { display: none; }
 .library-intro { align-items: flex-start; padding-block: 32px 24px; gap: 18px; }
 .library-stat { padding: 13px; flex-direction: column; gap: 6px; text-align: center; }
 .library-stat strong { font-size: 2rem; }
 .library-stat span { font-size: .75rem; }
 .pack-panel { grid-template-columns: minmax(0,1fr); }
 .pack-next { border-left: 0; border-top: 1px solid #d8e6e8; }
 .pack-copy h1 { max-width: none; }
 .library-community { flex-direction: column; align-items: stretch; padding: 24px; }
 .library-app { grid-template-columns: 1fr; padding: 26px; gap: 26px; }
 .library-app img { display: none; }
}
@media(max-width:480px) {
 .materials-page .container { width: calc(100% - 32px); }
 .material-grid { grid-template-columns: minmax(0,1fr); }
 .material-card { padding: 20px; }
 .library-stat { display: none; }
 .library-intro h1 { max-width: 12ch; }
 .material-group-heading { align-items: center; }
 .material-group-heading h2 { font-size: 1.2rem; }
 .materials-footer { flex-direction: column; gap: 8px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } .material-card { transition: none; } .material-card:hover { transform: none; } }
