/* Share buttons (17 Nov 2026): masthead, menu, a "pass it on" band after the milestones, and the footer. Loaded after polish.css. */

.hd-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hd-share__btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px;
  border: 1px solid var(--hd-line); border-radius: var(--cds-radius, 2px); background: transparent;
  color: var(--color-fg); font: 500 13px/1.2 var(--hd-text, inherit); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.hd-share__btn:hover { border-color: var(--hd-c1); background: color-mix(in srgb, var(--hd-c1) 10%, transparent); }
.hd-share__btn:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 2px; }
.hd-share__btn--linkedin { background: var(--hd-c1); border-color: var(--hd-c1); color: #fff; }
.hd-share__btn--linkedin:hover { background: color-mix(in srgb, var(--hd-c1) 85%, #000); color: #fff; }
.hd-share__ok { color: var(--color-good, #13917a); font-weight: 600; }
.hd-share__fallback { flex-basis: 100%; margin: 4px 0 0; font-size: 12px; color: var(--color-fg-muted); }
.hd-share__url { user-select: all; font-family: ui-monospace, monospace; color: var(--color-fg); word-break: break-all; }
.hd-share__label { margin: 0 0 8px; font-size: 13px; color: var(--color-fg-muted); }

/* Masthead: under the refresh line */
.hd-share-wrap--mast { margin-top: 24px; }

/* Menu: compact, light on the dark menu */
.hd-side__share { margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hd-side__share .hd-share { gap: 6px; padding: 0 12px; }
.hd-side__share .hd-share__btn { padding: 4px 8px; font-size: 12px; color: rgba(255, 255, 255, .86); border-color: rgba(255, 255, 255, .22); }
.hd-side__share .hd-share__btn:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.hd-side__share .hd-share__btn--linkedin { background: rgba(255, 255, 255, .92); border-color: transparent; color: #2f2d2e; }
.hd-side__share .hd-share__fallback, .hd-side__share .hd-share__url { color: rgba(255, 255, 255, .7); }

/* Band after the milestones */
.hd-share-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 56px; align-items: center;
  margin: 56px 0; padding: 32px; background: color-mix(in srgb, var(--hd-c1) 8%, transparent); border-left: 4px solid var(--hd-c1);
}
.hd-share-band h2 { margin: 4px 0 8px; font-family: var(--hd-display); font-weight: 600; font-size: clamp(22px, 2.4cqi, 28px); letter-spacing: -.01em; }
.hd-share-band .hd-sub { margin: 0; }
.hd-share--band .hd-share__btn { padding: 8px 14px; font-size: 14px; }

/* Footer */
.hd-foot__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%; margin-top: 12px; }
.hd-foot__share-label { font-size: 12px; color: var(--color-fg-muted); }
.hd-foot__share .hd-share { gap: 6px; }
.hd-foot__share .hd-share__btn { padding: 3px 8px; font-size: 12px; }
.hd-foot__in { flex-wrap: wrap; }

@container hd (max-width: 900px) {
  .hd-side__share { display: none; }
}
@container hd (max-width: 760px) {
  .hd-share-band { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
}
