/* Connection details view — CW-WEB-10C-1A. Extends federation.css with
   card/panel composition in the same visual system. */

.wt-hero { padding-bottom: 48px; }
.wt-return { margin: 20px 0 0; }
.wt-return .btn-primary { text-decoration: none; }

.wt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) { .wt-grid { grid-template-columns: 1fr; } }

.wt-card {
  background: #F7F4ED;
  color: #300950;
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid #E3DCD0;
}
.wt-rail { display: grid; gap: 16px; }
.wt-card h3 { margin: 0 0 8px; font-family: "Archivo", sans-serif; font-size: 17px; }
.wt-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: #3b2a63; }
.wt-card p:last-child { margin-bottom: 0; }

.wt-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 13.5px; margin: 6px 0 0; }
.wt-kv dt { font-weight: 700; color: #300950; }
.wt-kv dd { margin: 0; color: #3b2a63; }
.wt-kv .wt-state { display: inline-block; padding: 1px 10px; border-radius: 999px; background: #E9E3FC; font-weight: 700; font-size: 12.5px; }
.wt-kv .wt-state.ok { background: #DCE9DC; color: #1d4a1d; }
.wt-kv .wt-state.stop { background: #FBE0D6; color: #A93E21; }

.wt-section { margin-top: 40px; }
.wt-section h2 { font-family: "Archivo", sans-serif; font-size: 24px; margin: 0 0 6px; }
.wt-lede { margin: 0 0 16px; color: rgba(247,244,237,.7); font-size: 14.5px; max-width: 620px; }

.wt-spaces { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .wt-spaces { grid-template-columns: 1fr; } }
.wt-space-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wt-badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: #E9E3FC; color: #4A1FD0; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.wt-recs { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.wt-recs li { border-top: 1px solid #E3DCD0; padding-top: 6px; }
.wt-recs .wt-kind { color: #7540F5; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.wt-actors { margin: 10px 0 0; font-size: 13px; color: #635B8C; }
.wt-actors li { margin-bottom: 3px; }
.wt-actors ul { margin: 4px 0 0; padding-left: 18px; }

details.wt-tech {
  margin-top: 14px;
  border: 1px solid #E3DCD0;
  border-radius: 10px;
  background: #fff;
}
details.wt-tech summary {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #7540F5;
  cursor: pointer;
  list-style-position: inside;
}
details.wt-tech[open] summary { border-bottom: 1px solid #E3DCD0; }
details.wt-tech > *:not(summary) { margin: 12px 14px; }
.wt-json {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: #3b2a63;
  margin: 0;
  max-height: 320px;
  overflow: auto;
}
.wt-tech table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.wt-tech th, .wt-tech td { text-align: left; padding: 5px 8px; border-bottom: 1px solid #E3DCD0; vertical-align: top; }
.wt-tech th { color: #635B8C; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }

.wt-fields-shared { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wt-pill { padding: 3px 11px; border-radius: 999px; font-size: 12px; background: #E9E3FC; color: #300950; }
.wt-pill.denied { background: #FBE0D6; color: #A93E21; text-decoration: line-through; }

/* audit feed sits on a cream card here (dark card on the 3D page) */
.wt-card .fed-audit { color: #3b2a63; }
.wt-card .fed-audit-when { color: #7540F5; }
.wt-card .fed-audit em { color: #A93E21; }
