.article-index-bar .fm-wrap {
  align-items: center;
}

.article-index-title {
  min-width: 0;
}

.article-index-bar h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.articles-page .article-index-title p {
  margin: 0.15rem 0 0;
  color: var(--fm-muted);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.35;
}

.article-index-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.article-search {
  margin: 0;
}

.article-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.article-search input {
  width: min(100%, 16rem);
  border: 1px solid var(--fm-line);
  border-radius: 0;
  background: var(--fm-surface);
  color: var(--fm-ink);
  font-family: var(--fm-font-body);
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.45rem 0.75rem;
}

.article-search input:hover {
  border-color: var(--fm-accent);
}

.article-search input:focus-visible {
  outline: 2px solid var(--fm-brand);
  outline-offset: 3px;
}

.article-index-list {
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
}

.article-count {
  margin: 0;
  color: var(--fm-muted);
  font-size: 0.95rem;
}

.article-empty {
  margin: 1.25rem 0 0;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.article-card {
  background: var(--fm-surface);
  border: 1px solid var(--fm-line);
  box-shadow: var(--fm-shadow);
  min-width: 0;
}

.article-card[hidden] {
  display: none;
}

.article-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.article-card a:hover {
  text-decoration: none;
}

.article-card:hover,
.article-card:focus-within {
  border-color: var(--fm-accent);
  box-shadow: inset 0 0 0 1px var(--fm-accent), var(--fm-shadow);
}

.article-card img,
.article-card-media {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  display: block;
  background:
    linear-gradient(160deg, var(--fm-wash), var(--fm-line));
}

.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
  padding: 1.3rem 1.4rem 1.35rem;
}

.articles-page .article-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  text-wrap: balance;
}

.articles-page .article-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--fm-muted);
  font-size: 0.92rem;
}

.article-toolbar {
  position: sticky;
  top: 4.2rem;
  z-index: 20;
  background: rgba(247, 250, 251, 0.94);
  border-bottom: 1px solid var(--fm-line);
  backdrop-filter: blur(8px);
}

.article-toolbar .fm-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.article-toolbar .article-reader-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem 1rem;
}

.article-reader-bar .article-back {
  justify-self: start;
  min-width: 0;
}

.article-type-size {
  display: inline-flex;
  align-items: stretch;
  justify-self: center;
  border: 1px solid var(--fm-line);
  background: var(--fm-surface);
}

.article-type-size button {
  appearance: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.35rem;
  margin: 0;
  padding: 0.42rem 0.58rem 0.38rem;
  border: 0;
  border-right: 1px solid var(--fm-line);
  background: transparent;
  color: var(--fm-muted);
  font-family: var(--fm-font-display);
  font-weight: 550;
  line-height: 1;
  cursor: pointer;
}

.article-type-size button:last-child {
  border-right: 0;
}

.article-type-size button[data-size="small"] { font-size: 0.78rem; }
.article-type-size button[data-size="medium"] { font-size: 1.02rem; }
.article-type-size button[data-size="large"] { font-size: 1.28rem; }

.article-type-size button:hover {
  color: var(--fm-brand-deep);
}

.article-type-size button[aria-pressed="true"] {
  background: var(--fm-wash);
  color: var(--fm-ink);
}

.article-type-size button:focus-visible {
  outline: 2px solid var(--fm-brand);
  outline-offset: 2px;
  z-index: 1;
}

.article-reader-bar .article-pager {
  justify-self: end;
}

#article-reader {
  --article-body: 1.125rem;
}

#article-reader[data-type-size="medium"] {
  --article-body: 1.3rem;
}

#article-reader[data-type-size="large"] {
  --article-body: 1.5rem;
}

.article-back,
.article-pager a,
.article-pager span {
  font-family: var(--fm-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.article-back {
  color: var(--fm-brand-deep);
}

.article-back::before {
  content: "\2190\00a0";
}

.article-back:hover {
  color: var(--fm-brand);
}

.article-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-pager a,
.article-pager span,
.article-pager button {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--fm-line);
  border-radius: 0;
  background: var(--fm-surface);
  color: var(--fm-brand-deep);
  font-family: var(--fm-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.article-pager a:hover,
.article-pager button:hover {
  border-color: var(--fm-accent);
  text-decoration: none;
}

.article-pager span[aria-disabled="true"] {
  color: var(--fm-muted);
  background: var(--fm-bg);
}

.article-column {
  width: min(100% - 2.5rem, 42rem);
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2.5rem, 6vw, 4rem);
  scroll-margin-top: 7.5rem;
}

.article-column:focus {
  outline: none;
}

.article-column h1.article-title-quote {
  font-style: italic;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.article-meta div {
  margin: 0;
  min-width: 0;
}

.article-meta dt {
  margin: 0;
  color: var(--fm-muted);
  font-family: var(--fm-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta dd {
  margin: 0.15rem 0 0;
  color: var(--fm-ink);
  font-size: 0.98rem;
  line-height: 1.4;
}

.article-permalink {
  overflow-wrap: anywhere;
}

.article-subhead {
  margin: -0.2rem 0 1.35rem;
  color: var(--fm-muted);
  font-family: var(--fm-font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
}

.article-column p,
.article-column li {
  font-size: 1.125rem;
  line-height: 1.7;
}

.article-column p:not(.article-point):not(.article-subhead) {
  font-size: var(--article-body, 1.125rem);
}

.article-column h2 {
  font-size: 1.55rem;
  line-height: 1.25;
  margin-top: 2.1rem;
  margin-bottom: 0.7em;
}

.article-column a {
  color: var(--fm-brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.article-column a:hover {
  color: var(--fm-brand-deep);
}

.article-column .sendMessage {
  color: var(--fm-brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.article-column .sendMessage:hover {
  color: var(--fm-brand-deep);
}

.article-column blockquote {
  margin: 1.5rem 0;
}

.article-figure {
  margin: 1.75rem 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure figcaption {
  margin-top: 0.4rem;
  color: var(--fm-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: right;
}

.article-points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: point;
}

.article-points > li {
  position: relative;
  margin: 0 0 1.85rem;
  padding-left: 3.25rem;
  counter-increment: point;
}

.article-points > li::before {
  content: counter(point);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  background: var(--fm-wash);
  color: var(--fm-brand-deep);
  font-family: var(--fm-font-display);
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1;
}

.articles-page .article-point {
  margin: 0 0 0.45rem;
  color: var(--fm-ink);
  font-family: var(--fm-font-display);
  font-size: 1.3rem;
  font-weight: 550;
  line-height: 1.3;
}

.article-bullets {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.2rem;
}

.article-bullets li::marker {
  color: var(--fm-accent);
}

.article-column .article-note {
  color: var(--fm-muted);
  font-size: 0.95rem;
}

.article-footnote {
  margin: 2rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--fm-line);
  background: var(--fm-wash);
}

.article-footnote p {
  margin: 0;
  font-size: 0.95rem;
}

.article-related {
  border-top: 1px solid var(--fm-line);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}

.article-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.15rem;
}

.article-related-head h2 {
  margin: 0;
}

.article-related-all {
  margin-left: auto;
  color: var(--fm-brand);
  font-family: var(--fm-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.article-related-all:hover {
  color: var(--fm-brand-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (min-width: 760px) {
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .article-related .article-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .article-index-actions {
    width: 100%;
  }

  .article-search {
    flex: 1 1 10rem;
    min-width: 0;
  }

  .article-search input {
    width: 100%;
  }

  .article-card img,
  .article-card-media {
    height: 11rem;
  }

  .article-card-meta {
    flex-direction: column;
    gap: 0.2rem;
  }

  .article-points > li {
    padding-left: 2.8rem;
  }

  .article-toolbar .article-reader-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .article-type-size {
    grid-column: 1 / -1;
    order: 3;
  }

  .article-reader-bar .article-pager {
    order: 2;
  }
}
