/* V3 content-fix additions: the SRV status box, the footer data-currency line,
 * narrow-screen collapse helpers and the mobile card layout for the projects
 * table. Additive only: every selector is new, so existing pages are unchanged
 * where these elements do not exist.
 */

/* ---------- B1: special rate variation status box ---------- */
.srv-status {
  margin: 22px 0 26px;
  padding: 18px 20px;
  border: 1px solid #cfe0e6;
  border-left: 5px solid #0b6f80;
  border-radius: 10px;
  background: #f2f8f9;
  color: #163d4c;
  max-width: 900px;
}
.srv-status-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  color: #0b6f80;
}
.srv-status h2 {
  margin: 0 0 8px;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #0d2a3a;
}
.srv-status p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
}
.srv-status p:last-child { margin-bottom: 0; }
.srv-status-src { font-size: 13.5px !important; }
.srv-status a { color: #0b6072; font-weight: 750; }
.section-ink .srv-status,
.panel-dark .srv-status { background: #eef6f7; }

/* ---------- S8: data-currency line in every footer ---------- */
.footer-currency {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  opacity: .92;
}

/* ---------- N7: back-to-top links on very long pages ---------- */
.pd-top {
  display: inline-block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #0b6072;
}

/* ---------- N7: collapsed groups on narrow screens ---------- */
@media (max-width: 600px) {
  details.m-collapse > summary {
    cursor: pointer;
    padding: 12px 14px;
    border: 1px solid #cfe0e6;
    border-radius: 10px;
    background: #f2f8f9;
    font-weight: 800;
    font-size: 14px;
    color: #0d2a3a;
    list-style: none;
  }
  details.m-collapse > summary::-webkit-details-marker { display: none; }
  details.m-collapse > summary::after { content: ' ▾'; }
  details.m-collapse[open] > summary { margin-bottom: 12px; }
  details.m-collapse > summary::after { content: ' ▸'; }
  details.m-collapse[open] > summary::after { content: ' ▾'; }
}

/* ---------- S10: the 85-project table becomes cards at 390px ---------- */
@media (max-width: 600px) {
  .tm-table-wrap { overflow-x: visible; }
  .tm-table, .tm-table tbody, .tm-table tr, .tm-table th, .tm-table td {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 100%;
  }
  .tm-table thead { display: none; }
  .tm-table tr {
    border: 1px solid #d6e4e8;
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
    margin: 0 0 12px;
  }
  .tm-table th, .tm-table td {
    border: 0;
    padding: 5px 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .tm-table td { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
  .tm-table td::before {
    content: attr(data-label);
    flex: 0 0 45%;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #5b7482;
  }
  .tm-table tr > th:first-child { padding-bottom: 8px; }
}

/* ---------- S6: inline validation + rate presets ---------- */
.field-error {
  margin: 6px 0 0;
  min-height: 1em;
  font-size: 12.5px;
  font-weight: 700;
  color: #a32b1c;
}
.field-error:empty { min-height: 0; }
.rate-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.rate-presets .preset {
  border: 1px solid #bdd9de;
  background: #f2f8f9;
  color: #0b5165;
  border-radius: 7px;
  padding: 8px 11px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.rate-presets .preset[aria-pressed="true"] { background: #0b5165; color: #fff; border-color: #0b5165; }
