/* ── DNS Propagation Checker (/tools/dns-propagation/) ──────────────────────── */
/* Every state pairs a colour with an icon and a word, so colour is never the
   only signal. Colours come from theme tokens so dark mode follows. */
.prop-page {
  --prop-match: var(--green);
  --prop-differs: var(--amber);
  --prop-missing: var(--sev-high);
  --prop-error: var(--red);
  --prop-pending: var(--txt-4);
  --prop-match-ink: color-mix(in srgb, var(--green) 78%, var(--txt));
  --prop-differs-ink: color-mix(in srgb, var(--amber) 78%, var(--txt));
  --prop-missing-ink: color-mix(in srgb, var(--sev-high) 72%, var(--txt));
  --prop-error-ink: color-mix(in srgb, var(--red) 85%, var(--txt));
  --prop-g0: #2563eb;
  --prop-g1: #d97706;
  --prop-g2: #7c3aed;
  --prop-g3: #0891b2;
  --prop-g4: #db2777;
  --prop-g5: #65a30d;
  max-width: 1120px;
}
.prop-page .landing-check-tag { font-family: var(--font-mono); font-size: var(--text-caption); font-weight: 600; color: var(--primary-ink); }

/* Form */
.prop-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 16px; align-items: end; }
.prop-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.prop-field > label, .prop-field legend { display: block; font-weight: 600; margin-bottom: 8px; padding: 0; }
.prop-field--name { grid-column: 1 / 2; }
.prop-field input[type="text"], .prop-more textarea {
  width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-control);
  background: var(--bg); color: var(--txt); font: inherit;
}
.prop-field input[type="text"] { font-size: 1.05rem; }
.prop-more textarea { font-family: var(--font-mono); font-size: var(--text-small); resize: vertical; min-height: 52px; }
.prop-field input:focus-visible, .prop-more textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.prop-form > button { grid-column: 2; grid-row: 1; padding: 14px 24px; white-space: nowrap; }
.prop-form > button:disabled { opacity: .65; cursor: wait; }
.prop-types { grid-column: 1 / -1; }
.prop-type-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.prop-type-grid label { position: relative; cursor: pointer; }
.prop-type-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.prop-type-grid span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 38px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface2); color: var(--txt-2);
  font-family: var(--font-mono); font-size: var(--text-compact); font-weight: 600; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.prop-type-grid label:hover span { border-color: var(--primary); }
.prop-type-grid input:checked + span { background: var(--primary-fill); border-color: var(--primary-fill); color: #fff; }
.prop-type-grid input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.prop-more { grid-column: 1 / -1; }
.prop-more summary { cursor: pointer; font-weight: 600; color: var(--primary-ink); width: fit-content; }
.prop-optional { font-weight: 400; color: var(--txt-3); }
.prop-expected-label { display: block; margin: 10px 0 8px; color: var(--txt-3); font-size: var(--text-small); line-height: 1.5; }
.prop-form-help { margin: 16px 0 0; color: var(--txt-3); font-size: var(--text-small); line-height: 1.6; }
.prop-form-help code { font-family: var(--font-mono); font-size: .95em; }
.prop-ip-hint { margin: 6px 0 0; color: var(--txt-2); font-size: var(--text-small); }
.prop-ip-hint[hidden] { display: none; }
.prop-reverse-name { overflow-wrap: anywhere; }

.prop-message { min-height: 1.5em; margin: 20px 0 0; color: var(--txt-2); }
.prop-message:empty { min-height: 0; margin: 0; }
.prop-results { scroll-margin-top: calc(var(--nav-height) + 16px); margin-top: 28px; display: grid; gap: 16px; }
.prop-results:focus { outline: none; }
.prop-muted { color: var(--txt-3); }
.prop-mono, .prop-results code { font-family: var(--font-mono); }

/* Header */
.prop-results-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; }
.prop-results-title { margin: 0; font-size: var(--text-h2); overflow-wrap: anywhere; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prop-type-pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--primary-fill); color: #fff; font-family: var(--font-mono); font-size: var(--text-small); font-weight: 600; }
.prop-meta { margin: 6px 0 0; color: var(--txt-3); font-size: var(--text-small); }
.prop-live { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-ink); font-weight: 600; }
.prop-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: prop-pulse 1.4s ease-in-out infinite; }
.prop-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.prop-actions .btn-ghost { padding: 9px 14px; font-size: var(--text-small); }
.prop-actions .btn-ghost:disabled { opacity: .55; cursor: default; }

/* Cards */
.prop-card { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); min-width: 0; }
.prop-card h3 { margin: 0 0 12px; font-size: var(--text-card-title); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.prop-card h3 .prop-muted { font-weight: 500; font-size: var(--text-small); }
.prop-card > p { margin: 8px 0 0; font-size: var(--text-small); line-height: 1.6; }

/* Summary */
.prop-summary { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; align-items: center; border-left-width: 4px; }
.prop-summary--ok { border-left-color: var(--prop-match); }
.prop-summary--warn { border-left-color: var(--prop-differs); }
.prop-summary--bad { border-left-color: var(--prop-error); }
.prop-summary--pending { border-left-color: var(--primary); }
.prop-summary-body h3 { font-size: 1.35rem; margin-bottom: 6px; }
.prop-summary-body h3:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.prop-summary-body > p { margin: 0 0 10px; color: var(--txt-2); line-height: 1.6; }
.prop-ring { width: 168px; height: 168px; display: block; }
.prop-ring-track { fill: none; stroke: var(--surface2); stroke-width: 12; }
.prop-ring-seg { fill: none; stroke-width: 12; transition: stroke-dasharray var(--t-base), stroke-dashoffset var(--t-base); }
.prop-ring-seg--match { stroke: var(--prop-match); }
.prop-ring-seg--differs { stroke: var(--prop-differs); }
.prop-ring-seg--missing { stroke: var(--prop-missing); }
.prop-ring-seg--error { stroke: var(--prop-error); }
.prop-ring-value { font-family: var(--font-sans); font-size: 28px; font-weight: 800; fill: var(--txt); }
.prop-ring-label { font-family: var(--font-sans); font-size: 10px; font-weight: 600; fill: var(--txt-3); letter-spacing: .06em; text-transform: uppercase; }
.prop-baseline { margin: 0 0 14px; font-size: var(--text-small); color: var(--txt-2); line-height: 1.7; overflow-wrap: anywhere; }
.prop-baseline > span:first-child { font-weight: 600; margin-right: 4px; }
.prop-baseline code, .prop-auth code, .prop-groups code { padding: 1px 6px; border-radius: 6px; background: var(--surface2); font-size: .92em; }
.prop-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.prop-tile { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); border-top: 3px solid var(--border); }
.prop-tile dt { font-size: var(--text-caption); font-weight: 600; color: var(--txt-3); text-transform: uppercase; letter-spacing: .04em; }
.prop-tile dd { margin: 2px 0 0; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--txt); }
.prop-tile--match { border-top-color: var(--prop-match); }
.prop-tile--differs { border-top-color: var(--prop-differs); }
.prop-tile--missing { border-top-color: var(--prop-missing); }
.prop-tile--error { border-top-color: var(--prop-error); }

/* Status pills */
.prop-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: var(--text-compact); font-weight: 600; white-space: nowrap; background: var(--surface2); }
.prop-status--match { color: var(--prop-match-ink); background: color-mix(in srgb, var(--green) 12%, transparent); }
.prop-status--differs { color: var(--prop-differs-ink); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.prop-status--missing { color: var(--prop-missing-ink); background: color-mix(in srgb, var(--sev-high) 12%, transparent); }
.prop-status--error { color: var(--prop-error-ink); background: color-mix(in srgb, var(--red) 12%, transparent); }
.prop-status--pending { color: var(--txt-3); }
.prop-status--pending .prop-icon { animation: prop-spin 1.6s linear infinite; }
.prop-icon { flex-shrink: 0; }

/* Authoritative table */
.prop-table-wrap { overflow-x: auto; }
.prop-table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.prop-table th, .prop-table td { padding: 10px 12px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.prop-table thead th { border-top: 0; font-size: var(--text-caption); text-transform: uppercase; letter-spacing: .04em; color: var(--txt-3); }
.prop-table tbody th { font-weight: 600; }
.prop-table tbody th span { display: block; }
.prop-ns { font-family: var(--font-mono); }
.prop-num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.prop-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--surface2); font-size: var(--text-small); line-height: 1.6; color: var(--txt-2); }
.prop-note--warn { background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }
.prop-note--bad { background: color-mix(in srgb, var(--red) 12%, var(--surface)); }

/* Map */
.prop-map figcaption h3 { margin-bottom: 4px; }
.prop-map figcaption p { margin: 0 0 12px; color: var(--txt-3); font-size: var(--text-small); }
.prop-map { margin: 0; }
.prop-map-svg { display: block; width: 100%; height: auto; border-radius: 10px; background: color-mix(in srgb, var(--primary) 4%, var(--surface)); }
.prop-land { fill: none; stroke: color-mix(in srgb, var(--txt) 20%, var(--surface)); stroke-width: .9; stroke-linecap: round; }
.prop-marker { cursor: pointer; }
.prop-marker-dot { stroke: var(--surface); stroke-width: .45; }
.prop-marker-halo { opacity: .28; }
.prop-marker--match .prop-marker-dot, .prop-marker--match .prop-marker-halo { fill: var(--prop-match); }
.prop-marker--differs .prop-marker-dot, .prop-marker--differs .prop-marker-halo { fill: var(--prop-differs); }
.prop-marker--missing .prop-marker-dot, .prop-marker--missing .prop-marker-halo { fill: var(--prop-missing); }
.prop-marker--error .prop-marker-dot, .prop-marker--error .prop-marker-halo { fill: var(--prop-error); }
.prop-marker--pending .prop-marker-dot, .prop-marker--pending .prop-marker-halo { fill: var(--prop-pending); }
.prop-marker-halo { transform-box: fill-box; transform-origin: center; animation: prop-ping 2.4s ease-out 1; }
.prop-marker--differs .prop-marker-halo, .prop-marker--error .prop-marker-halo, .prop-marker--missing .prop-marker-halo { animation-iteration-count: infinite; }
.prop-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; padding: 0; list-style: none; font-size: var(--text-small); color: var(--txt-2); }
.prop-legend li { display: inline-flex; align-items: center; gap: 6px; }
.prop-legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.prop-legend-dot--match { background: var(--prop-match); }
.prop-legend-dot--differs { background: var(--prop-differs); }
.prop-legend-dot--missing { background: var(--prop-missing); }
.prop-legend-dot--error { background: var(--prop-error); }

/* Answer groups */
.prop-groups ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.prop-groups li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--border); font-size: var(--text-small); }
.prop-groups li:first-child { border-top: 0; }
.prop-group-values { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.prop-group-count { color: var(--txt-3); font-variant-numeric: tabular-nums; }
.prop-chip { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--prop-match-ink); font-size: var(--text-caption); font-weight: 600; }
.prop-swatch { width: 10px; height: 10px; border-radius: 3px; background: transparent; flex-shrink: 0; }
.prop-swatch[data-group="0"] { background: var(--prop-g0); }
.prop-swatch[data-group="1"] { background: var(--prop-g1); }
.prop-swatch[data-group="2"] { background: var(--prop-g2); }
.prop-swatch[data-group="3"] { background: var(--prop-g3); }
.prop-swatch[data-group="4"] { background: var(--prop-g4); }
.prop-swatch[data-group="5"] { background: var(--prop-g5); }

/* Filters */
.prop-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.prop-filter { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--txt-2); font: inherit; font-size: var(--text-small); font-weight: 600; cursor: pointer; }
.prop-filter:hover { border-color: var(--primary); }
.prop-filter[aria-pressed="true"] { background: var(--primary-fill); border-color: var(--primary-fill); color: #fff; }
.prop-filter:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Rows */
.prop-count { display: inline-flex; padding: 1px 8px; border-radius: 999px; background: var(--surface2); color: var(--txt-3); font-size: var(--text-caption); font-weight: 600; }
.prop-rows { margin: 0; padding: 0; list-style: none; }
.prop-row {
  display: grid; grid-template-columns: 10px minmax(150px, 1.1fr) minmax(0, 1.6fr) 96px 118px 116px; gap: 12px; align-items: center;
  padding: 11px 8px; border-top: 1px solid var(--border); border-radius: 8px; transition: background var(--t-fast);
}
.prop-rows .prop-row:first-child { border-top: 0; }
.prop-row:hover { background: var(--surface2); }
.prop-row--flash { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.prop-row--pending { opacity: .75; }
.prop-row-main { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.prop-row-main strong { font-weight: 600; overflow-wrap: anywhere; }
.prop-row-sub { flex-basis: 100%; color: var(--txt-3); font-size: var(--text-compact); overflow-wrap: anywhere; }
.prop-ad { padding: 0 6px; border-radius: 4px; background: var(--rtype-dnssec-bg); color: var(--rtype-dnssec-fg); font-size: 11px; font-weight: 600; }
.prop-row-answer { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: var(--text-small); }
.prop-row-answer code { overflow-wrap: anywhere; word-break: break-word; }
.prop-via { flex-basis: 100%; color: var(--txt-3); font-size: var(--text-compact); }
.prop-row-ttl { display: flex; flex-direction: column; gap: 2px; font-size: var(--text-compact); color: var(--txt-3); font-variant-numeric: tabular-nums; }
.prop-ttl { color: var(--txt-2); font-weight: 500; }
.prop-row > .prop-row-menu { justify-self: end; }
.prop-row-menu {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--txt-3); font: inherit; cursor: pointer;
}
.prop-row-menu:hover { border-color: var(--border); background: var(--surface); color: var(--txt); }
.prop-row-menu:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.prop-row-menu--trouble { padding: 0 12px; border-color: var(--border); background: var(--surface); color: var(--primary-ink); font-size: var(--text-compact); font-weight: 600; }
.prop-tip { margin: 0; font-size: var(--text-small); }

/* Troubleshooting menu (a non-modal dialog) */
.prop-menu {
  position: fixed; z-index: 60; width: 320px; max-width: calc(100vw - 16px); max-height: min(560px, calc(100vh - 16px)); overflow-y: auto;
  padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  box-shadow: 0 18px 48px rgba(11, 18, 32, .22); font-size: var(--text-small);
}
.prop-menu[hidden] { display: none; }
.prop-menu-head { padding: 8px 10px 4px; }
.prop-menu-title { margin: 0; font-weight: 700; color: var(--txt); }
.prop-menu-sub { margin: 2px 0 0; color: var(--txt-3); font-family: var(--font-mono); font-size: var(--text-caption); overflow-wrap: anywhere; }
.prop-menu-hint { margin: 6px 6px 4px; padding: 8px 10px; border-radius: 8px; background: var(--surface2); color: var(--txt-2); line-height: 1.5; }
.prop-menu-group { margin: 10px 10px 4px; font-size: var(--text-caption); font-weight: 700; color: var(--txt-3); text-transform: uppercase; letter-spacing: .05em; }
.prop-menu-list { margin: 0; padding: 0; list-style: none; }
.prop-menu-list a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 8px; color: var(--txt); text-decoration: none; }
.prop-menu-list a small { color: var(--txt-3); font-size: var(--text-caption); }
.prop-menu-list a:hover, .prop-menu-list a:focus-visible { background: var(--surface2); outline: none; }
.prop-menu-list a:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); }
.prop-menu-details summary { padding: 7px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--txt-2); }
.prop-menu-details summary:hover { background: var(--surface2); }
.prop-menu-details .prop-menu-list a { padding-left: 22px; }
.prop-menu-loading { margin: 8px 10px; }
.prop-menu-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; padding: 8px 6px 2px; border-top: 1px solid var(--border); }
.prop-menu-actions button { padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--txt); font: inherit; font-weight: 600; cursor: pointer; }
.prop-menu-actions button:hover { background: var(--surface2); }
.prop-menu-actions button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* About */
.prop-about { margin-top: 48px; }
.prop-about h2 { font-size: var(--text-h2); margin: 0 0 12px; }
.prop-about-checks { margin-bottom: 16px; }
.prop-about .tools-intro a { color: var(--primary-ink); }

@keyframes prop-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes prop-spin { to { transform: rotate(360deg); } }
@keyframes prop-ping { 0% { transform: scale(.4); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .prop-live::before, .prop-status--pending .prop-icon, .prop-marker-halo { animation: none; }
}

@media (max-width: 860px) {
  .prop-row {
    grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-areas: "sw main status" "sw answer answer" "sw ttl menu";
  }
  .prop-swatch { grid-area: sw; align-self: start; margin-top: 6px; }
  .prop-row-main { grid-area: main; }
  .prop-row-answer { grid-area: answer; }
  .prop-row-ttl { grid-area: ttl; flex-direction: row; gap: 12px; }
  .prop-row .prop-status { grid-area: status; justify-self: end; }
  .prop-row-menu { grid-area: menu; justify-self: end; }
  .prop-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .prop-summary-body { width: 100%; text-align: left; }
}
@media (max-width: 700px) {
  .prop-form { grid-template-columns: 1fr; }
  .prop-form > button { grid-column: 1; grid-row: auto; }
  .prop-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prop-card { padding: 18px 16px; }
  .prop-ring { width: 140px; height: 140px; }
  .prop-type-grid span { min-width: 52px; }
}
