/* The collection uses portfolio tokens; the concepts retain their original appearance. */
.concept-gallery{--page:var(--ground);--text:var(--ink);--secondary:var(--ink-2);--line:var(--rule);--soft:var(--paper-2);--selected:var(--accent-soft);padding:0 4vw;font-size:15px;line-height:1.55}
.concept-gallery *{box-sizing:border-box}
.concept-gallery button,
.concept-gallery input,
.concept-gallery select{font:inherit}
.concept-gallery button,
.concept-gallery select{color:var(--text);background:var(--page);border:1px solid var(--line);border-radius:8px;min-height:40px;padding:8px 13px;cursor:pointer}
.concept-gallery button:hover,
.concept-gallery select:hover{background:var(--soft)}
.concept-gallery button:disabled{opacity:.45;cursor:default}
.concept-gallery a{color:inherit;text-underline-offset:4px}
.concept-gallery a:hover{color:var(--accent)}
.concept-gallery :focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.concept-gallery ::selection{background:var(--selected);color:var(--text)}
.concept-gallery input{caret-color:var(--accent)}
.concept-gallery *{scrollbar-color:var(--secondary) var(--soft)}
.concept-gallery [hidden]{display:none!important}
.concept-gallery svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.concept-gallery .intro{display:grid;grid-template-columns:1.1fr 1fr;gap:7vw;padding:64px 0 58px;align-items:center}
.concept-gallery h1{font-size:clamp(36px,4.3vw,68px);font-weight:500;line-height:1.06;letter-spacing:-.035em;margin:0}
.concept-gallery .intro h1 span{color:var(--secondary)}
.concept-gallery .intro-copy{max-width:510px}
.concept-gallery .intro-copy>p:first-child{font-size:21px;line-height:1.45;margin-top:0}
.concept-gallery .intro-copy p{max-width:65ch}
.concept-gallery .intro-copy a{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-weight:500;margin-top:6px}
.concept-gallery .muted{color:var(--secondary)}
.concept-gallery .toolbar{background:var(--page);position:sticky;top:0;z-index:10;border-block:1px solid var(--line);padding:12px 0}
.concept-gallery .toolbar nav{display:flex;gap:4px;overflow:auto;padding:2px 2px 12px;scrollbar-width:thin}
.concept-gallery .toolbar nav button{white-space:nowrap;border-color:transparent;font-size:14px;padding:8px 12px}
.concept-gallery .toolbar nav button[aria-pressed=true]{background:var(--selected);color:var(--accent)}
.concept-gallery .toolbar nav small{font-size:11px;margin-left:8px;opacity:.8;font-variant-numeric:tabular-nums}
.concept-gallery .tools{display:flex;gap:24px;align-items:center;border-top:1px solid var(--line);padding-top:12px}
.concept-gallery .search{display:flex;align-items:center;gap:10px;flex:1;max-width:430px;color:var(--secondary)}
.concept-gallery .search input{border:0;background:transparent;color:var(--text);width:100%;min-height:40px;outline-offset:0}
.concept-gallery .search input::placeholder{color:var(--secondary)}
.concept-gallery .picked{display:flex;gap:8px;align-items:center;cursor:pointer;font-size:13px}
.concept-gallery .picked input{width:16px;height:16px;accent-color:var(--accent)}
.concept-gallery .picked span{color:var(--secondary)}
.concept-gallery .density{margin-left:auto;display:flex;gap:10px;align-items:center;font-size:13px}
.concept-gallery .resultline{display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--secondary);font-size:12px;padding:8px 0 6px}
.concept-gallery .group{padding-bottom:44px}
.concept-gallery .group-heading{display:flex;align-items:baseline;justify-content:space-between;gap:30px;margin:16px 0 20px}
.concept-gallery .group-heading h2{font-size:25px;font-weight:500;letter-spacing:-.02em;margin:0}
.concept-gallery .group-heading p{margin:0;max-width:580px;font-size:13px;color:var(--secondary)}
.concept-gallery .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px}
.concept-gallery .concept{min-width:0}
.concept-gallery .concept>a{display:block;text-decoration:none}
.concept-gallery .preview{position:relative;aspect-ratio:1.5;background:#111;overflow:hidden;border-radius:12px;contain:strict}
.concept-gallery .preview-host{display:block;position:absolute;inset:0;pointer-events:none;user-select:none}
.concept-gallery .caption{display:flex;justify-content:space-between;gap:14px;margin-top:12px}
.concept-gallery .caption h3{font-size:15px;font-weight:500;margin:0}
.concept-gallery .caption p{margin:4px 0 0;color:var(--secondary);font-size:12px}
.concept-gallery .num{font-size:11px;color:var(--secondary);font-variant-numeric:tabular-nums}
.concept-gallery .mark{display:inline-block;margin-left:7px;color:var(--accent);font-size:11px}
.concept-gallery .concept>a:hover h3{text-decoration:underline;text-underline-offset:4px}
.concept-gallery .concept>a:hover .preview{outline:2px solid var(--accent);outline-offset:3px}
.concept-gallery #empty{padding:80px 0}
.concept-gallery .detail-navigation{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 0;border-bottom:1px solid var(--line)}
.concept-gallery .detail-navigation>div{display:flex;gap:8px}
.concept-gallery #position{color:var(--secondary);font-size:13px}
.concept-gallery .detail-heading{padding:36px 0 30px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.concept-gallery .detail-heading h1{font-size:clamp(28px,3vw,46px)}
.concept-gallery .detail-heading p{margin:0 0 10px}
.concept-gallery .detail-heading>span{font-size:12px;color:var(--accent)}
.concept-gallery .detail-body{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:32px;align-items:start;margin-bottom:64px}
.concept-gallery .concept-column{min-width:0}
.concept-gallery .stage-toolbar{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:12px;color:var(--secondary)}
.concept-gallery .stage-toolbar select{font-size:12px;margin-left:8px}
.concept-gallery .detail-scroll{overflow:auto;max-height:78vh;border-radius:12px;background:#111}
.concept-gallery #detail-mount{position:relative;min-height:150px}
.concept-gallery .detail-body aside{border-top:1px solid var(--line);padding-top:16px}
.concept-gallery .detail-body h2{font-size:19px;font-weight:500;margin:0}
.concept-gallery .detail-body aside>p{line-height:1.7}
.concept-gallery .detail-body dl{display:grid;grid-template-columns:80px 1fr;gap:9px;font-size:12px;padding-block:22px;border-block:1px solid var(--line)}
.concept-gallery dt{color:var(--secondary)}
.concept-gallery dd{margin:0}
.concept-gallery .small{font-size:12px}
.concept-gallery .render-error{padding:24px;color:white}
@media(min-width:1800px){
.concept-gallery .cards{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1000px){
.concept-gallery .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.concept-gallery .detail-body{grid-template-columns:minmax(0,1fr)}
.concept-gallery .detail-body aside{max-width:70ch}
.concept-gallery .intro{gap:35px}
.concept-gallery .group-heading{align-items:start}
.concept-gallery .group-heading p{max-width:55%}
}
@media(max-width:600px){
.concept-gallery .intro{grid-template-columns:1fr;padding:38px 0 32px;gap:24px}
.concept-gallery .intro h1{font-size:42px}
.concept-gallery .intro-copy>p:first-child{font-size:18px}
.concept-gallery .intro-copy .muted{font-size:14px}
.concept-gallery .cards{grid-template-columns:1fr;gap:26px}
.concept-gallery .tools{flex-wrap:wrap;gap:8px 14px}
.concept-gallery .search{flex-basis:100%;max-width:none}
.concept-gallery .density{font-size:12px}
.concept-gallery .density select{max-width:128px}
.concept-gallery .picked{font-size:12px}
.concept-gallery .resultline>span{display:none}
.concept-gallery .group-heading{display:block}
.concept-gallery .group-heading p{max-width:none;margin-top:6px}
.concept-gallery .detail-navigation{flex-wrap:wrap;justify-content:start}
.concept-gallery #position{order:3;flex-basis:100%}
.concept-gallery .detail-heading{display:block}
.concept-gallery .detail-heading>span{display:block;margin-top:12px}
.concept-gallery .stage-toolbar{gap:8px}
.concept-gallery .stage-toolbar label{font-size:0}
.concept-gallery .toolbar nav button{min-height:42px}
.concept-gallery button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){
}
.concept-gallery #detail-mount{overflow:hidden}
.concept-gallery .preview,
.concept-gallery .detail-scroll{background:#fff}
.concept-gallery .preview{border:1px solid var(--line)}
.concept-gallery .cards{grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;gap:26px 18px}
body[data-density=three] .concept-gallery .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.concept-gallery .preview{aspect-ratio:4/3;background:var(--paper-2);contain:strict}
.concept-gallery .preview-host{overflow:hidden}
.concept-gallery #detail{position:fixed;inset:0;z-index:30;display:grid;grid-template-rows:64px minmax(0,1fr);background:var(--page);padding:0}
.concept-gallery .viewer-toolbar{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line);min-width:0}
.concept-gallery .viewer-toolbar button,
.concept-gallery .viewer-toolbar select{font-size:12px;white-space:nowrap;padding:8px 11px}
.concept-gallery .viewer-title{min-width:0;flex:1;padding-inline:8px;display:flex;align-items:baseline;gap:12px}
.concept-gallery .viewer-title h2{font-size:17px;line-height:1.2;letter-spacing:-.015em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.concept-gallery #detail-deck{color:var(--secondary);font-size:12px;white-space:nowrap}
.concept-gallery #position{font-size:11px;white-space:nowrap;margin-inline:4px}
.concept-gallery .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.concept-gallery #detail>.detail-scroll{margin:3vh 8vw 5vh;min-width:0;min-height:0;max-height:none;border-radius:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:#fff;overflow-anchor:none}
.concept-gallery #detail-mount{min-height:0;overflow:hidden;position:relative;contain:layout paint}
.concept-gallery #concept-info{position:absolute;z-index:2;right:16px;top:72px;bottom:16px;width:min(370px,calc(100vw - 32px));padding:22px;background:var(--page);border:1px solid var(--line);border-radius:12px;overflow:auto}
.concept-gallery .info-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}
.concept-gallery .info-heading h2{font-size:21px;font-weight:500;margin:0}
.concept-gallery #concept-info>p{line-height:1.7}
.concept-gallery #detail-status{color:var(--accent);font-size:12px}
.concept-gallery #concept-info dl{display:grid;grid-template-columns:80px 1fr;gap:10px;font-size:13px;padding-block:20px;border-block:1px solid var(--line)}
@media(max-width:1100px){
.concept-gallery #position,
.concept-gallery #detail-deck{display:none}
}
@media(max-width:650px){
.concept-gallery .cards,
body[data-density=three] .concept-gallery .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.concept-gallery #detail{grid-template-rows:88px minmax(0,1fr)}
.concept-gallery .viewer-toolbar{display:grid;grid-template-columns:auto 1fr auto auto;gap:4px;padding:4px 8px}
.concept-gallery .viewer-title{grid-column:2/5;grid-row:1;padding:0 6px}
.concept-gallery .viewer-title h2{font-size:15px}
.concept-gallery .viewer-toolbar button,
.concept-gallery .viewer-toolbar select{min-height:36px;font-size:11px;padding:5px 8px}
.concept-gallery .zoom-label{grid-row:2;grid-column:1}
.concept-gallery .zoom-label select{max-width:122px}
.concept-gallery #info{grid-column:2;grid-row:2}
.concept-gallery #prev{grid-column:3;grid-row:2}
.concept-gallery #next{grid-column:4;grid-row:2}
.concept-gallery #concept-info{top:96px}
.concept-gallery #detail>.detail-scroll{margin:0 4px 4px}
}
@media(min-width:651px) and (max-width:799px){
.concept-gallery .cards,
body[data-density=three] .concept-gallery .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:800px){
.concept-gallery .intro{padding:32px 0 30px}
.concept-gallery .intro h1{font-size:clamp(36px,3.4vw,54px)}
.concept-gallery .intro-copy>p:first-child{font-size:19px}
}
.concept-gallery .caption h3{font-size:14px}
.concept-gallery .caption{gap:7px}
.concept-gallery .caption p{font-size:11px}
.concept-gallery .mark{margin-left:0;display:block}

.concept-gallery p{margin-block:1em}
.concept-gallery .toolbar{top:var(--nav-h)}
.concept-gallery #detail{z-index:60}
body[data-page=concepts].viewing{overflow:hidden}
body[data-page=concepts].viewing>.masthead,body[data-page=concepts].viewing>.sitefoot{display:none}
