/* Material preview shares the homepage's semantic color roles. */
.material-dialog{box-sizing:border-box;width:min(1080px,calc(100% - 48px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);overflow:hidden;box-shadow:0 24px 90px rgba(var(--ink-rgb),.2)}
.material-dialog::backdrop{background:var(--scrim);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
body:has(#material-dialog[open]){overflow:hidden}
.material-dialog[open]{animation:material-viewer-enter 240ms cubic-bezier(.2,0,.2,1)}
.material-dialog[open]::backdrop{animation:material-viewer-backdrop 240ms ease-out}
.material-viewer-layout{display:grid;grid-template-columns:.94fr 1.06fr;max-height:calc(100dvh - 50px);min-height:min(630px,calc(100dvh - 50px));overflow:hidden}
.material-viewer-layout--text{grid-template-columns:minmax(0,1fr)}
.material-viewer-photo{position:relative;min-width:0;min-height:0;background:var(--surface-soft);overflow:hidden}
.material-viewer-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.material-viewer-info{min-width:0;padding:48px 42px 38px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
.material-viewer-collection{margin:0;color:var(--muted);font-size:11px;line-height:1.6;letter-spacing:.09em}
.material-viewer-title{margin:10px 42px 0 0;font-family:inherit;font-size:40px;line-height:1.12;font-weight:400;letter-spacing:-.035em;overflow-wrap:anywhere}
.material-viewer-label{margin:26px 0 13px;font-size:14px;line-height:1.4;color:var(--ink)}
.material-viewer-specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center}
.material-viewer-specs div{min-width:0}
.material-viewer-specs>div:first-child{text-align:left}
.material-viewer-specs>div:last-child{text-align:right}
.material-viewer-specs>div:only-child{text-align:left}
.material-viewer-specs[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.material-viewer-specs[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.material-viewer-specs dt{margin:0 0 5px;color:var(--muted);font-size:11px;line-height:1.5}
.material-viewer-specs dd{margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.material-viewer-description{font-size:13px;line-height:1.75;color:var(--muted)}
.material-viewer-description p{margin:0 0 7px;overflow-wrap:anywhere}
.material-viewer-link{display:inline-flex;align-items:center;min-height:44px;margin-top:16px;padding:5px 0 3px;border-bottom:1px solid var(--line-strong);color:var(--ink);font-size:13px;line-height:1.5;text-decoration:none;transition:color 180ms ease,border-color 180ms ease}
.material-viewer-close{position:absolute;z-index:2;top:14px;right:14px;display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:color-mix(in srgb,var(--surface) 93%,transparent);color:var(--ink);cursor:pointer;transition:background 200ms ease,border-color 200ms ease}
.material-viewer-close svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round}
.material-viewer-close:focus-visible,.material-viewer-link:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
@media(hover:hover) and (pointer:fine){.material-viewer-close:hover{background:var(--surface-hover);border-color:var(--line-strong)}.material-viewer-link:hover{color:var(--ink);border-color:var(--accent)}}
@media(max-width:900px){.material-viewer-info{padding:44px 28px 30px}.material-viewer-title{font-size:34px}.material-viewer-description{font-size:12px}.material-viewer-specs{gap:12px}.material-viewer-specs dd{font-size:12px}}
@media(max-width:700px){
  .material-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:10px}
  .material-viewer-layout{display:block;min-height:0;max-height:calc(100dvh - 26px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .material-viewer-photo{height:min(29svh,240px);min-height:170px}
  .material-viewer-photo img{object-position:center 58%}
  .material-viewer-info{overflow:visible;padding:25px 24px 28px}
  .material-viewer-title{font-size:32px;margin-right:0}
  .material-viewer-collection{font-size:10px}
  .material-viewer-label{margin-top:22px;font-size:13px}
  .material-viewer-specs{margin-bottom:20px;padding:13px 0;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .material-viewer-specs dt{font-size:10px}
  .material-viewer-specs dd{font-size:12px}
  .material-viewer-description{font-size:12px;line-height:1.75}
  .material-viewer-link{font-size:13px;margin-top:14px}
  .material-viewer-close{top:10px;right:10px}
  .material-viewer-layout--text .material-viewer-info{padding-top:64px}
}
@keyframes material-viewer-enter{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes material-viewer-backdrop{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.material-dialog[open],.material-dialog[open]::backdrop{animation:none}.material-viewer-close,.material-viewer-link{transition:none}}
