/* ============================================================
   Landing pages
   Card-based, 4-row CSS-grid layout using the NeMO palette.
   ============================================================ */

:root {
  /* Soft pill tints – derived from the existing NeMO palette */
  --lp-pill-blue-bg:   #e0ecf7;
  --lp-pill-blue-fg:   var(--nemo-blue);
  --lp-pill-grey-bg:   #ececec;
  --lp-pill-grey-fg:   #4a4a4a;
  --lp-pill-green-bg:  #dff0ec;
  --lp-pill-green-fg:  var(--nemo-green);
  --lp-pill-taxon-bg:  var(--nemo-blue-lighter);
  --lp-pill-taxon-fg:  var(--nemo-blue);
  --lp-pill-collection-bg: #faecd5;
  --lp-pill-collection-fg: #80500d;
  --lp-pill-specimen-bg: #e5f0db;
  --lp-pill-specimen-fg: #3f7022;
  --lp-pill-keyword-bg: #f7e3e9;
  --lp-pill-keyword-fg: #91354f;

  /* Card chrome */
  --lp-card-bg:        #ffffff;
  --lp-card-border:    #e3e3e3;
  --lp-card-radius:    10px;
  --lp-card-shadow:    0 1px 2px rgba(36, 54, 74, 0.04);

  /* Spacing */
  --lp-gap:            1.25rem;
  --lp-card-pad:       1.5rem;
}

/* ------------------------------------------------------------
   Page shell
   ------------------------------------------------------------ */
.lp-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  font-family: 'Lato', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #2a2a2a;
}

/* ------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------ */
.lp-breadcrumbs {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.lp-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.lp-breadcrumbs li {
  display: flex;
  align-items: center;
  color: #6b6b6b;
}

.lp-breadcrumbs li + li::before {
  content: "\203A";
  margin-right: 0.4rem;
  color: #b0b0b0;
  font-weight: 600;
}

.lp-breadcrumbs a {
  color: var(--nemo-blue-other);
  text-decoration: none;
  font-weight: 600;
}

.lp-breadcrumbs a:hover {
  text-decoration: underline;
}

.lp-breadcrumbs li[aria-current="page"] {
  color: #2a2a2a;
  font-weight: 600;
}

.lp-breadcrumbs--entities {
  padding: 0.75rem 1rem;
  background: var(--lp-card-bg);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-card-radius);
  box-shadow: var(--lp-card-shadow);
}

.lp-breadcrumbs--entities ol {
  gap: 0.45rem;
}

.lp-breadcrumbs--entities li {
  gap: 0.35rem;
}

.lp-breadcrumbs__type {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  color: #4a4a4a;
  background: #ececec;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.lp-breadcrumbs__type--grant {
  color: #80500d;
  background: #faecd5;
}

.lp-breadcrumbs__type--project {
  color: #1f609f;
  background: #deecfa;
}

.lp-breadcrumbs__type--collection {
  color: #126d59;
  background: #dcefe9;
}

.lp-breadcrumbs__type--subject {
  color: #91354f;
  background: #f7e3e9;
}

.lp-breadcrumbs__type--sample {
  color: #3f7022;
  background: #e5f0db;
}

.lp-breadcrumbs__current-id {
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------
   Related entity trail
   ------------------------------------------------------------ */
.lp-trail {
  margin-top: var(--lp-gap);
}

.lp-trail__list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-trail__item {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8rem) 0.55rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--lp-card-bg);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-card-radius);
  box-shadow: var(--lp-card-shadow);
}

.lp-trail__type {
  color: #4a4a4a;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lp-trail__marker {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.28rem;
  border-radius: 50%;
  background: #777777;
}

.lp-trail__item--grant .lp-trail__marker { background: #b87516; }
.lp-trail__item--project .lp-trail__marker { background: #3487d8; }
.lp-trail__item--collection .lp-trail__marker { background: #1b9d7d; }
.lp-trail__item--subject .lp-trail__marker { background: #d75279; }
.lp-trail__item--sample .lp-trail__marker { background: #57992c; }

.lp-trail__content,
.lp-trail__identifiers {
  min-width: 0;
}

.lp-trail__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lp-trail__identifiers {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
}

.lp-trail__id,
.lp-trail__secondary {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.82rem;
}

.lp-trail__id,
.lp-trail__secondary {
  color: var(--nemo-blue-other);
}

.lp-trail__id {
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.lp-trail__id:hover {
  text-decoration: underline;
}

.lp-trail__separator {
  color: #9a9a9a;
}

.lp-trail__name {
  color: #2a2a2a;
  font-size: 0.9rem;
  line-height: 1.35;
}

/* ------------------------------------------------------------
   Grid
   ------------------------------------------------------------ */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--lp-gap);
}

.lp-row-1   { grid-column: 1 / -1; }

.lp-card--downloads { grid-column: 1 / -1; }
.lp-card--full-width { grid-column: 1 / -1; }

/* Row 2 – three equal-width cards */
.lp-row-2.lp-col-1 { grid-column: span 4; }
.lp-row-2.lp-col-2 { grid-column: span 4; }
.lp-row-2.lp-col-3 { grid-column: span 4; }

/* Row 2 can also use a balanced two-card layout. */
.lp-row-2.lp-col-1-2 { grid-column: span 6; }
.lp-row-2.lp-col-3-4 { grid-column: span 6; }

/* Rows 3 & 4 – two equal-width cards */
.lp-row-3.lp-col-1-2 { grid-column: span 6; }
.lp-row-3.lp-col-3-4 { grid-column: span 6; }
.lp-row-4.lp-col-1-2 { grid-column: span 6; }
.lp-row-4.lp-col-3-4 { grid-column: span 6; }

/* Rows 5 & 6 – two equal-width cards (file mockup) */
.lp-row-5.lp-col-1-2 { grid-column: span 6; }
.lp-row-5.lp-col-3-4 { grid-column: span 6; }
.lp-row-6.lp-col-1-2 { grid-column: span 6; }
.lp-row-6.lp-col-3-4 { grid-column: span 6; }

/* ------------------------------------------------------------
   Card
   ------------------------------------------------------------ */
.lp-card {
  background: var(--lp-card-bg);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-card-radius);
  padding: var(--lp-card-pad);
  box-shadow: var(--lp-card-shadow);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.lp-card__title {
  margin: 0 0 0.9rem;
  font-size: 1.65rem;
  line-height: 1.25;
  color: var(--nemo-blue);
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lp-card__title--mono {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 1.45rem;
  word-break: break-all;
  margin-bottom: 0.35rem;
}

.lp-card__subtitle {
  margin: 0 0 0.9rem;
  font-family: 'Menlo', 'Consolas', monospace;
  color: #5f666d;
  font-size: 0.9rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lp-card__hint {
  margin: 0 0 1rem 0; 
  color: #5a5a5a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.lp-card__hint a {
  color: var(--nemo-blue-other);
  font-weight: 700;
}

.lp-card__heading {
  margin: 0 0 0.85rem;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nemo-blue);
  font-weight: 700;
}

.lp-card__subheading {
  margin: 1rem 0 0.65rem;
  color: #5a5a5a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lp-card__heading + .lp-card__subheading {
  margin-top: 0;
}

.lp-card__divider {
  border: 0;
  border-top: 1px solid var(--lp-card-border);
  margin: 1rem 0;
}

.lp-card__divider--tight {
  margin: 0.85rem 0;
}

.lp-card__description {
  margin: 0 0 1rem 0; 
  color: #3a3a3a;
  line-height: 1.55;
  font-size: 0.97rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lp-card__value {
  margin: 0;
  font-size: 1.05rem;
  color: #2a2a2a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lp-card__scroll-area {
  max-height: 12rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-gutter: stable;
}

.lp-card--collection-methods .lp-meta-list dd {
  min-width: 0;
}

.lp-card--collection-methods .lp-pill {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ------------------------------------------------------------
   Pills
   ------------------------------------------------------------ */
.lp-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.lp-pill-row--inline {
  display: inline-flex;
  margin-left: 0.5rem;
}

.lp-field-groups {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.lp-field-group {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.lp-field-group__label {
  padding-top: 0.3rem;
  color: #5a5a5a;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.lp-field-group .lp-pill-row {
  min-width: 0;
}

.lp-field-group .lp-pill {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.lp-pill {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.lp-pill--program {
  background: var(--lp-pill-blue-bg);
  color: var(--lp-pill-blue-fg);
  text-transform: lowercase;
}

.lp-pill--neutral {
  background: var(--lp-pill-grey-bg);
  color: var(--lp-pill-grey-fg);
}

.lp-pill--collection-type {
  background: var(--lp-pill-collection-bg);
  color: var(--lp-pill-collection-fg);
}

.lp-pill--specimen-type {
  background: var(--lp-pill-specimen-bg);
  color: var(--lp-pill-specimen-fg);
}

.lp-pill--keyword {
  background: var(--lp-pill-keyword-bg);
  color: var(--lp-pill-keyword-fg);
}

.lp-pill--status-ongoing {
  background: var(--lp-pill-green-bg);
  color: var(--lp-pill-green-fg);
}

.lp-pill--taxon {
  background: var(--lp-pill-taxon-bg);
  color: var(--lp-pill-taxon-fg);
}

.lp-pill--access-controlled {
  background: #fde7d5;
  color: #8a4500;
}

.lp-pill--mono {
  font-family: 'Menlo', 'Consolas', monospace;
  text-transform: none;
  letter-spacing: 0;
}

.lp-mono {
  color: #5a5a5a;
  font-family: inherit;
  font-size: 0.82rem;
}

.lp-mono--break {
  word-break: break-all;
}

/* ------------------------------------------------------------
   Lists
   ------------------------------------------------------------ */
.lp-link-list,
.lp-entity-list,
.lp-contributor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-entity-list-frame {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.lp-entity-list-frame[data-list-expanded="true"] {
  max-height: 30rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
}

.lp-text-list .lp-entity-list__row {
  display: block;
}

.lp-link-list li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--lp-card-border);
}

.lp-link-list li:last-child { border-bottom: 0; }

.lp-link-list a {
  color: var(--nemo-blue-other);
  text-decoration: none;
  font-weight: 600;
}

.lp-link-list a:hover { text-decoration: underline; }

.lp-cross-archive-group + .lp-cross-archive-group {
  margin-top: 1rem;
}

.lp-cross-archive-group__heading {
  margin: 0 0 0.2rem;
  color: #333;
  font-size: 0.9rem;
  font-weight: 700;
}

.lp-cross-archive-link__id {
  color: var(--lp-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.lp-entity-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--lp-card-border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.lp-entity-list__row[hidden] {
  display: none;
}

.lp-entity-list li:last-child { border-bottom: 0; }

.lp-entity-list__id {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.85rem;
  color: var(--nemo-blue);
  text-decoration: none;
  background: var(--nemo-blue-lighter);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lp-entity-list__id:hover { text-decoration: underline; }

.lp-entity-list__name {
  color: #5a5a5a;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lp-entity-list--split .lp-entity-list__row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  align-items: start;
  gap: 0.85rem;
}

.lp-entity-list--split .lp-entity-list__row--content-only {
  grid-template-columns: minmax(0, 1fr);
}

.lp-entity-list--compact-labels .lp-entity-list__row {
  grid-template-columns: minmax(80px, 105px) minmax(0, 1fr);
}

.lp-entity-list--compact-labels .lp-entity-list__id-column,
.lp-entity-list--compact-labels .lp-meta-list__label {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lp-entity-list__id-column {
  padding-top: 0.1rem;
}

.lp-entity-list__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lp-entity-list__content--scroll {
  max-height: 10rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
}

.lp-entity-list__content--scroll .lp-pill-row {
  min-width: 0;
  max-width: 100%;
}

.lp-entity-list__content--scroll .lp-pill {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lp-entity-list-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nemo-blue-other);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.lp-entity-list-toggle::after {
  content: "\002B";
  color: var(--nemo-orange);
  font-size: 1rem;
  line-height: 1;
}

.lp-entity-list-toggle[data-list-complete="true"]::after {
  content: "\2212";
}

.lp-entity-list-toggle:hover,
.lp-entity-list-toggle:focus-visible {
  text-decoration: underline;
}

.lp-entity-list-toggle__count {
  color: #6b6b6b;
  font-weight: 400;
}

/* ------------------------------------------------------------
   Key/value meta list (file mockup row 2 cards)
   ------------------------------------------------------------ */
.lp-meta-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lp-meta-list__row {
  display: grid;
  grid-template-columns: minmax(110px, 38%) 1fr;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px dashed var(--lp-card-border);
  padding-bottom: 0.55rem;
}

.lp-meta-list__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lp-meta-list dt {
  margin: 0;
  color: #5a5a5a;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.lp-meta-list dd {
  margin: 0;
  color: #5a5a5a;
  font-size: 0.82rem;
  min-width: 0;
  word-break: break-word;
}

.lp-meta-list__label {
  color: #5a5a5a;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.lp-meta-list__hint {
  color: #5a5a5a;
  font-size: 0.82rem;
}

/* ------------------------------------------------------------
   Subject attributes
   ------------------------------------------------------------ */
.lp-attribute-table-wrap {
  --lp-attribute-row-height: 2.35rem;
  max-width: 100%;
  max-height: calc(var(--lp-attribute-row-height) * 9);
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.lp-attribute-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #5a5a5a;
  font-size: 0.82rem;
}

.lp-attribute-table th,
.lp-attribute-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lp-attribute-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  color: #5a5a5a;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--lp-card-border);
}

.lp-attribute-table td {
  border-bottom: 1px dashed var(--lp-card-border);
}

.lp-attribute-table tbody tr:last-child td {
  border-bottom: 0;
}

.lp-attribute-table th:nth-child(1),
.lp-attribute-table td:nth-child(1),
.lp-attribute-table th:nth-child(2),
.lp-attribute-table td:nth-child(2) {
  width: 30%;
}

.lp-attribute-table th:nth-child(3),
.lp-attribute-table td:nth-child(3),
.lp-attribute-table th:nth-child(4),
.lp-attribute-table td:nth-child(4) {
  width: 20%;
}

/* ------------------------------------------------------------
   URL list (file mockup download card)
   ------------------------------------------------------------ */
.lp-url-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lp-url-list__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--lp-card-border);
  border-radius: 6px;
  background: #fafafa;
  min-width: 0;
}

.lp-url-list__item[hidden] {
  display: none;
}

.lp-url-list__details {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.lp-url-list__link {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--nemo-blue);
  text-decoration: none;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.lp-url-list__link:hover {
  text-decoration: underline;
}

.lp-url-list__link--action {
  font-size: 0.95rem;
  font-weight: 700;
}

.lp-url-list__url,
.lp-url-list__meta {
  display: block;
  max-width: 100%;
}

.lp-url-list__meta {
  color: #5a5a5a;
  font-size: 0.82rem;
}

.lp-url-list__meta a {
  color: var(--nemo-blue-other);
  font-weight: 600;
}

.lp-url-list__pills {
  flex: 0 0 auto;
  justify-content: flex-end;
}

/* ------------------------------------------------------------
   Contributors
   ------------------------------------------------------------ */
.lp-card--compact {
  align-self: start;
}

.lp-contributor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.lp-card--contact .lp-contributor-list {
  grid-template-columns: minmax(0, 1fr);
}

.lp-contributor-list li + li { margin-top: 0; }

.lp-contributor {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.6rem 0;
  min-width: 0;
  border: 1px solid var(--lp-card-border);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fbfbfb;
}

.lp-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nemo-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lp-contributor__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lp-contributor__name {
  font-weight: 700;
  color: #2a2a2a;
}

.lp-contributor__org {
  color: #5a5a5a;
  font-size: 0.9rem;
}

.lp-contributor__org--empty {
  color: #9a9a9a;
  font-style: italic;
}

.lp-contributor__orcid {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--nemo-blue-other);
  text-decoration: none;
  margin-top: 0.15rem;
}

.lp-contributor__orcid img {
  width: 14px;
  height: 14px;
}

.lp-contributor__orcid:hover { text-decoration: underline; }

.lp-contributor-expand {
  margin-top: 1rem;
}

.lp-contributor-expand summary {
  cursor: pointer;
  color: var(--nemo-blue-other);
  font-weight: 700;
  list-style: none;
}

.lp-contributor-expand summary::-webkit-details-marker {
  display: none;
}

.lp-contributor-expand summary::after {
  content: "\002B";
  margin-left: 0.5rem;
  color: var(--nemo-orange);
}

.lp-contributor-expand[open] summary::after {
  content: "\2212";
}

.lp-contributor-list--extra {
  margin-top: 0.9rem;
}

/* ------------------------------------------------------------
   Empty state (publications)
   ------------------------------------------------------------ */
.lp-empty-state {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 0;
}

.lp-empty-state__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px dashed #c4c4c4;
  flex: 0 0 auto;
}

.lp-empty-state__text {
  margin: 0;
  color: #5a5a5a;
  font-size: 0.95rem;
}

.lp-empty-state__cta {
  color: var(--nemo-orange);
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.35rem;
}

.lp-empty-state__cta:hover { text-decoration: underline; }

/* ============================================================
   Collection summary panel (full-width, bottom of collection LP)
   ============================================================ */
.lp-summary {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

/* Section 1 (~10%): shaded header */
.lp-summary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--nemo-blue-lighter, #eef4fb);
  padding: 1.1rem var(--lp-card-pad);
  border-bottom: 1px solid var(--lp-card-border);
}

.lp-summary__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--nemo-blue);
}

/* Section 2 (~20%): four counts */
.lp-summary__counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.25rem var(--lp-card-pad);
  text-align: center;
}

.lp-summary__count {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.4rem 0.5rem;
}

.lp-summary__count + .lp-summary__count {
  border-left: 1px solid var(--lp-card-border);
}

.lp-summary__count-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--nemo-blue);
  line-height: 1.1;
}

.lp-summary__count-label {
  font-size: 0.85rem;
  color: #6a6a6a;
}

/* Section 3 (~60%): storage bar + access-tier cards */
.lp-summary__storage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem var(--lp-card-pad);
}

.lp-storage-bar {
  display: flex;
  width: 100%;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  background: #ececec;
  margin-bottom: 0.75rem;
}

.lp-storage-bar__segment { height: 100%; }
.lp-storage-bar__segment--public     { background: #3fa66a; }
.lp-storage-bar__segment--controlled { background: #e08a2b; }

.lp-storage-legend {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #4a4a4a;
}

.lp-storage-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lp-storage-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.lp-storage-legend__swatch--public     { background: #3fa66a; }
.lp-storage-legend__swatch--controlled { background: #e08a2b; }

.lp-access-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.lp-access-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.lp-access-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #2a2a2a;
}

.lp-access-card__icon--public     { color: #3fa66a; }
.lp-access-card__icon--controlled { color: #e08a2b; }

.lp-access-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4a4a4a;
}

.lp-access-card__btn {
  align-self: flex-start;
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--nemo-blue);
  color: #ffffff;
  text-decoration: none;
}

.lp-access-card__btn:hover { filter: brightness(0.94); }
.lp-access-card__btn--warning { background: #e08a2b; }

/* Section 4 (~10%): file formats */
.lp-summary__formats {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1.1rem var(--lp-card-pad);
  border-top: 1px solid var(--lp-card-border);
}

@media (max-width: 720px) {
  .lp-summary__counts    { grid-template-columns: repeat(2, 1fr); }
  .lp-access-cards       { grid-template-columns: 1fr; }
}

/* ============================================================
   Search page
   ============================================================ */
.sr-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  font-family: 'Lato', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #2a2a2a;
}

.sr-search-card,
.sr-results-card {
  margin-bottom: 1.25rem;
}

.sr-search-row {
  display: grid;
  gap: 1rem;
}

.sr-search-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.sr-search-input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--lp-card-border);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  color: #2a2a2a;
  background: #fff;
  font-family: inherit;
}

.sr-search-input:focus {
  outline: 3px solid rgba(30, 61, 99, 0.18);
  border-color: var(--nemo-blue-other);
}

.sr-search-btn,
.sr-secondary-btn,
.sr-action-link,
.sr-pagination button {
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.sr-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid rgb(161, 160, 160) !important;
  border: 0;
  padding: 0 1.25rem;
  background: white; 
  color: #2a2a2a;
  min-height: 48px;
}

.sr-search-btn:hover {
  background: var(--nemo-blue-lighter);
}

.sr-filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.sr-filter-label {
  color: #3a3a3a;
  font-weight: 700;
}

.sr-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sr-filter-pill {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: #e8e8e8;
  color: #363636;
  font-weight: 700;
  cursor: pointer;
}

.sr-filter-pill:hover,
.sr-filter-pill:focus {
  outline: 2px solid rgba(36, 54, 74, 0.22);
  outline-offset: 2px;
}

.sr-filter-pill--active {
  background: var(--nemo-blue);
  color: #fff;
}

.sr-inspiration {
  margin: 1rem 0 0;
  color: #4a4a4a;
  line-height: 1.55;
}

.sr-inspiration code,
.sr-code-link,
.sr-code-text {
  font-family: 'Menlo', 'Consolas', monospace;
}

.sr-inspiration code {
  background: var(--nemo-blue-lighter);
  color: var(--nemo-blue);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

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

.sr-results-title {
  margin: 0;
  color: var(--nemo-blue);
  font-size: 1.35rem;
  line-height: 1.25;
}

.sr-result-count {
  margin: 0.35rem 0 0;
  color: #5a5a5a;
}

.sr-results-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sr-page-size {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4a4a4a;
  font-weight: 700;
}

.sr-page-size select {
  border: 1px solid var(--lp-card-border);
  border-radius: 8px;
  background: #fff;
  padding: 0.45rem 0.75rem;
  color: #2a2a2a;
}

.sr-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--lp-card-border);
  background: #fff;
  color: var(--nemo-blue);
  padding: 0.55rem 0.75rem;
}

.sr-secondary-btn:hover {
  background: var(--nemo-blue-lighter);
}

.sr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--lp-card-border);
  border-radius: 8px;
}

.sr-results-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 920px;
  table-layout: fixed;
}

.sr-results-table__name-column {
  width: 50%;
}

.sr-results-table__secondary-column {
  width: 12.5%;
}

.sr-results-table th,
.sr-results-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--lp-card-border);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sr-results-table th {
  background: #f6f7f8;
  color: var(--nemo-blue);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sr-results-table tbody tr,
.sr-results-table tbody tr:nth-child(even),
.sr-results-table tbody tr:nth-child(odd) {
  background: #fff;
}

.sr-results-table tbody tr:last-child td {
  border-bottom: 0;
}

.sr-code-link {
  color: #5f666d;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sr-code-link--primary {
  color: var(--nemo-blue);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.sr-id-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  max-width: 100%;
}

.sr-result-subname {
  color: var(--nemo-blue);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sr-result-subname:hover,
a.sr-code-link:hover {
  text-decoration: underline;
}

.sr-code-text {
  color: #333;
  background: #f4f4f4;
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sr-description-text {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sr-entity-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.sr-entity-pill--collection { background: #e0ecf7; color: var(--nemo-blue); }
.sr-entity-pill--file       { background: #fcebcf; color: #7a4300; }
.sr-entity-pill--sample     { background: #dff0ec; color: var(--nemo-green); }
.sr-entity-pill--project    { background: #eee8f6; color: #4a3770; }
.sr-entity-pill--grant      { background: #f3e4e4; color: #703838; }
.sr-entity-pill--subject    { background: #e5eef0; color: #244e57; }
.sr-entity-pill--library    { background: #ececec; color: #3f3f3f; }

.sr-action-link {
  display: inline-block;
  background: var(--nemo-blue);
  color: #fff;
  padding: 0.45rem 0.85rem;
}

.sr-action-link:hover {
  color: #fff;
  background: var(--nemo-blue-other);
}

.sr-pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.sr-pagination button {
  border: 1px solid var(--lp-card-border);
  background: #fff;
  color: var(--nemo-blue);
  padding: 0.45rem 0.75rem;
}

.sr-pagination button:disabled {
  color: #8a8a8a;
  background: #f5f5f5;
}

.sr-pagination__active {
  background: var(--nemo-blue) !important;
  color: #fff !important;
}

.sr-api-note {
  text-align: center;
  color: #5a5a5a;
  margin: 1.5rem 0 0;
}

.sr-api-note a {
  color: var(--nemo-blue-other);
  font-weight: 700;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .lp-row-2.lp-col-1,
  .lp-row-2.lp-col-2,
  .lp-row-2.lp-col-3,
  .lp-row-2.lp-col-1-2,
  .lp-row-2.lp-col-3-4 { grid-column: 1 / -1; }

  .lp-row-3.lp-col-1-2,
  .lp-row-3.lp-col-3-4,
  .lp-row-4.lp-col-1-2,
  .lp-row-4.lp-col-3-4,
  .lp-row-5.lp-col-1-2,
  .lp-row-5.lp-col-3-4,
  .lp-row-6.lp-col-1-2,
  .lp-row-6.lp-col-3-4 { grid-column: 1 / -1; }

  .lp-contributor-list { grid-template-columns: 1fr; }

  .sr-results-header,
  .sr-search-input-wrap {
    grid-template-columns: 1fr;
  }

  .sr-results-header {
    display: grid;
  }

  .sr-results-actions {
    justify-content: flex-start;
  }

  .lp-card__title { font-size: 1.4rem; }
}

@media (max-width: 640px) {
  .lp-field-group {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .lp-field-group__label {
    padding-top: 0;
  }

  .lp-url-list__item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .lp-url-list__pills {
    justify-content: flex-start;
  }

  .lp-entity-list--split .lp-entity-list__row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .lp-trail__item {
    grid-template-columns: 0.55rem minmax(0, 1fr);
  }

  .lp-trail__type {
    grid-column: 1 / -1;
  }
}
