/* Grid system: Cargo Basic Grid, as observed on https://970180.cargo.site/
   Desktop: centred content with large white margins, plain white background,
   black text, no borders, boxes or shadows around images. Two items side by
   side for most of the page, with a narrow white gutter between a pair and a
   larger white gap before the next row. Images fill their item width and share
   a roughly common height, so aspect ratios vary. Caption is one left-aligned
   line under the image: number, title, date, with the date in grey.
   Phone view was NOT observed on the Cargo page (browser controls could not
   resize to phone width), so the single-column phone fallback below is our
   own implementation choice, not a Cargo observation. */
:root {
  --paper: #ffffff;
  --card: #ffffff;
  --ink: #000000;
  --muted: #6b6560;
  --grey: #999999;
  --line: #e2ddd3;
  --rust: #a84f2c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
header { padding: 28px 20px 8px; max-width: 1080px; margin: 0 auto; }
header h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -0.02em; }
header p { margin: 0; color: var(--muted); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: baseline;
  background: #fff; padding: 16px 24px; font-size: 14px;
}
.site-header a { color: #000; text-decoration: none; }
.site-header .site-title { font-size: 16px; }
main { max-width: 1080px; margin: 0 auto; padding: 16px 20px 48px; }
main.with-fixed-header { padding-top: 88px; }
a { color: var(--rust); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.toolbar input[type="search"] {
  flex: 1 1 220px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); font-size: 16px;
}
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 7px 13px; cursor: pointer; font-size: 14px;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Cargo Basic Grid: two across on desktop, narrow horizontal gutter,
   larger vertical gap. Centred content, not edge to edge. */
.grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 12px; row-gap: 40px; margin-top: 24px;
}
.card { background: transparent; border: 0; overflow: visible; }
.card img {
  width: 100%; height: 340px; object-fit: cover; display: block; background: #f0f0f0;
}
.caption {
  margin-top: 8px; font-size: 14px; text-align: left; line-height: 1.4;
}
.caption .caption-date { color: var(--grey); }
.card-body { padding: 0; }
.tag { display: inline-block; background: #efe9df; border-radius: 999px; padding: 2px 8px; font-size: 12px; margin: 4px 4px 0 0; }
button, .button {
  background: var(--rust); color: #fff; border: 0; border-radius: 10px;
  padding: 11px 16px; font-size: 16px; cursor: pointer; text-decoration: none; display: inline-block;
}
button.secondary { background: var(--ink); }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); font-size: 16px; margin: 6px 0 12px;
}
label { font-size: 13px; color: var(--muted); }
.admin-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
.admin-row img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.notice { background: #fff8e6; border: 1px solid #e8d9a8; border-radius: 10px; padding: 12px 14px; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; }
.site-footer { max-width: 1080px; margin: 0 auto; padding: 0 20px 32px; font-size: 13px; color: var(--muted); }
/* Phone fallback (our choice, not observed on Cargo): single column, full-width images. */
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; row-gap: 32px; }
  .card img { height: auto; aspect-ratio: 4 / 3; }
  .admin-row { grid-template-columns: 1fr; }
  .admin-row img { width: 100%; height: auto; aspect-ratio: 1; }
}
