/**
 * Northport Government — front-end styles.
 *
 * Same tokens as meetings.css and notices.css: navy headings, teal only as
 * a rule or tint (never text on white), Montserrat inherited from the theme,
 * px units because the live root font size is not 16px. Scoped to .np-gov
 * and .np-members so nothing leaks into the theme.
 */

.np-gov,
.np-members {
  --np-navy: #1c2e4f;
  --np-sage: #96bbbb;
  --np-sage-tint: #eef4f4;
  --np-border: #e6e6e6;
  --np-muted: #5a616b;
  --np-surface: #fff;
  --np-radius: 5px;
  --np-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25);
}

/* Container: the same box the Meetings archive uses. */
.np-gov__container {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 90%;
  padding: 40px 0 60px;
  width: 1200px;
}

.np-gov__section {
  margin: 0 0 48px;
}

.np-gov__section:last-child {
  margin-bottom: 0;
}

.np-gov__heading {
  margin: 0 0 20px;
  color: var(--np-navy);
}

.np-gov__archived {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--np-sage);
  background: var(--np-sage-tint);
  color: var(--np-navy);
  font-weight: 700;
}

.np-gov__error {
  padding: 12px 16px;
  border-left: 4px solid #b42318;
  background: #fbeaea;
}

/* Strip of bodies. */
.np-gov-strip {
  margin: 0 0 40px;
}

.np-gov-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.np-gov-strip__link {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--np-navy);
  border-radius: var(--np-radius);
  background: var(--np-surface);
  color: var(--np-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.np-gov-strip__link:hover,
.np-gov-strip__link:focus-visible {
  background: var(--np-sage-tint);
  text-decoration: none;
}

.np-gov-strip__link:focus-visible {
  outline: 2px solid var(--np-navy);
  outline-offset: 2px;
}

.np-gov-strip__link.is-current {
  background: var(--np-navy);
  color: #fff;
}

/* Intro. */
.np-gov__section--intro > :first-child {
  margin-top: 0;
}

.np-gov__section--intro > :last-child {
  margin-bottom: 0;
}

/* Members grid: 4 across, 3 across when 3 or fewer, last row centred. */
.np-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.np-members__item {
  box-sizing: border-box;
  flex: 0 1 calc((100% - 72px) / 4);
  margin: 0;
  min-width: 0;
}

.np-members--3 .np-members__item {
  flex-basis: calc((100% - 48px) / 3);
}

.np-member {
  box-sizing: border-box;
  height: 100%;
  padding: 28px 20px 24px;
  border-radius: var(--np-radius);
  background: var(--np-surface);
  box-shadow: var(--np-shadow);
  text-align: center;
}

.np-member__media {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

.np-member__photo,
.np-member__initials {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.np-member__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--np-navy);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.np-member__name {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--np-navy);
}

.np-member__role {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--np-muted);
}

.np-member__sep {
  margin: 0 4px;
}

.np-member__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.np-member__contact a {
  color: var(--np-navy);
}

.np-member__bio {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

/* Meeting details. */
.np-gov-details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
  padding: 20px 24px;
  border-radius: var(--np-radius);
  background: var(--np-sage-tint);
}

.np-gov-details dt {
  font-weight: 700;
  color: var(--np-navy);
}

.np-gov-details dd {
  margin: 0;
}

.np-gov-details a {
  color: var(--np-navy);
}

/* Tablet. */
@media (max-width: 900px) {
  .np-gov__container {
    max-width: none;
    padding: 30px 20px 40px;
    width: auto;
  }

  .np-members__item,
  .np-members--3 .np-members__item {
    flex-basis: calc((100% - 24px) / 2);
  }
}

/* Phone. */
@media (max-width: 560px) {
  .np-members__item,
  .np-members--3 .np-members__item {
    flex-basis: 100%;
  }

  .np-gov-details {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .np-gov-details dd {
    margin-bottom: 10px;
  }
}
