/* MarketPup batch 7: styles for the new free tools, the AI check grade and the cost-guide tables on phones.
   Only the site's colour tokens are used, so light and dark mode both follow styles.css. */

/* Cost guides: on phones each table row is a card. Keep a value like "$149 a month" together beside its label. */
@media (max-width: 720px) {
  .cp-table td { display: block; position: relative; padding-left: calc(.8rem + 6.5rem + 10px); }
  .cp-table td::before { position: absolute; left: .8rem; top: .55rem; width: 6.5rem; }
}

/* Free checks block on the cost guides */
.b7-checks { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 24px); margin: 28px 0; min-width: 0; }
.legal .b7-checks h2 { margin-top: 0; }
.b7-checks ul { margin-bottom: 0; }

/* Tables of our own grade and score bands */
.t7-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 12px; max-width: 34rem; }
.t7-table { width: 100%; border-collapse: collapse; }
.t7-table th, .t7-table td { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.t7-table tr:last-child th, .t7-table tr:last-child td { border-bottom: 0; }
.t7-table thead th { background: var(--bg-soft); font-weight: 600; }

/* Outputs */
.tool-out textarea.t7-code { font: 500 .84rem/1.5 var(--mono); min-height: 280px; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.out-actions .btn { max-width: 100%; text-align: center; }
.t7-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; overflow-wrap: anywhere; }
.t7-formula { font: 500 .86rem/1.55 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; margin: 0; }
.t7-src { font-size: .86rem; color: var(--ink-2); margin: 0; }
.t7-jump { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 0 0 28px; list-style: none; }
.t7-jump li { margin: 0; }
.legal .t7-h { margin-top: 8px; }
.t7-sub { font-weight: 600; margin: 0; }
.t7-sources { overflow-wrap: anywhere; }
.t7-sources q { quotes: "\201C" "\201D"; }

/* Self-score questions */
.t7-q { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.t7-q legend { font-weight: 600; font-size: .95rem; padding: 0 4px; }

/* Opening hours rows in the schema generator */
.t7-day { display: grid; grid-template-columns: minmax(0, 6rem) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.t7-day > span { font-weight: 600; font-size: .92rem; }
.t7-day input { width: 100%; min-width: 0; min-height: 42px; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 400 .95rem var(--body); }
.t7-hours-head { display: grid; grid-template-columns: minmax(0, 6rem) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; font-size: .84rem; color: var(--ink-2); }
@media (max-width: 420px) {
  .t7-day, .t7-hours-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .t7-day > span { grid-column: 1 / -1; }
  .t7-hours-head > span:first-child { display: none; }
}
