/* ThriveDeck's resource library: clear destinations, restrained colour, no gates. */
.materials-page { background: #f5f8fa; font-size: .9375rem; line-height: 1.55; }
.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: 20px; min-height: 64px; }
.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: 20px; padding-block: 28px 20px; }
.materials-eyebrow { color: #006c66; font-size: .6875rem; font-weight: 750; letter-spacing: .1em; margin-bottom: 8px; }
.materials-page h1 { font-size: clamp(1.625rem,3vw,2.25rem); line-height: 1.16; letter-spacing: -.03em; margin: 0 0 12px; color: #07192f; }
.materials-page h2 { font-size: clamp(1.0625rem,1.6vw,1.375rem); line-height: 1.3; letter-spacing: -.02em; margin: 0; }
.materials-page h3 { font-size: .9375rem; line-height: 1.35; margin: 0; letter-spacing: -.01em; }
.material-card h3, .pack-copy h1 { text-transform: uppercase; font-weight: 750; overflow-wrap: anywhere; }
.materials-lede { color: #415766; font-size: .9375rem; 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: 6px; padding-bottom: 12px; }
.material-topics a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid #c9d9df; border-radius: 12px; background: white; font-size: .8125rem; font-weight: 650; }
.material-topics a:hover { color: #006c66; border-color: #007f78; }
.library-note { color: #536673; font-size: .8125rem; margin-bottom: 20px; }
.material-group { scroll-margin-top: 80px; margin-bottom: 24px; }
.material-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.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: 10px; }
.material-card { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: start; gap: 10px; padding: 16px; border: 1px solid #d7e3e8; border-radius: 14px; 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: .8125rem; line-height: 1.5; margin-block: 5px 10px; }
.material-card-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #006c66; font-size: .8125rem; font-weight: 700; margin-top: auto; }
.material-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e6f3f1; color: #006c66; }
.material-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.material-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 11px; font: inherit; font-size: .875rem; font-weight: 700; line-height: 1.4; 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: 16px; }
.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(18px,3vw,30px); }
.pack-copy h1 { margin-top: 12px; max-width: 22ch; 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: 16px 0 10px; color: #415766; font-size: .875rem; }
.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: 16px; border-top: 1px solid #e3ebee; padding-top: 6px; }
.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(18px,2.5vw,26px); background: linear-gradient(150deg,#eef9f6,#f7fafb); border-left: 1px solid #d8e6e8; }
.pack-next .material-icon { margin-bottom: 12px; }
.pack-next p:not(.materials-eyebrow) { margin-block: 8px 12px; font-size: .875rem; 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: 16px; background: #d0e1e3; }
.pack-footnote { margin: 20px 0 38px; max-width: 52rem; color: #536673; font-size: .8125rem; }
.pack-launch { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px; margin-top: 22px; border: 1px solid #bedbd6; border-radius: 20px; background: linear-gradient(115deg,#eaf7f3,#fff); }
.pack-launch p:not(.materials-eyebrow) { margin-top: 10px; color: #415766; font-size: .9375rem; }
.pack-launch .material-action { flex-shrink: 0; }
.materials-follow-prompt { position: fixed; z-index: 25; right: 20px; bottom: 20px; width: min(370px,calc(100% - 32px)); padding: 24px; border: 1px solid #b8d7d5; border-radius: 22px; background: linear-gradient(135deg,#fff,#edf8f5); box-shadow: 0 16px 60px #07192f38; }
.materials-follow-prompt .materials-eyebrow { padding-right: 32px; font-size: .6875rem; }
.materials-follow-prompt h2 { font-size: 1.25rem; }
.materials-follow-prompt p:not(.materials-eyebrow) { margin: 12px 0 16px; color: #415766; font-size: .9375rem; }
.materials-follow-prompt .material-action { width: 100%; }
.materials-follow-prompt small { display: block; color: #536673; font-size: .75rem; margin-top: 10px; }
.follow-prompt-close { position: absolute; top: 7px; right: 7px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #183e4a; font-size: 26px; cursor: pointer; }
.follow-prompt-close:hover { background: #dbece8; }
@media(max-width:700px) { .pack-launch { flex-direction: column; align-items: stretch; padding: 24px; } .materials-follow-prompt { right: 16px; bottom: 16px; padding: 20px; } }
.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; } }

/* Compact reading rhythm; tap targets remain at least 44px. */
.shortcut-button { margin-top: 8px; }
.shortcut-note { margin: 7px 0 12px; font-size: .8125rem; color: #415766; line-height: 1.5; }
.shortcut-dialog { position: fixed; inset: 0; width: min(520px,calc(100% - 32px)); max-height: 88dvh; margin: auto; padding: 22px; border: 1px solid #c9dcdf; border-radius: 20px; color: #102b3c; background: #fff; overflow-y: auto; box-shadow: 0 24px 80px #07192f44; }
.shortcut-dialog::backdrop { background: #07192fa8; backdrop-filter: blur(5px); }
.shortcut-dialog header { display: flex; align-items: center; gap: 10px; }
.shortcut-dialog h2 { flex: 1; margin: 0; font-size: 1.2rem; line-height: 1.3; }
.shortcut-dialog header button { flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #102b3c; background: #edf3f4; font-size: 26px; cursor: pointer; }
.shortcut-dialog .shortcut-pack { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: #006b68; margin: 6px 0 14px; }
.shortcut-dialog section { border-top: 1px solid #e0e9eb; padding-top: 14px; margin-top: 12px; }
.shortcut-dialog h3 { font-size: .9375rem; margin-bottom: 8px; }
.shortcut-dialog ol { padding-left: 20px; font-size: .875rem; line-height: 1.55; }
.shortcut-dialog li + li { margin-top: 6px; }
.shortcut-dialog [data-home-status]:empty { display: none; }
.shortcut-dialog [data-home-status] { padding: 10px; background: #e3f5ef; border-radius: 10px; font-size: .875rem; }
.materials-page:has(.shortcut-dialog[open]) { overflow: hidden; }
.shortcut-dialog .material-action { width: 100%; }
.materials-nav .brand img { width: 32px; height: 32px; }
.materials-nav .brand span { font-size: 18px; }
.library-stat { padding: 14px 18px; gap: 12px; border-radius: 16px; }
.library-stat strong { font-size: 2.25rem; }
.library-community, .library-app { padding: 22px; border-radius: 18px; gap: 20px; }
.library-community { margin-block: 28px 16px; }
.library-app p:not(.materials-eyebrow) { margin-block: 10px 16px; }
.pack-panel { border-radius: 18px; }
.pack-breadcrumb { gap: 7px; margin-bottom: 16px; font-size: .75rem; }
.pack-footnote { margin-block: 16px 24px; }
.pack-launch { gap: 16px; padding: 18px; margin-top: 16px; border-radius: 16px; }
.pack-launch p:not(.materials-eyebrow) { font-size: .875rem; margin-top: 6px; }
.materials-follow-prompt { width: min(340px,calc(100% - 32px)); padding: 18px; border-radius: 16px; }
.materials-follow-prompt h2 { font-size: 1.125rem; }
.materials-follow-prompt p:not(.materials-eyebrow) { font-size: .875rem; margin-block: 8px 12px; }
.materials-follow-prompt small { margin-top: 6px; }
.materials-disclaimer { margin-block: 18px 24px; }
.materials-footer { padding-block: 18px; font-size: .8125rem; }
@media(max-width:700px) {
 .materials-nav nav { min-height: 60px; }
 .library-intro { padding-block: 22px 16px; }
 .material-topics { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scroll-snap-type: x proximity; }
 .material-topics a { flex-shrink: 0; scroll-snap-align: start; }
 .pack-next > .material-icon { display: none; }
}
@media(max-width:480px) {
 .material-card { padding: 14px; }
 .library-intro h1 { max-width: none; }
 .material-group-heading h2 { font-size: 1.0625rem; }
 .material-group-heading > span, .material-group-heading > a { font-size: .8125rem; }
}
