/* Copyright The DeviceChain Authors */
/* SPDX-License-Identifier: Apache-2.0 */

/* The content pages under the home page (performance, security, integrations). Loaded after
   home.css, which supplies the header, footer, section, stat-tile and spec styles. Only what
   those pages add lives here. Accents are data (data-f), as on the home page; no inline styles. */

.page .page-head {
  padding-top: 3.5rem;
}

.page .page-head h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 1rem;
  text-wrap: balance;
}

.page .lede {
  color: var(--ink-2);
  font-size: 1.1rem;
  max-width: 64ch;
  margin: 0 0 1rem;
}

.page section > h3 {
  font-size: 1.05rem;
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.01em;
}

.page .stats + .figure-note,
.page .figure-note {
  margin: 0.9rem 0 0;
  max-width: 68ch;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.page .stats {
  margin-top: 1.2rem;
}

.page .stats.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page .shape-chip {
  display: inline-block;
  margin: 0 0 0.2rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.page .source-line {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.page .source-line a,
.page .figure-note a,
.page section > p a,
.page .tbl a,
.page .plain-list a {
  font-weight: 600;
  text-decoration: none;
}

.page .source-line a:hover,
.page .figure-note a:hover,
.page section > p a:hover,
.page .tbl a:hover,
.page .plain-list a:hover {
  text-decoration: underline;
}

.page .tbl-wrap {
  margin-top: 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--rule);
}

.page .tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.page .tbl th,
.page .tbl td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.page .tbl th {
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
}

.page .tbl td {
  color: var(--ink-2);
}

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

.page .plain-list {
  max-width: 68ch;
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-2);
}

.page .plain-list li {
  margin: 0.4rem 0;
}

.page .closing-note {
  margin-top: 2.4rem;
  padding: 1rem 1.2rem;
  max-width: 68ch;
  border-left: 2px solid var(--brand);
  background: var(--panel);
  color: var(--ink-2);
}

.page header a[aria-current="page"],
header a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 780px) {
  .page .stats.two {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The high-availability statement at the top of the performance page. */
.page .ha-note {
  margin: 1.6rem 0 0;
  padding: 1rem 1.2rem;
  max-width: 72ch;
  border-left: 3px solid var(--aqua);
  background: var(--panel);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.page .ha-note strong {
  color: var(--ink);
}

.page .ha-note a {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
/* The integrations directory: entries are anchors, with the three direction cells. */
.page .entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.page .entry {
  --f: var(--brand);
  padding: 1rem 1.1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--f);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

[data-f="aqua"] .entry { --f: var(--aqua); }
[data-f="violet"] .entry { --f: var(--violet); }
[data-f="magenta"] .entry { --f: var(--magenta); }
[data-f="amber"] .entry { --f: var(--amber); }
[data-f="brand"] .entry { --f: var(--brand-bright); }

.page .entry h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.page .entry h3 a {
  color: var(--ink);
  text-decoration: none;
}

.page .entry p {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.page .cells {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0.7rem 0 0.2rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

.page .cells .cell-name {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.page .cells .cell-val {
  color: var(--ink);
}

.page .page-head .cells {
  margin-top: 1.2rem;
}
