/* ═══════════════════════════════════════
   PROYECTO TOCHO — PUBLIC STYLES
   forum / skeuomorphic / system chrome
   orange brand · steam stays blue
   ═══════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
* { min-width: 0; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  background: #bbb8b0;
  background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' fill='%23b3b0a8' opacity='0.3'/%3E%3C/svg%3E");
  color: #222;
  font-family: Tahoma, 'Segoe UI', Geneva, Verdana, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }

a { color: #c4350f; }
a:hover { color: #9c2e0a; }
::selection { background: #f8481c; color: #fff; }

/* ─── 3-COLUMN GRID ──────────────── */

.page-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 830px) 1fr;
  gap: 0 16px;
  padding: 12px 16px;
  max-width: 1560px;
  margin: 0 auto;
}

.main-col { grid-column: 2; min-width: 0; }
.left-gutter { grid-column: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.right-gutter { grid-column: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.gutter-sticky { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 8px; }
.slot-empty-tall {
  width: 100%; min-height: 320px;
  background: linear-gradient(to bottom, #c8c4bc, #b8b4ac);
  display: flex; align-items: center; justify-content: center;
  color: #999; font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
}

/* slot window frame (chunky border + head) */
.slot-window {
  background: #d8d4cc;
  border: 2px solid; border-color: #f0ede6 #6e6b64 #6e6b64 #f0ede6;
  border-radius: 3px; overflow: hidden;
}
.slot-window-head {
  background: linear-gradient(to bottom, #a09c94, #888480);
  color: #fff; padding: 3px 6px; font-size: 10px; font-weight: bold;
  text-shadow: 1px 1px 0 #5c5854;
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.slot-window-head .slot-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-window-head .win-controls { flex-shrink: 0; }
.slot-window-head .win-btn { width: 13px; height: 11px; font-size: 7px; }
.slot-window-body { line-height: 0; }
.slot-window-body img { display: block; width: 100%; }
.gutter-slot { display: block; text-decoration: none; }
.gutter-slot:hover { text-decoration: none; }

/* mascot video */
.mascot-video { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #1a1a1a; cursor: pointer; }
.mascot-hint { font-size: 9px; color: #888; text-align: center; padding: 3px; background: #d8d4cc; letter-spacing: 0.5px; text-transform: uppercase; line-height: 1.2; }

/* web guardian (indie web charm) */
.web-guardian {
  background: #fff; color: #000; padding: 10px; text-align: center;
  font-family: 'Times New Roman', Times, serif; font-size: 13px; line-height: 1.4;
}
.web-guardian p { margin: 0; }
.web-guardian h3 { margin: 2px 0; font-size: 20px; letter-spacing: 1px; font-weight: bold; }
.web-guardian img { max-width: 140px; border: 1px solid #000; margin: 5px auto; display: block; }
.web-guardian .guardian-desc { font-style: italic; color: #444; font-size: 12px; }
.web-guardian small a { color: #00e; }

/* ─── HERO BANNER ────────────────── */

.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #3a2a22 0%, #2a1a14 40%, #3a201a 100%);
  border: 2px solid; border-color: #6a5548 #221a14 #221a14 #6a5548;
  border-radius: 3px;
  overflow: hidden; margin-bottom: 6px; min-height: 140px;
  display: flex; align-items: flex-end;
}
.hero-banner::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
    radial-gradient(ellipse at 30% 50%, rgba(248,72,28,0.18), transparent 60%);
}
.hero-content {
  position: relative; z-index: 1; padding: 20px 16px 14px; width: 100%;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.hero-brand { display: flex; align-items: center; gap: 14px; }
.hero-logo { width: 60px; height: auto; flex-shrink: 0; filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.5)); }
.hero-title { font-size: 28px; font-weight: bold; color: #f0e4dc; text-shadow: 2px 2px 0 #1a0e08, 0 0 20px rgba(248,72,28,0.4); letter-spacing: 1px; }
.hero-sub { font-size: 12px; color: #c89a8a; margin-top: 2px; }
.hero-meta { text-align: right; font-size: 11px; color: #c89a8a; }
.hero-meta .online { color: #8aca6a; }

/* ─── STEAM SHOWCASE (stays blue) ── */

.steam-banner {
  background: linear-gradient(to bottom, #1b2838, #2a475e);
  border: 2px solid; border-color: #3a5a7a #0a1828 #0a1828 #3a5a7a;
  border-radius: 3px; margin-bottom: 6px; overflow: hidden;
}
.steam-header {
  padding: 8px 14px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #1a3050;
}
.steam-header-title { font-size: 13px; font-weight: bold; color: #c6d4df; letter-spacing: 0.5px; }
.steam-header small { color: #5a7a9a; font-size: 10px; }
.steam-games { display: grid; grid-template-columns: 1fr 1fr; }
.steam-card {
  display: flex; gap: 12px; padding: 12px 14px;
  border-right: 1px solid #1a3050; transition: background 0.15s;
}
.steam-card:last-child { border-right: none; }
.steam-card:hover { background: rgba(103,193,245,0.05); }
.steam-card-img {
  width: 120px; height: 70px;
  background: linear-gradient(135deg, #2a475e, #1b2838);
  border: 1px solid #3a5a7a; border-radius: 2px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #3a5a7a; font-size: 9px; text-transform: uppercase; letter-spacing: 1px;
  overflow: hidden;
}
.steam-card-img img { width: 100%; height: 100%; object-fit: cover; }
.steam-card-info { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.steam-card-title { font-size: 14px; font-weight: bold; color: #c6d4df; }
.steam-card-desc { font-size: 11px; color: #8aa4bc; line-height: 1.4; }
.steam-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.steam-tag { font-size: 9px; padding: 1px 6px; border-radius: 2px; background: rgba(103,193,245,0.1); color: #67c1f5; border: 1px solid rgba(103,193,245,0.2); }
.steam-cta {
  display: inline-block; margin-top: 6px; padding: 4px 16px;
  background: linear-gradient(to bottom, #799e2e, #536904);
  border: 1px solid; border-color: #8ab83a #3a4a04 #3a4a04 #8ab83a;
  border-radius: 2px; color: #d2e885; font-size: 11px; font-weight: bold;
  text-decoration: none; text-shadow: 0 1px 0 #2a3a04; letter-spacing: 0.5px;
}
.steam-cta:hover { background: linear-gradient(to bottom, #8ab83a, #5c7a08); color: #e8f4aa; text-decoration: none; }
.steam-cta.wishlist {
  background: linear-gradient(to bottom, #4a6a8a, #2a4a6a);
  border-color: #5a7a9a #1a3050 #1a3050 #5a7a9a;
  color: #a0c4e0; text-shadow: 0 1px 0 #1a2a3a;
}
.steam-cta.wishlist:hover { background: linear-gradient(to bottom, #5a7a9a, #3a5a7a); color: #c0daf0; }

/* ─── WINDOW FRAME ───────────────── */

.window {
  background: #d8d4cc;
  border: 2px solid; border-color: #f0ede6 #6e6b64 #6e6b64 #f0ede6;
  margin-bottom: 6px; border-radius: 3px; overflow: hidden;
}
.window-title {
  background: linear-gradient(to right, #d63e15, #ff7a4a, #d63e15);
  color: #fff; padding: 4px 8px; font-size: 12px; font-weight: bold;
  display: flex; justify-content: space-between; align-items: center;
  text-shadow: 1px 1px 0 #a8380d;
}
.win-controls { display: flex; gap: 2px; flex-shrink: 0; }
.win-btn {
  width: 16px; height: 14px;
  background: linear-gradient(to bottom, #e8e6e0, #c8c4bc);
  border: 1px solid; border-color: #f0ede6 #8a8780 #8a8780 #f0ede6;
  border-radius: 2px; font-size: 8px; text-shadow: none; color: #333;
  display: flex; align-items: center; justify-content: center; cursor: default;
}

/* toolbar nav */
.toolbar { display: flex; gap: 1px; padding: 3px 4px; background: #d0ccc4; border-top: 1px solid #e8e4dc; }
.toolbar a {
  display: inline-block; padding: 3px 14px;
  background: linear-gradient(to bottom, #eae6de, #ccc8c0);
  border: 1px solid; border-color: #f0ede6 #9a9690 #9a9690 #f0ede6;
  border-radius: 2px; color: #333; text-decoration: none;
  font-size: 11px; font-weight: bold; text-shadow: 0 1px 0 #f0ede6;
}
.toolbar a:hover { background: linear-gradient(to bottom, #f0ede6, #d8d4cc); }
.toolbar a:active { background: linear-gradient(to bottom, #c0bcb4, #d0ccc4); border-color: #9a9690 #f0ede6 #f0ede6 #9a9690; }
.toolbar a.active { background: linear-gradient(to bottom, #ffe4d8, #ffc8a8); border-color: #ffd4c0 #d63e15 #d63e15 #ffd4c0; color: #8a2e08; }

/* welcome strip */
.welcome-strip {
  background: linear-gradient(to bottom, #e8e4dc, #d8d4cc);
  padding: 5px 10px; display: flex; justify-content: space-between; gap: 8px;
  font-size: 11px; color: #666;
  border-bottom: 1px solid #bbb8b0; border-top: 1px solid #f0ede6;
}
.welcome-strip b { color: #c4350f; }

/* announcement */
.announce {
  margin: 6px 8px; padding: 8px 10px;
  background: #fdf0e0; border: 1px solid #e8c498; border-radius: 3px;
  display: flex; gap: 8px; align-items: baseline;
}
.announce-icon { color: #d68410; font-weight: bold; }
.announce a { font-weight: bold; }

/* ticker */
.ticker-frame {
  margin: 0 8px 6px; border: 2px solid; border-color: #8a8780 #f0ede6 #f0ede6 #8a8780;
  border-radius: 2px; background: #fff; overflow: hidden; padding: 3px 0;
}
.ticker { display: inline-flex; white-space: nowrap; animation: scroll-left 30s linear infinite; will-change: transform; font-size: 11px; color: #555; }
.ticker > span { padding-right: 4em; }
.ticker b { color: #c4350f; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── BOARDS ─────────────────────── */

.board {
  margin: 6px 8px; background: #eae6de;
  border: 2px solid; border-color: #f4f0e8 #a8a49c #a8a49c #f4f0e8;
  border-radius: 3px; overflow: hidden;
}
.board-header {
  background: linear-gradient(to bottom, #ff6a3c, #e8430f);
  color: #fff; padding: 4px 10px; font-size: 12px; font-weight: bold;
  display: flex; justify-content: space-between; align-items: center;
  text-shadow: 1px 1px 0 #a8380d;
}
.board-header small { font-weight: normal; font-size: 10px; color: #ffd4c0; text-shadow: none; }
.board-header small a { color: #ffd4c0; }
.board-header-gray { background: linear-gradient(to bottom, #a09c94, #888480); text-shadow: 1px 1px 0 #5c5854; }

.board-colheader {
  display: grid; padding: 2px 10px; font-size: 10px; color: #888;
  background: #dedad2; border-bottom: 1px solid #c8c4bc;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.cols-thread { grid-template-columns: 18px 1fr auto; gap: 6px; }
.cols-team { grid-template-columns: 26px 130px 90px 1fr; gap: 4px; }
.board-colheader span:last-child { text-align: right; }

/* rows */
.row { padding: 5px 10px; border-bottom: 1px solid #d4d0c8; }
.row:last-child { border-bottom: none; }
.row:nth-child(odd) { background: #f0ede6; }
.row:nth-child(even) { background: #e8e4dc; }
.row:hover { background: #fce4d8; }

/* thread row */
.thread-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; align-items: baseline; }
.t-icon { font-size: 9px; text-align: center; }
.t-icon.pin { color: #c84040; }
.t-icon.unread { color: #2a8a2a; }
.t-icon.read { color: #999; }
.t-title a { text-decoration: none; color: #c4350f; font-weight: bold; }
.t-title a:hover { text-decoration: underline; }
.t-meta { color: #888; font-size: 11px; text-align: right; white-space: nowrap; }

.tag { display: inline-block; font-size: 9px; padding: 0px 4px; border-radius: 2px; margin-right: 3px; font-weight: bold; vertical-align: middle; }
.tag-pin { background: #f0d0d0; color: #993333; border: 1px solid #d4a0a0; }
.tag-new { background: #d0f0d0; color: #2a6e2a; border: 1px solid #a0d4a0; }
.tag-steam { background: #d0dce8; color: #2a4a6e; border: 1px solid #a0b8d4; }
.tag-wasm { background: #f0e0d0; color: #8a4a2a; border: 1px solid #d8b098; }
.tag-dl { background: #e0dcd8; color: #555; border: 1px solid #c0bcb4; }
.tag-soon { background: #f0e8d0; color: #8a6e2a; border: 1px solid #d4c898; }

/* game row (home) */
.game-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; }
.game-thumb {
  width: 64px; height: 44px;
  background: linear-gradient(135deg, #c8c4bc, #a8a49c);
  border: 1px solid #999; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: #777; font-size: 8px; text-transform: uppercase; letter-spacing: 1px;
  overflow: hidden; flex-shrink: 0;
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-title { font-weight: bold; color: #333; font-size: 12px; }
.g-desc { color: #666; font-size: 11px; margin-top: 1px; }
.g-tags { display: flex; gap: 3px; margin-top: 3px; flex-wrap: wrap; }
.g-action a {
  display: inline-block; padding: 2px 10px;
  background: linear-gradient(to bottom, #eae6de, #d0ccc4);
  border: 1px solid; border-color: #f0ede6 #9a9690 #9a9690 #f0ede6;
  border-radius: 2px; color: #333; font-size: 11px; text-decoration: none; font-weight: bold;
  text-shadow: 0 1px 0 #f0ede6; white-space: nowrap;
}
.g-action a:hover { background: linear-gradient(to bottom, #f0ede6, #dcdcd4); text-decoration: none; }

/* orange CTA button (games page, etc) */
.cta-orange {
  display: inline-block; padding: 4px 14px;
  background: linear-gradient(to bottom, #ff7a4a, #f8481c);
  border: 1px solid; border-color: #ff9a6c #a8380d #a8380d #ff9a6c;
  border-radius: 2px; color: #fff; font-size: 11px; font-weight: bold;
  text-decoration: none; text-shadow: 1px 1px 0 #a8380d; white-space: nowrap;
}
.cta-orange:hover { background: linear-gradient(to bottom, #ff8a5c, #ff5a2c); color: #fff; text-decoration: none; }

/* team row */
.team-row { display: grid; grid-template-columns: 26px 130px 90px 1fr; gap: 4px; align-items: center; font-size: 11px; }
.team-avi { width: 20px; height: 20px; background: linear-gradient(135deg, #d0ccc4, #b8b4ac); border: 1px solid #999; border-radius: 2px; overflow: hidden; }
.team-avi img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: bold; color: #c4350f; }
.team-role { color: #666; }
.team-proj { color: #999; font-size: 10px; }

.role-badge {
  display: inline-block; font-size: 10px; padding: 1px 8px; border-radius: 2px;
  background: linear-gradient(to bottom, #ff6a3c, #e8430f);
  color: #fff; border: 1px solid #a8380d; text-shadow: 1px 1px 0 #8a2e08;
}

/* 88x31 buttons */
.btn-wall { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px; }
.btn-88 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 88px; height: 31px; padding: 0 8px;
  background: linear-gradient(to bottom, #e8e4dc, #ccc8c0);
  border: 1px solid; border-color: #f0ede6 #8a8780 #8a8780 #f0ede6;
  border-radius: 2px; color: #333; font-size: 10px; font-weight: bold;
  text-decoration: none; text-shadow: 0 1px 0 #f0ede6; letter-spacing: 0.5px;
}
.btn-88:hover { background: linear-gradient(to bottom, #f0ede6, #dcd8d0); text-decoration: none; }
.btn-88.primary {
  background: linear-gradient(to bottom, #ff7a4a, #f8481c);
  border-color: #ff9a6c #a8380d #a8380d #ff9a6c;
  color: #fff; text-shadow: 1px 1px 0 #a8380d;
}
.btn-88.primary:hover { background: linear-gradient(to bottom, #ff8a5c, #ff5a2c); }

/* ─── INLINE BANNER ──────────────── */

.feature-slot { margin: 6px 8px; }
.feature-slot .slot-window-body img { max-height: 320px; width: 100%; object-fit: cover; }
.slot-empty {
  background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
  padding: 20px; color: #666; text-align: center;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
}

/* ─── PRESS PAGE ─────────────────── */

.press-intro { margin-bottom: 1rem; line-height: 1.6; }
.press-intro p { margin-bottom: 0.5rem; }
.press-boilerplate { border: 2px solid; border-color: #f4f0e8 #a8a49c #a8a49c #f4f0e8; background: #eae6de; padding: 10px; margin: 6px 0 12px; border-radius: 3px; }
.press-boilerplate h3 { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 6px; }
.press-contact-row { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.press-kit-entry { padding: 8px 0; border-bottom: 1px solid #d4d0c8; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.press-kit-entry:last-child { border-bottom: none; }
.press-kit-entry h3 { font-size: 13px; color: #333; margin-bottom: 2px; }
.press-kit-desc { color: #666; font-size: 11px; margin-bottom: 4px; }
.press-kit-tags { display: flex; gap: 4px; flex-wrap: wrap; font-size: 10px; color: #888; }
.press-kit-actions { display: flex; flex-direction: column; gap: 3px; text-align: right; font-size: 11px; white-space: nowrap; }

/* ─── BLOG POST ──────────────────── */

.post-header { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #d4d0c8; }
.post-field { display: grid; grid-template-columns: 5rem 1fr; gap: 4px; padding: 2px 0; }
.post-label { color: #888; text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px; }
.post-value { color: #333; }
.post-value-author { display: flex; align-items: center; gap: 6px; color: #333; }
.author-avatar { width: 18px; height: 18px; border-radius: 2px; object-fit: cover; border: 1px solid #ccc; }

.post-body { line-height: 1.7; color: #333; }
.post-body h2 { font-size: 15px; margin: 1.5rem 0 0.5rem; }
.post-body h3 { font-size: 13px; margin: 1.2rem 0 0.4rem; }
.post-body p { margin-bottom: 0.8rem; }
.post-body ul, .post-body ol { margin: 0 0 0.8rem 1.5rem; }
.post-body li { margin-bottom: 0.2rem; }
.post-body blockquote { border-left: 3px solid #f8481c; padding-left: 10px; margin: 0.8rem 0; color: #666; }
.post-body code { background: #dedad2; padding: 1px 4px; font-size: 11px; }
.post-body pre { background: #dedad2; border: 1px solid #c8c4bc; padding: 8px; overflow-x: auto; margin-bottom: 0.8rem; }
.post-body pre code { background: none; padding: 0; }
.post-body img { max-width: 100%; margin: 0.8rem 0; border: 1px solid #ccc; }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 0.8rem; }
.post-body th, .post-body td { padding: 4px 8px; border: 1px solid #c8c4bc; text-align: left; }
.post-body hr { border: none; border-top: 1px solid #c8c4bc; margin: 1.5rem 0; }
.post-body a { color: #c4350f; }

.back-link { display: inline-block; margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid #d4d0c8; color: #888; font-size: 11px; }
.back-link:hover { color: #c4350f; }

/* ─── STUB ───────────────────────── */

.stub { color: #888; font-style: italic; padding: 1.5rem; text-align: center; border: 1px dashed #c8c4bc; border-radius: 3px; }

/* ─── FOOTER ─────────────────────── */

.site-footer {
  background: linear-gradient(to bottom, #d4d0c8, #c8c4bc);
  border: 2px solid; border-color: #e8e4dc #8a8780 #8a8780 #e8e4dc;
  border-radius: 3px; overflow: hidden;
}
.footer-stats { padding: 6px 10px; font-size: 11px; color: #666; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #bbb8b0; flex-wrap: wrap; }
.footer-stats b { color: #c4350f; }
.footer-badges { padding: 8px 10px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; border-bottom: 1px solid #bbb8b0; background: #ccc8c0; }
.badge-link { display: inline-block; line-height: 0; image-rendering: pixelated; }
.badge-link img { display: block; border: 1px solid #888; }
.footer-bottom { padding: 5px 10px; font-size: 10px; color: #999; text-align: center; letter-spacing: 0.5px; background: #ccc8c0; }

/* ─── MOBILE ─────────────────────── */

@media (max-width: 1100px) {
  .left-gutter, .right-gutter { display: none; }
  .page-grid { grid-template-columns: minmax(0, 1fr); padding: 6px; gap: 0; }
  .main-col { grid-column: 1; }
  .steam-games { grid-template-columns: 1fr; }
  .steam-card { border-right: none; border-bottom: 1px solid #1a3050; }
  .steam-card:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  body { font-size: 13px; }
  .board { margin: 6px 4px; }
  .hero-banner { min-height: 100px; }
  .hero-title { font-size: 22px; }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 12px 10px; }
  .hero-meta { text-align: left; }
  .window-title { font-size: 11px; }
  .toolbar { flex-wrap: wrap; gap: 2px; }
  .toolbar a { flex: 1 1 auto; text-align: center; min-width: 56px; padding: 5px 8px; font-size: 12px; }
  .welcome-strip { flex-direction: column; gap: 2px; }
  .cols-team { grid-template-columns: 26px 1fr; gap: 4px; }
  .cols-team span:nth-child(3), .cols-team span:nth-child(4) { display: none; }
  .ticker { animation-duration: 20s; }
  .feature-slot .slot-window-body img { max-height: 160px; }
}

/* ═══════════════════════════════════════
   ADMIN STYLES — tools, not art
   ═══════════════════════════════════════ */

body.admin {
  font-family: system-ui, sans-serif;
  background: white; color: #222;
  font-size: 16px; line-height: 1.5;
  background-image: none;
}
body.admin a { color: inherit; }
body.admin a:hover { text-decoration: none; }

.admin-bar {
  background: #222; display: flex; align-items: center;
  justify-content: space-between; padding: 0 2rem; height: 56px;
}
.admin-bar nav ul { display: flex; list-style: none; gap: 1.5rem; }
.admin-bar nav a { color: #aaa; text-decoration: none; font-size: 0.9rem; }
.admin-bar nav a:hover { color: white; }
.admin-bar nav a.active { color: white; font-weight: 600; }

.admin-logo { color: white !important; text-decoration: none; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.nav-spacer { flex: 1; }
.nav-user { font-weight: 600; }

body.admin .container { max-width: 960px; margin: 0 auto; padding: 2rem; background: white; }

.auth-box { max-width: 360px; margin: 4rem auto; }
.auth-box h1 { margin-bottom: 0.5rem; }
.auth-hint { color: #888; font-size: 0.9rem; margin-bottom: 1.5rem; }
.error { color: #dc2626; font-size: 0.9rem; margin-bottom: 1rem; }
.form-hint { color: #888; font-size: 0.8rem; }

.profile-card { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; padding: 1.5rem; border: 1px solid #eee; border-radius: 8px; }
.avatar-preview img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid #eee; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.admin-card { display: block; padding: 1.5rem; border: 2px solid #eee; border-radius: 8px; text-decoration: none; color: inherit; transition: border-color 0.15s; }
.admin-card:hover { border-color: #f8481c; }
.admin-card h2 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.admin-card p { font-size: 0.85rem; color: #888; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #888; }
.admin-table code { font-size: 0.85rem; color: #666; }
.badge-live { color: #16a34a; font-weight: 600; font-size: 0.85rem; }
.badge-draft { color: #888; font-size: 0.85rem; }

.btn { display: inline-block; padding: 0.5rem 1.25rem; background: #f8481c; color: white; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { background: #e0400f; }
.btn-subtle { color: #666; text-decoration: none; font-size: 0.9rem; }
.btn-subtle:hover { color: #222; }

.admin-form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 640px; }
.admin-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: #444; }
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="date"],
.admin-form input[type="password"],
.admin-form input[type="email"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea { padding: 0.6rem 0.75rem; border: 1px solid #ddd; border-radius: 6px; font-size: 0.95rem; font-family: inherit; resize: vertical; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: #f8481c; box-shadow: 0 0 0 2px rgba(248, 72, 28, 0.15); }
.checkbox-label { flex-direction: row !important; align-items: center; gap: 0.5rem !important; }

.audit-feed { margin-top: 1.5rem; }
.audit-feed h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: #888; margin-bottom: 1rem; }
.audit-entry { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid #f0f0f0; }
.audit-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.audit-body p { font-size: 0.9rem; line-height: 1.4; }
.audit-body strong { font-weight: 600; }
.audit-body a { color: #f8481c; text-decoration: none; font-weight: 500; }
.audit-body a:hover { text-decoration: underline; }
.audit-body time { font-size: 0.75rem; color: #aaa; }
body.admin .meta { color: #888; }
