/* Each related Decoder topic is an independent touch target, even on a narrow phone. */
.ws-reader--decode .ws-reader-chips{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .65rem}
.ws-reader--decode .ws-reader-chips a{display:inline-flex;align-items:center;min-height:44px;padding:.15rem .35rem;text-decoration:underline;text-underline-offset:.16em}
.ws-reader-copy-feedback{font:inherit;color:var(--petrol);line-height:1.35;max-width:100%}

/* Enlarged-text fallback for the small legacy share buttons with no icon. */
.ws-reader .ws-reader-share .ws-reader-share-btn:not(:has(> svg)) {
  flex: 0 1 auto;
  max-width: 100%;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: normal;
}

/* Keep one clear X label instead of an X mark plus a second literal X. */
.ws-reader .ws-reader-share .ws-reader-share-btn#twitter-btn > svg,
.ws-reader .ws-reader-share .ws-reader-share-btn[aria-label*=" on X"] > svg {
  display: none;
}

/* Controls and breadcrumbs shared by the published English and Arabic readers. */
.ws-reader .ws-reader-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  width: min(100%, 70ch);
  margin-inline: auto;
  margin-block: .9rem 1.25rem;
}

.ws-reader .ws-reader-share .ws-reader-share-btn {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-width: 44px;
  min-height: 44px;
  min-block-size: 44px;
  padding: .45em .7em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}

.ws-reader .ws-reader-share .ws-reader-share-btn > svg {
  display: block;
  flex: 0 0 1em;
  width: 1em;
  height: 1em;
  min-width: 1em;
  min-height: 1em;
  inline-size: 1em;
  block-size: 1em;
  min-inline-size: 1em;
  min-block-size: 1em;
  max-width: 1em;
  max-height: 1em;
  max-inline-size: 1em;
  max-block-size: 1em;
  margin: 0;
  overflow: hidden;
}

.ws-reader .ws-reader-breadcrumb {
  width: min(100%, 70ch);
  margin-inline: auto;
  margin-block: .25rem .8rem;
}

.ws-reader .ws-reader-breadcrumb a:any-link {
  text-decoration-line: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.ws-reader .ws-reader-breadcrumb :where(ol, ul) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: .2rem;
  list-style: none;
}

.ws-reader .ws-reader-breadcrumb li {
  min-width: 0;
}
