:root{--gold:#d2a64a}
/* Meat Library: search, cut guide, cut pages, glossary. Mobile first. */
[hidden]{display:none!important}

/* breadcrumb */
.crumb{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;font:600 .88rem/1.2 var(--cond);letter-spacing:.12em;text-transform:uppercase}
.crumb a{display:inline-flex;align-items:center;min-height:36px;color:var(--brass-lt);text-decoration:none;border-bottom:1px solid rgba(220,192,138,.35)}
.crumb a:hover{border-bottom-color:var(--brass-lt)}
.crumb [aria-current]{color:#eadfc6}
.crumb .sepx{color:#8f7a55}
.cream .crumb [aria-current]{color:#4b2007}
.cream .crumb .sepx{color:#7a5a3a}

/* search */
.ml-search{margin-top:20px;max-width:720px}
.ml-sbox{position:relative;display:flex;align-items:center;background:#fffaf0;border:1px solid #b9a37a;border-radius:8px;box-shadow:inset 0 2px 4px rgba(80,50,20,.18),0 8px 18px rgba(0,0,0,.35);min-height:58px}
.ml-sbox:focus-within{outline:3px solid rgba(220,192,138,.8);outline-offset:2px}
.ml-ico{flex:none;margin:0 6px 0 16px;color:#6e2d0c}
.ml-q{flex:1;min-width:0;border:0;background:transparent;box-shadow:none;font:500 1.08rem/1.3 var(--body);color:var(--ink);padding:14px 8px;min-height:56px}
.ml-q:focus{outline:none}
.ml-q::-webkit-search-cancel-button{display:none}
.ml-clear{flex:none;width:48px;height:48px;margin-right:4px;border:0;background:none;color:#5a2406;font:400 2rem/1 var(--body);cursor:pointer;border-radius:50%}
.ml-clear:hover{background:rgba(110,45,12,.1)}
.ml-hint{margin:10px 2px 0;font-size:.95rem;color:#dccfb0}

/* global search results */
.ml-results{margin-top:16px;max-width:720px;background:#fffaf0;border:1px solid #d6c39d;border-radius:8px;padding:6px 6px 8px;color:var(--ink);box-shadow:0 10px 24px rgba(0,0,0,.4)}
.ml-rc{margin:8px 12px 4px;font:700 .9rem/1.2 var(--cond);letter-spacing:.14em;text-transform:uppercase;color:#4b2007}
.ml-none{margin:6px 12px 10px}
.ml-list{list-style:none;margin:0;padding:0;max-height:560px;overflow:auto}
.ml-r{display:flex;align-items:center;gap:12px;padding:10px 10px;min-height:64px;text-decoration:none;color:var(--ink);border-radius:6px;border-top:1px solid #eadcc0}
.ml-list li:first-child .ml-r{border-top:0}
.ml-r:hover,.ml-r:focus-visible{background:#f3e5c6}
.ml-r img{flex:none;width:64px;height:48px;object-fit:contain;background:#fff;border:1px solid #e2d3b2;border-radius:3px}
.ml-kind-ic{flex:none;display:grid;place-items:center;width:64px;height:48px;border-radius:3px;background:#3b2414;color:var(--brass-lt);font:700 1.3rem/1 var(--display)}
.ml-rt{display:flex;flex-direction:column;min-width:0}
.ml-rt b{font:700 1.05rem/1.25 var(--display);color:var(--ink)}
.ml-rt em{font:700 .78rem/1.3 var(--cond);letter-spacing:.12em;text-transform:uppercase;font-style:normal;color:#5a2406}
.ml-rt span{font-size:.92rem;line-height:1.4;color:#3d2c1f}

/* entry cards on the hub: gold outline, drop shadow; the Illustrated Cut Guide card carries a page preview and a gentle bounce */
.ml-entries{display:grid;gap:14px;margin-top:22px}
.ml-entry{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border:3px solid var(--gold);border-radius:8px;background:linear-gradient(180deg,#2f1d11,#24150b);color:var(--cream);text-decoration:none;box-shadow:inset 0 1px 0 rgba(255,225,170,.14),0 3px 0 #6b4f1c,0 12px 22px rgba(0,0,0,.5);transition:transform .12s,box-shadow .12s,filter .15s}
.ml-entry b{font:700 1.25rem/1.2 var(--display);color:var(--brass-lt)}
.ml-entry span{font-size:.98rem;line-height:1.45;color:#e0d2b4}
.ml-entry:hover{filter:brightness(1.08);box-shadow:inset 0 1px 0 rgba(255,225,170,.2),0 3px 0 #6b4f1c,0 14px 26px rgba(0,0,0,.55)}
.ml-entry:active{transform:translateY(2px);box-shadow:inset 0 2px 7px rgba(0,0,0,.5),0 1px 0 #6b4f1c,0 5px 10px rgba(0,0,0,.4)}
.ml-entry:focus-visible{outline:3px solid #fff3df;outline-offset:3px}
.ml-entry.feature{gap:6px;animation:ml-bounce 3.4s ease-in-out 1.2s infinite}
.ml-entry.feature .ml-thumb{display:block;width:100%;height:auto;margin:0 0 8px}
.ml-entry.feature:hover,.ml-entry.feature:focus-visible{animation-play-state:paused}
@keyframes ml-bounce{0%,52%,100%{transform:translateY(0)}10%{transform:translateY(-7px)}20%{transform:translateY(0)}28%{transform:translateY(-3px)}36%{transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){.ml-entry.feature{animation:none}}
@media (min-width:700px){.ml-entries{grid-template-columns:repeat(3,1fr);align-items:start}}
/* download buttons on the library page share the gold outline and shadow */
.doc .btn{border:3px solid var(--gold);box-shadow:inset 0 1px 0 rgba(255,222,170,.55),inset 0 -2px 0 rgba(0,0,0,.28),0 3px 0 #6b4f1c,0 12px 20px rgba(0,0,0,.45)}
.doc .btn:active{box-shadow:inset 0 2px 7px rgba(0,0,0,.5),0 1px 0 #6b4f1c,0 4px 8px rgba(0,0,0,.35)}

/* filters */
.filters{display:grid;gap:10px;margin:0 0 14px}
.frow{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.flabel{font:700 .9rem/1 var(--cond);letter-spacing:.14em;text-transform:uppercase;color:#4b2007;margin-right:4px;min-width:64px}
.fchip{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border:1px solid #b9a37a;border-radius:999px;background:linear-gradient(180deg,#fffdf6,#f3e8cf);color:var(--ink);font:600 .98rem/1.1 var(--body);text-decoration:none;cursor:pointer;box-shadow:inset 0 1px 0 #fff,0 2px 0 #d6c39d}
.fchip:hover{border-color:var(--copper)}
.fchip[aria-pressed="true"]{color:#fff3df;border-color:#4d2208;background:linear-gradient(180deg,#aa581c 0%,#8b4515 55%,#6e340d 100%);text-shadow:0 1px 0 rgba(0,0,0,.45);box-shadow:inset 0 1px 0 rgba(255,222,170,.5),0 2px 0 #34170a}
.fchip:focus-visible{outline:3px solid var(--copper);outline-offset:2px}
.fcount{margin:0 0 14px;font-size:.98rem;color:#4a3827}
.fempty{padding:20px;border:1px dashed #b99f74;border-radius:6px;background:rgba(255,255,255,.5)}

/* cut grid and cards */
.cut-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:6px}
.cut-card{display:flex;flex-direction:column;min-width:0;text-decoration:none;color:var(--ink);background:linear-gradient(180deg,#fffcf4,#fbf3e2);border:1px solid #d6c39d;border-radius:6px;overflow:hidden;box-shadow:inset 0 1px 0 #fff,0 8px 16px rgba(70,40,15,.12);transition:transform .15s,box-shadow .15s}
.cut-card:hover{transform:translateY(-2px);box-shadow:inset 0 1px 0 #fff,0 12px 22px rgba(70,40,15,.2)}
.cut-card:focus-visible{outline:3px solid var(--copper);outline-offset:2px}
.cut-img{display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box;aspect-ratio:4/3;background:#fff;border-bottom:1px solid #eadcc0;padding:8px}
.cut-img img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 5px 6px rgba(40,20,5,.28))}
.cut-img img.ph{width:46%;opacity:.9}
.cut-name{padding:10px 12px 2px;font:700 1.02rem/1.25 var(--display)}
.cut-meta{padding:0 12px 12px;font:700 .8rem/1.3 var(--cond);letter-spacing:.1em;text-transform:uppercase;color:#5a2406}
.primal-h{margin:30px 0 4px;padding-top:6px;font-size:1.5rem;scroll-margin-top:12px}
.primal-h:first-of-type{margin-top:6px}
.fchip.jump{min-height:40px;padding:6px 14px;font-size:.92rem}
@media (min-width:640px){.cut-grid{grid-template-columns:repeat(3,1fr);gap:16px}}
@media (min-width:1000px){.cut-grid{grid-template-columns:repeat(4,1fr)}}

/* cut page */
.cut-layout{display:grid;gap:24px}
.cut-figs{display:grid;gap:14px;align-content:start}
.cut-fig{margin:0}
.cut-board{background:#fff;border:1px solid #d6c39d;border-radius:8px;padding:14px;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box;box-shadow:inset 0 1px 0 #fff,0 10px 22px rgba(70,40,15,.18)}
.cut-fig.main .cut-board{aspect-ratio:4/3}
.cut-fig:not(.main) .cut-board{aspect-ratio:4/3;padding:8px}
.cut-board img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(40,20,5,.3))}
.cut-board.empty{aspect-ratio:4/3;color:#5a4330;font:600 1rem var(--cond);letter-spacing:.1em;text-transform:uppercase}
.cut-fig figcaption{margin-top:6px;font-size:.86rem;color:#4a3827}
.cut-fig figcaption a{color:#4b2007}
.facts{border-collapse:collapse;width:100%;min-width:0;background:rgba(255,255,255,.6)}
.facts th,.facts td{padding:11px 14px;border-bottom:1px solid #d6c39d;text-align:left;vertical-align:top}
.facts th{width:38%;font:700 .88rem/1.3 var(--cond);letter-spacing:.12em;text-transform:uppercase;color:#4b2007;background:rgba(255,255,255,.35)}
.facts tr:last-child th,.facts tr:last-child td{border-bottom:0}
.dots{display:inline-flex;gap:4px;margin-left:8px;vertical-align:1px}
.dots i{width:10px;height:10px;border-radius:50%;border:1px solid #6e340d;background:transparent}
.dots i.on{background:#8b4515}
.mchips{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.mchips li{padding:7px 14px;border-radius:999px;border:1px solid #b9a37a;background:#fff;font:600 .95rem/1.1 var(--body);color:#3a2412}
.cut-text{max-width:760px}
.cut-text p{font-size:1.05rem;line-height:1.65}
@media (min-width:900px){.cut-layout{grid-template-columns:1.1fr .9fr;gap:40px;align-items:start}}

/* glossary */
.lbar{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 14px}
.lbar a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #b9a37a;border-radius:6px;background:linear-gradient(180deg,#fffdf6,#f3e8cf);color:#3a2412;font:700 1.05rem/1 var(--cond);text-decoration:none}
.lbar a.off{opacity:.35;pointer-events:none}
.letter{scroll-margin-top:10px}
.lh{margin:26px 0 6px;padding-bottom:6px;border-bottom:2px solid #8d6a2e;font-size:2rem}
.term{padding:14px 0;border-bottom:1px solid #d6c39d;scroll-margin-top:12px}
.term h3{margin:0 0 4px;font-size:1.25rem}
.term .tcat{display:inline-block;margin-left:8px;padding:2px 8px;border:1px solid #b99f74;border-radius:999px;font:700 .72rem/1.3 var(--cond);letter-spacing:.1em;text-transform:uppercase;color:#4b2007;vertical-align:3px;background:rgba(255,255,255,.55)}
.term .aka{margin:0 0 6px;font-size:.95rem;color:#4a3827;font-style:italic}
.term p{margin:0 0 8px;max-width:70ch;line-height:1.6}
.relrow{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.relrow span{font:700 .82rem/1 var(--cond);letter-spacing:.12em;text-transform:uppercase;color:#4b2007}
.rel{display:inline-flex;align-items:center;min-height:36px;padding:2px 10px;border:1px solid #cdb98f;border-radius:999px;background:rgba(255,255,255,.6);color:#4b2007;font-size:.92rem;text-decoration:none}
.term.flash{background:rgba(255,236,170,.55);box-shadow:0 0 0 6px rgba(255,236,170,.55);border-radius:4px;transition:background .6s}

@media (prefers-reduced-motion:reduce){.cut-card{transition:none}}

.doc-group{margin:30px 0 4px;font:700 1.5rem/1.2 var(--display);color:var(--ink)}
.doc-group:first-of-type{margin-top:22px}

a.fchip{text-decoration:none}
.fchip-out{margin-left:6px;font-size:.9em;opacity:.7}

.fchip.all,.cream a.fchip.all{color:#fff;border-color:#2c3a0c;background:linear-gradient(180deg,#5b8f27 0%,#3f6a17 55%,#2f520f 100%);text-shadow:0 1px 0 rgba(0,0,0,.4);box-shadow:inset 0 1px 0 rgba(220,255,170,.4),0 2px 0 #213808}
.fchip.all:hover{border-color:#8fc03e}
