/* Canonical SharetoBoard product catalog and grouped product navigation. */

.product-nav-panel {
  display: grid;
  left: auto;
  right: 0;
  width: min(720px, calc(100vw - 2rem));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.65rem;
  transform: none;
}

.product-nav-panel::before {
  left: auto;
  right: 2.25rem;
  transform: rotate(45deg);
}

.product-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.025);
}

.product-nav-heading {
  padding: 0.4rem 0.65rem 0.25rem;
  color: #0eb5ad;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-nav-note {
  padding: 0.35rem 0.65rem 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.nav .product-nav-panel a {
  min-width: 0;
  padding: 0.62rem 0.65rem;
}

.nav .product-nav-panel a strong,
.nav .product-nav-panel a span {
  overflow-wrap: anywhere;
}

.nav .product-nav-panel a[aria-current="page"] {
  background: rgba(14, 181, 173, 0.12);
  box-shadow: inset 3px 0 0 #0eb5ad;
}

.catalog-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.8rem, 11vw, 8.5rem) 0 clamp(3.3rem, 8vw, 6rem);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 122, 43, 0.2), transparent 34%),
    radial-gradient(circle at 14% 10%, rgba(14, 181, 173, 0.16), transparent 34%);
}

.catalog-hero .shell {
  position: relative;
  z-index: 1;
}

.catalog-hero h1,
.product-hero h1 {
  max-width: 1000px;
  margin: 0.45rem 0 1.1rem;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.catalog-hero h1 span {
  color: #ff9e58;
}

.catalog-hero .lead,
.product-hero .lead {
  max-width: 780px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.catalog-status-row,
.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.35rem 0 0;
}

.catalog-status-row span,
.product-facts span,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.46rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.77rem;
  font-weight: 700;
}

.catalog-section,
.product-section {
  padding: clamp(3.2rem, 7vw, 6rem) 0;
}

.catalog-section.alt,
.product-section.alt {
  background: rgba(2, 8, 14, 0.28);
  border-block: 1px solid var(--line);
}

.catalog-section h2,
.product-section h2 {
  max-width: 850px;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.04;
}

.catalog-section .section-lead,
.product-section .section-lead {
  max-width: 760px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.catalog-category {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background:
    linear-gradient(155deg, rgba(17, 43, 66, 0.96), rgba(8, 24, 39, 0.98));
  box-shadow: 0 18px 40px rgba(1, 5, 10, 0.24);
}

.catalog-category[data-category="android"] {
  border-color: rgba(255, 122, 43, 0.56);
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 122, 43, 0.17), transparent 35%),
    linear-gradient(155deg, rgba(61, 38, 27, 0.92), rgba(8, 24, 39, 0.98));
}

.catalog-category[data-category="mcp"] {
  border-color: rgba(14, 181, 173, 0.45);
}

.category-label,
.product-eyebrow {
  color: #0eb5ad;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-category[data-category="android"] .category-label {
  color: #ffad73;
}

.catalog-category > h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.catalog-category > p {
  margin: 0 0 0.25rem;
  color: var(--muted);
}

.catalog-product {
  display: block;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.85rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.catalog-product:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 181, 173, 0.46);
  background: rgba(14, 181, 173, 0.07);
}

.catalog-product strong,
.catalog-product span {
  display: block;
}

.catalog-product strong {
  color: var(--text);
  font-size: 1rem;
}

.catalog-product span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.catalog-product .product-status-inline {
  display: inline-flex;
  width: max-content;
  margin-top: 0.55rem;
  color: #ffb27b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.category-note,
.boundary-note {
  margin-top: auto;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid #0eb5ad;
  border-radius: 0.65rem;
  color: var(--muted);
  background: rgba(14, 181, 173, 0.06);
  font-size: 0.84rem;
}

.product-hero {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(3rem, 6vw, 4.8rem);
}

.product-layout,
.comparison-grid,
.status-family-grid,
.chrome-family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.chrome-family-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-panel,
.status-family,
.chrome-tool {
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(155deg, var(--surface, #112b42), var(--surface-2, #0b1f32));
}

.product-panel h3,
.status-family h3,
.chrome-tool h3 {
  margin-top: 0.35rem;
}

.product-panel p,
.status-family p,
.chrome-tool p {
  color: var(--muted);
}

.status-family ul,
.product-panel ul,
.chrome-tool ul {
  padding-left: 1.15rem;
  color: var(--muted);
}

.status-family li + li,
.product-panel li + li,
.chrome-tool li + li {
  margin-top: 0.45rem;
}

.status-family .status-chip {
  margin-bottom: 0.3rem;
}

.status-chip.orange {
  color: #ffbd8e;
  border-color: rgba(255, 122, 43, 0.36);
  background: rgba(255, 122, 43, 0.08);
}

.status-chip.teal {
  color: #8de7df;
  border-color: rgba(14, 181, 173, 0.36);
  background: rgba(14, 181, 173, 0.08);
}

.legacy-route {
  max-width: 760px;
  margin: clamp(4rem, 10vw, 8rem) auto;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: linear-gradient(155deg, var(--surface, #112b42), var(--surface-2, #0b1f32));
}

.legacy-route h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.table-wrap {
  overflow-x: auto;
}

.privacy-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.privacy-table th,
.privacy-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.privacy-table th {
  color: var(--text);
}

.privacy-table td {
  color: var(--muted);
}

.section-eyebrow {
  color: #0eb5ad;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.beta-form-frame {
  width: 100%;
  min-height: 980px;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
}

@media (max-width: 960px) {
  .product-nav-panel {
    right: 50%;
    grid-template-columns: 1fr;
    max-height: min(72vh, 680px);
    overflow-y: auto;
    transform: translateX(50%);
  }

  .product-nav-panel::before {
    right: 50%;
    transform: translateX(50%) rotate(45deg);
  }

  .catalog-grid,
  .chrome-family-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .product-layout,
  .comparison-grid,
  .status-family-grid {
    grid-template-columns: 1fr;
  }

  .catalog-hero h1,
  .product-hero h1 {
    font-size: clamp(2.45rem, 13vw, 4.4rem);
  }
}
