/*
Concept: an intake ledger for discarded code, stamped back into circulation.
Type: oversized compressed system sans for headlines; mono for records, labels and controls.
Scale: 13px metadata, 16px body, 24px section heads, 42–96px display.
Grid: twelve columns, thick rules, narrow numbered rail, asymmetric content panels.
#000000 is the chassis; #FFFFFF is the page; #00FF00 is a signal, never body text on white.
The hand-cut wordmark, offset rules and visible inventory numbers give it a human print-shop rhythm.
No floating cards, soft shadows, gradients, mascot, or stock “AI” imagery.
*/
:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; font-size: 16px; background: #FFFFFF; color: #000000; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 3px solid #000000; outline-offset: 3px; box-shadow: 0 0 0 6px #00FF00; }
::selection { background: #00FF00; color: #000000; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { background: #000000; color: #FFFFFF; border-bottom: 8px solid #00FF00; }
.masthead { max-width: 1600px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 10px clamp(20px, 3vw, 48px); gap: 16px; }
.brand { display: block; width: min(100%, 300px); }
.brand img { width: 100%; height: auto; }
.masthead-mark { width: clamp(40px, 4vw, 56px); justify-self: end; }
.site-nav { border-top: 1px solid #FFFFFF; max-width: 1600px; margin: auto; display: flex; flex-wrap: wrap; padding: 0 clamp(20px, 3vw, 48px); }
.site-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 28px 8px 0; margin-right: 28px; font: 700 13px/1.2 'Courier New', Courier, monospace; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.site-nav a::before { content: '■'; color: #00FF00; margin-right: 10px; font-size: 10px; }
.site-nav a:hover { color: #00FF00; }
.site-nav a.nav-support { align-self: center; min-height: 32px; padding: 4px 14px; background: #00FF00; color: #000000; }
.site-nav a.nav-support::before { color: #000000; }
.site-nav a.nav-support:hover { background: #FFFFFF; color: #000000; }
.site-nav a:focus-visible, .site-header a:focus-visible { outline-color: #FFFFFF; box-shadow: 0 0 0 6px #00FF00; }
.language-selector { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-end; gap: 6px; max-width: 1600px; margin: auto; padding: 0 clamp(20px, 3vw, 48px); }
.language-selector a { display: block; line-height: 0; padding: 3px 3px 0; border: 1px solid transparent; border-bottom: 0; }
.language-selector a img { display: block; width: 24px; height: 16px; border: 1px solid #FFFFFF; object-fit: cover; }
.language-selector a[aria-current="true"], .language-selector a:hover { background: #FFFFFF; border-color: #FFFFFF; }
.language-selector a[aria-current="true"] img { border-color: #000000; }
.page-frame { width: 100%; max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: minmax(64px, 1fr) minmax(0, 10fr) minmax(24px, 1fr); flex: 1; }
.index-rail { border-right: 2px solid #000000; padding: 32px 8px; }
.index-rail::before { content: ''; display: block; width: 8px; height: 110px; margin: 0 auto; background: #00FF00; border: 2px solid #000000; }
.page-main { min-width: 0; padding: 0 clamp(20px, 3vw, 48px) 80px; }
.page-main::before { content: ''; display: block; width: 100%; height: 1px; background: #000000; margin-top: 28px; }
.page-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: clamp(14px, 2vw, 24px) 0 14px; border-bottom: 6px solid #000000; }
.page-heading h1 { margin: 0; max-width: 1050px; font: 900 clamp(28px, 3.5vw, 52px)/.9 Impact, 'Nimbus Sans Narrow', 'Noto Sans Condensed', 'Arial Narrow', 'Arial Black', Arial, sans-serif; letter-spacing: -.035em; text-transform: uppercase; overflow-wrap: anywhere; }
.heading-stamp { width: clamp(36px, 3.5vw, 52px); justify-self: end; align-self: start; }
.page-content { padding-top: 20px; }
.page-content p { line-height: 1.55; max-width: 78ch; }
.page-content h2 { margin: 48px 0 0; padding: 11px 0 14px; border-top: 4px solid #000000; font: 900 clamp(24px, 3vw, 42px)/1 Impact, 'Nimbus Sans Narrow', 'Noto Sans Condensed', 'Arial Narrow', 'Arial Black', Arial, sans-serif; letter-spacing: .01em; text-transform: uppercase; }
.page-content h2:first-child, .search-form + h2 { margin-top: 0; }
.search-form { display: flex; width: 100%; border: 3px solid #000000; margin: 0 0 20px; }
.search-form input { flex: 1; min-width: 0; border: 0; padding: 15px 17px; font: 700 clamp(16px, 2vw, 22px)/1.2 'Courier New', Courier, monospace; border-radius: 0; }
.search-form button, .primary-button, .download-link { border: 0; border-left: 3px solid #000000; background: #00FF00; color: #000000; padding: 16px 24px; font: 900 14px/1.15 'Courier New', Courier, monospace; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.search-form button:hover, .primary-button:hover, .download-link:hover { background: #000000; color: #00FF00; }
/* Card grid: stamped index tags on hard-edged cards; the offset block turns green on hover. */
.listing { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; padding: 8px 8px 16px 0; }
.catalogue-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 210px; padding: 44px 20px 20px; background: #FFFFFF; border: 2px solid #000000; box-shadow: 8px 8px 0 #000000; transition: transform .12s ease, box-shadow .12s ease; }
.catalogue-card:hover, .catalogue-card:focus-within { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 #00FF00, 11px 11px 0 2px #000000; }
.card-index { position: absolute; top: -2px; left: -2px; padding: 6px 10px; background: #000000; color: #00FF00; font: 700 13px/1 'Courier New', Courier, monospace; letter-spacing: .08em; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body a { font: 900 clamp(22px, 2.2vw, 30px)/1.02 Impact, 'Nimbus Sans Narrow', 'Noto Sans Condensed', 'Arial Narrow', 'Arial Black', Arial, sans-serif; text-transform: uppercase; text-decoration: none; letter-spacing: .01em; overflow-wrap: anywhere; }
.card-body a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card-body a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.card-body p { margin: 0; padding-top: 12px; border-top: 2px dashed #000000; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sponsor-card { background: #000000; color: #FFFFFF; border-style: dashed; box-shadow: 8px 8px 0 #00FF00; justify-content: center; }
.sponsor-card .card-index { background: #00FF00; color: #000000; }
.sponsor-card .card-body p { border-top-color: #FFFFFF; font: 700 15px/1.4 'Courier New', Courier, monospace; text-transform: uppercase; }
.card-mark { position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; }
.taxonomy { display: flex; flex-wrap: wrap; gap: 9px; padding: 19px 0 14px; }
.taxonomy a, .chip { display: inline-block; border: 2px solid #000000; padding: 7px 10px; font: 700 12px/1.2 'Courier New', Courier, monospace; text-decoration: none; text-transform: uppercase; overflow-wrap: anywhere; }
.taxonomy a:hover { background: #000000; color: #00FF00; }
.notice { border: 3px solid #000000; border-left: 12px solid #00FF00; padding: 14px 18px; margin: 0 0 30px; font: 700 14px/1.4 'Courier New', Courier, monospace; }
.upload-form { display: grid; gap: 0; border-top: 4px solid #000000; max-width: 880px; }
.upload-form label:first-child::before { content: ''; width: 54px; height: 54px; display: block; background: #000000 url('/static/upload.svg') center / contain no-repeat; }
.upload-form label { display: grid; gap: 12px; padding: 20px 0; border-bottom: 2px solid #000000; font: 700 13px/1.4 'Courier New', Courier, monospace; text-transform: uppercase; }
.upload-form .license-consent { display: flex; gap: 13px; align-items: start; text-transform: none; }
.upload-form input:not([type='checkbox']), .upload-form textarea { width: 100%; min-height: 48px; border: 2px solid #000000; border-radius: 0; background: #FFFFFF; color: #000000; padding: 10px 12px; font: 16px/1.4 Arial, Helvetica, sans-serif; }
.upload-form textarea { min-height: 130px; resize: vertical; }
.upload-form input[type='file'] { font: 700 13px/1.4 'Courier New', Courier, monospace; }
.upload-form input[type='checkbox'] { width: 20px; height: 20px; accent-color: #000000; flex: 0 0 auto; margin: 0; }
.upload-form button { justify-self: start; margin: 25px 0 0; border: 3px solid #000000; }
.sheet-topline, .status-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.kind-badge { display: inline-flex; align-items: center; gap: 10px; background: #000000; color: #00FF00; padding: 7px 12px; font: 700 12px/1.2 'Courier New', Courier, monospace; text-transform: uppercase; }
.kind-badge img { width: 20px; height: 20px; }
.sheet-fields { border-top: 4px solid #000000; }
.sheet-row { display: grid; grid-template-columns: minmax(140px, 3fr) minmax(0, 8fr); gap: 28px; padding: 20px 0; border-bottom: 2px solid #000000; }
.sheet-row h2 { margin: 0; padding: 0; border: 0; font: 900 23px/1 Impact, 'Nimbus Sans Narrow', 'Noto Sans Condensed', 'Arial Narrow', 'Arial Black', Arial, sans-serif; }
.sheet-row p { margin: 0; overflow-wrap: anywhere; }
.sheet-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 32px 0; }
.sheet-meta-block { border-top: 4px solid #000000; padding-top: 12px; }
.sheet-meta-block h2 { border: 0; margin: 0 0 12px; padding: 0; font-size: 24px; }
.sheet-meta-block .taxonomy { padding: 0; }
.license-line { display: flex; align-items: center; gap: 12px; font: 700 13px/1.4 'Courier New', Courier, monospace; border-top: 2px solid #000000; padding-top: 18px; }
.license-line img { width: 30px; height: 30px; }
.download-link { display: inline-block; border: 3px solid #000000; margin: 12px 0 25px; }
.status-panel { border-top: 5px solid #000000; border-bottom: 2px solid #000000; padding: 24px 0 30px; }
.status-panel p { margin: 0 0 14px; }
.status-panel strong { font: 700 12px/1.4 'Courier New', Courier, monospace; text-transform: uppercase; letter-spacing: .1em; }
.status-panel a { display: inline-block; margin-top: 15px; font: 900 14px/1.3 'Courier New', Courier, monospace; text-transform: uppercase; }
.admin-list { border-bottom: 2px solid #000000; }
.admin-row { display: grid; grid-template-columns: 50px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) auto; align-items: start; gap: 8px 16px; border-top: 2px solid #000000; padding: 16px 0; font: 700 12px/1.4 'Courier New', Courier, monospace; overflow-wrap: anywhere; }
/* Explicit placement: the row has an optional languages line, actions always stay in the last column. */
.admin-row .admin-languages { grid-column: 2 / 5; grid-row: 2; font-weight: 400; }
.admin-row .admin-languages:empty { display: none; }
.admin-row form { margin: 0; }
.admin-row button { border: 2px solid #000000; background: #00FF00; color: #000000; padding: 7px 10px; font: inherit; text-transform: uppercase; white-space: nowrap; }
.admin-row button:hover { background: #000000; color: #00FF00; }
.admin-actions { grid-column: 5; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 190px; overflow-wrap: normal; }
.admin-actions form { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.admin-actions > form:not(:last-child) button { width: 100%; }
.admin-confirm { display: inline-flex; align-items: center; gap: 4px; text-transform: uppercase; white-space: nowrap; }
.admin-tabs, .legal-index { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.admin-tabs a, .legal-index a { border: 2px solid #000000; padding: 7px 10px; font: 700 12px/1.2 'Courier New', Courier, monospace; text-decoration: none; text-transform: uppercase; }
.admin-tabs a[aria-current="page"] { background: #000000; color: #00FF00; }
.site-footer a + a { margin-left: 24px; }
.error-panel { border-top: 4px solid #000000; padding: 24px 0; font: 700 18px/1.4 'Courier New', Courier, monospace; }
.ad-slot { max-width: 1600px; width: 100%; margin: auto; border-top: 2px solid #000000; background: #FFFFFF; padding: 15px clamp(20px, 3vw, 48px); display: grid; grid-template-columns: 1fr 2fr; gap: 20px; font: 700 12px/1.3 'Courier New', Courier, monospace; text-transform: uppercase; letter-spacing: .08em; }
.ad-slot::before { content: 'ESPACIO / 01'; }
@media (max-width: 800px) {
  .masthead { grid-template-columns: 1fr; }
  .masthead-mark { display: none; }
  .page-frame { grid-template-columns: 34px minmax(0, 1fr); }
  .index-rail { padding: 20px 7px; }
  .page-heading { grid-template-columns: minmax(0, 1fr) 44px; }
  .heading-stamp { width: 40px; }
  .admin-row { grid-template-columns: 35px 1fr auto; }
  .admin-row .admin-status { grid-column: 2; }
  .admin-row .admin-error { grid-column: 2 / -1; }
  .admin-row .admin-languages { grid-column: 2 / -1; grid-row: auto; }
  .admin-row .admin-actions { grid-column: 1 / -1; grid-row: auto; min-width: 0; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .masthead { padding: 8px 20px; gap: 10px; }
  .site-nav { padding: 0 20px; }
  .site-nav a { margin-right: 12px; padding-right: 4px; font-size: 11px; }
  .language-selector { padding: 0 20px; gap: 5px; }
  .page-frame { grid-template-columns: 22px minmax(0, 1fr); }
  .index-rail { padding: 16px 4px; }
  .page-main { padding: 0 18px 54px; }
  .page-heading { gap: 8px; padding-bottom: 12px; }
  .heading-stamp { width: 32px; }
  .search-form button { padding: 10px; }
  .listing { grid-template-columns: 1fr; gap: 22px; padding-right: 6px; }
  .catalogue-card { min-height: 0; box-shadow: 6px 6px 0 #000000; }
  .sheet-row { grid-template-columns: 1fr; gap: 8px; }
  .sheet-meta { grid-template-columns: 1fr; }
  .ad-slot { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* Code blocks: wrap long commands instead of scrolling sideways; one click selects the whole block. */
.page-main, .page-content { min-width: 0; }
pre { max-width: 100%; margin: 12px 0 22px; padding: 14px 16px; background: #000000; color: #00FF00; border-left: 6px solid #00FF00; font: 14px/1.5 'Courier New', Courier, monospace; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; overflow-x: hidden; user-select: all; -webkit-user-select: all; cursor: copy; }
pre code { font: inherit; color: inherit; }
pre:focus { outline: 3px solid #000000; outline-offset: 3px; }
pre.sample { user-select: text; -webkit-user-select: text; cursor: text; background: #FFFFFF; color: #000000; border: 2px dashed #000000; border-left-width: 6px; }
