
    .share-details {
      width: min(660px, 100%);
      margin: clamp(22px, 3vh, 33px) auto 0;
      text-align: center;
    }
    .share-toggle {
      display: inline-block;
      padding: .7em 1.2em .75em;
      background: var(--pink);
      border: 3px solid var(--ink);
      box-shadow: 5px 5px 0 var(--ink);
      color: var(--ink);
      font-size: clamp(.91rem, 1.2vw, 1.06rem);
      font-weight: 900;
      letter-spacing: .038em;
      cursor: pointer;
      list-style: none;
      transform: rotate(.7deg);
      transition: background .17s ease, color .17s ease, transform .17s ease;
    }
    .share-toggle::-webkit-details-marker { display: none; }
    .share-toggle::marker { content: ''; }
    .share-toggle:hover, .share-toggle:focus-visible {
      background: var(--ink); color: var(--yellow); transform: rotate(0deg);
    }
    .share-toggle:focus-visible { outline: 3px solid var(--red); outline-offset: 6px; }
    .share-toggle .share-glyph { padding-left: .6em; font-size: 1.25em; }
    .share-details[open] .share-glyph { display: inline-block; transform: rotate(45deg); }
    .share-menu {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
      padding: 20px 10px 4px;
    }
    .share-option {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 45px;
      padding: 10px 13px;
      border: 2px solid var(--ink);
      background: var(--paper);
      color: var(--ink);
      font: inherit;
      font-size: clamp(.79rem, 1vw, .9rem);
      font-weight: 850;
      text-decoration: none;
      line-height: 1.2;
      cursor: pointer;
      box-shadow: 3px 3px 0 var(--red);
      transition: background .17s ease, color .17s ease, transform .17s ease;
    }
    .share-option:visited { color: var(--ink); }
    .share-option:hover, .share-option:focus-visible {
      background: var(--ink); color: var(--paper); transform: translate(-1px,-1px);
    }
    .share-option:focus-visible { outline: 3px solid var(--violet); outline-offset: 5px; }
    .share-option[hidden] { display: none !important; }
    .share-status { margin: 14px auto 0; font-size: .9rem; font-weight: 800; }
    .share-status[hidden] { display: none; }

    /* Fediverse: first-party server discovery, styled as a compact punk sticker. */
    .fediverse-panel {
      width: min(570px, 100%);
      margin: 17px auto 0;
      padding: clamp(14px, 2vw, 23px);
      border: 3px solid var(--ink);
      border-top: 7px solid var(--red);
      background: var(--yellow);
      box-shadow: 7px 7px 0 var(--pink);
      text-align: left;
    }
    .fediverse-panel[hidden], .fediverse-result[hidden], .fediverse-manual[hidden] { display: none !important; }
    .fediverse-heading {
      display: inline-block;
      margin: 0 0 10px;
      padding: .28em .5em;
      background: var(--ink);
      color: var(--yellow);
      font-size: .95rem;
      font-weight: 900;
      letter-spacing: .035em;
    }
    .fediverse-explanation { margin: 0 0 15px; font-size: .87rem; line-height: 1.5; }
    .fediverse-label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 900; }
    .fediverse-input {
      display: block;
      width: 100%;
      min-height: 47px;
      padding: 10px 12px;
      border: 2px solid var(--ink);
      border-radius: 0;
      background: var(--paper);
      color: var(--ink);
      font: inherit;
      font-size: 1rem;
    }
    .fediverse-input:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
    .fediverse-hint { display: block; margin: 7px 0 13px; font-size: .79rem; line-height: 1.45; }
    .fediverse-remember {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin: 0 0 15px;
      font-size: .82rem;
      line-height: 1.4;
    }
    .fediverse-remember input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--red); }
    .fediverse-submit {
      display: inline-block;
      min-height: 45px;
      padding: 10px 15px;
      border: 2px solid var(--ink);
      border-radius: 0;
      background: var(--ink);
      color: var(--paper);
      font: inherit;
      font-size: .87rem;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 4px 4px 0 var(--pink);
    }
    .fediverse-submit:hover, .fediverse-submit:focus-visible { color: var(--ink); background: var(--pink); }
    .fediverse-submit:disabled { opacity: .65; cursor: progress; }
    .fediverse-feedback { margin: 13px 0 0; font-size: .86rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
    .fediverse-feedback:empty { display: none; }
    .fediverse-result { margin: 13px 0 0; }
    .fediverse-result .share-option { margin: 8px 8px 3px 0; }
    .fediverse-manual { margin-top: 11px; }
    .fediverse-manual p { margin: 0 0 10px; font-size: .85rem; line-height: 1.48; }
    .fediverse-manual .share-option { margin: 0 8px 8px 0; }
    .fediverse-post-text {
      display: block;
      margin: 12px 0 0;
      width: 100%;
      min-height: 110px;
      padding: 9px;
      border: 2px solid var(--ink);
      background: var(--paper);
      color: var(--ink);
      font: inherit;
      font-size: .79rem;
      line-height: 1.45;
      resize: vertical;
    }
    .fediverse-post-text[hidden] { display: none !important; }

.share-block [hidden] { display: none !important; }
.share-block .fediverse-panel p { font-size: 1rem; line-height: 1.5; text-align: left; }
.share-block .fediverse-panel { box-sizing: border-box; max-width:100%; }
.share-block :focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Keep link and button states consistent, including already visited composers. */
.share-block .share-option,
.share-block .share-option:link,
.share-block .share-option:visited {
  background: var(--ink);
  color: var(--paper);
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}
.share-block .share-option:hover,
.share-block .share-option:focus-visible,
.share-block .share-option:active {
  background: var(--yellow);
  color: var(--ink);
}
/* Override general form-input sizing only for the opt-in checkbox. */
.share-block .fediverse-remember {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  /* Reserve room for both controls' outward keyboard-focus outlines. */
  margin-top: 16px;
}
.share-block .fediverse-remember input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  margin-top: 2px;
}
