/* Compact sound-library / instrument-atlas entries, using the existing card grid. */
.portal .portal-learning-grid > :is(#sounds,#instrument-atlas) {
  width:100%;min-width:0;max-width:none;margin:0;padding:0;
}
.portal .portal-learning-card.portal-sound-library-card {
  --learning-accent:#d3a3b7;--learning-line:#d3a3b73d;--learning-tint:#d3a3b711;background:#241f24;
}
.portal .portal-learning-card.portal-instrument-card {
  --learning-accent:#a5b9d7;--learning-line:#a5b9d73d;--learning-tint:#a5b9d711;background:#1d232d;
}
.portal .portal-module-preview.sound-home-preview {display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--learning-accent);background:#19161b;}
.portal .sound-home-search {display:flex;align-items:center;gap:8px;min-height:31px;padding:6px 9px;border:1px solid var(--learning-line);border-radius:6px;background:var(--learning-tint);font-size:11px;line-height:1.4;}
.portal .sound-home-search > span {flex:1;min-width:0;}
.portal .sound-home-search svg {flex-shrink:0;width:16px;height:16px;margin:0;}
.portal .sound-home-categories {display:flex;justify-content:space-between;gap:6px;font-size:10px;color:#beb0bb;}
.portal .sound-home-categories > span {padding:1px 3px;}
.portal .portal-module-preview.instrument-home-preview {background:#131a24;color:var(--learning-accent);}
.portal .instrument-home-preview > div > span {flex:1;text-align:center;}
.portal .instrument-home-preview svg {height:62px;margin-top:1px;}
.portal .sound-home-footer > span {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.portal .sound-home-footer > a,.portal .instrument-home-footer > a {flex-shrink:0;}
/* Distinct but subdued: harmony is purple-grey; music styles retain olive green. */
.portal .portal-learning-card.portal-chord-card {--learning-accent:#c2b2d4;--learning-line:#c2b2d440;--learning-tint:#c2b2d412;background:#24202a;}
.portal .chord-home-preview {background:#18151e;}
.portal .chord-home-preview > div > span:last-child {color:#aa9cb9;}
.portal .chord-home-preview li {border-color:#c2b2d42b;background:#c2b2d406;}
.portal .chord-home-preview li:first-child {border-color:#c2b2d480;background:#c2b2d412;}
.portal .chord-home-preview strong {color:#e3d9ed;}
.portal .chord-home-preview li > span {color:#c2b2d4;}
.portal .chord-home-preview li > svg {color:#b5a2c8;}
/* All tool entries carry their own module colour in both desktop and menu. */
.site-header :is(.site-nav-link,.site-mobile-link)[href="/sound-news"] {--nav-tool-accent:#d7bb7b;}
.site-header :is(.site-nav-link,.site-mobile-link)[href="/sounds"] {--nav-tool-accent:#d3a3b7;}
.site-header :is(.site-nav-link,.site-mobile-link)[href="/synth"] {--nav-tool-accent:#8fbfca;}
.site-header :is(.site-nav-link,.site-mobile-link)[href="/cubase"] {--nav-tool-accent:#e4a090;}
.site-header :is(.site-nav-link,.site-mobile-link)[href="/groove-room/"] {--nav-tool-accent:#d7c298;}
.site-header :is(.site-nav-link,.site-mobile-link)[href="/chord-map/"] {--nav-tool-accent:#c2b2d4;}
.site-header :is(.site-nav-link,.site-mobile-link)[href="/music-map/"] {--nav-tool-accent:#b6c69c;}
.site-header :is(.site-nav-link,.site-mobile-link)[href="/instrument-atlas/"] {--nav-tool-accent:#a5b9d7;}
.site-header :is(.site-nav-link,.site-mobile-tools .site-mobile-link) {color:var(--nav-tool-accent,#d8d5dc);}
.site-header :is(.site-nav-link,.site-mobile-tools .site-mobile-link) > .site-nav-button-icon {color:inherit;}
.site-header .site-nav-link {border-color:color-mix(in srgb,var(--nav-tool-accent,#d8d5dc) 28%,transparent);background:color-mix(in srgb,var(--nav-tool-accent,#d8d5dc) 4%,transparent);}
.site-header :is(.site-nav-link,.site-mobile-tools .site-mobile-link):hover {color:var(--nav-tool-accent,#d8d5dc);border-color:color-mix(in srgb,var(--nav-tool-accent,#d8d5dc) 60%,transparent);background:color-mix(in srgb,var(--nav-tool-accent,#d8d5dc) 9%,transparent);}
.site-header :is(.site-nav-link,.site-mobile-tools .site-mobile-link):focus-visible {outline-color:var(--nav-tool-accent);}
:root[data-theme="light"] .portal .portal-learning-card.portal-sound-library-card {--learning-accent:#894363;--learning-line:#8943633d;--learning-tint:#8943630e;background:#fffafb;}
:root[data-theme="light"] .portal .portal-learning-card.portal-instrument-card {--learning-accent:#4a658b;--learning-line:#4a658b3d;--learning-tint:#4a658b0e;background:#f8faff;}
:root[data-theme="light"] .portal .portal-module-preview.sound-home-preview {background:#fff;}
:root[data-theme="light"] .portal .sound-home-categories {color:#765b6c;}
:root[data-theme="light"] .portal .portal-module-preview.instrument-home-preview {background:#fff;}
:root[data-theme="light"] .portal .portal-learning-card.portal-chord-card {--learning-accent:#715484;--learning-line:#71548440;--learning-tint:#71548410;background:#faf8fc;}
:root[data-theme="light"] .portal .chord-home-preview {background:#fff;}
:root[data-theme="light"] .portal .chord-home-preview > div > span:last-child {color:#766580;}
:root[data-theme="light"] .portal .chord-home-preview li {border-color:#7154842b;background:#71548406;}
:root[data-theme="light"] .portal .chord-home-preview li:first-child {border-color:#71548480;background:#71548412;}
:root[data-theme="light"] .portal .chord-home-preview strong,:root[data-theme="light"] .portal .chord-home-preview li > span,:root[data-theme="light"] .portal .chord-home-preview li > svg {color:#715484;}
:root[data-theme="light"] .site-header :is(.site-nav-link,.site-mobile-link)[href="/sound-news"] {--nav-tool-accent:#8e651f;}
:root[data-theme="light"] .site-header :is(.site-nav-link,.site-mobile-link)[href="/sounds"] {--nav-tool-accent:#894363;}
:root[data-theme="light"] .site-header :is(.site-nav-link,.site-mobile-link)[href="/synth"] {--nav-tool-accent:#286875;}
:root[data-theme="light"] .site-header :is(.site-nav-link,.site-mobile-link)[href="/cubase"] {--nav-tool-accent:#914a3c;}
:root[data-theme="light"] .site-header :is(.site-nav-link,.site-mobile-link)[href="/groove-room/"] {--nav-tool-accent:#806836;}
:root[data-theme="light"] .site-header :is(.site-nav-link,.site-mobile-link)[href="/chord-map/"] {--nav-tool-accent:#715484;}
:root[data-theme="light"] .site-header :is(.site-nav-link,.site-mobile-link)[href="/music-map/"] {--nav-tool-accent:#4d663c;}
:root[data-theme="light"] .site-header :is(.site-nav-link,.site-mobile-link)[href="/instrument-atlas/"] {--nav-tool-accent:#4a658b;}
:root[data-theme="light"] .site-header :is(.site-nav-link,.site-mobile-tools .site-mobile-link),:root[data-theme="light"] .site-header :is(.site-nav-link,.site-mobile-tools .site-mobile-link):hover {color:var(--nav-tool-accent,#434e5c);}
:root[data-theme="light"] .site-header .site-nav-link .site-nav-button-icon {color:inherit;}
@media (max-width:767px) {.portal .sound-home-footer {min-height:50px;}}

/* Course headings use the same restrained accent as their panel icons. */
:root[data-theme] .site-header .site-course-group h2{color:var(--nav-accent)}
