/* Gaffer operations: ink, warm paper, and one lime accent. */
body[data-product="gaffer"], body.login-page {
    --canvas:#111113; --rail:#161618; --surface:#1b1b1e; --surface-raised:#222225;
    --field:#171719; --line:#353536; --line-soft:#f3efe419; --text:#f3efe4;
    --muted:#aaa79f; --faint:#817e77; --lime:#dfff37; --lime-ink:#151709;
    --focus:#dfff37; --workspace-accent:#dfff37; --workspace-accent-ink:#151709;
    --shadow:none;
}
body[data-product="gaffer"] .brand-mark { border-radius:0; background:var(--lime); color:var(--lime-ink); font-size:30px; }
body[data-product="gaffer"] .brand strong { font:850 31px/1 'Big Shoulders Display',sans-serif; letter-spacing:.02em; }
body[data-product="gaffer"] .brand small { margin-top:8px; }
body[data-product="gaffer"] .mobile-bar { background:var(--rail); }
body[data-product="gaffer"] .player-profile-mark { color:var(--lime); border-color:#dfff3740; background:#dfff3708; }
body[data-product="gaffer"] .player-profile-heading .eyebrow { color:var(--lime); }
body[data-product="gaffer"] .main-content { max-width:1600px; }
body[data-product="gaffer"] .page-heading h1 { font-size:clamp(40px,5vw,64px); }
body[data-product="gaffer"] .page-heading .eyebrow, body[data-product="gaffer"] .section-heading .eyebrow { color:var(--lime); }
body[data-product="gaffer"] .record-title:hover, .gaffer-text-link:hover { color:var(--lime); text-decoration:underline; }
.gaffer-updated { color:var(--muted); font-size:12px; white-space:nowrap; }
.gaffer-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-block:1px solid var(--line); margin:0 0 42px; }
.gaffer-metrics-three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.gaffer-metrics > * { min-width:0; display:flex; flex-direction:column; padding:24px 20px; border-right:1px solid var(--line-soft); }
.gaffer-metrics > :first-child { padding-left:0; }
.gaffer-metrics > :last-child { border-right:0; }
.gaffer-metrics span { color:var(--muted); font-size:11px; font-weight:650; }
.gaffer-metrics strong { margin:10px 0; font:800 clamp(34px,4vw,56px)/1 'Big Shoulders Display',sans-serif; font-variant-numeric:tabular-nums; }
.gaffer-metrics strong.gaffer-record { font-size:clamp(28px,3.5vw,46px); }
.gaffer-metrics small { font-size:11px; color:var(--muted); }
.gaffer-metrics a:hover { background:#dfff3706; }
.gaffer-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:44px; }
.gaffer-leader { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:14px; padding:17px 0; border-bottom:1px solid var(--line-soft); }
.gaffer-position { font:750 22px 'Big Shoulders Display',sans-serif; color:var(--muted); }
.gaffer-rating { color:var(--lime); font-variant-numeric:tabular-nums; }
.gaffer-leader .gaffer-rating { font:750 28px 'Big Shoulders Display',sans-serif; }
.gaffer-leader:hover .row-copy strong { color:var(--lime); }
.gaffer-game-row { display:grid; grid-template-columns:minmax(140px,1fr) minmax(40px,1fr) 35px; align-items:center; gap:16px; padding:12px 0; border-bottom:1px solid var(--line-soft); font-size:12px; }
.gaffer-game-row > strong { text-align:right; font-variant-numeric:tabular-nums; }
.gaffer-bar { height:4px; background:var(--line); }
.gaffer-bar i { display:block; height:100%; background:var(--lime); }
.gaffer-note { color:var(--muted); font-size:12px; margin:14px 0; }
.gaffer-section { margin-top:44px; }
.gaffer-table { width:100%; }
.gaffer-table td { vertical-align:middle; }
.gaffer-table .record-slug { max-width:280px; overflow-wrap:anywhere; white-space:normal; }
.gaffer-table time { font-variant-numeric:tabular-nums; white-space:nowrap; }
.gaffer-vs { color:var(--faint); padding:0 5px; }
.gaffer-status { display:inline-block; font-size:11px; color:var(--muted); border:1px solid var(--line); padding:4px 8px; }
.gaffer-status-saved { color:var(--lime); border-color:#dfff3740; }
.gaffer-status-limited { color:var(--amber); }
.gaffer-operations { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:44px; border-block:1px solid var(--line); }
.gaffer-operations a { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:24px 20px; border-right:1px solid var(--line-soft); }
.gaffer-operations a:first-child { padding-left:0; }
.gaffer-operations a:last-child { border-right:0; }
.gaffer-operations strong,.gaffer-operations small { display:block; }
.gaffer-operations small { color:var(--muted); margin-top:5px; font-size:11px; }
.gaffer-operations a:hover strong { color:var(--lime); }
.gaffer-search { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin:0 0 32px; }
.gaffer-search input,.gaffer-search select { min-height:44px; padding:10px 12px; border:1px solid var(--line); color:var(--text); background:var(--field); border-radius:0; font-size:13px; }
.gaffer-search input { flex:1 1 260px; min-width:0; }
.gaffer-search select { max-width:100%; }
.gaffer-search .button { min-height:44px; }
.gaffer-details { margin:0; }
.gaffer-details > div { display:flex; justify-content:space-between; gap:24px; padding:14px 0; border-bottom:1px solid var(--line-soft); font-size:13px; }
.gaffer-details dt { color:var(--muted); }
.gaffer-details dd { margin:0; text-align:right; overflow-wrap:anywhere; }
.gaffer-archive { border-top:1px solid var(--line); margin:28px 10px 0; padding-top:18px; }
.gaffer-archive summary { cursor:pointer; font-size:12px; color:var(--muted); padding:8px 0; }
.gaffer-archive > p { font-size:10px; color:var(--faint); margin:4px 0 10px; }
.gaffer-archive a { grid-template-columns:1fr; font-size:11px; min-height:40px; }
.gaffer-leader,.gaffer-operations a,.gaffer-metrics a { transition:background-color .15s,color .15s; }
@media (min-width:901px) { body[data-product="gaffer"] .side-rail { position:sticky; top:0; max-height:100vh; overflow-y:auto; } }
@media (max-width:1100px) { .gaffer-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .gaffer-metrics > * { padding-left:16px; } .gaffer-metrics > :nth-child(2) { border-right:0; } .gaffer-metrics > :nth-child(n+3) { border-top:1px solid var(--line-soft); } .gaffer-columns { gap:28px; } }
@media (max-width:700px) { .gaffer-columns { grid-template-columns:1fr; } .gaffer-updated { margin-top:10px; } .gaffer-operations { grid-template-columns:1fr; } .gaffer-operations a { padding:20px 0; border-right:0; border-bottom:1px solid var(--line-soft); } .gaffer-operations a:last-child { border-bottom:0; } .gaffer-game-row { grid-template-columns:minmax(130px,1fr) minmax(30px,1fr) 30px; } .gaffer-table thead { display:none; } .gaffer-table,.gaffer-table tbody,.gaffer-table tr,.gaffer-table td { display:block; width:100%; } .gaffer-table tr { padding:12px 0; border-bottom:1px solid var(--line); } .gaffer-table td { display:grid; grid-template-columns:105px minmax(0,1fr); gap:12px; padding:8px 0; border:0; } .gaffer-table td::before { content:attr(data-label); color:var(--muted); font-size:10px; font-weight:600; } .gaffer-table td > * { min-width:0; } .gaffer-table .record-slug { grid-column:2; max-width:100%; } .gaffer-table td[data-label="Players"] { display:block; } .gaffer-table td[data-label="Players"]::before { display:block; margin-bottom:6px; } .gaffer-search select { flex:1 1 140px; } }
@media (max-width:420px) { .gaffer-metrics strong { font-size:36px; } .gaffer-metrics > * { padding:20px 12px; } .gaffer-metrics > :nth-child(odd) { padding-left:0; } .gaffer-metrics small { font-size:10px; } .gaffer-search .button { flex:1; } }
@media (prefers-reduced-motion:reduce) { .gaffer-leader,.gaffer-operations a,.gaffer-metrics a { transition:none; } }
.gaffer-heading-actions { display:flex; flex-wrap:wrap; gap:10px; }
.gaffer-footballer-cell { display:flex; align-items:center; gap:14px; min-width:220px; }
.gaffer-footballer-cell > span { min-width:0; }
.gaffer-footballer-thumb { flex:none; display:grid; place-items:center; width:56px; height:72px; overflow:hidden; background:#e8e2d8; border:1px solid var(--line); }
.gaffer-footballer-thumb img { display:block; width:100%; height:100%; object-fit:contain; object-position:center top; }
.gaffer-art-missing { color:#817e77; background:var(--surface); font-size:10px; line-height:1.4; text-align:center; }
.gaffer-art-categories { display:flex; gap:26px; overflow-x:auto; white-space:nowrap; padding:0 0 16px; margin:0 0 28px; border-bottom:1px solid var(--line); }
.gaffer-art-categories a { display:flex; align-items:center; gap:8px; min-height:44px; color:var(--muted); font-size:13px; }
.gaffer-art-categories span { color:var(--faint); font-size:11px; }
.gaffer-art-categories a[aria-current="page"] { color:var(--lime); box-shadow:0 16px 0 -14px var(--lime); }
.gaffer-art-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:28px 20px; }
.gaffer-art-tile { min-width:0; }
.gaffer-art-image { display:block; overflow:hidden; background-color:#ded8ce; background-image:linear-gradient(45deg,#eee9e0 25%,transparent 25%),linear-gradient(-45deg,#eee9e0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eee9e0 75%),linear-gradient(-45deg,transparent 75%,#eee9e0 75%); background-size:24px 24px; background-position:0 0,0 12px,12px -12px,-12px 0; }
.gaffer-art-grid .gaffer-art-image { aspect-ratio:4/5; }
.gaffer-art-grid img { display:block; width:100%; height:100%; object-fit:contain; transition:transform .16s ease; }
.gaffer-art-tile:hover img { transform:scale(1.025); }
.gaffer-art-caption { display:flex; flex-direction:column; gap:4px; padding-top:12px; }
.gaffer-art-caption small { color:var(--muted); font-size:10px; }
.gaffer-art-caption strong { font-size:13px; overflow-wrap:anywhere; }
.gaffer-art-caption span { color:var(--faint); font-size:10px; }
.gaffer-art-tile:hover strong { color:var(--lime); }
.gaffer-art-detail { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr); gap:40px; align-items:start; }
.gaffer-art-detail .gaffer-art-image { display:flex; justify-content:center; align-items:center; min-height:320px; padding:16px; }
.gaffer-art-detail img { display:block; width:auto; height:auto; max-width:100%; max-height:72vh; object-fit:contain; }
.gaffer-open-art { margin-top:24px; }
.gaffer-player-art { margin-bottom:24px; }
.gaffer-player-art .gaffer-art-image { height:300px; margin:12px 0; }
.gaffer-player-art img { display:block; width:100%; height:100%; object-fit:contain; object-position:center top; }
@media (max-width:1200px) { .gaffer-art-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:900px) { .gaffer-art-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:600px) { .gaffer-art-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 14px; } .gaffer-art-detail { grid-template-columns:1fr; gap:24px; } .gaffer-art-categories { gap:20px; } }
@media (prefers-reduced-motion:reduce) { .gaffer-art-grid img { transition:none; } }
