.filter{
    text-decoration: none;
}
.filter.active{
    text-decoration: underline;
}
/* Eased in/out rather than display:none/block, so the button doesn't pop when a
   filter is picked. */
.filter-list .remove-filter {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: scale(.92);
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-standard),
                transform var(--dur-base) var(--ease-out),
                color var(--dur-fast) var(--ease-standard),
                background-color var(--dur-fast) var(--ease-standard),
                border-color var(--dur-fast) var(--ease-standard),
                visibility 0s linear var(--dur-base);
}
.filter-list:has(a.active) .remove-filter {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity var(--dur-base) var(--ease-standard),
                transform var(--dur-base) var(--ease-out),
                color var(--dur-fast) var(--ease-standard),
                background-color var(--dur-fast) var(--ease-standard),
                border-color var(--dur-fast) var(--ease-standard),
                visibility 0s linear 0s;
}
/* Same treatment the map filters get (map_service.css:477-489): bold primary-coloured
   label, no border, soft .8rem corners, and a select that ellipses rather than stretching
   on the long field names. */
.news-filter-bar .input-group {
    margin-bottom: 1rem;
}
.news-filter-bar .filter-list > .input-group label {
    font-weight: 700;
}
.news-filter-bar .filter-list > .input-group select {
    max-width: 20rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.news-filter-bar .filter-list > .input-group label,
.news-filter-bar .filter-list > .input-group select {
    color: var(--primary-color);
    border: 0;
    border-radius: .8rem;
}
/* Not on the map, which right-aligns its filters in a column and lets each label size to
   content. These stack full width, so without a shared label width the two selects would
   start at different offsets — very visible once the borders are gone. */
.news-filter-bar .input-group-text {
    min-width: 9.5rem;
}
.news-container {
    column-gap: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.news-container.empty{
    display: none;
    flex-direction: column;
}
.news-container.empty.is-shown{
    display: flex;
    animation: fade-up var(--dur-slow) var(--ease-out) both;
}

/* The list dims while a filter change is in flight, so the old results read as
   stale instead of blink-replacing. */
#news-container{
    transition: opacity var(--dur-base) var(--ease-standard);
}
#news-container.is-refreshing{
    opacity: .4;
}

.news-loader{
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-base) var(--ease-standard),
                visibility 0s linear var(--dur-base);
}
.news-loader.is-active{
    opacity: 1;
    visibility: visible;
    transition: opacity var(--dur-base) var(--ease-standard),
                visibility 0s linear 0s;
}
.post{
    break-inside: avoid;
    margin-bottom: 1rem;
}
.post p, .post span, .post div {
    text-align: justify;
    font-family: unset !important;
    word-spacing: unset !important;
    letter-spacing: unset !important;
    line-height: 1.5rem !important;
    color: unset !important;
    font-kerning: unset !important;
}
@media (max-width: 500px){
    .post h3 {
        font-size: medium;

    }
    .post p, .post span, .post div {
        font-size: small;
    }
    /* Mirrors the map's own compact sizing at 570px (map_service.css:141-149); kept on
       this file's existing 500px breakpoint rather than adding another one. */
    .news-filter-bar .input-group-text {
        font-size: small;
        min-width: 8rem;
    }
    .news-filter-bar .input-group {
        margin-bottom: .5rem !important;
    }
    .news-filter-bar label,
    .news-filter-bar select {
        padding: .2rem .5rem !important;
        font-size: small;
    }
    /* Five tiles across a phone are thumbnails of nothing. Collapse to a plain 2-up grid,
       keeping the "+N" on the last visible one. */
    .linkedin-post-grid.is-count-3,
    .linkedin-post-grid.is-count-5 {
        grid-template-columns: 1fr 1fr;
    }
    .linkedin-post-grid.is-count-3 > .linkedin-post-tile:first-child,
    .linkedin-post-grid.is-count-5 > .linkedin-post-tile {
        grid-row: auto;
        grid-column: auto;
        aspect-ratio: 4 / 3;
    }
    /* Odd tile out would leave half a row empty, so it takes the full width. */
    .linkedin-post-grid.is-count-3 > .linkedin-post-tile:nth-child(3),
    .linkedin-post-grid.is-count-5 > .linkedin-post-tile:nth-child(5) {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
    }
    .linkedin-post-header {
        gap: .5rem;
        padding: .75rem .75rem .5rem;
    }
    .linkedin-post-logo {
        width: 40px;
        height: 40px;
    }
    .linkedin-post-brand {
        height: 1rem;
    }
    .linkedin-post-text {
        padding: 0 .75rem .75rem;
    }
    .linkedin-post-more {
        right: .75rem;
    }
    .post .linkedin-post-article,
    .linkedin-post-reshare {
        margin: .5rem .75rem;
    }
}
h3 {
    font-size: 1.2rem;
}
/* Natively rendered post, shaped after LinkedIn's own embed. Borrows the frame's border
   treatment so a post that falls back to the embed doesn't look like a different component.

   Everything below is written as `.post .linkedin-…` on purpose: the normaliser at the top
   of this file sets text-align, line-height and color with !important on every p/span/div
   inside a .post, and would otherwise justify the header and flatten these colours. */
.linkedin-post {
  border-radius: 12px;
  border: 1px solid rgba(19, 80, 164, 0.15);
  overflow: hidden;
  background: #fff;
}

/* --- header: logo, name, tagline, age, wordmark --- */
.linkedin-post-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .75rem;
  padding: 1rem 1rem .5rem;
}
.linkedin-post-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
}
.post .linkedin-post-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left !important;
}
.post .linkedin-post-name {
  font-weight: 700;
  color: #000 !important;
  text-decoration: none;
  line-height: 1.25rem !important;
  overflow-wrap: anywhere;
}
.post .linkedin-post-name:hover {
  color: #1350a4 !important;
  text-decoration: underline;
}
.post .linkedin-post-tagline,
.post .linkedin-post-age {
  font-size: .8rem;
  line-height: 1.1rem !important;
  color: rgba(0, 0, 0, .6) !important;
}
/* One line only: a long tagline must not push the wordmark or the photos around. */
.post .linkedin-post-tagline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.linkedin-post-brand {
  height: 1.25rem;
  width: auto;
  flex-shrink: 0;
}

/* --- commentary --- */
.linkedin-post-text {
  position: relative;
  padding: 0 1rem .75rem;
}
.post .linkedin-post-body {
  /* Commentary keeps its hard line breaks, and they carry the post's structure. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left !important;
}
.linkedin-post-body.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.linkedin-mention {
  font-weight: 600;
}
.post .linkedin-hashtag {
  color: #1350a4 !important;
}
/* Tucked against the end of the last clamped line, over a fade, the way "…more" reads on
   LinkedIn. Once expanded it becomes an ordinary trailing link. */
.linkedin-post-more {
  position: absolute;
  right: 1rem;
  bottom: .75rem;
  border: 0;
  padding: 0 0 0 1.75rem;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 1.25rem);
  color: rgba(0, 0, 0, .6);
  font-size: .9rem;
}
.linkedin-post-text.is-expanded .linkedin-post-more {
  position: static;
  padding-left: 0;
  background: none;
  display: block;
}
.linkedin-post-more:hover {
  color: #1350a4;
  text-decoration: underline;
}

/* --- photo mosaic --- */
.linkedin-post-grid {
  display: grid;
  gap: 2px;
  background: #fff;
}
.linkedin-post-grid.is-count-1 { grid-template-columns: 1fr; }
.linkedin-post-grid.is-count-2 { grid-template-columns: 1fr 1fr; }
/* One tall tile on the left, two stacked on the right. */
.linkedin-post-grid.is-count-3 { grid-template-columns: 1fr 1fr; }
.linkedin-post-grid.is-count-3 > .linkedin-post-tile:first-child { grid-row: span 2; }
.linkedin-post-grid.is-count-4 { grid-template-columns: 1fr 1fr; }
/* Two across the top, three below -- the layout LinkedIn uses past four photos. */
.linkedin-post-grid.is-count-5 { grid-template-columns: repeat(6, 1fr); }
.linkedin-post-grid.is-count-5 > .linkedin-post-tile:nth-child(-n+2) { grid-column: span 3; }
.linkedin-post-grid.is-count-5 > .linkedin-post-tile:nth-child(n+3) { grid-column: span 2; }

.linkedin-post-tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: #f3f2ef;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.linkedin-post-grid.is-count-1 > .linkedin-post-tile {
  aspect-ratio: auto;
  max-height: 34rem;
}
.linkedin-post-grid.is-count-3 > .linkedin-post-tile:first-child {
  aspect-ratio: 2 / 3;
}
.linkedin-post-tile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Photos reveal on the shared .reveal observer, staggered per tile by --reveal-i set in
   news.js. The shared rule slides its target up 12px, which in a 2px-gap grid means tiles
   overlapping their neighbours mid-flight -- so the tile only fades, and the settling
   motion moves to the image inside it, where overflow:hidden clips it and no gaps open up.
   The global prefers-reduced-motion block in motion.css zeroes all of this. */
.js .linkedin-post-tile.reveal,
.js .linkedin-post-video.reveal {
  transform: none;
}
.js .linkedin-post-tile.reveal > img,
.js .linkedin-post-video.reveal > img {
  transform: scale(1.04);
  transition: transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 60ms);
}
.js .linkedin-post-tile.reveal.is-visible > img,
.js .linkedin-post-video.reveal.is-visible > img {
  transform: none;
}
/* The play button belongs to the frame, not the still, so it fades with the card rather
   than drifting with the zoom. */
.js .linkedin-post-video.reveal .linkedin-post-play {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out),
              background-color var(--dur-fast) var(--ease-standard);
}
.js .linkedin-post-video.reveal.is-visible .linkedin-post-play {
  opacity: 1;
}
.linkedin-post-grid.is-count-1 > .linkedin-post-tile > img {
  object-fit: contain;
  max-height: 34rem;
}
.post .linkedin-post-overflow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  color: #fff !important;
  font-size: 1.75rem;
  font-weight: 600;
}

/* --- video: a still with a play button, click goes to LinkedIn --- */
.linkedin-post-video {
  position: relative;
  display: block;
  background: #000;
}
.linkedin-post-video > img {
  width: 100%;
  max-height: 34rem;
  object-fit: contain;
  display: block;
}
.linkedin-post-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, .45);
  transition: background-color var(--dur-fast) var(--ease-standard);
}
/* The triangle, drawn rather than shipped as an asset. */
.linkedin-post-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.linkedin-post-video:hover .linkedin-post-play {
  background: rgba(0, 0, 0, .7);
}

/* --- link preview and reshare --- */
.post .linkedin-post-article,
.linkedin-post-reshare {
  display: block;
  margin: .5rem 1rem;
  padding: .75rem;
  border: 1px solid rgba(19, 80, 164, 0.15);
  border-radius: 8px;
  text-decoration: none;
}
.post .linkedin-post-article-title,
.post .linkedin-post-reshare-label {
  display: block;
  font-weight: 700;
  color: #000 !important;
  text-align: left !important;
}
.post .linkedin-post-article-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .9rem;
  color: rgba(0, 0, 0, .7) !important;
  text-align: left !important;
}
.post .linkedin-post-article-source {
  display: block;
  font-size: .8rem;
  color: rgba(0, 0, 0, .6) !important;
}
.post .linkedin-post-article:hover .linkedin-post-article-title {
  color: #1350a4 !important;
  text-decoration: underline;
}

/* --- footer --- */
.linkedin-post-footer {
  display: flex;
  justify-content: center;
  padding: .5rem 1rem;
  border-top: 1px solid rgba(19, 80, 164, 0.15);
  margin-top: .5rem;
}
.post .linkedin-post-link {
  font-size: .9rem;
  color: #1350a4 !important;
  text-decoration: none;
}
.linkedin-post-link:hover {
  text-decoration: underline;
}

.linkedin-frame-outer {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(19, 80, 164, 0.15);
  overflow: hidden;
}

.linkedin-frame-outer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.linkedin-frame-outer.at-bottom::after {
  opacity: 0;
}

.linkedin-frame-wrapper {
  width: 100%;
  max-height: 700px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 80, 164, 0.35) transparent;
}
.linkedin-frame-wrapper::-webkit-scrollbar {
  width: 6px;
}
.linkedin-frame-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.linkedin-frame-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(19, 80, 164, 0.35);
  border-radius: 6px;
}
.linkedin-frame-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: rgba(19, 80, 164, 0.55);
}

.linkedin-frame {
  width: 100%;
  height: 700px;
  border: 0;
  display: block;
}
@media (max-width: 1100px){
    .linkedin-frame {
      height: 650px;
    }
    .linkedin-frame-wrapper {
      max-height: 700px;
    }
}