/* Press (press.js), the events calendar (calendar.js) and polls (app.js pollBox). Only uses
   app.css's colour tokens and the site's red, so dark mode and themes keep working. */
.product-press .product-icon { background: #c81e1e; }

/* --- Press ------------------------------------------------------------------------ */
.press-card { display: flex; gap: 12px; color: var(--text); text-decoration: none; border: 1px solid var(--line);
  background: var(--panel); padding: 8px; margin: 0 0 10px; }
.press-card:hover { border-color: var(--red); }
.press-card b { display: block; font-size: 16px; margin: 2px 0 4px; color: var(--text); }
.press-card.big { flex-wrap: wrap; border-top: 4px solid var(--red); }
.press-card.big .press-pic { width: min(420px, 100%); }
.press-card.big b { font-size: 22px; }
.press-card-text { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.press-sum { color: var(--muted); font-size: 13px; }
.press-pic { width: 180px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel2); flex: none; }
.press-nopic { display: grid; place-items: center; color: #fff; font: 13px var(--gb-font); text-transform: uppercase; letter-spacing: 1px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 10px), linear-gradient(#d0242c, #8a0f15); }
.press-nopic.press-spotlight { background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 10px), linear-gradient(#e2474e, #a3141e); }
.press-nopic.press-devlog { background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 10px), linear-gradient(#5a080c, #2b0406); }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 12px; }
.press-kind { display: inline-block; font: 11px/16px var(--gb-font); letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin: 0; }
.press-post { max-width: 820px; }
.press-post h1 { font-size: 32px; line-height: 1.15; margin: 4px 0; word-break: break-word; }
.press-post h2 { font-size: 20px; margin: 22px 0 6px; }
.press-lead { font-size: 17px; font-weight: bold; }
.press-para { font-size: 15px; line-height: 1.6; white-space: pre-line; }
.press-creator { border-left: 4px solid var(--red); background: var(--stripe); padding: 8px 12px; margin: 14px 0; }
.press-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
@media (max-width: 600px) { .press-pic { width: 110px; } .press-post h1 { font-size: 24px; } }

/* --- The calendar ------------------------------------------------------------------- */
.cal-list { display: flex; flex-direction: column; gap: 6px; }
.cal-row { display: flex; gap: 12px; align-items: stretch; color: var(--text); text-decoration: none; border: 1px solid var(--line);
  border-left: 5px solid var(--red); background: var(--panel); padding: 6px 10px; }
.cal-row:hover { border-color: var(--red); }
.cal-when { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; font-size: 12px; color: var(--muted); }
.cal-when b { font-size: 15px; color: var(--red); }
.cal-what { display: flex; flex-direction: column; gap: 1px; }
.cal-what b { font-size: 15px; }
.cal-kind { font: 11px/16px var(--gb-font); letter-spacing: 1px; text-transform: uppercase; color: var(--red); }
.cal-tag { display: inline-block; font-size: 11px; font-weight: bold; padding: 0 6px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); }
.cal-tag.official { background: var(--red); color: #fff; border-color: var(--red); }
.cal-tag.now { background: #16a34a; color: #fff; border-color: #16a34a; }
.cal-tag.over { color: var(--muted); }
.cal-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-head { font-size: 11px; font-weight: bold; text-align: center; padding: 4px; background: var(--red); color: #fff; }
.cal-day { min-height: 86px; padding: 3px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.cal-day.other { background: var(--stripe); color: var(--muted); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--red); }
.cal-num { display: block; font-size: 12px; font-weight: bold; }
.cal-chip { display: block; font-size: 11px; line-height: 16px; padding: 0 4px; margin: 1px 0; color: #fff; background: var(--red);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; border-radius: 2px; }
.cal-chip.cal-art { background: #e2474e; } .cal-chip.cal-live { background: #8a0f15; } .cal-chip.cal-meetup { background: #b65a5e; }
.cal-chip.cal-launch { background: #5a080c; } .cal-chip.cal-other { background: #6b7280; }
.cal-event { max-width: 820px; border-top: 5px solid var(--red); }
.cal-event h1 { margin: 2px 0 8px; word-break: break-word; }
.cal-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 8px 0; }
.cal-facts dt { color: var(--muted); } .cal-facts dd { margin: 0; }
.cal-text { white-space: pre-line; line-height: 1.55; }
@media (max-width: 600px) { .cal-day { min-height: 54px; } .cal-chip { font-size: 0; height: 6px; padding: 0; } }

/* --- Polls -------------------------------------------------------------------------- */
.poll-box { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; padding: 10px; border: 1px solid var(--line);
  border-left: 4px solid var(--red); background: var(--panel2); max-width: 560px; }
.poll-q { font-size: 15px; }
.poll-opt-row { position: relative; display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left;
  padding: 6px 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; overflow: hidden; font: inherit; }
.poll-opt-row:disabled { cursor: default; opacity: 1; }
.poll-opt-row:not(:disabled):hover { border-color: var(--red); }
.poll-opt-row.mine { border-color: var(--red); font-weight: bold; }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: rgba(200, 30, 30, .16); pointer-events: none; }
.poll-text, .poll-pct { position: relative; }
.poll-pct { color: var(--muted); font-size: 12px; white-space: nowrap; }
.poll-make { margin: 6px 0; flex-basis: 100%; }
.poll-make summary { cursor: pointer; font-size: 13px; color: var(--red); }
.poll-make .fx-input, .poll-make input[type=text] { display: block; width: 100%; max-width: 420px; margin: 4px 0; }
.fx-tag.poll { background: var(--red); color: #fff; }
