/* Owner: news and semantic public content nodes. */
.news-page,
.civic-content {
  padding-block: var(--rmh-space-lg) var(--rmh-space-8);
}

.news-page__header,
.civic-content__header,
.civic-content__body,
.civic-content__media,
.civic-fact-strip,
.civic-related,
.civic-content__provenance {
  max-width: 52rem;
}

.news-page__header h1,
.civic-content__header h1 {
  font-size: var(--rmh-heading-inner);
  margin-block: var(--rmh-space-xs) var(--rmh-space-sm);
  max-width: 18ch;
}

.civic-content__header {
  border-bottom: 1px solid var(--rmh-line);
  padding-bottom: var(--rmh-space-md);
}

.civic-page-state {
  background: var(--rmh-surface);
  border: 1px solid var(--rmh-line);
  border-radius: var(--rmh-radius-pill);
  color: var(--rmh-muted-ink);
  display: inline-flex;
  font-size: var(--rmh-type-1);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0 0 var(--rmh-space-xs);
  min-height: 1.9rem;
  padding: var(--rmh-space-3xs) var(--rmh-space-xs);
}

.civic-content__lede {
  color: var(--rmh-muted-ink);
  font-size: var(--rmh-type-4);
  line-height: 1.45;
  margin-bottom: 0;
  max-width: 44rem;
}

.civic-content__body {
  font-size: var(--rmh-type-3);
  line-height: 1.7;
  padding-block: var(--rmh-space-lg);
}

.civic-content__body > :last-child {
  margin-bottom: 0;
}

.civic-content__body h2 {
  font-size: var(--rmh-type-5);
  margin-top: var(--rmh-space-lg);
}

.civic-content__body h3 {
  font-size: var(--rmh-type-4);
  margin-top: var(--rmh-space-md);
}

.civic-content__media {
  margin-top: var(--rmh-space-md);
}

.civic-content__media img {
  border-radius: var(--rmh-radius-md);
}

.civic-fact-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  margin-block: var(--rmh-space-md) 0;
  overflow: hidden;
}

.civic-fact-strip > div {
  background: var(--rmh-surface);
  border-top: 0.2rem solid var(--rmh-cyan);
  min-width: 0;
  padding: var(--rmh-space-sm);
}

.civic-fact-strip dt {
  color: var(--rmh-muted-ink);
  font-size: var(--rmh-type-1);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.civic-fact-strip dd {
  color: var(--rmh-dark);
  font-size: var(--rmh-type-3);
  font-weight: 700;
  margin: var(--rmh-space-2xs) 0 0;
  overflow-wrap: anywhere;
}

.civic-workflow-panel {
  align-items: center;
  border-radius: var(--rmh-radius-md);
  display: grid;
  gap: var(--rmh-space-sm);
  grid-template-columns: minmax(0, 1fr);
  margin-block: var(--rmh-space-sm) var(--rmh-space-md);
  padding: var(--rmh-space-md);
}

.civic-workflow-panel > * {
  min-width: 0;
}

.civic-workflow-panel h2 {
  font-family: var(--rmh-font-sans);
  font-size: var(--rmh-type-4);
  margin-bottom: var(--rmh-space-2xs);
}

.civic-workflow-panel p {
  margin-bottom: 0;
}

.civic-workflow-panel .civic-page-state {
  margin: 0;
}

.civic-workflow-panel--demo {
  background: var(--rmh-dark);
  border-inline-start: 0.35rem solid var(--rmh-cyan);
  color: var(--rmh-white);
}

.civic-workflow-panel--demo h2,
.civic-workflow-panel--demo .civic-page-state {
  color: var(--rmh-white);
}

.civic-workflow-panel--demo .civic-page-state {
  background: transparent;
  border-color: var(--rmh-light-blue);
}

.civic-workflow-panel--demo .button {
  background: var(--rmh-light-blue);
  border-color: var(--rmh-light-blue);
  color: var(--rmh-dark);
  justify-self: start;
}

.civic-related {
  border-top: 1px solid var(--rmh-line);
  padding-block: var(--rmh-space-md);
}

.civic-related h2 {
  font-family: var(--rmh-font-sans);
  font-size: var(--rmh-type-4);
}

.civic-related .field__label {
  display: none;
}

.civic-related .field__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rmh-space-xs);
}

.civic-related .field__item a {
  align-items: center;
  background: var(--rmh-surface);
  border: 1px solid var(--rmh-line);
  border-radius: var(--rmh-radius-pill);
  display: inline-flex;
  min-height: 2.25rem;
  padding: var(--rmh-space-3xs) var(--rmh-space-xs);
  text-decoration: none;
}

.civic-content__provenance {
  border-top: 1px solid var(--rmh-line);
  margin-block-start: var(--rmh-space-md);
  padding-block-start: var(--rmh-space-sm);
}

.civic-content__provenance > p {
  color: var(--rmh-muted-ink);
  font-size: var(--rmh-type-2);
}

.civic-content__provenance details {
  border: 1px solid var(--rmh-line);
  border-radius: var(--rmh-radius-md);
  padding: var(--rmh-space-xs) var(--rmh-space-sm);
}

.civic-content__provenance summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 2.75rem;
  padding-block: var(--rmh-space-xs);
}

.civic-content__provenance dl {
  border-top: 1px solid var(--rmh-line);
  margin-top: 0;
  padding-top: var(--rmh-space-xs);
}

.civic-content__provenance dl div {
  display: grid;
  gap: var(--rmh-space-2xs);
  grid-template-columns: minmax(8rem, 0.35fr) 1fr;
}

.civic-content__provenance dd {
  margin: 0;
}

/* Canonical news page. */
.news-page__header {
  padding-bottom: var(--rmh-space-md);
}

.news-page__header > p:not(.context-label) {
  color: var(--rmh-muted-ink);
}

.news-filters {
  align-items: end;
  background: var(--rmh-surface);
  border: 1px solid var(--rmh-line);
  border-radius: var(--rmh-radius-md);
  display: grid;
  gap: var(--rmh-space-sm);
  margin-block: var(--rmh-space-md);
  padding: var(--rmh-space-sm);
}

.news-filters label,
.news-filters select {
  display: block;
  width: 100%;
}

.news-filters label {
  font-weight: 700;
  margin-block-end: var(--rmh-space-2xs);
}

.news-filters select,
.news-filters button {
  min-height: 2.75rem;
}

.news-list {
  display: grid;
  gap: var(--rmh-space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list > li {
  min-width: 0;
}

.news-card {
  display: grid;
  gap: var(--rmh-space-xs);
  grid-template-rows: auto auto 1fr;
  height: 100%;
}

.news-card h2 {
  font-family: var(--rmh-font-sans);
  font-size: var(--rmh-type-4);
  line-height: 1.15;
  margin: 0;
}

.news-card p {
  color: var(--rmh-muted-ink);
  margin-bottom: 0;
}

.news-empty {
  border-inline-start: 0.3rem solid var(--rmh-cyan);
  padding: var(--rmh-space-sm);
}

@media (min-width: 44rem) {
  .news-filters {
    grid-template-columns: 1fr 1fr auto;
  }

  .news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .civic-workflow-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .civic-workflow-panel .civic-page-state {
    grid-column: 1 / -1;
  }
}

@media (max-width: 35rem) {
  .civic-content__provenance dl div {
    grid-template-columns: minmax(0, 1fr);
  }

  .civic-workflow-panel--demo .button {
    justify-self: stretch;
    width: 100%;
  }
}
/* Shared source-first presentation for the six priority services. */
.civic-task-page {
  padding-block: var(--rmh-space-md) var(--rmh-space-8);
}

.task-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rmh-space-2xs) var(--rmh-space-xs);
  list-style: none;
  margin: 0 0 var(--rmh-space-lg);
  padding: 0;
}

.task-breadcrumb li + li::before {
  content: "/";
  margin-inline-end: var(--rmh-space-xs);
}

.civic-task-page__header h1 {
  font-size: var(--rmh-heading-inner);
  max-width: 18ch;
}

.civic-task-page__lede {
  color: var(--rmh-muted-ink);
  font-size: var(--rmh-type-4);
  max-width: 58ch;
}

.task-trust-line,
.task-provenance {
  border-top: 1px solid var(--rmh-line);
  padding-block: var(--rmh-space-sm);
}

.civic-task-page__guidance {
  display: grid;
  gap: var(--rmh-space-lg);
  margin-block: var(--rmh-space-xl);
}

.civic-task-page__guidance section,
.task-source-warning,
.task-related,
.task-synthetic {
  border-inline-start: 0.35rem solid var(--rmh-cyan);
  padding: var(--rmh-space-md);
}

.task-source-warning { background: var(--rmh-light-blue); }
.task-synthetic { background: var(--rmh-surface); }
.task-primary-action { min-height: 2.75rem; }

.official-link,
.official-link:visited {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.official-link:visited { color: var(--rmh-muted-ink); }

.button.official-link:visited {
  border-color: var(--rmh-light-blue);
  box-shadow: inset 0 -0.25rem 0 var(--rmh-light-blue);
  color: var(--rmh-white);
}

.task-provenance summary {
  cursor: pointer;
  font-weight: 800;
  min-height: 2.75rem;
  padding-block: var(--rmh-space-xs);
}

.task-provenance dl div {
  border-top: 1px solid var(--rmh-line);
  display: grid;
  gap: var(--rmh-space-2xs);
  padding-block: var(--rmh-space-xs);
}

.task-provenance dt { font-weight: 800; }
.task-provenance dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 30rem) {
  .task-primary-action {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}
