:root {
  --ink: #162722;
  --accent: #b1fc72;
  --paper: #f7f8f3;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(5vw, 20px);
  gap: 14px;
}
header {
  border-bottom: 1px solid #ccd4cb;
  font-size: 0.9rem;
}
header > span {
  border: 1px solid #bac5b8;
  padding: 8px 15px;
  border-radius: 30px;
}
.brand {
  font-weight: 900;
  letter-spacing: -0.075em;
  font-size: 2rem;
  color: inherit;
  text-decoration: none;
}
.brand small {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  max-width: 1590px;
  margin: auto;
  padding: clamp(24px, 4vw, 72px) 5vw;
  gap: 5vw;
  align-items: center;
}
.copy {
  max-width: 670px;
}
.kicker,
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker:before {
  content: "";
  width: 30px;
  height: 3px;
  background: #62874e;
}
h1,
h2 {
  letter-spacing: -0.055em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.65rem, 4.65vw, 5.1rem);
  margin: 0.42em 0;
}
em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #4a7044;
}
p {
  font-size: 1.07rem;
  line-height: 1.55;
  max-width: 53ch;
  color: #44574e;
}
button {
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 15px 22px;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #347546;
  outline-offset: 3px;
}
.copy > button {
  margin-top: 12px;
}
figure {
  margin: 0;
  height: clamp(440px, 65vh, 720px);
  border-radius: 25px;
  overflow: hidden;
}
figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}
footer {
  border-top: 1px solid #ccd4cb;
  color: #536158;
  font-size: 0.85rem;
}
.link,
.secondary {
  background: transparent;
}
.link {
  padding: 6px;
  text-decoration: underline;
  font-size: 0.9rem;
}
.secondary {
  border-color: #c0cbbf;
}
dialog {
  max-width: min(540px, 93vw);
  border: 0;
  border-radius: 18px;
  padding: 28px;
}
dialog::backdrop {
  background: #13251cc4;
}
h2 {
  font-size: clamp(2rem, 3vw, 3.5rem);
}
progress {
  accent-color: #55874e;
  width: 100%;
  height: 7px;
  margin: 12px 0;
}
.option,
input,
select {
  background: white;
  border: 1px solid #bec9bd;
  border-radius: 9px;
  padding: 13px 15px;
  font: inherit;
  color: inherit;
}
.option {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0;
}
.option:has(:checked) {
  background: #e3f4d8;
  border-color: #66875b;
}
.option input {
  accent-color: #426739;
  margin-right: 12px;
}
.field {
  display: block;
  width: 100%;
  margin: 12px 0 18px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
#msg {
  color: #942e28;
  text-align: center;
}
#msg:not(:empty) {
  padding: 15px;
}
.admin {
  max-width: 1440px;
  margin: auto;
  padding: 30px 4vw;
}
.cards,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cards article {
  padding: 16px;
  background: white;
  border: 1px solid #d0d9cc;
  border-radius: 10px;
  flex: 1 1 145px;
}
.cards b {
  display: block;
  font-size: 1.65rem;
  margin-top: 7px;
}
.scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
td,
th {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #d4dbd1;
}
th {
  white-space: nowrap;
}
.filters label {
  display: grid;
  gap: 5px;
}
main:has(form) .copy {
  animation: appear 0.2s ease-out;
}
@keyframes appear {
  from {
    opacity: 0.6;
    transform: translateY(3px);
  }
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 28px 6vw;
    gap: 28px;
  }
  figure {
    height: 280px;
  }
  .layout:has(form) figure,
  .layout:has(.finished) figure {
    display: none;
  }
  header {
    padding-block: 15px;
  }
  header > span {
    font-size: 0.76rem;
  }
  h1 {
    font-size: clamp(2.45rem, 9vw, 3.7rem);
  }
  .actions button {
    flex: 1;
  }
  .admin {
    padding: 22px 4vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}
/* Keep report controls and long campaign names usable on small screens. */
.admin #login {max-width:420px;margin:7vh auto;padding:28px;background:white;border:1px solid #d4dbd1;border-radius:18px}
.admin #login h1 {font-size:2.65rem}
.cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(165px,100%),1fr))}
.cards article:nth-child(4),.cards article:nth-child(5){background:#203c32;color:white}
#detail {overflow-wrap:anywhere}
dialog:has(#detail){width:min(850px,94vw);max-width:94vw;max-height:88vh}
#detail th {white-space:normal}
#sessions button {padding:8px 14px}
.filters input {min-width:0;width:100%}
.filters label {flex:1 1 150px}
.copy form {max-width:560px}
.option {display:flex;align-items:center;gap:8px;line-height:1.4;cursor:pointer}
.option input {flex:none}
figure img {display:block}
@media(max-width:480px){.layout:has(form){min-height:62svh;align-items:start}.filters label{flex-basis:42%}}
