/* Copyright Ayers Electronics Inc. All rights reserved. */
/* a network's own learn-more page. */
/* Learn more: the network's own page - a storefront head (the picture, the name over one short line,
   the one action), then the reads, which scroll under it (css/layout/networks.css .networks-scroll). */
.detail-head {
  flex: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 20px;
  align-items: center;
  padding: 4px 8px 12px 0;
}
.detail-head .row-art {
  position: relative;
  width: 192px;
  height: 108px;
  border-radius: var(--radius-card);
  background: var(--track);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: var(--type-label);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  padding: 0 6px;
  box-sizing: border-box;
}
.detail-head .row-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* A preview in the picture slot (js/network-preview.js): the one shared picture, moved in, fills the slot from
   its corners over the network's mark. */
#netDetailLogo video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.detail-title .name {
  font-size: var(--type-title);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 6px;
}
.detail-title .sub {
  font-size: var(--type-body);
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
/* The network's line under its name is whole sentences already (js/network-head-line.js): no clamp. */
.detail-title .head-line {
  display: block;
  -webkit-line-clamp: unset;
}
/* The preview's one line: what plays, then the invitation to join. */
.detail-title .detail-preview-line {
  margin-top: 4px;
  color: var(--text);
  -webkit-line-clamp: 1;
}
.detail-title .detail-preview-line:empty {
  display: none;
}
.detail-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* One compact action at its own width: .gate-card .primary would stretch it across the head. */
.detail-action .row-act {
  width: auto;
  font-size: var(--type-body);
  padding: 10px 22px;
  min-width: 128px;
  text-align: center;
  margin-bottom: 6px;
}
.detail-action .row-act[aria-disabled="true"] {
  opacity: 0.45;
}
.detail-action .sub {
  font-size: var(--type-label);
  color: var(--muted);
}
.detail-section {
  margin: 0 0 14px;
}
.detail-legend {
  margin: 0 0 8px;
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}
/* Now On: four of the On Demand card (js/on-demand-card.js) across the page, each its 16:9 box. */
.detail-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
/* The channel's logo, on its own 4:1 canvas, stands whole in the box on the tile ground. */
.detail-tiles .card .poster {
  object-fit: contain;
  padding: 0 10%;
  box-sizing: border-box;
  background: var(--track);
}
/* What is on stands whole: the title wraps to as many lines as it needs, its times on the line under it. */
.detail-tiles .card .title {
  white-space: normal;
  overflow-wrap: break-word;
}
.detail-cell .row-art {
  width: 96px;
  height: 54px;
  border-radius: var(--radius-card);
  background: var(--track);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: var(--type-label);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  padding: 0 6px;
  box-sizing: border-box;
}
.detail-cell .row-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px 8px;
}
.detail-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}
.detail-cell > * + * {
  margin-top: 4px;
}
.detail-cell .sub {
  font-size: var(--type-label);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.detail-desc {
  margin: 0 0 6px;
  font-size: var(--type-label);
  color: var(--text);
  line-height: 1.4;
}
.posture-badge {
  display: inline-block;
  font-size: var(--type-micro);
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-small);
  padding: 1px 6px;
  color: var(--muted);
}
.posture-badge.online {
  color: var(--text);
}
.posture-badge.listed {
  color: var(--accent-text);
  border-color: var(--accent);
}
