.format-gallery {
  margin:0 clamp(12px,1.8vw,32px) clamp(24px,3vw,48px);
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,1.1vw,20px);
}
.format-gallery a {min-width:0;display:flex;flex-direction:column;color:#251e1b;font:700 clamp(16px,1.55vw,25px)/1.13 Arial,Helvetica,sans-serif;letter-spacing:-.035em;text-decoration:none}
.format-gallery .format-photo {display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);place-items:center;height:clamp(150px,19vw,335px);background:var(--paper);overflow:hidden;position:relative}
.format-gallery img {width:84%;height:77%;object-fit:contain;display:block}
.format-gallery a:nth-child(1) {--paper:#e3ece8}
.format-gallery a:nth-child(2) {--paper:#f3dfc3}
.format-gallery a:nth-child(3) {--paper:#e9e3ee}
.format-gallery a:nth-child(4) {--paper:#f5e6c3}
.format-gallery .packshot img {mix-blend-mode:multiply}
.format-gallery .cover img {width:73%;height:83%;transform:rotate(-5deg);filter:drop-shadow(4px 6px 5px #50331939)}
.format-gallery a:nth-child(3) img {transform:rotate(5deg)}
.format-gallery .format-name {padding:12px 0 10px;flex:1;border-bottom:3px solid transparent}
.format-gallery a[aria-current=true] .format-name {border-bottom-color:#5d2620}
.format-gallery a:hover .format-name {text-decoration:underline;text-underline-offset:4px}
.format-gallery a:focus-visible,.formats-reset:focus-visible {outline:3px solid #5d2620;outline-offset:3px}
.library-filtered .format-shelf[hidden],.formats-toolbar[hidden]{display:none}
.formats-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 clamp(12px,1.8vw,32px);color:#483b35;font-size:15px}
.formats-reset {cursor:pointer;padding:7px 0;text-decoration:underline;text-underline-offset:3px;font-weight:600}
.library-filtered .format-shelf {margin-top:12px}
#library-products {scroll-margin-top:15px}
@media(max-width:680px){
 .format-gallery {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
 .format-gallery .format-photo {height:clamp(110px,32vw,195px)}
 .format-gallery .format-name {padding:8px 0 6px}
}


.format-exam-search {margin:0 clamp(12px,1.8vw,32px) 16px;max-width:580px;color:#251e1b}
.format-exam-search label {display:block;font:650 clamp(18px,1.65vw,24px)/1.25 Arial,sans-serif;margin-bottom:9px}
.format-exam-field {display:flex;align-items:center;border:1px solid #8a807a;border-radius:28px;padding:4px 5px 4px 16px;background:white;gap:8px}
.format-exam-field:focus-within {outline:2px solid #5d2620;outline-offset:2px}
.format-exam-field input {flex:1;min-width:0;background:transparent;color:#251e1b;border:0;outline:0;font:400 16px/1.4 Arial,sans-serif}
.format-exam-field input::-webkit-search-cancel-button {display:none}
.format-exam-field button {font-weight:600;min-height:38px;padding:0 14px}
.format-exam-field [type=submit] {background:#5d2620;color:white;border-radius:20px}
.format-exam-field [data-clear-exam] {padding:0 5px;background:transparent;text-decoration:underline;text-underline-offset:3px}
.format-exam-search[hidden],.format-exam-field button[hidden],.library-filtered .rail[hidden],.library-filtered .shelf-controls[hidden]{display:none}
