/* Presentation library: independent from the game catalogue and community. */
.materials-app { --materials-ink: #18394e; --materials-muted: #526e82; --materials-line: #dce6ee; background: #fff; }
.materials-header { border-color: #dde5ec; box-shadow: 0 2px 8px #17344905; padding: 18px 28px; min-height: 84px; gap: 20px; }
.materials-brand { gap: 12px; color: #16364b; min-width: 0; }
.materials-brand-mark { width: 42px; height: 42px; border: 0; border-radius: 12px; background: #edf3f7; color: #365873; }
.materials-brand-name { color: #16364b; font-size: 20px; font-weight: 750; line-height: 1.3; }
.materials-brand-subtitle { color: #587082; font-size: 12px; margin-top: 2px; }
.materials-header-actions { gap: 12px; }
.materials-games-link { color: #526778; font-size: 13px; font-weight: 600; white-space: nowrap; }
.materials-main { padding: 32px 24px; }
.materials-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 10px 0 28px; }
.materials-library-eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .14em; color: #556e80; }
.materials-library-heading h1 { color: #18394e; font-size: clamp(26px, 2.2vw, 36px); font-weight: 700; letter-spacing: -.035em; margin: 6px 0 8px; line-height: 1.3; }
.materials-library-heading p { color: #526e82; font-size: 14px; margin: 0; }
.materials-library-actions { display: flex; gap: 10px; flex-shrink: 0; }
.materials-app .btn { border-radius: 9px; font-weight: 600; }
.materials-app .btn-primary { background: #244963; border-color: #244963; color: #fff; }
.materials-app .btn-primary:hover { background: #193b54; border-color: #193b54; }
.materials-library-actions .btn { font-size: 13px; min-height: 44px; }
.materials-library-actions .btn-secondary { background: #fff; color: #526b7e; border-color: #dfe7ee; }
.materials-tabs { display: flex; gap: 26px; border-bottom: 1px solid #dce6ee; margin: 0 0 24px; background: transparent; padding: 0; border-radius: 0; }
.materials-tabs .btn { color: #526e82; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; padding: 12px 2px 16px; font-size: 15px; font-weight: 600; box-shadow: none; }
.materials-tabs .btn[aria-pressed="true"] { color: #244963; border-bottom-color: #244963; background: transparent; box-shadow: none; }
.materials-tabs .btn:hover { color: #17394e; background: #f7f9fb; }
.materials-toolbar { grid-template-columns: minmax(180px, 1.5fr) minmax(120px, .7fr) minmax(160px, 1fr) auto; gap: 16px; padding: 18px; border-radius: 12px; margin-bottom: 0; }
.materials-toolbar label { color: #576e80; font-size: 12px; font-weight: 600; }
.materials-toolbar input, .materials-toolbar select { font-size: 14px; background: #fafcfd; margin-top: 8px; min-height: 44px; border-color: #dfe7ee; border-radius: 8px; }
.materials-toolbar .btn { min-height: 44px; font-size: 13px; background: #fff; border-color: #dfe7ee; color: #526b7e; }
.materials-section-context { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.materials-intro { margin: 20px 0 16px; }
.materials-intro .materials-count { padding: 0; margin: 0; border: 0; background: transparent; color: #526e82; font-size: 13px; font-weight: 400; }
#materials-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.material-card { border-radius: 14px; box-shadow: 0 3px 10px #17344904; overflow: visible; }
.material-card:hover, .material-card:focus-within { border-color: #b8ccdb; box-shadow: 0 6px 20px #1734490a; }
.material-card-cover { position: relative; height: 145px; min-height: 0; display: grid; place-items: center; padding: 0; gap: 0; background: linear-gradient(135deg, #e9f1f7, #f3f7fa); border-bottom: 1px solid #e4edf3; border-radius: 14px 14px 0 0; overflow: hidden; }
.material-card-cover::after { display: none; }
.material-card:nth-child(3n+2) .material-card-cover { background: linear-gradient(135deg, #edf4ed, #f5f8f0); }
.material-card:nth-child(3n) .material-card-cover { background: linear-gradient(135deg, #f5eee6, #fbf7f0); }
.material-cover-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 132px; height: 94px; background: #fff; border: 1px solid #d6e2ec; border-radius: 7px; box-shadow: 7px 7px 0 #aec4d326; transform: rotate(-3deg); color: #668aa5; }
.material-cover-icon svg { width: 30px; height: 30px; }
.material-cover-line { width: 48px; height: 3px; background: #d7e4ed; border-radius: 2px; }
.material-cover-line.short { width: 34px; background: #e6eef4; }
.material-cover-format { position: absolute; right: 14px; top: 14px; z-index: 2; font-size: 11px; color: #526e82; background: #ffffffb3; padding: 5px 8px; border-radius: 6px; }
.material-card-body { padding: 20px; gap: 12px; }
.material-card-badges { flex-wrap: wrap; gap: 8px; color: #526e82; font-size: 12px; min-width: 0; }
.material-grade-badge { flex-shrink: 0; background: #f1f5f8; color: #526e82; border-radius: 5px; padding: 4px 6px; font-weight: 400; }
.material-video-badge { flex-shrink: 0; }
.material-card-subject { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
.material-card h4 { font-size: 20px; line-height: 1.4; color: #17394e; font-weight: 650; letter-spacing: 0; }
.material-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; color: #526e82; line-height: 1.55; }
.material-author { font-size: 13px; color: #567085; margin: 0; }
.material-author:hover { color: #244963; }
.material-card .material-actions { padding-top: 8px; border: 0; gap: 8px; align-items: center; flex-wrap: wrap; }
.material-card .material-actions .btn { font-size: 13px; min-height: 40px; padding: 8px 12px; }
.material-card .material-actions .btn-primary { flex: none; }
.material-card .material-actions .btn-secondary { background: #fff; color: #526b7e; border-color: #dfe7ee; }
.material-card-menu { position: relative; margin-left: auto; }
.material-card-menu summary { list-style: none; display: grid; place-items: center; width: 36px; height: 40px; border-radius: 8px; color: #526e82; border: 1px solid #dfe7ee; cursor: pointer; }
.material-card-menu summary::-webkit-details-marker { display: none; }
.material-card-menu summary svg { width: 18px; height: 18px; fill: currentColor; }
.material-card-menu[open] summary { background: #edf3f7; }
.material-card-menu-items { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 20; background: #fff; border: 1px solid #dce6ee; border-radius: 10px; padding: 5px; width: 200px; box-shadow: 0 8px 30px #17344920; }
.material-card .material-actions .material-card-menu-items .btn { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: #34566f; padding: 11px 10px; border-radius: 6px; white-space: normal; }
.material-card .material-actions .material-card-menu-items .btn:hover { background: #f1f5f8; }
.material-card .material-actions .material-card-menu-items .material-remove { color: #b7443b; }
.materials-footer-note { color: #526e82; }
.materials-app :focus-visible { outline: 3px solid #6c9ab8; outline-offset: 3px; }
@media (max-width: 980px) {
  .materials-toolbar { grid-template-columns: 1.5fr 1fr 1fr; }
  .materials-toolbar .btn { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 700px) {
  .materials-header { padding: 12px 14px; min-height: 0; gap: 14px; }
  .materials-brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .materials-brand-name { font-size: 17px; }
  .materials-brand-subtitle { font-size: 11px; }
  .materials-header-actions { width: 100%; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .materials-header-actions .btn { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .materials-main { padding: 24px 14px; }
  .materials-library-heading { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 4px; margin-bottom: 22px; }
  .materials-library-heading h1 { font-size: 27px; }
  .materials-library-heading p { font-size: 13px; line-height: 1.6; }
  .materials-library-actions { width: 100%; }
  .materials-library-actions .btn { flex: 1; font-size: 13px; padding: 10px 12px; }
  .materials-tabs { gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
  .materials-tabs .btn { font-size: 13px; padding-bottom: 13px; }
  .materials-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 14px; }
  .materials-search-label { grid-column: 1 / -1; }
  .materials-toolbar .btn { grid-column: 1 / -1; min-height: 36px; }
  #materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .material-card { border-radius: 12px; }
  .material-card-cover { height: 74px; border-radius: 12px 12px 0 0; }
  .material-cover-icon { width: 64px; height: 48px; gap: 4px; box-shadow: 4px 4px 0 #aec4d326; }
  .material-cover-icon svg { width: 18px; height: 18px; }
  .material-cover-line { width: 26px; height: 2px; }
  .material-cover-line.short { width: 18px; }
  .material-cover-format { right: 6px; top: 6px; font-size: 10px; padding: 2px 6px; }
  .material-card-body { padding: 10px; gap: 6px; }
  .material-card-badges { gap: 4px; font-size: 10.5px; }
  .material-grade-badge { padding: 2px 5px; font-size: 10.5px; }
  .material-video-badge { padding: 2px 5px; font-size: 10px; }
  .material-card h4 { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .material-description { font-size: 11px; line-height: 1.35; -webkit-line-clamp: 2; }
  .material-author { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .material-card .material-actions { padding-top: 6px; gap: 5px; flex-direction: column; align-items: stretch; }
  .material-card .material-actions .btn { font-size: 11.5px; min-height: 34px; padding: 5px 8px; width: 100%; justify-content: center; }
  .material-card-menu { margin-left: 0; align-self: flex-end; width: 100%; }
  .material-card-menu summary { width: 100%; height: 32px; }
  .material-card-menu-items { width: min(180px, calc(100vw - 40px)); }
}
