/* Record housekeeping (views/mixins/record-meta.pug) */

.record-access {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 1px 8px;
  border: 1px solid #e0d6b8;
  border-radius: 999px;
  background: #fbf7ea;
  color: #7a6421;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

.record-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 0.8rem;
}

.record-footer span + span::before {
  content: '·';
  margin-right: 0.75rem;
  color: #ccc;
}

/* Record page header: title + chips (left), status (right), then
   log-style property rows (detail pages) */
.entity-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.entity-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  min-width: 0;
}

.entity-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.6rem;
}

.entity-title a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.entity-title a:hover {
  color: #2f6b2f;
}

.entity-count {
  color: #666;
  font-weight: 500;
}

.gender-mark {
  color: #777;
  font-size: 0.9em;
  font-weight: 400;
}

.gender-female { color: #b24c7a; }
.gender-male { color: #3d6fb0; }

/* Type / location links as chips beside the title */
.entity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 3px 10px;
  border: 1px solid #d7e3d3;
  border-radius: 999px;
  background: #f4f8f2;
  color: #2f6b2f;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.entity-chip:hover {
  border-color: #2f6b2f;
  background: #e8f1e4;
}

.entity-chip-location {
  border-color: #e2dccb;
  background: #faf7ef;
  color: #5c4d23;
}

.entity-chip-location:hover {
  border-color: #8a7637;
  background: #f3edde;
}

.entity-chip .type-icon,
.entity-chip img {
  max-width: 1.1em;
  max-height: 1.1em;
}

.amount-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef4ea;
  color: #2f6b2f;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: default;
}

.entity-status {
  flex-shrink: 0;
  margin-top: 0.35rem;
}

/* Attributes as log lines: full width, hairlines between */
.property-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid #f0f0f0;
}

.property-row {
  display: flex;
  gap: 1rem;
  padding: 7px 4px;
  border-bottom: 1px solid #f0f0f0;
}

.property-label {
  flex: 0 0 7.5rem;
  color: #888;
  font-size: 0.85rem;
  line-height: 1.6;
}

.property-value {
  min-width: 0;
  color: #333;
}

.property-value a {
  color: #2f6b2f;
  text-decoration: none;
}

.property-value a:hover {
  text-decoration: underline;
}

.property-aside {
  color: #888;
}

.entity-description {
  margin: 0 0 1.25rem;
  color: #333;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .property-label { flex-basis: 5.5rem; }
}

/* Lists of records as log lines (type pages, node page): heading with a
   count, rows reuse .activity-list / .activity-row (activity-log.css) */
.type-members {
  margin-top: 1.5rem;
}

.type-members-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.type-members-title {
  margin: 0;
}

.type-members-count {
  color: #999;
  font-size: 0.9em;
  font-weight: 400;
}

/* Record rows reuse .activity-list / .activity-row (activity-log.css) */
.type-member-date {
  flex: none;
  width: 6.5rem;
  color: #777;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.type-member-status {
  flex: none;
  color: #a3412f;
  font-size: 0.8rem;
}

.type-member-concluded .activity-label {
  color: #888;
}

.type-member-meta {
  flex: none;
  color: #888;
  font-size: 0.85rem;
}

/* Row whose record name (not the whole line) is the link */
.member-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.25rem;
}

.member-name {
  color: #2f6b2f;
  text-decoration: none;
}

.member-name:hover {
  text-decoration: underline;
}

.member-line .activity-text {
  align-self: baseline;
}

.entity-chip-sm {
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 400;
}

/* Round buttons, same look as "+ Log" on record pages */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  box-sizing: border-box;
  height: 2.25rem;
  padding: 0 0.85rem;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid #c8d6c1;
  border-radius: 999px;
  background: #fff;
  color: #2f4a26;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.pill-btn:hover {
  background: #e4f0de;
  color: #2f4a26;
  text-decoration: none;
}

.pill-btn-danger {
  border-color: #e3c4bd;
  color: #a3412f;
}

.pill-btn-danger:hover {
  background: #fbeeeb;
  color: #8a3423;
}
