/* WPMC website style: palette and fonts from the club site (site/src/styles/global.css). */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin.woff2') format('woff2');
}

:root {
  --green: #14260f;
  --green-dark: #0b1709;
  --orange: #e8833a;
  --bg: #fafaf5;
  --card: #ffffff;
  --text: #1c1b17;
  --muted: #5c5b54;
  --line: #e2ddd4;
  --heading: var(--green);
  --accent: #92500f;          /* orange as text on a light ground (AA) */
  --row-hover: #f5f0e8;
  --row-active: #fef3e2;
  --danger: #a3312a;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1709;
    --card: #14260f;
    --text: #f1efe8;
    --muted: #b5b8a8;
    --line: #2c4222;
    --heading: #f1efe8;
    --accent: #e8833a;
    --row-hover: #1b3114;
    --row-active: #2a3a1c;
    --danger: #f09595;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
}
a { color: var(--accent); }
h1, h2 { margin: 0; font-weight: 400; font-family: var(--serif); letter-spacing: -0.3px; }
h1 { font-size: 1.6rem; color: #fff; }
h2 { font-size: 1.35rem; color: var(--heading); margin-bottom: .75rem; }

.bar {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  padding: .75rem 1rem; background: var(--green);
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.09);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 14px; display: block; }
.brand span { font-family: var(--serif); color: #fff; font-size: 1.75rem; letter-spacing: -0.3px; }
.bar .titles { display: grid; padding-left: .9rem; border-left: 1px solid rgb(255 255 255 / 0.2); }
.sub {
  color: var(--orange); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
}

main { max-width: 1200px; margin: 0 auto; padding: 1.25rem 1rem; display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; min-width: 0; }
.layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } }

label { display: grid; gap: .25rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
input, select, button { font: inherit; color: var(--text); }
input, select {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; min-width: 0;
}
button {
  background: transparent; border: 1px solid var(--heading); color: var(--heading); border-radius: 999px;
  padding: .55rem 1rem; cursor: pointer; font-weight: 600; font-size: .9rem;
  transition: background .2s, color .2s, filter .2s;
}
button:hover:not(:disabled) { background: var(--heading); color: var(--card); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary {
  background: var(--orange); border-color: var(--orange); color: #1c1b17;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
button.primary:hover:not(:disabled) { background: var(--orange); color: #1c1b17; filter: brightness(1.08); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.find { display: grid; gap: .75rem; grid-template-columns: 2fr 1.2fr 1.2fr auto; align-items: end; }
.find label.check { grid-column: 1 / -1; }
@media (max-width: 640px) { .find { grid-template-columns: 1fr 1fr; } .find label:first-child { grid-column: 1 / -1; } }

.status { margin: .6rem 0 0; min-height: 1.2em; color: var(--muted); }
.status.error { color: var(--danger); }
.small { font-size: .82rem; color: var(--muted); }

.list-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.list-head h2 { margin: 0; }
.list-tools { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.count { color: var(--muted); font-size: .85rem; }

.table-wrap { overflow: auto; max-height: 65vh; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .45rem .55rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th {
  position: sticky; top: 0; background: var(--card); z-index: 1;
  font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--row-hover); }
tbody tr.active { background: var(--row-active); box-shadow: inset 3px 0 0 var(--orange); }
tr.empty td { color: var(--muted); text-align: center; padding: 2rem; cursor: default; }
.c-check { width: 2rem; }
.c-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--orange); }
.c-photo { width: 52px; }
td img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: block; background: var(--line); }
.sci { font-style: italic; }
.common { display: block; color: var(--muted); font-size: .8rem; }
.mono { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .c-place, .c-photo { display: none; } }

.side { display: grid; gap: 1rem; }
.side h2 { margin: 0; }
.preview { margin: 0; }
.preview canvas {
  width: 100%; height: auto; display: block; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; image-rendering: pixelated;
}
.preview canvas.portrait { width: 66.7%; margin: 0 auto; }
.preview figcaption { margin-top: .35rem; font-size: .8rem; color: var(--muted); }
.actions { display: grid; gap: .5rem; }
.actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.settings summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.settings .grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .75rem; }
label.check { display: flex; align-items: center; gap: .4rem; color: var(--text); font-weight: 400; }
label.check input { accent-color: var(--orange); }
.foot { max-width: 1200px; margin: 0 auto; padding: 0 1rem 1.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
