/* Material-source picker */
#materialGuide {margin-top:0}
#materialGuide #selection:empty {display:none}
.source-card-grid {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(6px,1.4vw,17px);
 margin-top:clamp(20px,3vw,30px);
}
.source-card-grid .source-card {
 --scene:#f1e7d7;--accent:#a34a1d;--edge:#e7d4b7;
 position:relative;isolation:isolate;min-width:0;overflow:hidden;
 display:flex;flex-direction:column;align-items:stretch;gap:0;
 border-radius:18px;padding:0;border:1px solid var(--edge);
 background:#fffefa;text-align:left;color:var(--ink);
}
.source-card-grid .source-course {
 --scene:#dce4df;--accent:#60529b;--edge:#d9d4e8;
}
.source-card-grid .source-weak {
 --scene:#e5eae5;--accent:#1f7355;--edge:#c7dfd0;
}
.source-card-grid .source-card[aria-pressed="true"] {
 border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);
}
.source-card .source-art {
 position:relative;display:block;isolation:isolate;overflow:hidden;
 aspect-ratio:3/2;margin:5px 5px 0;border-radius:13px;
 background:var(--scene);
}
.source-art .source-hero {
 display:block;width:100%;height:100%;object-fit:cover;object-position:center 52%;
}
.source-caption {
 display:block;flex:1;padding:13px clamp(10px,1.5vw,20px) 15px;
 font-size:clamp(.86rem,1.45vw,1.06rem);font-weight:650;line-height:1.52;overflow-wrap:anywhere;text-wrap:balance;
}
.source-check {
 position:absolute;top:12px;right:12px;width:20px;height:20px;background:#fff9;
 border:1.5px solid #50635b65;border-radius:50%;
}
.source-card[aria-pressed="true"] .source-check {background:var(--accent);border-color:var(--accent)}
.source-card[aria-pressed="true"] .source-check::after {
 content:"";position:absolute;left:5px;top:3px;width:5px;height:9px;
 border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg);
}
.source-card:focus-visible {outline:3px solid #9e590b;outline-offset:3px}
.source-card-grid[data-motion="false"]~#selection .book-face img {transition:none;transform:none}
@media (hover:hover) {
 .source-card-grid .source-card:hover {border-color:var(--accent);background:#fff}
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) {
 .source-card-grid[data-motion="true"] .source-card {transition:transform .2s,box-shadow .2s,border-color .2s}
 .source-card-grid[data-motion="true"] .source-card:hover {transform:translateY(-3px);box-shadow:0 6px 18px #1d493317}
 .source-card-grid[data-motion="true"] .source-hero {transition:transform .22s ease-out}
 .source-card-grid[data-motion="true"] .source-card:hover .source-hero {transform:scale(1.055)}
}
@media(max-width:540px){
 .source-card-grid .source-card {border-radius:12px}
 .source-card .source-art {margin:3px 3px 0;border-radius:9px}
 .source-caption {padding:8px 7px 10px;font-size:.83rem}
 .source-check {width:16px;height:16px;right:7px;top:7px}
 .source-card[aria-pressed="true"] .source-check::after {left:4px;top:2px;width:4px;height:7px}
}

.brand-loading {
 display:inline-flex;align-items:center;gap:.65rem;min-height:44px;color:var(--muted);
}
.brand-loading img {
 border-radius:7px;flex:none;
}
@media(prefers-reduced-motion:no-preference) {
 .brand-loading[data-motion="true"] img {animation:guide-loading 1.05s ease-in-out infinite}
}
@keyframes guide-loading {
 0%,100% {transform:scale(.93);opacity:.58}
 50% {transform:scale(1.08);opacity:1}
}
