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

/* The headline is a full sentence pair; give it room for two lines. */
.hero .display { max-width: 20ch; }

/* Pack library (hero mockup): the packs on the left, what the selected one brings on the right. Not in the shared kit. */
.pk-lib { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.pk-list { display: grid; gap: 8px; align-content: start; margin: 0; padding: 16px 18px; list-style: none; border-right: 1px solid var(--hair); }
.pk-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--m-1); }
.pk-item.is-selected { background: var(--m-2); border-color: var(--edge); box-shadow: inset 3px 0 0 var(--pink); }
.pk-name { font-weight: 500; line-height: 1.35; }
.pk-tag { font: 500 11.5px/1.4 var(--mono); color: var(--soft); white-space: nowrap; }
.pk-note { grid-column: 1 / -1; color: var(--soft); font-size: 12.5px; line-height: 1.4; }
.pk-detail { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 16px 18px; }
.pk-detail .m-head { margin: 0; }
@container (max-width: 700px) {
  .pk-lib { grid-template-columns: minmax(0, 1fr); }
  .pk-list { border-right: 0; border-bottom: 1px solid var(--hair); }
}

/* Under the hero mockup: what stays the same and what changes. */
.pk-shared { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); }
/* The three statements follow the h1, so they are h2s at h3 size (the same way improve.html does it). */
.pk-shared h2.h3, .pk-cands h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem); line-height: 1.25; letter-spacing: -0.015em; }
.pk-shared p, .pk-cands p { color: var(--soft); margin-bottom: 0; }
@media (max-width: 860px) {
  .pk-shared { grid-template-columns: minmax(0, 1fr); }
}

/* Drafted process: each step shows its owner, its clauses and, where a lawyer decides, the role chip. */
.pk-steps .m-role { margin-top: 8px; }
.pk-steps .m-clause-id { margin-right: 4px; }

/* Rule tables and deadlines stacked in one window; the tables fit a phone without sideways scrolling. */
.pk-cap { display: grid; gap: 2px; margin: 0; }
.pk-rules .m-table { min-width: 0; }
.pk-rules .m-table th, .pk-rules .m-table td { padding: 9px 10px; }
.pk-deadlines dt { font-weight: 500; color: var(--white); }
@container (max-width: 520px) {
  .pk-rules .m-table th, .pk-rules .m-table td { padding: 9px 8px; font-size: 13px; }
  .pk-deadlines { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pk-deadlines dd { margin-bottom: 8px; }
}
/* Inter sets a little wider than IBM Plex did: in the narrowest mockup (a 360 px phone) the columns need 2 px less a side. */
@container (max-width: 340px) {
  .pk-rules .m-table th, .pk-rules .m-table td { padding-inline: 6px; }
}

/* The four review items sit one above the other with even spacing. */
.pk-items .m-row { padding-block: 12px; }

/* Approved action menu: three columns that fit a phone. */
.pk-menu .m-table { min-width: 0; }
.pk-menu .m-table th, .pk-menu .m-table td { padding: 10px; }
@container (max-width: 520px) {
  .pk-menu .m-table th, .pk-menu .m-table td { padding: 9px 8px; font-size: 13px; }
}

/* Notes under mockups and the second trace. */
.pk-after { margin: clamp(20px, 3vw, 32px) 0 0; max-width: 46rem; }
.pk-second { margin-top: clamp(24px, 3vw, 32px); }
.pk-points { margin: clamp(28px, 4vw, 48px) 0 0; max-width: 44rem; }
.band-dark .pk-points li { color: var(--soft); }

/* The JSON wraps instead of hiding the reason behind a scrollbar. */
#trace .m-code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Candidate packs: five short texts, no mockups. */
.pk-cands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px); }
.pk-cands article { border-top: 2px solid var(--edge); padding-top: 16px; }
@media (max-width: 900px) {
  .pk-cands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pk-cands { grid-template-columns: minmax(0, 1fr); }
}

/* Beside a tall mockup the text starts at its top edge instead of floating at the middle. */
.pk-top { align-items: start; }
