/* Cnamio demo, record checker and DNS guides. Builds on site.css and docs.css (same tokens); only the forms, the
   result cards and the language links live here. */
.lang-links { display: flex; gap: 4px; margin-right: 6px; }
.lang-links a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: var(--r-pill); color: var(--ink-2); text-decoration: none;
  font: 500 12px/1 var(--mono); box-shadow: inset 0 0 0 1px var(--line-2); }
.lang-links a:hover { color: var(--ink); }
.lang-links a[aria-current="true"] { background: var(--ink); color: var(--hero); box-shadow: none; }

.tool-form { display: grid; gap: 12px; margin: 16px 0 8px; max-width: none; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 0.8fr) minmax(0, 2fr); gap: 12px; }
.tool-grid-demo { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.tool-form .cta { margin: 0; }
.tool-form button.btn { cursor: pointer; }
.tool-form button.btn:disabled { opacity: .6; cursor: progress; }
.prose .tool-note { font-size: 14px; color: var(--ink-3); }

.tool-result:empty { display: none; }
.tool-result { margin: 16px 0 28px; }
.tool-card { padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.tool-card > :first-child { margin-top: 0; }
.tool-card > :last-child { margin-bottom: 0; }
.tool-card h3 { margin: 24px 0 8px; font-size: 17px; }
.prose .tool-status { margin: 12px 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--sunken); color: var(--ink); max-width: none; }
.prose .tool-ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.prose .tool-warn { background: color-mix(in srgb, #b54708 12%, var(--surface)); }
.prose .tool-error { background: color-mix(in srgb, #b42318 12%, var(--surface)); }
.tool-facts { display: grid; gap: 10px; margin: 0 0 8px; }
.tool-facts div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; }
.tool-facts dt { font: 500 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.tool-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.tool-pill { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--sunken); color: var(--ink-2); font: 500 11.5px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.tool-pill-ok { background: var(--accent-soft); color: var(--accent-strong); }
.tool-methods { margin: 0 0 8px; }
.tool-result td code { white-space: pre-wrap; overflow-wrap: anywhere; }
.platform .cta { margin-top: 12px; }

@media (max-width: 860px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .lang-links { display: none; }
}
@media (max-width: 640px) {
  .tool-card { padding: 16px; }
  .tool-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
