/* Depot styles — extends tokens.css, does not redefine tokens. */

/* ui.css (Yardrail's vendored shared component library, see its own
   "src/..." header comments) loads into the "vendor" cascade layer, which
   always loses to unlayered rules regardless of selector specificity or
   link order. That lets depot.css override a yr-* component (e.g. .yr-nav-shell
   below) with an equal- or lower-specificity selector instead of an
   artificially inflated one. */
@import url("ui.css") layer(vendor);

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
}

a {
  color: var(--navy);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ---- Shell ---- */

.mkt-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* ---- Top Nav ---- */

/* Overrides the shared ui.css `.yr-nav-shell` rule (see the @import at the
   top of this file for why equal specificity is enough to win here). */
.mkt-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  height: 3.25rem;
  background: var(--cream-surface);
  border-bottom: 1px solid var(--wood);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mkt-nav-search {
  display: flex;
  align-items: center;
}

.mkt-nav-browse-link {
  font-size: 0.875rem;
  color: var(--slate);
  font-weight: 500;
  text-decoration: none;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  transition: background 0.1s, color 0.1s;
}

.mkt-nav-browse-link:hover {
  background: var(--cream-hover);
  color: var(--charcoal);
  text-decoration: none;
}

.mkt-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mkt-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
}
.mkt-nav-link:hover { color: var(--charcoal); }

.mkt-publish-btn.btn-primary {
  font-size: 0.8125rem;
  padding: 0.375rem 1rem;
}

/* ---- Cart nav icon ---- */

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--charcoal);
}

.cart-link:hover {
  background: var(--cream-hover);
  text-decoration: none;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.cart-badge:empty { display: none; }

/* ---- Account menu (mock session) ---- */

.account-menu-link--muted { color: var(--slate); }


/* ---- Centered content wrapper ---- */

.mkt-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ---- Shared buttons ---- */

.btn-primary, .btn-secondary, .btn-error {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 8px;
  padding: 0.75rem 1.375rem;
  font: inherit;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.1s, filter 0.1s;
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  border: none;
}

.btn-primary:hover {
  background: #163257;
  text-decoration: none;
  color: var(--cream);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy-light);
  text-decoration: none;
}

.btn-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
}
.btn-link:hover { color: #163257; }

.cart-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--wood);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}

.cart-remove-btn:hover {
  background: var(--signal-red-light);
  color: var(--signal-red);
  border-color: var(--signal-red);
}

.btn-error {
  background: var(--signal-red);
  color: var(--cream);
  border: none;
}

.btn-error:hover {
  filter: brightness(1.1);
  text-decoration: none;
  color: var(--cream);
}

/* ---- Hero Section ---- */

.hero {
  background: var(--navy-light);
  border-bottom: 1px solid var(--wood);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--slate);
  margin: 0 0 2rem;
}

.hero-search-form { margin-bottom: 1.5rem; }


.hero-search-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0.875rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.1s;
}
.hero-search-btn:hover { filter: brightness(1.12); }

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* ---- Stats Bar ---- */

.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 1.5rem;
  background: var(--cream-surface);
  border-bottom: 1px solid var(--wood);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--wood);
}

/* ---- Section Header ---- */

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.25rem;
}

.section-desc {
  font-size: 0.875rem;
  color: var(--slate);
  margin: 0;
}

.browse-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  margin-top: 0.25rem;
}
.browse-all-link:hover { text-decoration: underline; }

/* ---- Featured Grid (2x2) ---- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (width <= 720px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* ---- Browse CTA ---- */

.browse-cta {
  text-align: center;
  margin-top: 2rem;
}

.browse-cta-btn {
  padding: 0.75rem 2rem;
  font-size: 0.9375rem;
}

/* ---- Template Card (shared browse + home) ---- */

/* ---- Category Badges ---- */


/* ---- Provenance Badges ---- */


/* ---- Connector Icon Pills ---- */

/* ---- Browse Page ---- */

.browse-hero {
  background: var(--cream-surface);
  border-bottom: 1px solid var(--wood);
  padding: 2rem 0 0;
}

.browse-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem;
}


/* ---- Filter Panel ---- */

.filter-panel {
  margin-top: 1.25rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0 1rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.filter-group-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-light);
  white-space: nowrap;
  margin-right: 0.125rem;
}

.filter-group-divider {
  width: 1px;
  height: 18px;
  background: var(--wood);
  margin: 0 0.25rem;
  flex-shrink: 0;
}

.filter-select {
  border: none;
  border-radius: 6px;
  padding: 0.2rem 1.5rem 0.2rem 0.375rem;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--slate-light);
  font-weight: 500;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6560' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.25rem center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: color 0.1s;
}
.filter-select:hover { color: var(--charcoal); }

.filter-select:focus {
  outline: none;
  color: var(--navy);
}

.filter-clear {
  font-size: 0.75rem;
  color: var(--slate-light);
  text-decoration: none;
  margin-left: auto;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.1s, background 0.1s;
}

.filter-clear:hover {
  color: var(--signal-red);
  background: var(--signal-red-light);
  text-decoration: none;
}

.template-count {
  font-size: 0.8125rem;
  color: var(--slate-light);
  margin-bottom: 1rem;
}

/* ---- Template Grid ---- */

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* ---- Capability compatibility ---- */

.compat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.compat-dot--full { background: var(--depot-green); }
.compat-dot--partial { background: var(--lantern-yellow); }
.compat-dot--incompatible { background: var(--signal-red); }

.detail-compat-summary {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
}
.detail-compat-summary--full { color: var(--depot-green); }
.detail-compat-summary--partial { color: color-mix(in srgb, var(--lantern-yellow) 70%, var(--charcoal)); }
.detail-compat-summary--incompatible { color: var(--signal-red); }

/* Grid, not flex — .capability-check rows use display:contents so their
   icon/label/connectors children land directly in these three column
   tracks, keeping the connector buttons vertically aligned across rows
   regardless of how long each capability's label is. */
.capability-checklist {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.625rem 0.75rem;
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
}
.capability-check { display: contents; }

/* Signed-out rows have no status icon cell — drop the icon column so the
   remaining label + pills land in the right tracks (rows are
   display:contents, so the column count must match children per row). */
.capability-checklist--no-status { grid-template-columns: auto 1fr; }

.capability-check-icon {
  width: 1rem;
  text-align: center;
}
.capability-check--met .capability-check-icon { color: var(--depot-green); }
.capability-check--missing .capability-check-icon { color: var(--signal-red); }

.capability-check-label {
  color: var(--charcoal);
  font-weight: 500;
  white-space: nowrap;
}

.capability-check-connectors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

/* ---- Empty state ---- */


/* ---- Detail Page ---- */

.detail-page { padding-top: 1.5rem; }


/* Flash banner */


/* Detail header */

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--wood);
  margin-bottom: 1.5rem;
}

.detail-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}


.detail-author {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.detail-installs { color: var(--slate-light); }

.detail-header-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
}

.btn-import {
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  white-space: nowrap;
}

/* Tags */

.detail-header-tags { margin-top: 0.75rem; }

.detail-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  margin-top: 0.5rem;
}

.detail-tabs {
  margin-top: 0.5rem;
  position: relative;
}

/* Sit on the tab strip (yr-tabs' [role=tablist] is its first light-DOM row,
   ~2.9rem tall) and pull right, without joining the tablist flow. */
.detail-tabs-action {
  position: absolute;
  top: 0;
  right: 0;
  height: 2.9rem;
  display: flex;
  align-items: center;
}

@media (width <= 860px) {
  .detail-body { grid-template-columns: 1fr; }
  .detail-header { flex-direction: column; }
  .detail-header-cta { align-items: flex-start; }

  /* Stack above the tabs on narrow screens rather than overlapping them. */
  .detail-tabs-action {
    position: static;
    height: auto;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
  }
}

.detail-section-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--wood);
}

/* Overview tab */

.detail-overview-lead {
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.detail-overview-facts { margin-bottom: 0.5rem; }

/* Reviews */

.detail-review-count-badge {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-light);
  margin-left: 0.25rem;
}

.detail-no-reviews {
  font-size: 0.875rem;
  color: var(--slate-light);
  margin: 0;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.375rem 1rem;
  margin: 0;
}

.sidebar-dl + .detail-section-title { margin-top: 1.5rem; }

.sidebar-dl dt {
  font-size: 0.8125rem;
  color: var(--slate-light);
  font-weight: 500;
  white-space: nowrap;
}

.sidebar-dl dd {
  font-size: 0.8125rem;
  color: var(--charcoal);
  margin: 0;
  font-weight: 500;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* ---- Account / My Installs Pages ---- */

.account-page-header { margin-bottom: 2rem; }

.account-page-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.account-page-sub {
  color: var(--slate);
  margin: 0;
}

.account-page-header--with-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (width <= 640px) {
  .account-page-header--with-action { flex-direction: column; }
}

.account-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 640px;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.25rem;
}

.account-form .btn-primary {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.account-email-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.account-email-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--wood);
}
.account-email-row:last-child { border-bottom: none; }

.account-email-address {
  font-size: 0.875rem;
  color: var(--charcoal);
  margin-right: auto;
}

.account-email-badges,
.account-email-row form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Ghost-badge buttons: same shape/sizing as yr-badge, but outlined instead
   of filled -- signals "not the current state, click to change it" rather
   than a status label. */
.account-email-action-badge {
  appearance: none;
  background: none;
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.account-email-action-badge--navy {
  border: 1px solid var(--navy);
  color: var(--navy);
}
.account-email-action-badge--navy:hover { background: var(--navy-light); }

.account-email-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--wood);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}

.account-email-remove-btn:hover {
  background: var(--signal-red-light);
  color: var(--signal-red);
  border-color: var(--signal-red);
}

.account-email-remove-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.account-email-remove-btn:disabled:hover {
  background: transparent;
  color: var(--slate);
  border-color: var(--wood);
}

.account-add-email-form {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

@media (width <= 480px) {
  .account-add-email-form { flex-direction: column; }
}

.account-avatar-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.account-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.account-avatar-name {
  font-weight: 600;
  font-size: 1.0625rem;
}

.account-avatar-option-list {
  list-style: none;
  margin: 0.875rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.account-avatar-option-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--wood);
}
.account-avatar-option-row:last-child { border-bottom: none; }

.account-avatar-option-select-form { display: contents; }

.account-avatar-option-thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  line-height: 0;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

.account-avatar-option-thumb-btn:hover,
.account-avatar-option-thumb-btn:focus-visible { border-color: var(--navy); }

.account-avatar-option-thumb-btn img,
.account-avatar-option-thumb-btn yr-avatar {
  width: 26px;
  height: 26px;
}

.account-avatar-option-thumb-btn img {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.account-avatar-option-label {
  font-size: 0.875rem;
  color: var(--charcoal);
  margin-right: auto;
}

#picture-upload-error-slot:not(:empty) { margin-top: 0.5rem; }

@media (width <= 480px) {
  .account-avatar-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .account-avatar-remove-form { align-self: flex-end; }
}

.install-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-row-total {
  font-weight: 600;
  color: var(--charcoal);
}

/* ---- Cart / Checkout ---- */

.cart-layout, .library-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

.cart-summary, .deployment-registry-card {
  position: sticky;
  top: 4.5rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--slate);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--wood);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
}

.cart-summary-note {
  font-size: 0.75rem;
  color: var(--slate-light);
  margin-top: 0.75rem;
  text-align: center;
}

/* ---- Receipt ---- */

.receipt-card {
  background: var(--cream-surface);
  border: 1px solid var(--wood);
  border-radius: 10px;
  padding: 1.75rem;
  max-width: 560px;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--wood);
}

.receipt-title {
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.receipt-order-number {
  color: var(--slate);
  font-size: 0.875rem;
  margin: 0;
}

.receipt-header-meta {
  color: var(--slate);
  font-size: 0.875rem;
}

.receipt-line-items {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.receipt-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--charcoal);
}

.receipt-line-item-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.125rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wood);
}

.receipt-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 560px;
}

/* ---- Registry code blocks ---- */

.code-block {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--cream-hover);
  border: 1px solid var(--wood);
  border-radius: 6px;
  padding: 0.625rem 0.75rem;
  overflow-x: auto;
  margin: 0.75rem 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.library-registry-copy {
  font-size: 0.8125rem;
  color: var(--slate);
  margin: 0 0 0.625rem;
}

.library-registry-note {
  font-size: 0.75rem;
  color: var(--slate-light);
  margin: 0;
}

/* ---- Deployments ---- */

.deployment-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1rem;
}


.deployment-name-static {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 1rem;
}

.deployment-token-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--wood);
}

.deployment-token-copy {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.375rem;
}

.deployment-token {
  flex: 1;
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

@media (width <= 720px) {
  .account-grid { grid-template-columns: 1fr; }
  .cart-layout, .library-layout { grid-template-columns: 1fr; }
  .cart-summary, .deployment-registry-card { position: static; }

  .install-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .install-row-actions {
    width: 100%;
    flex-direction: column;
  }

  .install-row-actions .btn-secondary, .install-row-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .receipt-actions { flex-direction: column; }
}

/* ---- Author Profile Page ---- */

.author-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--wood);
}

.author-header-info yr-author-link { margin-bottom: 0.75rem; }

.author-bio {
  color: var(--charcoal);
  max-width: 640px;
  margin: 0 0 0.75rem;
}

.author-stats {
  font-size: 0.875rem;
  color: var(--slate);
}

.author-stats-sep {
  color: var(--slate-disabled);
  margin: 0 0.125rem;
}

.author-templates-title { margin-bottom: 1rem; }

@media (width <= 640px) {
  .author-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Connector List Page ---- */

.connector-list-hero {
  background: var(--cream-surface);
  border-bottom: 1px solid var(--wood);
  padding: 2rem 0 1.25rem;
}

.connector-list-hero h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.connector-list-hero p {
  color: var(--slate);
  margin: 0 0 1.25rem;
}

.connector-category-filters {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.connector-count {
  font-size: 0.8125rem;
  color: var(--slate-light);
  margin-bottom: 1rem;
}

.connector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.connector-card {
  display: flex;
  flex-direction: column;
  background: var(--cream-surface);
  border: 1px solid var(--wood);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  cursor: pointer;
}

.connector-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 16px rgb(0 0 0 / 6%);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.connector-card-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wood);
  border-radius: 10px;
  background: var(--cream);
  margin-bottom: 0.875rem;
  flex-shrink: 0;
}

.connector-card-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.connector-card-logo-initials {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate);
}

.connector-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 0.375rem;
}

.connector-card p {
  font-size: 0.8125rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

/* ---- Connector Detail Page ---- */

.connector-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--wood);
  margin-bottom: 1.5rem;
}

.connector-detail-logo {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wood);
  border-radius: 14px;
  background: var(--cream);
  flex-shrink: 0;
}

.connector-detail-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.connector-detail-logo-initials {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate);
}

.connector-detail-info {
  flex: 1;
}

.connector-detail-info h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.connector-detail-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
  flex-wrap: wrap;
}

.connector-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--cream-hover);
  border: 1px solid var(--wood);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}

.connector-detail-short-desc {
  font-size: 0.9375rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.6;
}

.connector-templates-section {
  margin-top: 2.5rem;
}

.connector-templates-section .detail-section-title {
  margin-bottom: 1rem;
}

.connector-no-templates {
  font-size: 0.875rem;
  color: var(--slate-light);
  margin: 0;
}

@media (width <= 640px) {
  .connector-detail-header { flex-direction: column; }
  .connector-grid { grid-template-columns: 1fr 1fr; }
}

/* Long-description prose (template/connector detail pages). Kept after every
   other selector touching h1/h2/h3/p so its higher-specificity
   `.detail-long-desc.prose` rules never trip no-descending-specificity
   against unrelated single-class selectors like .connector-card h3. */

.detail-long-desc {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.7;
}
.detail-long-desc.prose p  { margin: 0 0 0.75rem; }

.detail-long-desc.prose h1,
.detail-long-desc.prose h2,
.detail-long-desc.prose h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 1.25rem 0 0.4rem;
}

.detail-long-desc.prose ul,
.detail-long-desc.prose ol {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.375rem;
}
.detail-long-desc.prose li { margin-bottom: 0.25rem; }

.detail-long-desc.prose strong {
  color: var(--charcoal);
  font-weight: 600;
}

.detail-long-desc.prose code {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  background: var(--cream-hover);
  border-radius: 3px;
  padding: 0.1em 0.3em;
}

.detail-long-desc.prose pre {
  background: var(--cream-hover);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}

.detail-long-desc.prose pre code {
  background: none;
  padding: 0;
}

