/* Press: filter chips, year groups, press rows, pagination, contact; press item page with scan. */
@layer components {
  .press__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .press__results {
    display: flex;
    flex-direction: column;
  }

  .press__filter + .press__results {
    margin-block-start: var(--space-24);
  }

  .press-rows {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .press-rows > li {
    border-block-end: var(--border-width-thin) solid var(--color-border-default);
  }

  .press-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    /* Text on the content edge; hover and focus show a bar in the margin (group-heading.css), no surface. */
    padding-block: var(--space-16);
  }

  .press-row__text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-inline-size: 0;
  }

  .press-row__meta {
    color: var(--color-text-subtle);
    font-size: var(--type-text-small-size);
    line-height: var(--type-text-small-line-height);
  }

  .press-row__title {
    font-size: var(--type-heading-s-size);
    line-height: var(--type-heading-s-line-height);
    overflow-wrap: anywhere;
  }

  .press-row__action {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: var(--space-8);
    color: var(--color-text-default);
    font-weight: var(--font-weight-semibold);
    font-size: var(--type-label-m-size);
    line-height: var(--type-label-m-line-height);
    text-decoration: none;
    white-space: nowrap;
  }

  .press-row__label {
    text-decoration: underline transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
  }

  .press-row:hover .press-row__label,
  .press-row__action:focus-visible .press-row__label {
    text-decoration-color: currentcolor;
  }

  /* The link covers the row; the focus ring goes around the row. */
  .press-row__action::after {
    content: "";
    position: absolute;
    inset: 0 calc(-1 * var(--list-row-focus-reach));
  }

  .press-row__action:focus-visible {
    outline: none;
  }

  .press-row__action:focus-visible::after {
    outline: var(--border-width-focus) solid var(--color-focus);
    outline-offset: -2px;
    border-radius: var(--radius-s);
  }

  .press__pagination {
    margin-block-start: var(--space-48);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-16);
  }

  .press__range {
    color: var(--color-text-subtle);
    font-size: var(--type-text-small-size);
    line-height: var(--type-text-small-line-height);
  }

  .press-contact__lines {
    font-size: var(--type-text-lead-size);
    line-height: var(--type-text-lead-line-height);
    overflow-wrap: anywhere;
  }

  .press-contact__download {
    max-inline-size: var(--layout-container-text);
  }

  /* Press item page */
  .press-scan__link {
    position: relative;
    display: block;
    max-inline-size: 720px;
    border-radius: var(--component-bubble-radius-m);
    overflow: hidden;
    border: var(--border-width-thin) solid var(--color-border-default);
    background-color: var(--color-background-subtle);
    cursor: zoom-in;
  }

  .press-scan__img {
    display: block;
    inline-size: 100%;
    block-size: auto;
  }

  .press-scan__hint {
    position: absolute;
    inset-block-end: var(--space-12);
    inset-inline-end: var(--space-12);
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-8) var(--space-12);
    border-radius: var(--radius-pill);
    background-color: var(--color-background-default);
    color: var(--color-text-link);
    font-weight: var(--font-weight-bold);
    font-size: var(--type-label-s-size);
    line-height: var(--type-label-s-line-height);
  }

  .press-scan__link:hover .press-scan__hint {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .press-item__heading {
    font-size: var(--type-heading-m-size);
    line-height: var(--type-heading-m-line-height);
    margin-block-end: var(--space-16);
  }

  .press-item__text,
  .press-item__summary {
    max-inline-size: var(--layout-container-text);
  }

  .press-item__summary {
    font-size: var(--type-text-lead-size);
    line-height: var(--type-text-lead-line-height);
  }

  .press-item__access {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
    max-inline-size: var(--layout-container-text);
  }

  .press-item__note {
    color: var(--color-text-subtle);
    font-size: var(--type-text-small-size);
    line-height: var(--type-text-small-line-height);
  }

  .press-item__event {
    max-inline-size: var(--layout-container-text);
  }
}
