/* ------------------------------------------------------------------
   Platform logo design system. See PLATFORM-LOGO-DESIGN-SYSTEM.md.
   Normalises the display box, never the artwork. Page-level themes
   set --pl-* to sit correctly on light or dark grounds.
   ------------------------------------------------------------------ */

.pl-strip,
.pl-grid-wrap {
  --pl-label: #995a38;
  --pl-text: #203b31;
  --pl-muted: #566256;
  --pl-line: #cbcfc0;
  --pl-tile: #ffffff;
}
.pl-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pl-label);
  margin: 0 0 20px;
}
.pl-row,
.pl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.pl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 10px;
}
.pl-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--pl-tile);
  border: 1px solid var(--pl-line);
  border-radius: 10px;
  padding: 12px;
  text-decoration: none;
  color: var(--pl-text);
}
.pl-item-named {
  justify-content: flex-start;
  width: 100%;
  padding: 10px 14px 10px 10px;
}
a.pl-item:hover {
  border-color: var(--pl-text);
}
/* The box is fixed. The artwork keeps its own aspect ratio inside it. */
.pl-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pl-mark {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pl-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.pl-footnote {
  margin: 22px 0 0;
  max-width: 78ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--pl-muted);
}
.pl-footnote a {
  color: inherit;
}

/* Dark ground variant */
.pl-on-dark .pl-strip,
.pl-on-dark .pl-grid-wrap,
.pl-strip.pl-on-dark,
.pl-grid-wrap.pl-on-dark {
  --pl-label: #dec18d;
  --pl-text: #f6f2e8;
  --pl-muted: rgba(217, 222, 210, 0.8);
  --pl-line: rgba(246, 242, 232, 0.24);
  --pl-tile: #ffffff;
}

@media (max-width: 600px) {
  .pl-row {
    gap: 10px;
  }
  .pl-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .pl-item {
    padding: 10px;
  }
}

/* ------------------------------------------------------------------
   Publisher network explorer
   ------------------------------------------------------------------ */

.pn {
  --pn-text: #203b31;
  --pn-muted: #566256;
  --pn-line: #cbcfc0;
  --pn-accent: #995a38;
  --pn-tile: #ffffff;
  color: var(--pn-text);
}
.pn-controls {
  display: grid;
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--pn-line);
}
.pn-search label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pn-accent);
  margin-bottom: 10px;
}
.pn-search input {
  width: min(100%, 420px);
  min-height: 48px;
  padding: 11px 15px;
  font-family: inherit;
  font-size: 15px;
  color: var(--pn-text);
  background: var(--pn-tile);
  border: 1px solid var(--pn-line);
  border-radius: 8px;
}
.pn-search input:focus-visible {
  outline: 2px solid var(--pn-accent);
  outline-offset: 2px;
}
.pn-filter {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.pn-filter legend {
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pn-accent);
  margin-bottom: 10px;
}
.pn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pn-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 15px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pn-text);
  background: var(--pn-tile);
  border: 1px solid var(--pn-line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pn-chip:hover {
  border-color: var(--pn-text);
}
.pn-chip-on {
  background: var(--pn-text);
  color: var(--pn-tile);
  border-color: var(--pn-text);
}
.pn-chip:focus-visible {
  outline: 2px solid var(--pn-accent);
  outline-offset: 2px;
}
.pn-count {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  opacity: 0.72;
}
.pn-status {
  margin: 22px 0 18px;
  font-size: 14px;
  color: var(--pn-muted);
}
.pn-empty {
  padding: 34px 0;
  font-size: 15px;
  color: var(--pn-muted);
}
.pn-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 10px;
}
.pn-grid li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px 11px 11px;
  background: var(--pn-tile);
  border: 1px solid var(--pn-line);
  border-radius: 10px;
}
.pn-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pn-meta strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.pn-meta small {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--pn-muted);
}

@media (max-width: 600px) {
  .pn-grid {
    grid-template-columns: 1fr;
  }
  .pn-search input {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pn-chip,
  .pl-item {
    transition: none;
  }
}

/* Neutral tile for a publisher with no artwork in the directory */
.pn-noart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  background: #e9ecdf;
  color: #566256;
  font-size: 15px;
  font-weight: 700;
}
