.header-actions { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.header-share {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: .875rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}
.header-share:hover { text-decoration-color: currentColor; }
.footer-share { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.footer-share:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .header-actions { gap: 12px; }
  .header-share { font-size: .8125rem; }
}
@media (max-width: 360px) {
  .site-header:has(.header-actions) { padding-left: 16px; padding-right: 16px; }
  .header-actions { gap: 10px; }
  .site-header .header-contact span { margin-left: 3px; }
}

#share-card {
  width: min(480px, calc(100% - 32px));
  max-width: 480px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #24272b;
  background: #fff;
  border: 1px solid #b9b6ae;
  border-radius: 8px;
  text-align: left;
}
#share-card::backdrop { background: rgba(22,24,27,.62); backdrop-filter: blur(5px); }
body:has(#share-card[open]) { overflow: hidden; }
#share-card .share-card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #555b60; font-size: .875rem; }
#share-card .share-card-top button { min-height: 44px; padding: 8px 0 8px 12px; border: 0; background: transparent; color: inherit; }
#share-card h2 { margin: 14px 0 8px; font: 400 2.35rem/1.1 Newsreader, Georgia, serif; letter-spacing: -.035em; }
#share-card .share-card-intro { margin: 0 0 18px; color: #555b60; font-size: .9375rem; line-height: 1.55; }
#share-card .share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#share-card .share-actions button,
#share-card .share-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #929da2;
  border-radius: 3px;
  background: #fff;
  color: #293e46;
  font: inherit;
  font-size: .9375rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
#share-card .share-actions button:hover,
#share-card .share-actions a:hover { background: #edf1f1; }
#share-card .share-actions [data-share-copy] { background: #293e46; color: #fff; border-color: #293e46; }
#share-card .share-actions [data-share-copy]:hover { background: #192e36; }
#share-card [hidden] { display: none !important; }
#share-card .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#share-card .share-status { min-height: 1.4em; margin: 12px 0 0; color: #293e46; font-size: .8125rem; line-height: 1.5; }
#share-card .share-fallback label { display: block; margin: 8px 0 6px; font-size: .875rem; }
#share-card .share-fallback input { width: 100%; min-height: 44px; padding: 10px; border: 1px solid #667278; border-radius: 3px; background: #fff; color: #24272b; font: inherit; font-size: 1rem; }
#share-card .share-downloads { margin-top: 20px; border-top: 1px solid #d7d8d6; }
#share-card .share-downloads h3 { margin: 17px 0 5px; font-size: .9375rem; font-weight: 600; }
#share-card .share-downloads p { margin: 0 0 8px; color: #555b60; font-size: .8125rem; line-height: 1.5; }
#share-card .share-downloads a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid #e1e2e0; color: #293e46; font-size: .875rem; text-underline-offset: 3px; }
#share-card .share-downloads a:hover { text-decoration: underline; }
#share-card :is(a, button, input):focus-visible { outline: 3px solid #315e74; outline-offset: 3px; }
@media (max-width: 600px) {
  #share-card { width: 100%; max-width: 100%; max-height: calc(100dvh - 16px); margin: auto auto 0; padding: 18px 20px max(20px, env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; border-bottom: 0; }
}
@media (max-width: 360px) { #share-card .share-actions { grid-template-columns: 1fr; } }
@media (forced-colors: active) {
  #share-card .share-actions [data-share-copy] { border: 2px solid ButtonText; }
  #share-card::backdrop { background: Canvas; opacity: .75; }
}

.header-share { min-width: 44px; }
