/* Relay Atlas: dense station directory and station profile surfaces. */

/* ---- Shared protocol label ---- */
.station-protocol {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 2px 8px;
  border: 1px solid rgba(21, 18, 31, .09);
  border-radius: 999px;
  background: #fafafb;
  color: #63606c;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.station-protocol svg {color: #7c7787}

/* ================================================================
   Homepage directory: a compact row list instead of cards.
   ================================================================ */
.atlas-home .directory-section {
  --st-ink: var(--home-ink);
  --st-muted: var(--home-muted);
  --st-line: var(--home-line);
  --st-iris: var(--home-iris);
  --st-iris-deep: var(--home-iris-deep);
  --st-iris-soft: var(--home-iris-soft);
  --st-cols: minmax(210px, 1.6fr) minmax(108px, .8fr) minmax(118px, .95fr) 74px 110px 110px 54px;
}

.atlas-home .directory-options {flex-wrap: wrap; gap: 14px 20px}
.directory-scope {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7c7487;
  font-size: 11.5px;
  white-space: nowrap;
}
.directory-scope svg {color: #9a93a6}
.atlas-home .sort-label {margin-left: auto}
.directory-reset {
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--st-iris);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.directory-reset:hover {background: var(--st-iris-soft); color: var(--st-iris-deep)}

/* Column labels */
.station-list-head {
  display: grid;
  grid-template-columns: var(--st-cols);
  gap: 16px;
  align-items: end;
  padding: 13px 20px 10px;
  border: 1px solid var(--st-line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #fff;
  color: #8e8799;
  font: 9px/1.4 ui-monospace, Menlo, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.station-list-head > span:first-child {padding-left: 54px}

/* Rows */
.station-list {
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 60px -56px rgba(21, 18, 31, .45);
  overflow: hidden;
}
.station-list-head + .station-list {border-top: 0; border-radius: 0 0 16px 16px; box-shadow: none}
.station-list-row {
  display: grid;
  grid-template-columns: var(--st-cols);
  grid-template-areas: "main models protocols rate credit status action";
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--st-line);
  background: #fff;
  min-width: 0;
  transition: background .16s;
}
.station-list-row:last-child {border-bottom: 0}
.station-list-row:hover {background: #fbfbfd}
.station-list-row:focus-within {background: #f9f8fe}

.station-list-main {grid-area: main; display: flex; align-items: center; gap: 4px; min-width: 0}
.station-list-identity {display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--st-ink)}
.station-list-identity .station-logo {width: 42px; height: 42px; font-size: 21px; border-radius: 11px}
.station-list-copy {display: flex; flex-direction: column; gap: 2px; min-width: 0}
.station-list-copy strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-list-copy small {
  font: 10.5px/1.4 ui-monospace, Menlo, monospace;
  color: var(--st-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-list-favorite {width: 34px; height: 34px; margin-left: auto; flex-shrink: 0}
.station-list-favorite.favorite[aria-pressed="true"] {color: #7b68c9}
.station-list-favorite.favorite[aria-pressed="true"] svg {fill: #e6ddff}

.station-list-cell {display: flex; flex-direction: column; gap: 3px; min-width: 0}
.station-list-cell::before {content: none}
.station-list-cell strong {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--st-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-list-cell strong small {
  margin-left: 1px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--st-muted);
}
.station-list-cell > span:not(.status-pill) {
  font-size: 10.5px;
  line-height: 1.4;
  color: #8e8799;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-list-models {grid-area: models}
.station-list-models strong {font-size: 13px}
.station-list-protocols {grid-area: protocols; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px}
.station-list-rate {grid-area: rate}
.station-list-rate strong {font-size: 15px}
.station-list-credit {grid-area: credit}
.station-list-credit strong {font-size: 12.5px}
.station-list-credit strong i {font-style: normal; margin: 0 1px; color: #a29cae}
.station-list-credit strong.is-empty {color: #aaa4b2}
.station-list-status {grid-area: status; gap: 4px}
.station-list-action {grid-area: action; display: flex; justify-content: flex-end}
.station-list-action a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 2px;
  color: var(--st-iris);
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.station-list-action a:hover {color: var(--st-iris-deep)}

@media (max-width: 1150px) {
  .atlas-home .directory-section {
    --st-cols: minmax(190px, 1.5fr) minmax(96px, .8fr) minmax(104px, .9fr) 66px 100px 100px 50px;
  }
  .station-list-row, .station-list-head {gap: 13px}
  .station-list-copy small {font-size: 10px}
}

@media (max-width: 900px) {
  .atlas-home .directory-section {
    --st-cols: minmax(170px, 1.35fr) minmax(88px, .75fr) minmax(96px, .85fr) 56px 96px 42px;
  }
  .station-list-head > span:nth-child(5) {display: none}
  .station-list-row {grid-template-areas: "main models protocols rate status action"; gap: 12px}
  .station-list-credit {display: none}
}

@media (max-width: 760px) {
  .atlas-home .directory-section {--st-cols: repeat(2, minmax(0, 1fr))}
  .station-list-head {display: none}
  .station-list-head + .station-list {border-top: 1px solid var(--st-line); border-radius: 16px; box-shadow: 0 30px 60px -56px rgba(21, 18, 31, .45)}
  .station-list-row {
    grid-template-areas:
      "main main"
      "models protocols"
      "rate credit"
      "status action";
    gap: 14px 16px;
    padding: 16px;
  }
  .station-list-credit {display: flex}
  .station-list-cell {
    gap: 4px;
    padding-top: 11px;
    border-top: 1px solid var(--st-line);
  }
  .station-list-cell::before {
    content: attr(data-label);
    order: -1;
    font: 9px/1.4 ui-monospace, Menlo, monospace;
    letter-spacing: .12em;
    color: #9b94a6;
  }
  .station-list-protocols {display: block}
  .station-list-protocols::before {display: block; margin-bottom: 4px}
  .station-list-protocols .station-protocol {margin: 0 4px 4px 0}
  .station-list-action {
    align-self: end;
    padding-top: 11px;
    border-top: 1px solid var(--st-line);
  }
  .station-list-action a {min-height: 42px}
  .directory-scope {width: auto; order: 2}
  .directory-reset {order: 3}
  .atlas-home .directory-count {display: inline-flex; align-items: baseline; gap: 2px}
  .atlas-home .sort-label {order: 4; margin-left: auto}
}

@media (max-width: 520px) {
  .station-declared-table thead {position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0}
  .station-declared-table,
  .station-declared-table tbody {display: block; width: 100%}
  .station-declared-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f3;
    white-space: normal;
  }
  .station-declared-table tbody tr:last-child {border-bottom: 0}
  .station-declared-table td {padding: 0; border: 0; white-space: normal}
  .station-declared-table td:nth-child(1) {grid-column: 1; min-width: 0}
  .station-declared-table td:nth-child(2) {grid-column: 2; justify-self: end}
  .station-declared-table td:nth-child(3) {grid-column: 1; justify-self: start}
  .station-declared-table td:nth-child(4) {grid-column: 2; justify-self: end; text-align: right}
  .station-table-wrap {overflow: hidden}
}

@media (max-width: 480px) {
  .station-list-row {padding: 14px; gap: 13px 12px}
  .station-list-identity {gap: 10px}
  .station-list-identity .station-logo {width: 38px; height: 38px; font-size: 19px}
  .station-list-copy strong {font-size: 13.5px}
  .station-list-cell strong {font-size: 13px}
  .station-list-rate strong {font-size: 14px}
  .station-list-credit strong {font-size: 11.5px}
  .station-protocol {padding-inline: 7px; font-size: 10px}
}

/* ================================================================
   Station profile: declared status, model table and facts sidebar.
   ================================================================ */
body.atlas-site:not(.atlas-home) .station-page-main {
  --st-ink: var(--site-ink);
  --st-ink-soft: var(--site-ink-soft);
  --st-muted: var(--site-muted);
  --st-line: var(--site-line);
  --st-iris: var(--site-iris);
  --st-iris-deep: var(--site-iris-deep);
  --st-iris-soft: var(--site-iris-soft);
  padding-top: 30px;
}
body.atlas-site:not(.atlas-home) .station-masthead {
  padding: 46px 0 40px;
  border-bottom: 1px solid var(--site-line);
}
.station-masthead .station-hero-copy {flex: 1 1 180px; min-width: 0}
.station-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 16px;
}
.station-hero-meta > span:not(.status-pill) {
  padding: 3px 9px;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  background: #fff;
  color: var(--site-muted);
  font-size: 10.5px;
  line-height: 1.5;
}
.station-hero-meta > .mono {font-size: 11px; color: var(--site-ink-soft)}
.station-hero-meta .status-pill {margin-left: 4px; font-size: 11px}
.station-page-main .demo-notice {margin-top: 0}

.station-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 328px;
  align-items: start;
  gap: 22px;
  padding-bottom: 8px;
}
.station-page-column, .station-page-side {display: grid; gap: 22px; min-width: 0}

.station-panel {
  padding: 24px 26px;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: #fff;
  min-width: 0;
}
.station-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.station-panel-head .eyebrow,
.station-facts > .eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--st-iris-deep);
}
.station-panel-head h2,
.station-facts h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--st-ink);
}

.station-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--st-line);
  border-radius: 12px;
  background: #fbfbfc;
  overflow: hidden;
}
.station-status-grid > div {padding: 15px 16px; border-left: 1px solid var(--st-line); min-width: 0}
.station-status-grid > div:first-child {border-left: 0}
.station-status-grid > div > span {display: block; font-size: 10.5px; color: var(--st-muted)}
.station-status-grid strong {
  display: block;
  margin: 5px 0 2px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--st-ink);
}
.station-status-grid strong small {font-size: 10px; font-weight: 500; letter-spacing: 0; color: var(--st-muted)}
.station-status-grid strong.is-muted {color: #a3a1ad; font-weight: 500}
.station-status-grid > div > small {
  display: block;
  font-size: 10px;
  color: #918f9d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-status-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f7fa;
  color: var(--st-muted);
  font-size: 11px;
  line-height: 1.7;
}
.station-status-note svg {margin-top: 2px; color: var(--st-iris)}

.station-panel-count {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  background: #fafafa;
  color: var(--st-muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.station-table-wrap {
  border: 1px solid var(--st-line);
  border-radius: 12px;
  overflow-x: auto;
}
.station-declared-table {width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap}
.station-declared-table th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--st-line);
  background: #fafafb;
  color: #8b8794;
  font: 9.5px/1.5 ui-monospace, Menlo, monospace;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.station-declared-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f3;
  color: var(--st-ink-soft);
  font-size: 12px;
}
.station-declared-table tbody tr:last-child td {border-bottom: 0}
.station-declared-table tbody tr:hover {background: #fbfbfd}
.station-declared-table td strong.mono {font-size: 11.5px; font-weight: 600; color: var(--st-ink)}
.station-declared-table .num {text-align: right}
.station-declared-table td.num small {color: var(--st-muted); font-size: 10px}
.station-panel-note {margin: 14px 0 0; color: #8b8794; font-size: 10.5px; line-height: 1.7}
.station-panel-empty {
  padding: 26px;
  border: 1px dashed var(--st-line);
  border-radius: 12px;
  background: #fbfbfd;
  color: var(--st-muted);
  font-size: 12px;
  text-align: center;
}

.station-facts dl {margin: 18px 0 0}
.station-facts dt {
  padding-top: 12px;
  border-top: 1px solid #f0f0f3;
  color: #8b8794;
  font-size: 10.5px;
}
.station-facts dt:first-of-type {padding-top: 0; border-top: 0}
.station-facts dd {
  margin: 3px 0 12px;
  color: var(--st-ink-soft);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.station-cta {
  padding: 24px 26px;
  border-radius: 16px;
  background: var(--st-ink);
  color: #fff;
}
.station-cta .eyebrow {color: #b3adf7; font-size: 9px; letter-spacing: .18em}
.station-cta h3 {margin: 10px 0 8px; color: #fff; font-size: 20px; letter-spacing: -.02em}
.station-cta p {margin: 0 0 18px; color: rgba(255, 255, 255, .6); font-size: 11.5px; line-height: 1.8}
body.atlas-site:not(.atlas-home) .station-cta .atlas-button.primary {
  width: 100%;
  background: #fff;
  border-color: #fff;
  color: var(--st-ink);
  box-shadow: none;
}
body.atlas-site:not(.atlas-home) .station-cta .atlas-button.primary:hover {
  background: #efedff;
  border-color: #efedff;
  color: var(--st-iris-deep);
}

@media (max-width: 1080px) {
  .station-page {grid-template-columns: minmax(0, 1fr)}
  .station-page-side {grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr)}
}

@media (max-width: 760px) {
  body.atlas-site:not(.atlas-home) .station-masthead {padding: 34px 0 30px}
  .station-masthead-row {flex-wrap: wrap; align-items: flex-start; gap: 18px}
  .station-masthead-row .station-logo.large {width: 64px; height: 64px; font-size: 30px; border-radius: 16px}
  .station-masthead-row h1 {font-size: clamp(32px, 8vw, 42px)}
  .station-masthead .atlas-button.secondary {margin-left: 0; width: 100%}
  .station-page {margin-top: 0; gap: 16px}
  .station-page-column, .station-page-side {gap: 16px}
  .station-page-side {grid-template-columns: minmax(0, 1fr)}
  .station-panel {padding: 18px}
  .station-panel-head {flex-wrap: wrap; gap: 10px}
  .station-status-grid {grid-template-columns: repeat(2, minmax(0, 1fr))}
  .station-status-grid > div:nth-child(3) {border-left: 0; border-top: 1px solid var(--st-line)}
  .station-status-grid > div:nth-child(4) {border-top: 1px solid var(--st-line)}
  .station-cta {padding: 22px 18px}
}

@media (max-width: 420px) {
  .station-masthead .eyebrow {font-size: 8px; letter-spacing: .12em}
  .station-status-grid > div {padding: 13px 12px}
  .station-status-grid strong {font-size: 20px}
  .station-declared-table th, .station-declared-table td {padding-inline: 12px}
}
.station-sample-time {display:block;margin-top:5px;color:var(--site-muted);font-size:11px;line-height:1.5}

.station-status-grid .station-check-time { font-size: 14px; }
