/* Edition pages: the Glider family page (public/glider.html) and the Heat Watch and WinClick editions pages. Loaded after support.css and
   project.css, which supply the tokens, aurora, footer and project content. */

.glider-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 28px;
}

.glider-intro {
  font-size: 16px;
}

.glider-page h2 {
  margin: 40px 0 14px;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.3px;
}

.glider-page > h2:first-of-type {
  margin-top: 32px;
}

.glider-page .lead-note {
  margin: -4px 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Edition cards */
/* Four editions: one row on desktop, two on tablet, one on phone. */
.edition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 8px;
}

@media (min-width: 560px) {
  .edition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Four editions on desktop. Pages with two cards add .pair and keep two columns. */
@media (min-width: 900px) {
  .edition-grid:not(.pair) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.edition {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.edition-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.edition-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
}

.edition h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-primary);
}

.edition-platform {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.edition p {
  margin: 0;
  font-size: 14px;
  color: #c9d1d9;
  line-height: 1.55;
}

.status {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
}

.status.live {
  color: #fff;
  background: var(--accent-green);
  border-color: transparent;
}

.edition .details-link {
  margin-top: auto;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
}

.edition .details-link:hover {
  text-decoration: underline;
}

/* Comparison tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  margin: 0 0 10px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #c9d1d9;
}

.compare th,
.compare td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.compare th.col-yes,
.compare td.col-yes {
  text-align: center;
  width: 1%;
  white-space: nowrap;
}

/* App icons in the header cells: stacked over the label in the feature matrix,
   beside it in the Full vs Lite table. */
.col-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  border-radius: 7px;
}

.col-icon.inline {
  display: inline-block;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

.compare .yes {
  color: var(--accent-green);
  font-weight: 800;
  font-size: 16px;
}

.compare .no {
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Text values (e.g. "Direct download") get room; check marks stay narrow. */
.compare td:not(.feature):not(.col-yes) {
  min-width: 130px;
}

.compare td.feature {
  min-width: 190px;
  color: var(--text-primary);
  font-weight: 600;
}

/* Section rows inside a matrix (e.g. "Keyboard and system"). */
.compare tr.group th {
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  background: rgba(56, 139, 253, 0.06);
  white-space: normal;
}

.table-key {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Full vs Lite */
.differs-intro {
  margin: 0 0 14px;
}

.compare.diff td:first-child {
  color: var(--text-primary);
  font-weight: 600;
  width: 26%;
}

.compare.diff th:nth-child(2),
.compare.diff th:nth-child(3) {
  width: 37%;
}

.glider-page .note + .note {
  margin-top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  #container {
    padding: 24px 16px;
  }

  #message {
    padding: 20px 16px;
  }

  .glider-banner {
    border-radius: 14px;
    margin-bottom: 22px;
  }

  .compare th,
  .compare td {
    padding: 10px 10px;
    font-size: 13px;
  }

  .compare.diff td:first-child,
  .compare.diff th:nth-child(2),
  .compare.diff th:nth-child(3) {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edition .details-link {
    transition: none !important;
  }
}
