/* LightPane catalog — index + per-pane page styles.
   Built on top of tokens.css; uses the Sunlit palette for accents
   and the same Plus Jakarta Sans / Instrument Serif type-stack as
   the rest of the marketing site. */

/* ---- shared ---- */
.lp-catalog-provider {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--lp-r-pill);
  font-family: var(--lp-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
}
.lp-catalog-provider-aws   { background: #fff3e0; color: #b45309; border-color: #f8c785; }
.lp-catalog-provider-azure { background: #e6f1fb; color: #0c5cb0; border-color: #a8c8ec; }
.lp-catalog-provider-gcp   { background: #eaf1fc; color: #1a73e8; border-color: #b8cdf1; }

/* The tier pill (.lp-catalog-tier + explorer/builder/team variants) was
   removed on 2026-10-29 with the tier filter. Every tier has access to
   every pane, so the pill sorted nothing and implied a paywall that does
   not exist. 0 references anywhere in the tree when removed. */

/* ---- index page ---- */
.lp-catalog-hero {
  padding: 56px 0 24px;
  background: linear-gradient(180deg, var(--lp-amber-wash) 0%, var(--lp-canvas) 100%);
  border-bottom: 1px solid var(--lp-line);
}
.lp-catalog-hero h1 {
  font-family: var(--lp-font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.01em;
}

.lp-catalog-controls {
  padding: 24px 0 8px;
  background: var(--lp-canvas);
  border-bottom: 1px solid var(--lp-line);
  position: sticky;
  /* BELOW the nav, not behind it. With top:0 this docked at y=0 while the
     nav occupies 12→72, so the whole search box (24→64) sat behind the nav
     and only the category buttons showed. The fallback matches the token's
     value for the case where chrome.css has not loaded. */
  top: var(--lp-nav-bottom, 72px);
  z-index: 10;
}
.lp-catalog-filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.lp-catalog-search {
  flex: 1 1 280px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--lp-r-pill);
  border: 1px solid var(--lp-line-strong);
  background: var(--lp-paper);
  font: inherit;
  font-size: 14px;
  color: var(--lp-ink);
}
.lp-catalog-search:focus {
  outline: 2px solid var(--lp-amber);
  outline-offset: 2px;
}
.lp-catalog-filter-counts {
  font-family: var(--lp-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-ink-3);
}

/* The selector row: one multi-select dropdown, then category buttons.
   Replaces four rows of chips (Cloud / Tier / Category / Kind). Tier went
   because every tier has every pane; Cloud became a dropdown because nine
   categories plus three clouds plus two kinds as flat chips was most of a
   screen before any content. */
.lp-catalog-filter-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.lp-catalog-dropdown {
  position: relative;
  flex: 0 0 auto;
}
.lp-catalog-dropdown-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--lp-r-pill);
  border: 1px solid var(--lp-line-strong);
  background: var(--lp-paper);
  color: var(--lp-ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;          /* hide the native disclosure triangle */
  user-select: none;
}
.lp-catalog-dropdown-summary::-webkit-details-marker { display: none; }
.lp-catalog-dropdown-summary:hover { border-color: var(--lp-ink-3); }
.lp-catalog-dropdown-summary:focus-visible {
  outline: 2px solid var(--lp-amber);
  outline-offset: 2px;
}
.lp-catalog-dropdown.is-set .lp-catalog-dropdown-summary {
  background: var(--lp-ink);
  color: #fff8e8;
  border-color: var(--lp-ink);
}
.lp-catalog-dropdown-chevron { font-size: 10px; }
.lp-catalog-dropdown[open] .lp-catalog-dropdown-chevron { transform: rotate(180deg); }

.lp-catalog-dropdown-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  min-width: 232px;
  padding: 12px 14px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line-strong);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(26, 24, 20, 0.14);
}
.lp-catalog-dropdown-group {
  border: 0;
  margin: 0 0 10px;
  padding: 0;
}
.lp-catalog-dropdown-group:last-child { margin-bottom: 0; }
.lp-catalog-dropdown-group legend {
  font-family: var(--lp-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-ink-3);
  padding: 0;
  margin-bottom: 5px;
}
.lp-catalog-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 13.5px;
  color: var(--lp-ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.lp-catalog-check input { margin: 0; cursor: pointer; }
.lp-catalog-check:hover { color: var(--lp-ink); }

.lp-catalog-chiprow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.lp-catalog-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--lp-r-pill);
  border: 1px solid var(--lp-line-strong);
  background: var(--lp-paper);
  color: var(--lp-ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s var(--lp-ease), color .15s var(--lp-ease), border-color .15s var(--lp-ease);
}
.lp-catalog-chip:hover { border-color: var(--lp-ink-3); }
.lp-catalog-chip.is-active {
  background: var(--lp-ink);
  color: #fff8e8;
  border-color: var(--lp-ink);
}

/* NARROW SCREENS: nine category chips wrapping to four lines made the
   sticky header 375px tall — 56% of an iPhone SE, leaving 292px for the
   results it is supposed to help you find. One swipeable line instead.
   Keeping the filters reachable beats making them scroll away, which was
   the other option. */
@media (max-width: 760px) {
  .lp-catalog-chiprow {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;            /* the chips themselves are the cue */
    -webkit-overflow-scrolling: touch;
    /* Let the row reach the container edge so a half-visible chip shows
       there is more to swipe to, rather than ending flush and looking
       complete. */
    margin-right: -28px;
    padding-right: 28px;
  }
  .lp-catalog-chiprow::-webkit-scrollbar { display: none; }
  .lp-catalog-chip { flex: 0 0 auto; }
  .lp-catalog-filter-bar { flex-wrap: nowrap; align-items: center; }
  .lp-catalog-dropdown { flex: 0 0 auto; }
}

/* Reset: appears only once something is selected, so it never offers to
   undo nothing. Quiet — it is an escape hatch, not a call to action. */
.lp-catalog-reset {
  padding: 5px 12px;
  border-radius: var(--lp-r-pill);
  border: 1px dashed var(--lp-line-strong);
  background: transparent;
  color: var(--lp-ink-2);
  font-size: 13px;
  cursor: pointer;
}
.lp-catalog-reset:hover {
  border-style: solid;
  border-color: var(--lp-ink-3);
  color: var(--lp-ink);
}

/* "Browse all N panes" — the way to the full grid without inventing a
   filter. Without it a search-first page is a dead end for anyone who
   wants to look around rather than look something up. */
.lp-catalog-intro-browse { margin-top: 18px; }
/* `.lp-catalog-browse-all` REMOVED — it re-implemented `.btn-primary` (same
   --lp-ink fill, #fff8e8 text) with a flat `background: #000` hover in place
   of the shared lift-and-glow, so the catalog's primary action was the one
   button on the site that behaved differently. The markup now uses
   `btn btn-amber` from tokens.css, which this page already loads. The id
   `lp-catalog-browse-all` stays — the JS hooks getElementById.
   `cursor: pointer` moved onto `.btn` itself: every other `.btn` on the site
   is an <a>, which gets the pointer for free, so a <button> was the first
   case that needed it stated. */

/* The category pill on a card. Was the tier pill; tier told the reader
   nothing, because every tier has every pane. */
.lp-catalog-card-cat {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--lp-r-pill);
  border: 1px solid var(--lp-line);
  background: var(--lp-sunk);
  color: var(--lp-ink-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lp-catalog-grid-wrap {
  padding: 28px 0 64px;
}
.lp-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.lp-catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 44px;
  border-radius: var(--lp-r);
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  text-decoration: none;
  color: var(--lp-ink);
  transition: transform .15s var(--lp-ease), box-shadow .2s var(--lp-ease), border-color .2s var(--lp-ease);
}
.lp-catalog-card:hover {
  transform: translateY(-1px);
  border-color: var(--lp-line-strong);
  box-shadow: var(--lp-shadow-2);
}
/* Filter chips set `card.hidden = true` to remove unmatched cards from
   the grid. The `[hidden]` HTML attribute normally implies
   `display: none`, but our `display: flex` rule above wins via
   specificity, so the cards stay visible. Reassert `display: none`
   explicitly on the hidden state. */
.lp-catalog-card[hidden] {
  display: none;
}
.lp-catalog-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.lp-catalog-card-label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
}
.lp-catalog-card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--lp-ink-3);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lp-catalog-card-arrow {
  position: absolute;
  bottom: 16px;
  right: 18px;
  color: var(--lp-ink-3);
  font-size: 18px;
}

/* ---- Service-discovery card -----------------------------------------
   Distinct class so the two card types can diverge later if needed
   (the embed snippet, page structure and underlying mechanism are
   meaningfully different). For now the visual style is the same: this
   rule inherits everything from .lp-catalog-card by re-stating the
   same shorthand. Edit either rule independently when divergence is
   wanted. */
.lp-catalog-card-service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 44px;
  border-radius: var(--lp-r);
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  text-decoration: none;
  color: var(--lp-ink);
  transition: transform .15s var(--lp-ease), box-shadow .2s var(--lp-ease), border-color .2s var(--lp-ease);
}
.lp-catalog-card-service:hover {
  transform: translateY(-1px);
  border-color: var(--lp-line-strong);
  box-shadow: var(--lp-shadow-2);
}
.lp-catalog-card-service[hidden] { display: none; }

/* Kind badge — currently only emitted on service cards (compound
   cards still show the tier badge instead). Subtle outline style so
   it reads as informational metadata rather than a status pill. */
.lp-catalog-kind-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: var(--lp-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--lp-line-strong);
  color: var(--lp-ink-3);
  background: transparent;
}
.lp-catalog-kind-badge--service {
  border-color: #b8d4ec;
  color: #2c5d8a;
  background: #f0f7fc;
}
.lp-catalog-empty {
  margin-top: 28px;
  padding: 32px;
  text-align: center;
  color: var(--lp-ink-3);
  background: var(--lp-sunk);
  border: 1px dashed var(--lp-line-strong);
  border-radius: var(--lp-r);
}

/* ---- per-pane page ---- */
.lp-catalog-pane {
  padding: 36px 0 64px;
}
.lp-catalog-breadcrumb {
  font-family: var(--lp-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-ink-3);
  margin-bottom: 18px;
}
.lp-catalog-breadcrumb a {
  color: var(--lp-ink-3);
  text-decoration: none;
}
.lp-catalog-breadcrumb a:hover { color: var(--lp-ink); }
.lp-catalog-breadcrumb span[aria-hidden] { margin: 0 8px; }

.lp-catalog-pane-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--lp-line);
  margin-bottom: 28px;
}
@media (max-width: 760px) {
  .lp-catalog-pane-head { grid-template-columns: 1fr; }
}
.lp-catalog-pane-head h1 {
  font-family: var(--lp-font-serif);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 48px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 6px 0 0;
}
.lp-catalog-pane-lede {
  margin-top: 12px;
  font-size: 16px;
  color: var(--lp-ink-2);
  line-height: 1.55;
  max-width: 60ch;
}

.lp-catalog-pane-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, auto));
  gap: 14px 28px;
  padding: 16px 20px;
  background: var(--lp-sunk);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r);
}
.lp-catalog-pane-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lp-catalog-meta-label {
  font-family: var(--lp-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-ink-3);
}

.lp-catalog-preview-wrap {
  position: relative;
  margin-bottom: 36px;
  border-radius: var(--lp-r-lg);
  background:
    radial-gradient(ellipse at top right, rgba(255, 197, 24, 0.10), rgba(255, 197, 24, 0) 60%),
    var(--lp-paper);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow-2);
  padding: 28px;
}
.lp-catalog-preview-tag {
  display: flex;
  justify-content: flex-end; /* align inline content to the right edge */
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;       /* breathing room above the pane below */
  font-family: var(--lp-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-ink-3);
}
.lp-catalog-preview {
  min-height: 240px;
}

.lp-catalog-section {
  margin: 40px 0;
}
.lp-catalog-section h2 {
  font-family: var(--lp-font-serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}
/* The prose rule was scoped to .lp-catalog-body, which is the Markdown
   section only. The linking + embed sections are built by the template, so
   their paragraphs inherited nothing and ran together with no gap. The
   columns + attrs sections repeated that exact miss on 2026-10-28.
   ADD EVERY NEW TEMPLATE-BUILT SECTION TO THIS LIST -- a section left off
   does not look broken, it just quietly loses its spacing and its 96ch
   measure and runs the full width of the page. */
.lp-catalog-body p,
.lp-catalog-linking p,
.lp-catalog-embed p,
.lp-catalog-columns p,
.lp-catalog-attrs p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--lp-ink-2);
  margin-bottom: 14px;
  max-width: 96ch;
}
.lp-catalog-body h2 {
  font-family: var(--lp-font-serif);
  font-weight: 400;
  font-size: 26px;
  margin: 32px 0 12px;
}
.lp-catalog-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 22px 0 8px;
}
.lp-catalog-body ul {
  padding-left: 1.2em;
  margin-bottom: 14px;
}
.lp-catalog-body li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--lp-ink-2);
  margin-bottom: 6px;
}
.lp-catalog-body code {
  font-family: var(--lp-font-mono);
  font-size: 13px;
  background: var(--lp-sunk);
  border: 1px solid var(--lp-line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--lp-ink);
}
.lp-catalog-body pre {
  background: #1a1814;
  color: #fff8e8;
  padding: 18px 20px;
  border-radius: var(--lp-r);
  overflow-x: auto;
  margin: 14px 0 22px;
  position: relative;
  font-family: var(--lp-font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.lp-catalog-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.lp-catalog-cross-cloud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.lp-catalog-cross-cloud-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--lp-r);
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  text-decoration: none;
  color: var(--lp-ink);
  transition: transform .15s var(--lp-ease), box-shadow .2s var(--lp-ease);
}
.lp-catalog-cross-cloud-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--lp-shadow-2);
}
.lp-catalog-cross-cloud-label {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
}
.lp-catalog-cross-cloud-arrow {
  color: var(--lp-ink-3);
  font-size: 18px;
}

.lp-catalog-pane-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--lp-line);
}
.lp-catalog-back {
  font-family: var(--lp-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-ink-2);
  text-decoration: none;
}
.lp-catalog-back:hover { color: var(--lp-ink); }
.lp-catalog-source {
  font-family: var(--lp-font-mono);
  font-size: 11px;
  color: var(--lp-ink-4);
  /* A service page's footer path (service-definitions/definitions/gcp/
     gcp_cloud_sql.json) has no break opportunity, so at 390px it pushed
     the document 16px wider than the viewport and the WHOLE page scrolled
     sideways. Measured on 2 of 5 sample pages. */
  min-width: 0;
  overflow-wrap: anywhere;
}
.lp-catalog-source code {
  background: transparent;
  border: none;
  font-size: inherit;
  color: inherit;
  padding: 0;
}

/* ---- Per-service-pane page  ---------------------------------------- */
.lp-catalog-pane--service .lp-catalog-kind-badge {
  margin-left: 6px;
}
/* Attributes are published as two tables -- Default columns, then
   Additional attributes. They were a card grid until 2026-10-28, which read
   as clutter once every card carried a name, an ID, a Default flag and a
   format: four things competing inside one box. A table gives the three
   facts fixed columns and lets the eye run down the one that matters, the
   value you paste. Which TABLE a row sits in replaces the per-row flag. */
.lp-catalog-table-scroll {
  /* The value column holds unbreakable IDs; on a narrow phone the table
     scrolls ITSELF rather than pushing the whole document sideways. */
  overflow-x: auto;
  margin: 10px 0 18px;
}
.lp-catalog-attr-table {
  /* Content-width, not 100%: across a 96ch measure three short columns
     stretch until Name and Value are a hand's width apart and the eye has
     to travel to pair them. Same reasoning as the freshness table. */
  width: auto;
  /* A floor so the two tables on a page line their columns up with each
     other -- content-width alone left Additional noticeably narrower than
     Default, which reads as a mistake rather than a consequence. */
  min-width: min(100%, 420px);
  border-collapse: collapse;
  font-size: 14.5px;
}
.lp-catalog-attr-table th,
.lp-catalog-attr-table td {
  text-align: left;
  vertical-align: baseline;
  padding: 8px 40px 8px 0;
  border-bottom: 1px solid var(--lp-rule, #e6e6e6);
  line-height: 1.5;
}
.lp-catalog-attr-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--lp-ink-3, #666);
  font-weight: 500;
  white-space: nowrap;
}
.lp-catalog-attr-table tbody th {
  font-weight: 500;
  color: var(--lp-ink);
}
.lp-catalog-attr-table td code {
  font-family: var(--lp-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12.5px;
  color: var(--lp-ink-2);
  background: var(--lp-sunk);
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
.lp-catalog-attr-type {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-ink-3);
  white-space: nowrap;
}
.lp-catalog-attr-table th:last-child,
.lp-catalog-attr-table td:last-child { padding-right: 0; }
.lp-catalog-attr-flag--drawer {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 3px;
  color: var(--lp-ink-3);
  border: 1px solid var(--lp-line-strong);
  white-space: nowrap;
}
.lp-catalog-attrs h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 22px 0 2px;
  color: var(--lp-ink);
}

/* Two-column "what the pane does" table — the tags-position rule. Unlike
   the freshness table (three short plan names across the head) this one
   has a sentence per row, so it stretches and the rows need a rule. */
.lp-catalog-behaviour-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 14px;
  font-size: 15px;
}
.lp-catalog-behaviour-table th,
.lp-catalog-behaviour-table td {
  text-align: left;
  vertical-align: top;
  padding: 9px 18px 9px 0;
  border-bottom: 1px solid var(--lp-rule, #e6e6e6);
  line-height: 1.55;
}
.lp-catalog-behaviour-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--lp-ink-3, #666);
  font-weight: 500;
}
.lp-catalog-behaviour-table tbody th {
  font-weight: 600;
  white-space: nowrap;
  padding-right: 26px;
}
.lp-catalog-behaviour-table td:last-child,
.lp-catalog-behaviour-table th:last-child { padding-right: 0; }
/* Below ~560px a nowrap first column and a sentence beside it cannot both
   fit, so stack: the condition becomes a heading over its own answer. */
@media (max-width: 560px) {
  .lp-catalog-behaviour-table thead { display: none; }
  .lp-catalog-behaviour-table tr,
  .lp-catalog-behaviour-table th,
  .lp-catalog-behaviour-table td { display: block; width: 100%; }
  .lp-catalog-behaviour-table tbody th {
    white-space: normal;
    padding: 10px 0 2px;
    border-bottom: 0;
  }
  .lp-catalog-behaviour-table tbody td { padding-top: 0; }
}

/* ============================================================
   Catalog intro — "About the catalog" accordion
   ============================================================
   Sits between the hero and the sticky controls. Open by default;
   collapses on first interaction with search/chips, re-expands via
   the "About the catalog" toggle button in the filter row.
   Uses the grid-template-rows: 1fr → 0fr animation trick so the
   collapsed height is content-accurate without measuring in JS. */
.lp-catalog-intro {
  display: grid;
  grid-template-rows: 1fr;
  background: var(--lp-canvas);
  border-bottom: 1px solid var(--lp-line);
}
/* `display: grid` above BEATS the hidden attribute, which only implies
   `display: none` when nothing else sets display. Without this the intro
   stayed on screen above the results while filtering — exactly the trap
   already documented for .lp-catalog-card a few hundred lines up, hit
   again here on 2026-10-28. Worth remembering: `hidden` is a default, not
   a command. */
.lp-catalog-intro[hidden],
.lp-catalog-grid-wrap[hidden] { display: none; }
.lp-catalog-intro-inner {
  overflow: hidden;
  min-height: 0;
}
.lp-catalog-intro .lp-container {
  padding-top: 32px;
  padding-bottom: 36px;
}

.lp-catalog-intro-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--lp-ink);
  max-width: 72ch;
  margin: 0 0 28px;
}

.lp-catalog-intro-section-h {
  font-family: var(--lp-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-ink-3);
  margin: 0 0 12px;
}

.lp-catalog-intro-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.lp-catalog-intro-card {
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r);
  background: var(--lp-paper);
  padding: 18px 20px;
}
.lp-catalog-intro-card h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--lp-ink);
}
.lp-catalog-intro-count {
  font-family: var(--lp-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--lp-ink-3);
  font-weight: 400;
}
.lp-catalog-intro-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lp-ink-2);
}




/* Toggle button — lives in the filter row, always visible. */

/* Mobile: stack the type / use grids. */
@media (max-width: 720px) {
  .lp-catalog-intro-types {
    grid-template-columns: 1fr;
  }
  .lp-catalog-intro .lp-container {
    padding-top: 24px;
    padding-bottom: 28px;
  }
}

/* ------------------------------------------------------------------ *
 * Mock-data notice above every catalog preview, and the per-tier
 * freshness table. Added 2026-10-27.
 *
 * The old tag was a small green dot reading "Live preview — demo data":
 * it looked like a live-status indicator and claimed a data mode the
 * catalog never uses. This is deliberately a full-width notice, not a
 * badge — a reader should not be able to mistake the preview for their
 * own data, and should see at once what to do about it.
 * ------------------------------------------------------------------ */
.lp-catalog-preview-tag-mock {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--lp-amber, #f5c518);
  border-left-width: 4px;
  border-radius: 6px;
  background: color-mix(in oklab, var(--lp-amber, #f5c518) 10%, var(--lp-paper, #fff));
  color: var(--lp-ink-1, #1a1a1a);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.lp-catalog-preview-tag-mock .lp-catalog-preview-mark {
  color: var(--lp-amber, #f5c518);
  font-size: 11px;
  line-height: 1.6;
  flex: 0 0 auto;
}
.lp-catalog-freshness-table {
  border-collapse: collapse;
  margin-top: 10px;
  min-width: 280px;
}
.lp-catalog-freshness-table th,
.lp-catalog-freshness-table td {
  text-align: left;
  padding: 7px 18px 7px 0;
  border-bottom: 1px solid var(--lp-rule, #e6e6e6);
  font-size: 14px;
}
.lp-catalog-freshness-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--lp-ink-3, #666);
  font-weight: 500;
}
.lp-catalog-freshness-table tbody td { font-weight: 500; }
/* Horizontal layout: plans across the head, windows in the single row
   below. Cells size to content rather than stretching across the (now
   96ch) column, which would leave three numbers marooned. */
.lp-catalog-freshness-table { width: auto; }
.lp-catalog-freshness-table th,
.lp-catalog-freshness-table td { padding: 7px 26px 7px 0; white-space: nowrap; }
.lp-catalog-freshness-table th:last-child,
.lp-catalog-freshness-table td:last-child { padding-right: 0; }

/* ---- Embed snippets ------------------------------------------------
 * Adopted from the console's own generator (app/generate.html) so a
 * customer meets one code-block treatment, not two. One change on the
 * way across: there the Copy button sits in a footer BELOW the <pre>,
 * which costs a row of vertical space per block and pushes three
 * snippets' worth of page down. Here the button is its own grid
 * column, bottom-aligned to the code, so it takes no extra height.
 * ------------------------------------------------------------------ */
.lp-catalog-codewrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 8px 0 12px;
}
.lp-catalog-code {
  grid-column: 1;
  margin: 0;
  min-width: 0;                 /* without this the <pre> refuses to shrink
                                   and the button is pushed off-canvas */
  padding: 13px 15px;
  background: var(--lp-sunk, #f7f5ef);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r);
  overflow-x: auto;
}
.lp-catalog-code code {
  display: block;
  font-family: var(--lp-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--lp-ink);
  white-space: pre;
}
.lp-catalog-copy {
  grid-column: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  background: var(--lp-paper);
  color: var(--lp-ink);
  border: 1px solid var(--lp-line-strong);
  border-radius: 4px;
  cursor: pointer;
}
.lp-catalog-copy:hover { background: var(--lp-sunk); }
.lp-catalog-copy.is-copied {
  background: #e6f4ea;
  border-color: #34a853;
  color: #1e6e33;
}

/* Narrow screens: a side-by-side button leaves the code too little room,
   so fall back to the stacked form rather than squeezing both. */
@media (max-width: 560px) {
  .lp-catalog-codewrap { grid-template-columns: minmax(0, 1fr); }
  .lp-catalog-code, .lp-catalog-copy { grid-column: 1; }
  .lp-catalog-copy { justify-self: start; }
}

/* ---- Numbered embed steps ----------------------------------------- */
.lp-catalog-step { margin-top: 18px; }
.lp-catalog-step-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
}
.lp-catalog-step-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.lp-catalog-step-n {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--lp-ink, #1a1a1a);
  color: var(--lp-paper, #fff);
  font-size: 12px;
  font-weight: 600;
}
.lp-catalog-embed h3 {
  margin-top: 26px;
  font-size: 16px;
}
.lp-catalog-embed h3:first-of-type { margin-top: 14px; }
.lp-catalog-linking-notes {
  margin: 10px 0 0;
  padding-left: 20px;
}
.lp-catalog-linking-notes li { margin-bottom: 6px; line-height: 1.55; }

/* Hand-off from the catalog to the /build/ guide. The catalog answers
   "which pane"; the guide answers "how do I fit it into a page". Styled
   as a quiet callout rather than a card so it does not compete with the
   pane-type cards above it. */
.lp-catalog-intro-guide {
  margin: 18px 0 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--lp-ink);
  background: var(--lp-paper);
  border-radius: 0 4px 4px 0;
  font-size: 15px;
  line-height: 1.65;
  max-width: 96ch;
}
.lp-catalog-guide-link {
  margin: 0 0 18px;
  padding: 11px 15px;
  border-left: 3px solid var(--lp-line-strong);
  background: var(--lp-sunk);
  border-radius: 0 4px 4px 0;
}
/* Same box as .lp-catalog-guide-link, accented, because it offers an ACTION
   rather than further reading. Links inside pick up --lp-link from the
   `.lp-catalog-embed a` rule in tokens.css (6.49:1 — --lp-ember fails AA at
   2.35:1, so do not substitute it here). */
.lp-catalog-usepane {
  margin: 0 0 20px;
  padding: 11px 15px;
  border-left: 3px solid var(--lp-amber);
  background: var(--lp-sunk);
  border-radius: 0 4px 4px 0;
}
