.comp-wrap { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; padding: 1.2rem 0 3rem; }
.comp-title { font: 700 clamp(1.8rem, 4vw, 2.4rem)/1.12 Arial, sans-serif; letter-spacing: -0.015em; margin: 0 0 10px; color: #111; }

.comp-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0.15rem 0 1rem;
  padding: 0.2rem 0 0.15rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #e4c36a transparent;
}
.comp-menu button {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  margin: 0;
  border: 0;
  border-left: 1px solid rgba(228, 195, 106, 0.75);
  border-radius: 0;
  background: transparent;
  color: #8a6a1c;
  padding: 0.55rem 0.95rem 0.95rem;
  font: 500 0.95rem/1.2 "Segoe UI", Arial, "Helvetica Neue", Helvetica, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.comp-menu button:first-child { border-left: 0; }
.comp-menu button:hover, .comp-menu button:focus-visible { color: #111; }
.comp-menu button.on { color: #111; }
.comp-menu button.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #e4c36a;
  box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(228, 195, 106, 0.9);
}

.part {
  background: #fff;
  border: 1px solid #f0e4c4;
  border-radius: 18px;
  padding: 1.05rem 1.15rem 1.2rem;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.05);
  color: #1a1a1a;
  font: 16px/1.55 "Segoe UI", Arial, "Helvetica Neue", Helvetica, sans-serif;
}
.part[hidden] { display: none !important; }
.part p { margin: 0 0 0.7rem; }
.part h2, .part h3 { font: 700 0.98rem/1.3 "Segoe UI", Arial, sans-serif; margin: 0.35rem 0 0.1rem; color: #111; }
.fine { color: #555; font-size: 0.92rem; }

.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; margin: 0.15rem 0 0.85rem; }
.glance.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { margin: 0; }
.tile img { display: block; width: 100%; height: 4.2rem; object-fit: cover; object-position: center; border-radius: 10px; background: #111; }
.tile p { margin: 0; color: #555; font-size: 0.84rem; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin: 0.15rem 0 0.85rem; }
.step {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  margin: 0;
  padding: 0.45rem;
  border: 1px solid #f0e4c4;
  border-radius: 14px;
  background: #fffdf8;
}
.step img { display: block; width: 4.4rem; height: 3.15rem; object-fit: cover; object-position: center; border-radius: 8px; background: #141416; }
.step div { min-width: 0; }
.step .n { margin: 0; color: #8a6a1c; font: 700 10px/1 "Segoe UI", Arial, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.step h3 { margin-top: 0.15rem; }
.step p { margin: 0.15rem 0 0; font-size: 0.86rem; color: #333; }
.github-steps { grid-template-columns: 1fr; }
.github-row { display: grid; grid-template-columns: minmax(11rem, 16rem) 1fr; gap: 0.75rem; align-items: start; }
.github-row > img { width: 100%; height: 7.2rem; object-fit: cover; object-position: center 18%; border-radius: 12px; border: 1px solid #f0e4c4; }

.prizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 0.2rem 0 0.7rem; }
.prize { padding: 0.55rem 0.3rem; text-align: center; border-radius: 12px; background: #fffdf8; border: 1px solid #f0e4c4; }
.prize b { display: block; font-size: 1.25rem; }
.prize span { color: #666; font-size: 0.78rem; }
.prize.mark { background: #111; color: #e4c36a; border-color: #111; }
.prize.mark span { color: #cbb98a; }

.send-box { padding: 0.6rem 0.8rem; border-radius: 12px; background: #fffdf8; border: 1px solid #f0e4c4; }

.comp-wrap .comp-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  margin: 0.2rem 0.4rem 0.2rem 0;
  padding: 0.4rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid #111;
  background: #111;
  color: #fff;
  font: 600 0.92rem/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.comp-wrap .comp-btn:hover { background: #e4c36a; color: #111; border-color: #e4c36a; }
.comp-wrap .comp-btn.quiet { background: #fff; color: #111; border-color: #c6a24e; }
.comp-wrap .comp-btn.quiet:hover { background: #111; color: #fff; border-color: #111; }
.actions { margin-top: 0.1rem !important; }

.prompt-box { margin-top: 0.35rem; border: 1px solid #f0e4c4; border-radius: 14px; padding: 0.65rem 0.8rem 0.75rem; background: #fffdf8; }
.prompt-box summary { cursor: pointer; font-weight: 700; }
.prompt { white-space: pre-wrap; background: #111; color: #f7f4ec; padding: 0.85rem 1rem; border-radius: 12px; font: 13px/1.45 ui-monospace, Consolas, monospace; max-height: 14rem; overflow: auto; margin: 0.65rem 0 0; }

.comp-form fieldset {
  margin: 0;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid #f0e4c4;
  border-radius: 16px;
  background: #fffdf8;
}
.comp-form legend { padding: 0 0.35rem; font: 700 11px/1 "Segoe UI", Arial, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #8a6a1c; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-grid .files { grid-column: 1 / -1; }
.comp-form label { display: block; margin: 0.8rem 0 0; font-weight: 600; font-size: 0.88rem; color: #222; }
.comp-form input[type="text"],
.comp-form input[type="email"],
.comp-form input[type="url"],
.comp-form select,
.comp-form textarea {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
  min-height: 2.75rem;
  border: 1.5px solid #e6d7b0;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font: 16px/1.4 "Segoe UI", Arial, sans-serif;
  color: #111;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}
.comp-form select {
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238a6a1c' stroke-width='1.6' stroke-linecap='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.7rem;
  cursor: pointer;
}
.comp-form textarea { min-height: 6.4rem; resize: vertical; }
.comp-form input:focus, .comp-form select:focus, .comp-form textarea:focus {
  outline: none;
  border-color: #c6a24e;
  box-shadow: 0 0 0 4px rgba(228, 195, 106, 0.35);
}
/* file pickers: label on its own line, then a dashed drop zone with the hint or file name and a Browse button */
.comp-form label.file { position: relative; display: block; margin: 0.8rem 0 0; cursor: pointer; }
.comp-form .file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.comp-form .file-k { display: block; font-weight: 600; }
.comp-form .file-zone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 0.35rem;
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
  border: 1.5px dashed #d9b95a;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}
.comp-form .file-pick {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #666;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.comp-form .file-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.2rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: 600 0.9rem/1 "Segoe UI", Arial, sans-serif;
}
.comp-form .file:hover .file-zone { border-color: #c6a24e; background: #fffdf5; }
.comp-form .file input:focus-visible ~ .file-zone { border-color: #c6a24e; box-shadow: 0 0 0 4px rgba(228, 195, 106, 0.35); }
.comp-form .file.has-file .file-zone { border-style: solid; border-color: #c6a24e; background: #fffaf0; }
.comp-form .file.has-file .file-pick { color: #111; font-weight: 600; }
.permits { display: grid; gap: 0.55rem; margin-top: 0.8rem; }
.comp-form .tick {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid #f0e4c4;
  border-radius: 14px;
  font-weight: 400;
  background: #fff;
}
.comp-form .tick input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.12rem;
  flex: 0 0 auto;
  border: 1.5px solid #c6a24e;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.comp-form .tick input:checked {
  border-color: #111;
  background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23e4c36a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1.5 5.2l3 3 6-6.2'/%3E%3C/svg%3E") center / 0.72rem no-repeat;
}
.form-actions { margin-top: 0.9rem; }
.form-actions .comp-btn { min-width: 8.5rem; min-height: 2.75rem; padding-left: 1.4rem; padding-right: 1.4rem; }
.comp-form .note { min-height: 1.4rem; margin: 0.7rem 0 0; }
.thanks { width: min(28rem, calc(100% - 2rem)); margin: auto; border: 1.5px solid #e4c36a; border-radius: 18px; padding: 1.25rem 1.3rem 1.15rem; background: #fff; color: #111; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18); }
.thanks::backdrop { background: rgba(12, 12, 14, 0.55); }
.thanks h2 { font: 700 1.35rem/1.25 Arial, sans-serif; margin: 0 0 0.65rem; }
.thanks p { margin: 0 0 0.7rem; font: 16px/1.5 Arial, sans-serif; }
.comp-form .trap { position: absolute; left: -9999px; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.comp-form label[hidden] { display: none !important; }

/* (14 Nov 2026) Recognition pills on a contributor's card. Only the flags that are on
   are shown, so a card with none of them looks exactly as it did before. */
.awards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.6rem;
  padding: 0;
  list-style: none;
}
.awards li {
  border: 1px solid #e4c36a;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: rgba(228, 195, 106, 0.12);
  color: #8a6a1c;
  font: 600 0.8rem/1.3 Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* (16 Nov 2026) The contributors list, as a table: the piece, whether it was given an
   honourable mention, whether it won a prize, and a line about what it is. */
.thanks-table { width: 100%; border-collapse: collapse; background: #fff; margin: 0.4rem 0 1.5rem; }
.thanks-table caption {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.thanks-table th, .thanks-table td {
  border-bottom: 1px solid #e4c36a;
  padding: 0.9rem 0.8rem;
  text-align: left;
  vertical-align: top;
  font: 16px/1.45 Arial, Helvetica, sans-serif;
  color: #111;
}
.thanks-table thead th {
  font: 700 0.72rem/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a6a1c;
  border-bottom: 2px solid #c6a24e;
  padding-bottom: 0.55rem;
}
.thanks-table .col-mark { width: 9rem; text-align: center; }
.thanks-table .piece { display: block; font: 700 1.05rem/1.3 Arial, Helvetica, sans-serif; }
.thanks-table .by { display: block; margin-top: 0.2rem; color: #5c564c; font-weight: 400; }
.thanks-table .shot { display: block; width: 7.5rem; height: 4.6rem; object-fit: cover; border-radius: 8px; margin-top: 0.5rem; }
.thanks-table a { display: inline-block; margin-top: 0.35rem; }
.thanks-table .mark { font: 700 1.2rem/1 Arial, Helvetica, sans-serif; }
.thanks-table .mark.yes { color: #8a6a1c; }
.thanks-table .mark.no { color: #8d8578; }

.source { margin: 1rem 0; padding: .85rem 1rem; border: 1px solid #d9cfc0; border-radius: 10px; }
.source legend { font-weight: 600; padding: 0 .4rem; }
.source label:not(.tick) { display: block; margin-top: .6rem; }

@media (max-width: 900px) {
  .glance, .glance.three, .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .files { grid-column: auto; }
  .github-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .thanks-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .thanks-table, .thanks-table tbody, .thanks-table tr, .thanks-table th, .thanks-table td { display: block; width: auto; }
  .thanks-table tr { border-bottom: 2px solid #c6a24e; padding: 0.35rem 0 0.7rem; }
  .thanks-table th, .thanks-table td { border-bottom: 0; padding: 0.35rem 0.15rem; text-align: left; }
  .thanks-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font: 700 0.72rem/1.3 Arial, Helvetica, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a6a1c;
  }
}
@media (max-width: 640px) {
  .comp-menu { justify-content: flex-start; }
  .comp-menu button { flex: 0 0 auto; }
  .glance, .glance.three, .steps, .form-grid, .who-grid, .prizes { grid-template-columns: 1fr; }
  .tile img { height: 5.2rem; }
}
