/* Terminal model pages, family hubs and the model directory on /supported-systems */

.tm-hero { padding-bottom: 72px; }
.tm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: 56px; align-items: center; }
.tm-hero .lead { max-width: 620px; }

.tm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 34px 0 0; padding: 0; max-width: 560px; }
.tm-facts div { padding: 12px 0; border-top: 1px solid #ffffff1f; }
.tm-facts dt { color: #8b97ad; font-size: .74rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.tm-facts dd { margin: 3px 0 0; color: #fff; font-size: .98rem; font-weight: 600; }

/* The sample host's screen, drawn as text */
.tm-screen { margin: 0; --tm-fg: var(--phos); --tm-bg: #05080d; }
.tm-screen[data-tone="amber"] { --tm-fg: #ffc35a; }
.tm-screen[data-tone="white"] { --tm-fg: #e6ebf5; }
.tm-screen[data-tone="blue"] { --tm-fg: #f4f7ff; --tm-bg: #0b2a8a; }
.tm-screen-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border: 1px solid #ffffff26; border-bottom: 0; border-radius: 12px 12px 0 0; background: #111a2e; }
.tm-screen-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2c3a57; }
.tm-screen-bar b { margin-left: 8px; color: #aab5c8; font: 600 .74rem/1 var(--mono); letter-spacing: .04em; }
.tm-screen pre { margin: 0; min-height: 268px; padding: 22px 24px 26px; tab-size: 4; overflow-x: auto; border: 1px solid #ffffff26; border-radius: 0 0 12px 12px; background: var(--tm-bg); color: var(--tm-fg); font: .84rem/1.55 var(--mono); box-shadow: var(--shadow); text-shadow: 0 0 12px color-mix(in srgb, var(--tm-fg) 35%, transparent); }
.tm-screen figcaption { margin-top: 12px; color: #aab5c8; font-size: .8rem; line-height: 1.5; }

.tm-definition { max-width: 900px; }

.tm-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.tm-prose p { color: #243247; max-width: 700px; }
.tm-origin { position: sticky; top: 96px; }
.tm-origin h3 { margin-bottom: 16px; }
.tm-origin .kv { grid-template-columns: 112px 1fr; }

.tm-scope .card h3 { margin-bottom: 16px; }
.tm-scope .checks { margin-bottom: 0; }
.tm-confirm { margin: 0; padding: 0; list-style: none; }
.tm-confirm li { position: relative; margin-bottom: 10px; padding-left: 30px; }
.tm-confirm li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border: 2px solid #9aa6ba; border-radius: 50%; }
.tm-confirm li:last-child, .tm-scope .checks li:last-child { margin-bottom: 0; }

.tm-steps .step p { margin: 0; color: var(--muted); font-size: .97rem; }
.tm-steps .step code, .tm-prose code, .tm-scope code, .point code { padding: 1px 6px; border-radius: 6px; background: var(--bg-soft); font: .88em var(--mono); overflow-wrap: anywhere; }
.section-soft .tm-scope code { background: #eef1f7; }
.tm-cmd-label { margin: 34px 0 10px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.tm-cmd { margin: 0; padding: 20px 24px; overflow-x: auto; border-radius: 12px; background: var(--ink); color: #e6ebf5; font: .88rem/1.6 var(--mono); }
.tm-cmd code { font: inherit; color: inherit; background: none; padding: 0; }

.tm-sample { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tm-sample h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.tm-sample p { color: var(--muted); }
.tm-sample p:last-child { margin-bottom: 0; }
.tm-sample-links { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.tm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tm-cards .link-card h3, .tm-cards .link-card h4 { margin-bottom: 6px; font-size: 1.12rem; }

.tm-hub { padding: 72px 0; }
.tm-hub .section-head, .tm-directory .section-head { margin-bottom: 32px; }

.tm-directory { padding: 72px 0 24px; }
.tm-dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tm-dir-group { padding: 24px 26px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tm-dir-group:first-child { grid-column: 1 / -1; }
.tm-dir-group h3 { margin-bottom: 14px; font-size: 1.05rem; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--text); font-size: .93rem; font-weight: 600; transition: border-color .15s, background .15s; }
.tm-chip:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }

@media (max-width: 980px) {
  .tm-hero-grid, .tm-split, .tm-sample { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tm-origin { position: static; }
  .tm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-screen pre { min-height: 0; }
}
@media (max-width: 760px) {
  .tm-hero { padding-bottom: 56px; }
  .tm-dir, .tm-cards, .tm-steps, .tm-scope { grid-template-columns: minmax(0, 1fr); }
  .tm-sample { padding: 28px 24px; }
  .tm-screen pre { padding: 18px 16px 20px; font-size: .74rem; }
  .tm-chip { min-height: 48px; }
}
