/* Concept pages (/loc_id, geometry families).
   Single-column docs pages with full-width figures and a centered prose
   column. Shared here so both pages keep one look; page-specific widgets stay
   in their own templates. Uses site.css tokens only. */

/* Layout: figures use the full width, prose sits in a centered 80% column
   and stays left-aligned. */
.docs-layout.cp-layout {
  grid-template-columns: minmax(0, 1fr);
}
.cp-layout .docs-article > p,
.cp-layout .docs-article > h2,
.cp-layout .docs-article > h3,
.cp-layout .docs-article > .cp-cta {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* Figure panel */
.cp-figure {
  margin: var(--sp-6) 0 var(--sp-8);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(5, 15, 24, 0.72);
}
.cp-figure figcaption {
  margin-top: var(--sp-5);
  font-size: var(--text-label);
  line-height: 1.5;
  color: var(--muted);
}

/* Small uppercase label */
.cp-label {
  display: block;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Inline prose link: amber text with an underline, so it reads as a link and
   not as code or a button. */
.cp-link {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 190, 92, 0.5);
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.cp-link:hover,
.cp-link:focus-visible {
  color: var(--text-strong);
  text-decoration-color: var(--amber);
}

/* Small note under a table or figure */
.docs-article p.cp-note {
  margin-top: var(--sp-3);
  font-size: var(--text-label);
  line-height: 1.5;
}

/* Closing action */
.cp-cta {
  margin-top: var(--sp-6);
}

/* Example id cards */
.cp-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin: var(--sp-5) 0 var(--sp-4);
}
.cp-example {
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 15, 24, 0.72);
}
.cp-example code {
  display: block;
  color: var(--cyan);
  background: none;
  padding: 0;
}
.cp-example span {
  display: block;
  margin-top: var(--sp-2);
  color: var(--text);
}
.cp-example small {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Share bar: how one area splits across others */
.cp-split {
  display: flex;
  height: var(--sp-10);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cp-split > div {
  display: flex;
  align-items: center;
  padding: 0 var(--sp-3);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #081018;
}
.cp-split-a { background: var(--cyan); }
.cp-split-b { background: var(--amber); }
.cp-split-keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}
.cp-split-keys code {
  display: block;
  margin-top: var(--sp-1);
}

@media (max-width: 760px) {
  .cp-layout .docs-article > p,
  .cp-layout .docs-article > h2,
  .cp-layout .docs-article > h3,
  .cp-layout .docs-article > .cp-cta { width: auto; }
  .cp-examples { grid-template-columns: minmax(0, 1fr); }
  .cp-split > div { font-size: 0.625rem; }
  .cp-split-keys { grid-template-columns: minmax(0, 1fr); }
}
