/* The use cases pages, on top of sheet.css. Rules: docs/ui-guidelines.md, "The Sheet". */

/* a hero with no window under it */
.hero.uc-plain { padding-bottom: clamp(16px, 3vw, 36px); }

/* one use case: label, claim, line, links on the left, the artefact on the right */
.uc-sec .pad { padding: clamp(36px, 5vw, 64px) 0; }
.uc-m { margin: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.uc-m > * { min-width: 0; }
.uc-m h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
.uc-m .uc-txt p { font-size: 16px; line-height: 1.5; color: var(--ink-2); margin: 0 0 14px; }
.uc-m .uc-txt p code { font-size: .9em; color: var(--ink-3); }
.uc-m .uc-txt .uc-lbl { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1; color: var(--accent); margin: 0 0 14px; }
.uc-lbl span { color: var(--muted); padding: 3px 5px 2px; box-shadow: inset 0 0 0 1px var(--rule-2); text-transform: uppercase; font-size: 11px; }
.uc-m .uc-txt .uc-note { font-size: 13.5px; color: var(--muted); }
.uc-note a { color: var(--ink-2); }
.uc-txt .go { margin: 0 18px 8px 0; }
.uc-art .art { display: block; width: 100%; height: auto; }
.uc-art.mount { padding-bottom: 0; }
.uc-art .uc-cap { font-size: 12px; line-height: 1.3; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 760px) { .uc-m { grid-template-columns: minmax(0, 1fr); } }

/* commands */
.uc-cmds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.uc-cmds code { font: 500 12.5px/1.4 var(--mono); color: var(--ink-3); background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 5px 8px; overflow-wrap: anywhere; }

/* terminal output: long lines scroll inside the block, never the page */
.uc-term { display: block; background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; font: 400 12px/1.7 var(--mono); color: var(--ink-3); overflow-x: auto; }
.uc-term.uc-after { margin-top: 24px; }
.uc-term .ttl { display: block; font-family: var(--grid); font-size: 11px; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
.uc-term .ln { display: block; white-space: pre; min-height: 1.7em; }
.uc-term .m { color: var(--ink-2); }
.uc-term .hi { color: var(--accent); }
.uc-term b { font-weight: 500; }
.uc-term .a { color: var(--allow); }
.uc-term .d { color: var(--deny); }

/* plain tables: hairlines only */
.uc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); table-layout: auto; }
.uc-table th { text-align: left; font-weight: 510; font-size: 12px; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule-2); }
.uc-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
.uc-table td:first-child { color: var(--ink); }
.uc-table code { font: 500 12px/1.4 var(--mono); }
.uc-roles .y { color: var(--ink); }
.uc-roles td:not(:first-child):not(.y) { color: var(--muted); }
@media (max-width: 480px) { .uc-table { font-size: 12.5px; } .uc-table td, .uc-table th { padding-right: 8px; } .uc-roles th, .uc-roles td { font-size: 11.5px; padding-right: 4px; } }

/* a drawn window inside a column: no sidebar, and the columns fit it */
.uc-art .win .main { overflow-x: auto; }
.uc-art .win td { padding-right: 10px; }
.win .uc-winline { font-size: 12.5px; color: var(--ink-2); margin: 10px 0 0; }
@media (max-width: 480px) { .win .main { overflow-x: auto; } }

/* cards with a claim */
.card h3 { font-size: 18px; color: var(--ink); }
.card .num.lower { text-transform: none; }

/* two plans, or stops and does not stop */
.cards.uc-two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cards.uc-two { grid-template-columns: 1fr; } }
.plan.pick .num { margin-top: 12px; }
.uc-edges ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.uc-edges li { padding: 10px 0; border-top: 1px solid var(--rule); }
.uc-edges li b { font-weight: 510; color: var(--ink); }
.uc-edges code { font-size: 12.5px; color: var(--ink-3); }

/* the other seats */
.uc-others { margin: 0; }
.uc-others p { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; }
.uc-others p .go { margin-right: 14px; }
.feature > div > .go + .go { margin-left: 18px; }
@media (max-width: 480px) { .uc-others p .go { display: inline-flex; } }
