/* design.html only. Built from the tokens in site.css; nothing here is shared. */

/* Hero drafting panel: the designer's request beside the AI's progress, the input row across both. */
.d-files-label { margin-top: 12px; }
.d-files-tight { margin-top: 6px; }
.d-draft { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 16px 20px; }
.d-draft .m-input { grid-column: 1 / -1; }
@container (max-width: 760px) {
  .d-draft { grid-template-columns: minmax(0, 1fr); }
}

/* The three inputs, under the hero panel. */
.d-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); }
.d-inputs h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem); }
.d-inputs p { color: var(--soft); margin-bottom: 0; }
@media (max-width: 860px) {
  .d-inputs { grid-template-columns: minmax(0, 1fr); }
}

/* Automation point, under the draft window. */
.d-subhead { max-width: 44rem; margin: clamp(48px, 7vw, 80px) 0 clamp(24px, 3vw, 32px); }
.d-subhead h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem); }
.d-subhead p { color: var(--soft); margin: 12px 0 0; }

/* The draft package: process on the left, deadlines and templates on the right, the rule table below. */
.d-pkg { display: grid; gap: 16px; }
.d-pkg-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.d-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.d-pkg .m-timeline li { padding-bottom: 14px; }
.d-pkg .m-timeline li:last-child { padding-bottom: 0; }
.d-pkg .m-timeline .m-when { font-size: 12px; }
.d-pkg .m-ev { font-size: 13px; padding: 7px 10px; }
.d-pkg .m-ev span { font-size: 12.5px; }
.d-pkg .m-legend { padding: 0; }
.d-pkg .m-table { min-width: 0; }
/* Narrow columns: tighter cells, as on the control page's rule tables, so the three columns wrap instead of scrolling. */
@container (max-width: 520px) {
  .d-pkg .m-table th, .d-pkg .m-table td { padding: 9px 8px; font-size: 13px; }
}
.d-pkg .m-clause-id { margin-left: 2px; }
@container (max-width: 760px) {
  .d-pkg-top { grid-template-columns: minmax(0, 1fr); }
}

/* "Three ways in" strip above a diff. */
.d-ways { display: grid; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--hair); }

/* Wider table for the test clients: six columns scroll sideways inside their own box on a phone. */
.d-tests .m-table { min-width: 800px; }
.d-tests .m-table td, .d-tests .m-table th { font-size: 13px; }
.d-tests .m-table td:nth-child(2) { min-width: 15rem; }
.d-tests .m-table td:nth-child(3) { min-width: 12rem; }
.d-tests .m-table th[scope="row"] { white-space: nowrap; }
.d-tests .m-clause-id { margin-bottom: 2px; }

/* Release gate pair: same height, the foot pinned to the bottom. */
.d-gates { align-items: stretch; }
.d-gates .mockup { display: flex; flex-direction: column; }
.d-gates .m-pad { flex: 1; }
.d-gates .m-foot { justify-content: flex-start; }
.d-gate-top { gap: 8px; justify-items: start; }
.d-gate-foot { gap: 8px; }

/* Light-surface copy under a mockup. */
.d-approvers { margin-top: clamp(32px, 5vw, 56px); gap: clamp(24px, 4vw, 56px); }
.d-approvers h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem); }
.d-approvers p { color: var(--soft); margin-bottom: 0; }
.d-after { margin: clamp(32px, 5vw, 56px) 0 0; max-width: 46rem; }
.d-principles { margin-top: clamp(32px, 5vw, 56px); max-width: 46rem; }
