/* Styles only this website needs. The shared look is in kit/kit.css; this file uses its tokens only. */

/* link buttons: no underline; the intro of a try-it box keeps a gap above its first field */
a.k-btn { display: inline-block; text-decoration: none; }
.k-try > div:first-child { margin-bottom: 16px; }

.w7-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.w7-gain { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.w7-gain.up { color: var(--good); }
.w7-gain.down { color: var(--bad); }
.w7-gain.flat { color: var(--muted); }

/* a score bar inside a table cell: the mean as a bar, the lowest and highest run as a thin bracket */
.w7-bar { position: relative; height: 8px; min-width: 80px; background: var(--panel-2); border-radius: 999px; margin: 8px 0 4px; }
/* neutral ink, not the red accent: red on this page means a loss */
.w7-bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); opacity: 0.45; border-radius: 999px; }
.w7-bar > b { position: absolute; top: -3px; bottom: -3px; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); opacity: 0.6; }

.w7-email { white-space: pre-wrap; font-size: 14px; line-height: 1.55; }
.w7-mono { font-family: var(--mono); font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.w7-small { font-size: 14px; color: var(--muted); }

/* white cards on the tinted part; grey ones on the white try-it part */
.w7-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 12px 0; }
.w7-card { border: 1px solid var(--edge); border-radius: 12px; padding: 12px 16px; background: var(--bg); min-width: 0; }
.k-sec.try .w7-card { background: var(--panel-2); border-color: transparent; }
.w7-card h4 { margin: 0 0 8px; font: 600 11px/1.3 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* the five run totals */
.w7-runs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.w7-runs span { border: 1px solid var(--edge); border-radius: 12px; padding: 8px 14px; background: var(--bg); font: 500 22px/1.15 var(--head); font-variant-numeric: tabular-nums; min-width: 72px; }
.w7-runs span small { display: block; font: 500 12px/1.3 var(--body); color: var(--muted); margin-top: 2px; }

.w7-label-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.w7-label-row .k-field { margin-bottom: 6px; }
.w7-ok { color: var(--good); font-weight: 600; }
.w7-no { color: var(--bad); font-weight: 600; }
.w7-mono .w7-no { background: var(--bad-soft); border-radius: 4px; padding: 0 2px; }
.k-table td .w7-mono { font-size: 12.5px; }
.k-table td:has(> div.w7-mono) { min-width: 260px; }
.k-table td:has(> span.w7-mono) { min-width: 150px; }
.k-table td .w7-mono { word-break: normal; overflow-wrap: anywhere; }
.k-table .k-tag { white-space: nowrap; font-size: 11.5px; padding: 1px 8px; }

/* a table inside an open "show more" panel: no second frame */
details.k-more > .k-table-wrap { border: 0; border-top: 1px solid var(--edge); border-radius: 0; margin: 10px -14px -8px; background: transparent; }
details.k-more[open] summary { margin-bottom: 4px; }
details.k-more summary { font-weight: 600; }

/* the guide shape: the "You are done when" line, list spacing, numbered actions */
.w7-done { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--edge)); }
.k-sec.you ol > li, .k-sec.note ul > li, .k-sec.why ul > li { margin-bottom: 6px; }
.w7-card .w7-email { font-size: 14.5px; }
.k-table td .w7-email { font-size: 13.5px; }
