/* SPDX-License-Identifier: EUPL-1.2 */
/* reference-cards: tiles with a corner badge and description/command rows. Loaded after classic.css; palette tokens only. */
.reference-cards .browse-panel{max-width:1500px;margin:0 auto;padding:0 16px}
.reference-cards .browse-panel>summary{cursor:pointer;width:max-content;padding:8px 0;font-size:13px;font-weight:600;color:var(--link)}
.reference-cards .browse-panel>summary:focus-visible{outline:3px solid var(--link);outline-offset:3px}
.reference-cards .browse-panel[open]{padding-bottom:12px;border-bottom:1px solid var(--line)}
.reference-cards .browse-panel .library-nav{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:0 24px}
.reference-cards .browse-panel .library-nav>.eyebrow,.reference-cards .browse-panel .browse-tags{grid-column:1/-1}
.reference-cards .index-title{text-align:center;font-size:32px;font-weight:600;margin:24px 0 4px}
.reference-cards .index-title+.sheet-description{text-align:center;font-size:15px;margin-bottom:20px}
.reference-cards .sheet-head{justify-content:center;text-align:center}
.reference-cards .sheet-head h1{font-size:28px}
.reference-cards .sheet-count{margin-left:0}
.reference-cards .sheet-description{text-align:center;margin-inline:auto}
.reference-cards .sheet-fresh{text-align:center;margin-inline:auto}.reference-cards .index-fresh{flex-basis:auto}
.reference-cards .sheet-section>h2{border-top:0;font-size:20px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--link);padding:0}
.reference-cards .sheet-section>h2::before{content:"# ";opacity:.6}
.classic.reference-cards .cards{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:20px;align-items:start}
.classic.reference-cards.comfortable .cards{grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr))}
.classic.reference-cards .card{position:relative;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 1px 3px rgba(0,0,0,.14)}
.classic.reference-cards .card h3{display:block;width:max-content;max-width:75%;margin:0 0 0 auto;padding:4px 12px;border-radius:0 9px 0 8px;background:var(--link);color:var(--bg);font-size:12px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.classic.reference-cards .card h3 a{color:inherit}
.classic.reference-cards .card>p{margin:0;padding:10px 16px}
.classic.reference-cards .card>p:has(+pre):not(.card-kind){background:var(--wash)}
.classic.reference-cards .card>:last-child:not(h3){border-radius:0 0 9px 9px}
.classic.reference-cards .card>pre{margin:0;padding:12px 16px;overflow-x:auto;background:var(--surface);border:0;border-left:0;border-top:1px solid var(--line)}
.classic.reference-cards .card>:is(ul,ol){margin:0;padding:10px 16px 10px 36px}
.classic.reference-cards .card>table{display:block;width:calc(100% - 32px);margin:10px 16px;overflow-x:auto;overflow-wrap:normal}
/* Spans follow this grid's 300/340px columns (classic.css assumes 270/320px). */
.classic.reference-cards .card:is(.col-span-2,.col-span-3){grid-column:1/-1}
@container(min-width:620px){.classic.reference-cards:not(.comfortable) .card.col-span-2{grid-column:span 2}}
@container(min-width:700px){.classic.reference-cards.comfortable .card.col-span-2{grid-column:span 2}}
@container(min-width:940px){.classic.reference-cards:not(.comfortable) .card.col-span-3{grid-column:span 3}}
@container(min-width:1060px){.classic.reference-cards.comfortable .card.col-span-3{grid-column:span 3}}
.reference-cards pre>code{background:none}
.reference-cards pre>code:is(.language-bash,.language-sh,.language-zsh,.language-shell,.language-fish)::before{content:"$ ";color:var(--link);-webkit-user-select:none;user-select:none}
.reference-cards .index-group ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:12px}
.reference-cards .index-group li{flex-direction:column;gap:4px;padding:12px 16px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 1px 3px rgba(0,0,0,.14)}
.reference-cards .index-group a{min-width:0}
@media print{.reference-cards .browse-panel{display:none}.classic.reference-cards .cards,.classic.reference-cards.comfortable .cards{grid-template-columns:repeat(3,1fr);gap:0 10pt}.classic.reference-cards .card.col-span-2{grid-column:span 2}.classic.reference-cards .card.col-span-3{grid-column:span 3}.classic.reference-cards .card{border:1px solid #888;border-radius:0;box-shadow:none}.classic.reference-cards .card h3{margin:0;width:auto;max-width:none;border:0;background:none;color:#000;padding:2px 6px}.classic.reference-cards .card>p:has(+pre):not(.card-kind){background:none}.classic.reference-cards .card>table{display:table;table-layout:fixed;overflow-wrap:anywhere}}
