:root {
  --tender-gold: #b78b3d;
  --tender-ink: #171715;
  --tender-line: #dedbd2;
}
.tender-shell {
  font-size:14px;
  line-height:1.6;
  max-width: 1180px;
  margin: auto;
  padding: 36px 24px 70px;
}
.tender-shell *, .tender-shell *::before, .tender-shell *::after { box-sizing:border-box; }
.tender-shell h2, .tender-shell h3 { line-height:1.25; }
.tender-shell p { overflow-wrap:break-word; }
.tender-shell a:not(.primary):not(.secondary) { color:#795820; }
.tender-shell a:not(.primary):not(.secondary):hover { color:#493510; }
.tender-shell a.primary { display:inline-block; text-decoration:none; }
.tender-shell label:not(.check):not(.trap):not(:has(input[type="checkbox"])) {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  line-height:1.5;
  color:#646259;
}
.tender-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 70px;
  align-items: center;
  padding: 36px 0 54px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #86642b;
  margin: 0 0 16px;
}
.tender-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--tender-ink);
}
.lead {
  font-size: 17px;
  line-height: 1.65;
  max-width: 620px;
  color: #68665e;
}
.fee-card {
  background: #171715;
  color: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 10px 10px 0 #e9dfcd;
}
.fee-card > span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #d9be90;
}
.fee-card strong {
  display: block;
  font-size: 39px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  margin: 12px 0;
}
.fee-card strong span {
  font-size: 22px;
}
.fee-card p {
  white-space: pre-line;
  font-size: 13px;
  color: #c5c4bd;
  line-height: 1.6;
}
.panel {
  background: #fff;
  border: 1px solid var(--tender-line);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 26px;
}
.section-heading h2 {
  font-size: 24px;
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 8px;
}
.pill {
  font-size: 11px;
  white-space: nowrap;
  padding: 7px 10px;
  background: #f0ede6;
  border-radius: 20px;
  color: #666;
}
.field-group {
  border: 0;
  padding: 0;
  margin: 26px 0;
}
.field-group legend {
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid #eee;
  padding: 0 0 13px;
  width: 100%;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  color: #646259;
}
.form-grid label.wide {
  grid-column: 1/-1;
}
.form-grid input,
.form-grid textarea,
.form-grid select,
.tender-shell input:not([type="checkbox"]),
.tender-shell textarea,
.tender-shell select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d8d5cb;
  border-radius: 7px;
  background: #fcfbf8;
  color: #1c1c1a;
  font-family:inherit;
  font-size:14px;
  line-height:1.5;
  box-sizing: border-box;
}
.form-grid textarea {
  min-height: 90px;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid #c4a975;
  outline-offset: 1px;
}
.form-grid label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
}
.form-grid input[type="checkbox"] {
  width: 18px;
  flex: 0 0 18px;
}
.check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 13px 0;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}
.check input {
  width: 17px !important;
  height: 17px;
  margin-top: 3px;
  flex-shrink: 0;
}
.terms-box {
  background: #f8f6f1;
  padding: 18px 20px;
  border-radius: 8px;
  margin: 25px 0;
}
.terms-box p {
  font-size: 13px;
  line-height: 1.6;
}
.primary {
  background: var(--tender-ink);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family:inherit;
  line-height:1.4;
}
.primary:hover {
  background: #3d382e;
}
.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.secondary {
  font:inherit;
  font-size:13px;
  background: transparent;
  color: #222;
  border: 1px solid #bdb9ae;
  border-radius: 7px;
  padding: 10px 15px;
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.trap {
  position: absolute;
  left: -10000px;
  top: auto;
}
.notice {
  background: #fff4d9;
  border: 1px solid #dec79c;
  border-radius: 7px;
  padding: 15px 18px;
  margin: 16px 0;
  line-height: 1.6;
}
.notice.error {
  background: #fff0ed;
  border-color: #d8a19a;
  color: #8a281d;
}
.muted {
  font-size: 12px;
  color: #77766f;
  line-height: 1.65;
}
.round-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin: 14px 0 24px;
}
.round-heading h2 {
  font-size: 30px;
  margin: 5px 0;
}
.round-heading p {
  margin: 7px 0;
}
.clock-card {
  background: #171715;
  border-radius: 10px;
  color: #e7d2ae;
  padding: 19px 24px;
  min-width: 260px;
  text-align: center;
}
.clock-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.clock-card strong {
  display: block;
  font:
    28px ui-monospace,
    monospace;
  margin: 9px 0;
}
.clock-card small {
  font-size: 10px;
  color: #cac7bc;
}
.tender-columns {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
.tender-columns > .panel {
  min-width: 0;
  align-self:start;
}
.reveal-card {
  background: #f1e8d7;
}
.reveal-card h2 {
  font-size: 22px;
  line-height: 1.2;
}
.reveal-card p {
  font-size: 13px;
  line-height: 1.6;
}
.reveal-card .primary { width:100%; }
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #78766e;
}
td,
th {
  padding: 13px 10px;
  border-bottom: 1px solid #e4e1d9;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child {
  font-variant-numeric: tabular-nums;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.detail-grid dt {
  font-size: 10px;
  text-transform: uppercase;
  color: #68665e;
  margin-bottom: 5px;
}
.detail-grid dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.tender-guides h2 { font-size:22px; margin:0 0 16px; }
.tender-guide-links { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.tender-guide-links a { font-size:14px; line-height:1.6; }
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 48px 0;
}
.how-it-works article > span {
  color: #a38246;
  font-size: 13px;
  font-weight: bold;
}
.how-it-works h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.how-it-works p {
  font-size: 13px;
  color: #77766f;
  line-height: 1.6;
}
.link-input {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.link-input input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 100%;
  min-width: 0;
  font-size: 12px;
}
.payment-reference {
  font:
    15px ui-monospace,
    monospace;
  background: #f2eee6;
  padding: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.bank-details {
  white-space: pre-wrap;
  background: #faf9f6;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
}
.result {
  background: #eef4ed;
  border: 1px solid #c3d4bd;
  border-radius: 7px;
  padding: 16px;
  margin-top: 18px;
  line-height: 1.7;
}
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 820px) {
  .tender-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 10px;
  }
  .fee-card {
    max-width: 350px;
  }
  .tender-columns {
    grid-template-columns: 1fr;
  }
  .form-grid,
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .round-heading {
    flex-direction: column;
  }
  .clock-card {
    max-width: 350px;
  }
  .how-it-works {
    gap: 22px;
  }
  .admin-settings {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .tender-shell input:not([type="checkbox"]), .tender-shell select, .tender-shell textarea { font-size:16px; }
  .clock-card { min-width:0; width:100%; }
  .tender-shell {
    padding: 24px 14px;
  }
  .panel {
    padding: 20px 16px;
  }
  .form-grid,
  .detail-grid,
  .how-it-works {
    grid-template-columns: 1fr;
  }
  .section-heading {
    flex-direction: column;
    gap: 10px;
  }
  .link-input {
    flex-direction: column;
    align-items: stretch;
  }
  .top {
    flex-wrap: wrap;
  }
  .top .nav {
    flex-wrap: wrap;
  }
}

.tender-terms-link {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: #68665e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tender-terms-link:hover,
.tender-terms-link:focus-visible {
  color: var(--tender-gold);
}

.payment-methods {
  display: grid;
  gap: 16px;
}
.payment-methods section {
  border: 1px solid var(--tender-line);
  border-radius: 10px;
  padding: 16px;
}
.payment-methods h4 {
  margin: 0 0 10px;
}

.wise-payment-link {
  display: inline-block;
  text-decoration: none;
  font: inherit;
}

.secondary:disabled { opacity: .5; cursor: not-allowed; }

/* Do not paint the creation form before resolving a tender URL. */
.tender-boot #creation { visibility:hidden; }
.tender-detail #creation,.tender-detail .tender-hero { display:none; }
#tenderLoading { display:none; }
.tender-detail:not(.tender-ready) #tenderLoading { display:block;min-height:100vh;padding:36px 0; }
.tender-detail:not(.tender-ready) .how-it-works,.tender-detail:not(.tender-ready) .tender-guides { display:none; }
