/* Styles for newsroom pages. Every selector starts with .nr- so nothing here reaches the
   site's own header, nav or footer, and the site's styles do not need to change.
   Each site sets its own faces and colours as --nr-* custom properties (render/themes.ts);
   every value has a fallback, so a page without them inherits the site's own. */

.nr-main {
  box-sizing: border-box;
  width: 100%;
  max-width: 45rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 5rem;
  color: var(--nr-ink, inherit);
  font-family: var(--nr-body, inherit);
}

.nr-main *,
.nr-main *::before,
.nr-main *::after {
  box-sizing: border-box;
}

.nr-main a {
  color: var(--nr-link, inherit);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.nr-main a:hover {
  text-decoration-thickness: 2px;
}

.nr-main a:focus-visible {
  outline: 2px solid var(--nr-accent, currentColor);
  outline-offset: 2px;
  border-radius: 2px;
}

/* The trail, the section label and the date */

.nr-main .nr-crumbs {
  margin: 0 0 1.5rem;
  font-family: var(--nr-ui, inherit);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--nr-muted, inherit);
}

.nr-main .nr-crumbs a {
  color: inherit;
  text-decoration: none;
}

.nr-main .nr-crumbs a:hover {
  text-decoration: underline;
}

.nr-main .nr-kicker {
  margin: 0 0 0.6rem;
  font-family: var(--nr-ui, inherit);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nr-accent, inherit);
}

.nr-main .nr-meta {
  margin: 0 0 2rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--nr-rule, rgba(127, 127, 127, 0.35));
  border-bottom: 1px solid var(--nr-rule, rgba(127, 127, 127, 0.35));
  font-family: var(--nr-ui, inherit);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--nr-muted, inherit);
}

/* The headline and the dek */

.nr-main .nr-nowrap {
  white-space: nowrap;
}

.nr-main .nr-article {
  display: block;
  margin: 0;
  padding: 0;
}

.nr-main .nr-headline {
  margin: 0 0 1rem;
  font-family: var(--nr-display, inherit);
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--nr-ink, inherit);
  overflow-wrap: break-word;
  text-wrap: balance;
}

.nr-main .nr-dek {
  margin: 0 0 1.5rem;
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3rem);
  line-height: 1.5;
  color: var(--nr-muted, inherit);
}

/* The story */

.nr-main .nr-body {
  font-size: 1.125rem;
  line-height: 1.7;
}

.nr-main .nr-p {
  margin: 0 0 1.25rem;
}

.nr-main .nr-subhead {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--nr-display, inherit);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--nr-ink, inherit);
}

.nr-main .nr-list {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.nr-main .nr-list li {
  margin: 0 0 0.4rem;
  padding-left: 0.2rem;
}

.nr-main .nr-list li::marker {
  color: var(--nr-accent, currentColor);
}

.nr-main .nr-block {
  margin: 2rem 0;
  padding: 1.1rem 1.25rem 1.2rem;
  border-left: 3px solid var(--nr-accent, currentColor);
  border-radius: 0 6px 6px 0;
  background: var(--nr-tint, rgba(127, 127, 127, 0.08));
}

.nr-main .nr-block-label {
  margin: 0 0 0.6rem;
  font-family: var(--nr-ui, inherit);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nr-accent, inherit);
}

.nr-main .nr-block .nr-p,
.nr-main .nr-block .nr-list {
  font-size: 1.0625rem;
}

.nr-main .nr-block .nr-p:last-child,
.nr-main .nr-block .nr-list:last-child {
  margin-bottom: 0;
}

/* Sources and the automation label */

.nr-main .nr-article-footer {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--nr-rule, rgba(127, 127, 127, 0.4));
  font-family: var(--nr-ui, inherit);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--nr-muted, inherit);
}

.nr-main .nr-article-footer h2 {
  margin: 0 0 0.5rem;
  font-family: var(--nr-ui, inherit);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nr-ink, inherit);
}

.nr-main .nr-article-footer ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.nr-main .nr-article-footer li {
  margin: 0 0 0.25rem;
}

.nr-main .nr-label {
  margin: 0;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--nr-muted, inherit);
}

/* More reports under a post */

.nr-main .nr-related {
  margin: 3rem 0 0;
  padding-top: 1.25rem;
  border-top: 3px solid var(--nr-ink, currentColor);
}

.nr-main .nr-related-heading {
  margin: 0 0 1rem;
  font-family: var(--nr-display, inherit);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--nr-ink, inherit);
}

.nr-main .nr-related-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nr-main .nr-related-item {
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--nr-rule, rgba(127, 127, 127, 0.3));
}

.nr-main .nr-related-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.nr-main .nr-related-item .nr-kicker {
  margin-bottom: 0.35rem;
}

.nr-main .nr-related-item a {
  font-family: var(--nr-display, inherit);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--nr-ink, inherit);
  text-decoration: none;
}

.nr-main .nr-related-item a:hover {
  color: var(--nr-link, inherit);
  text-decoration: underline;
}

.nr-main .nr-more {
  margin: 1.5rem 0 0;
  font-family: var(--nr-ui, inherit);
  font-size: 0.9375rem;
  font-weight: 600;
}

.nr-main .nr-related .nr-more {
  margin-top: 1rem;
}

/* The report index */

.nr-main.nr-index {
  max-width: 64rem;
}

.nr-main.nr-index > .nr-headline {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--nr-ink, currentColor);
}

.nr-main .nr-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 2.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.nr-main .nr-item {
  margin: 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--nr-rule, rgba(127, 127, 127, 0.3));
}

.nr-main .nr-item:first-child {
  padding-top: 0.5rem;
}

.nr-main .nr-item-headline {
  margin: 0 0 0.5rem;
  font-family: var(--nr-display, inherit);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.nr-main .nr-item-headline a {
  color: var(--nr-ink, inherit);
  text-decoration: none;
}

.nr-main .nr-item-headline a:hover {
  color: var(--nr-link, inherit);
  text-decoration: underline;
}

.nr-main .nr-item:first-child .nr-item-headline {
  font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.375rem);
  line-height: 1.15;
}

.nr-main .nr-item .nr-dek {
  margin: 0 0 0.6rem;
  font-size: 1.0625rem;
}

.nr-main .nr-item:first-child .nr-dek {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.nr-main .nr-item .nr-meta {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.8125rem;
}

.nr-main .nr-empty {
  margin: 1rem 0 2rem;
  font-size: 1.125rem;
  color: var(--nr-muted, inherit);
}

.nr-main .nr-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0;
  font-family: var(--nr-ui, inherit);
  font-weight: 600;
}

.nr-main .nr-pager a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid var(--nr-rule, rgba(127, 127, 127, 0.5));
  border-radius: 6px;
  text-decoration: none;
}

.nr-main .nr-pager a:hover {
  border-color: var(--nr-link, currentColor);
}

.nr-main .nr-pager .nr-older {
  margin-left: auto;
}

/* The site's own chrome, kept inside a phone's width */

.nr-page nav,
.nr-page nav ul {
  flex-wrap: wrap;
}

.nr-page nav a {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nr-page > footer:last-of-type {
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nr-page > footer:last-of-type * {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .nr-main {
    padding: 2.75rem 2rem 6rem;
  }
}

@media (min-width: 60rem) {
  .nr-main .nr-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nr-main .nr-item:first-child {
    grid-column: 1 / -1;
    padding-bottom: 2rem;
  }
}
