/* DX cluster page -- values from design_handoff_hamqth_dxcluster/README.md ("ETHER"). */
.dxc { background: var(--hq-tint); } /* #fbfbfc, not white */
.dxc-page { max-width: 1100px; margin: 0 auto; padding: 34px 40px 48px; display: flex; flex-direction: column; gap: 22px; }
.dxc-page [hidden] { display: none !important; }
.dxc .mono, .dxc .callsign { font-family: var(--hq-mono); }

/* header: title + UTC clock, solar tiles */
.dxc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dxc-title { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--hq-text); }
.dxc-clock { margin: 6px 0 0; font-family: var(--hq-mono); font-size: 14px; color: var(--hq-text-3); white-space: pre; }
.dxc-solar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.dxc-tile { display: flex; align-items: baseline; gap: 6px; background: var(--hq-surface); border: 1px solid var(--hq-line-2); border-radius: 4px; padding: 6px 10px; }
.dxc-tile dt { font-family: var(--hq-mono); font-size: 11px; font-weight: 400; color: var(--hq-text-4); }
.dxc-tile dd { margin: 0; font-family: var(--hq-mono); font-size: 13px; font-weight: 600; color: var(--hq-text); }

/* tabs */
.dxc-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--hq-line-2); }
.dxc-tab { font-size: 15px; padding: 10px 16px; margin-bottom: -1px; color: var(--hq-text-3); font-weight: 400; border-bottom: 2px solid transparent; }
.dxc-tab:hover { opacity: 1; color: var(--hq-text); }
.dxc-tab[aria-selected="true"] { color: var(--hq-text); font-weight: 600; border-bottom-color: var(--hq-brand); }
.dxc-panel { display: flex; flex-direction: column; gap: 22px; }

/* filter bar */
.dxc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dxc-toggle, .dxc-new, .dxc-send, .dxc-cancel, .dxc-reset { font: inherit; cursor: pointer; }
.dxc-toggle { min-height: 38px; padding: 0 16px; font-size: 14px; font-weight: 500; color: var(--hq-text); background: var(--hq-surface); border: 1px solid var(--hq-input-line); border-radius: 5px; }
.dxc-arrow { font-size: 10px; color: var(--hq-text-4); margin-right: 6px; }
.dxc-summary { font-size: 13px; color: var(--hq-text-3); }
.dxc-count { margin-left: auto; font-family: var(--hq-mono); font-size: 12px; color: var(--hq-text-4); }
.dxc-new { min-height: 38px; padding: 0 16px; font-size: 14px; font-weight: 500; color: #fff; background: var(--hq-brand-green); border: 1px solid var(--hq-brand-green); border-radius: 5px; }

/* new spot form */
.dxc-spot-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; background: var(--hq-surface); border: 1px solid var(--hq-line-2); border-radius: 6px; padding: 16px 18px; }
.dxc-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--hq-text-4); margin: 0; }
.dxc-field input { padding: 9px 10px; border: 1px solid var(--hq-input-line); border-radius: 4px; font-size: 14px; color: var(--hq-text); background: var(--hq-surface); }
.dxc-field input:focus { outline: none; border-color: var(--hq-accent); box-shadow: 0 0 0 3px var(--hq-focus); }
.dxc-field-call input { width: 150px; font-family: var(--hq-mono); text-transform: uppercase; }
.dxc-field-call input::placeholder { text-transform: none; }
.dxc-field-freq input { width: 130px; font-family: var(--hq-mono); }
.dxc-field-comment { flex: 1; min-width: 220px; }
.dxc-send { height: 40px; padding: 0 18px; font-size: 14px; font-weight: 600; color: #fff; background: var(--hq-brand-green); border: 1px solid var(--hq-brand-green); border-radius: 5px; }
.dxc-send:disabled { opacity: .45; cursor: default; }
.dxc-cancel { height: 40px; padding: 0 16px; font-size: 14px; color: var(--hq-text); background: var(--hq-surface); border: 1px solid var(--hq-input-line); border-radius: 5px; }
.dxc-form-error { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--hq-danger); }

/* filter box */
.dxc-filter { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px 18px; background: var(--hq-surface); border: 1px solid var(--hq-line-2); border-radius: 6px; padding: 18px 20px; }
.dxc-filter-label { padding-top: 10px; font-family: var(--hq-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--hq-text-4); }
.dxc-filter-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dxc-chip { min-width: 48px; height: 34px; padding: 0 11px; font-family: var(--hq-mono); font-size: 13px; font-weight: 500; border-radius: 4px; cursor: pointer;
  background: var(--hq-surface); border: 1px solid var(--hq-input-line); color: var(--hq-text-3); }
.dxc-chip[aria-pressed="true"] { background: var(--hq-brand); border-color: var(--hq-brand); color: #fff; }
.dxc-sep { width: 1px; height: 22px; background: var(--hq-line-2); margin: 0 4px; }
.dxc-link { padding: 0 4px; font-size: 13px; color: var(--hq-brand); background: none; border: 0; cursor: pointer; }
.dxc-help { font-size: 13px; color: var(--hq-text-4); margin-left: 4px; }
.dxc-zone { display: inline-flex; align-items: center; gap: 8px; margin: 0 10px 0 0; font-size: 13px; color: var(--hq-text-3); }
.dxc-zone input { width: 120px; padding: 7px 9px; font-family: var(--hq-mono); font-size: 13px; border: 1px solid var(--hq-input-line); border-radius: 4px; }
.dxc-seg { display: inline-flex; flex-wrap: wrap; background: var(--hq-surface); border: 1px solid var(--hq-input-line); border-radius: 4px; overflow: hidden; }
.dxc-seg button { height: 34px; padding: 0 12px; font-family: var(--hq-mono); font-size: 13px; font-weight: 500; background: var(--hq-surface); color: var(--hq-text-3); border: 0; border-right: 1px solid var(--hq-line-2); cursor: pointer; }
.dxc-seg button:last-child { border-right: 0; }
.dxc-seg button[aria-checked="true"] { background: var(--hq-brand); color: #fff; }
.dxc-filter-foot { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--hq-line); padding-top: 6px; font-size: 13px; color: var(--hq-text-4); }
.dxc-reset { font-size: 13px; color: var(--hq-text-3); background: var(--hq-surface); border: 1px solid var(--hq-input-line); border-radius: 5px; padding: 8px 14px; }
.dxc-error { margin: -10px 0 0; font-size: 13px; color: var(--hq-danger); }

/* legends */
.dxc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: -10px; font-size: 13px; color: var(--hq-text-2); }
.dxc-legend-label { font-family: var(--hq-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--hq-text-4); }
.dxc-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.dxc-swatch { width: 14px; height: 14px; border-radius: 3px; }
.dxc-legend-link { margin-left: auto; color: var(--hq-brand); }

/* highlight levels: colours from the user's settings (--hl-* on the panel), row = a light tint */
.hl-country { --hl: var(--hl-country); }
.hl-band { --hl: var(--hl-band); }
.hl-mode { --hl: var(--hl-mode); }
.dxc-legend-item[class*="hl-"] .dxc-swatch { background: color-mix(in srgb, var(--hl) 10%, #fff); border: 2px solid var(--hl); }

/* tables */
.dxc-table-wrap { background: var(--hq-surface); border: 1px solid var(--hq-line-2); border-radius: 6px; overflow: hidden; overflow-x: auto; }
.dxc-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--hq-text); }
.dxc-table th { padding: 10px 12px; border-bottom: 1px solid var(--hq-line-2); font-family: var(--hq-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--hq-text-4); text-align: left; white-space: nowrap; }
.dxc-table td { padding: 9px 12px; border-bottom: 1px solid var(--hq-line); }
.dxc-table tbody tr:last-child td { border-bottom: 0; }
.dxc-table .num { text-align: right; }
.dxc-table tbody tr:hover { background: #f4f7fb; }
.dxc-table tr[class*="hl-"], .dxc-table tr[class*="hl-"]:hover { background: color-mix(in srgb, var(--hl) 10%, #fff); }
.dxc-table tr.is-own, .dxc-table tr.is-own:hover { background: var(--hq-accent-bg); } /* #f2f7fc */
.dxc-spotter { font-family: var(--hq-mono); font-size: 13px; color: var(--hq-text-3); }
.dxc-freq { font-family: var(--hq-mono); text-align: right; white-space: nowrap; }
.dxc-band { font-family: var(--hq-mono); font-size: 12px; color: var(--hq-text-4); }
.dxc-dx { font-family: var(--hq-mono); font-weight: 600; color: var(--hq-accent); white-space: nowrap; }
.dxc-table tr[class*="hl-"] .dxc-dx, .dxc-table tr[class*="hl-"] .dxc-tag { color: var(--hl); }
.dxc-tag { font-family: var(--hq-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; margin-left: 6px; }
.dxc-comment, .dxc-country { color: var(--hq-text-2); }
.dxc-time { font-family: var(--hq-mono); font-size: 13px; color: var(--hq-text-3); white-space: nowrap; }
.dxc-qsl { font-family: var(--hq-mono); font-size: 13px; color: var(--hq-check); }
.dxc-empty { margin: 0; padding: 28px; text-align: center; font-size: 14px; color: var(--hq-text-4); }
.dxc-hint { background: var(--hq-surface); border: 1px solid var(--hq-line-2); border-radius: 6px; }
.dxc-intro { margin: 0; font-size: 14px; color: var(--hq-text-3); }
.dxc-intro .callsign { font-weight: 600; color: var(--hq-accent); }

/* search */
.dxc-search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dxc-search-input { width: 320px; max-width: 100%; padding: 10px 12px; font-family: var(--hq-mono); font-size: 15px; text-transform: uppercase; background: var(--hq-surface); border: 1px solid var(--hq-input-line); border-radius: 5px; }
.dxc-search-input::placeholder { text-transform: none; }
.dxc-search-input:focus { outline: none; border-color: var(--hq-accent); box-shadow: 0 0 0 3px var(--hq-focus); }
.dxc-search .dxc-count { margin-left: 0; font-family: inherit; font-size: 13px; }
.dxc-search-help { margin: -14px 0 0; }

/* RBN: whole-row tint by age, see-through row lines */
.dxc-rbn td { vertical-align: top; border-bottom-color: rgba(28, 33, 40, .06); }
.age-1 { --age: #f6e0e0; }
.age-2 { --age: #fbeedd; }
.age-3 { --age: #f6f4dc; }
.dxc-rbn tr[class*="age-"], .dxc-rbn tr[class*="age-"]:hover { background: var(--age); }
.dxc-legend-item[class*="age-"] .dxc-swatch { background: var(--age); border: 1px solid rgba(28, 33, 40, .15); }
.dxc-mode { font-family: var(--hq-mono); font-size: 13px; color: var(--hq-text-2); }
.dxc-age { text-align: right; color: var(--hq-text-3); }
.dxc-skimmers-col { width: 100%; }
.dxc-skimmers { display: flex; flex-wrap: wrap; gap: 2px 10px; font-family: var(--hq-mono); font-size: 12.5px; line-height: 1.6; color: var(--hq-text-2); }
.dxc-skimmers .is-strong { font-weight: 700; color: var(--hq-text); }
.dxc-skimmers .is-weak { color: var(--hq-text-5); }
.dxc-more { padding: 0; font-family: 'Public Sans', sans-serif; font-size: 12.5px; color: var(--hq-brand); background: none; border: 0; cursor: pointer; }

/* phones: 16 px gutter, one-column filter, tables scroll inside their box */
@media (max-width: 720px) {
  .dxc-page { padding: 24px 16px 40px; }
  .dxc-filter { grid-template-columns: minmax(0, 1fr); }
  .dxc-filter-label { padding-top: 4px; }
  .dxc-filter-foot { grid-column: 1; }
  .dxc-count { margin-left: 0; }
  .dxc-table { min-width: 760px; }
  .dxc-legend-link { margin-left: 0; }
}
