.live-tenders {
  align-items: start;
}
.live-tenders .filters-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border, #e4dfd6);
  border-radius: 20px;
}
.live-tenders label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-size: 14px;
  font-weight: 600;
}
.live-tenders input,
.live-tenders select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font: inherit;
  padding: 12px;
  border: 1px solid #ded9d0;
  border-radius: 10px;
  background: #faf8f4;
}
.live-tender-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
}
.live-tender-actions a,
.live-tender-error a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.live-tender-error a {
  margin-right: 18px;
}
.live-tenders .t-body,
.live-tenders .t-right,
.live-tenders main {
  min-width: 0;
}
.live-tenders .t-title,
.live-tenders .num {
  overflow-wrap: anywhere;
}
.live-tender-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.live-tender-hero {
  background-color: #766858;
}
[data-live-tenders] .panel-card h2 {
  font-size: 18px;
  margin: 0 0 14px;
}
[data-live-tenders] .panel-card p {
  line-height: 1.7;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
@media (max-width: 899px) {
  .layout.live-tenders {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .live-tenders .t-row {
    flex-wrap: wrap;
    gap: 18px;
  }
  .live-tenders .t-right {
    flex-wrap: wrap;
  }
  .live-tenders .filters-card {
    padding: 18px;
  }
}
.live-tender-actions button {
  border: 0;
  border-radius: 999px;
  background: #c8452e;
  color: #fff;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 12px 24px;
  cursor: pointer;
}
.live-tender-actions button:hover {
  background: #cc462f;
}
.live-tender-actions button:focus-visible,
.live-tender-actions a:focus-visible {
  outline: 2px solid #17140f;
  outline-offset: 4px;
}

.live-tenders fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 24px 0;
}
.live-tenders legend {
  font-weight: 700;
}
.live-tenders fieldset p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}
@media (min-width: 900px) {
  .layout.live-tenders > aside {
    flex: 0 0 264px;
    width: 264px;
  }
  .layout.live-tenders > main {
    flex: 1;
  }
}
@media (max-width: 899px) {
  .layout.live-tenders > aside {
    width: 100%;
    min-width: 0;
  }
}
/* Client decision Q11: external (collected) vs internal (MIIM) tenders. */
.live-tender-origin {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid #ddd5cb;
  background: #fff;
  color: #4d463e;
  white-space: nowrap;
}
@media (max-width: 640px) {
  /* Title and origin take the full row; budget and status wrap below. */
  .live-tenders .t-row > .t-body {
    flex: 1 1 100%;
  }
}
.live-tender-origin.internal {
  border-color: #f0c9bf;
  background: #fdf0ed;
  color: #8a2c1c;
}
.thero .live-tender-origin {
  margin-bottom: 0;
  vertical-align: middle;
}
.live-tender-apply {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
[data-live-tenders] .live-tender-apply p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6f6a64;
}
.live-tender-apply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #c8452e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  justify-self: start;
}
.live-tender-apply-link:hover {
  background: #b23d28;
}
.live-tender-apply-link:focus-visible {
  outline: 2px solid #17140f;
  outline-offset: 3px;
}
.live-tender-host {
  font-weight: 600;
  color: #4d463e;
  overflow-wrap: anywhere;
}
.live-tender-files {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  overflow-wrap: anywhere;
}
.live-tender-files span {
  color: #6f6a64;
  font-size: 13px;
}
.live-tender-org a {
  font-weight: 700;
  color: #17140f;
  text-decoration: underline;
  text-underline-offset: 4px;
}
[data-live-tenders] aside > .card + .card {
  margin-top: 16px;
}
