/* Article controls only. Article content and the global navigation keep their existing styles. */
[data-uacb-page="article"] .uacb-article-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 18px 0 22px;
  padding: 14px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  background: linear-gradient(115deg, #f8faff, #fff 70%);
  box-shadow: 0 4px 16px rgb(8 26 56 / 3%);
}

.uacb-article-actions .uacb-article-tools,
.uacb-article-actions .uacb-article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.uacb-article-actions .uacb-article-share { gap: 6px; }

.uacb-article-actions .uacb-article-action,
.uacb-article-actions .uacb-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #d4deec;
  border-radius: 11px;
  background: #fff;
  color: #233d62;
  font: 700 .83rem/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.uacb-article-actions svg { flex: 0 0 auto; width: 20px; height: 20px; }
.uacb-article-actions .uacb-article-action:hover { border-color: #a9bbd7; background: #f0f5fd; color: #173b68; }
.uacb-article-actions .uacb-article-pdf {
  border-color: #1766f8;
  background: linear-gradient(115deg, #1766f8, #2c58d1);
  color: #fff;
  box-shadow: 0 3px 9px rgb(23 102 248 / 14%);
}
.uacb-article-actions .uacb-article-pdf:hover { border-color: #124dd0; background: #1257dd; color: #fff; }
.uacb-article-actions [data-uacb-article-cite] svg { color: #7452bc; }
.uacb-article-actions [data-uacb-article-cite][aria-expanded="true"] { border-color: #c6b5e8; background: #f4effe; color: #593896; }
.uacb-article-actions .uacb-article-edit svg { color: #087e76; }
.uacb-article-actions .uacb-share-link { width: 44px; height: 44px; padding: 10px; }
.uacb-article-actions .uacb-share-link:hover { background: #edf3fc; border-color: #b5c5de; box-shadow: 0 2px 7px rgb(8 26 56 / 8%); }
.uacb-article-actions .uacb-share-linkedin { color: #0a66c2; background: #f1f7fd; border-color: #d7e5f4; }
.uacb-article-actions .uacb-share-facebook { color: #0866ff; background: #f1f6ff; border-color: #dae5fb; }
.uacb-article-actions .uacb-share-x { color: #17233a; background: #f5f7fa; border-color: #dce2ea; }
.uacb-article-actions .uacb-share-whatsapp { color: #087c45; background: #edf9f2; border-color: #ccead8; }
.uacb-article-actions .uacb-copy-check { display: none; }
.uacb-article-actions [data-copy-state="copied"] { color: #087c45; border-color: #9ed3b5; background: #edf9f2; }
.uacb-article-actions [data-copy-state="copied"] .uacb-copy-default { display: none; }
.uacb-article-actions [data-copy-state="copied"] .uacb-copy-check { display: block; }
.uacb-article-actions a:focus-visible,
.uacb-article-actions button:focus-visible,
.uacb-article-actions input:focus-visible { outline: 3px solid #1766f8; outline-offset: 3px; }

[data-uacb-page="article"] .uacb-article-actions .uacb-action-status {
  flex: 1 0 100%;
  max-width: none;
  margin: 0;
  color: #36526f;
  font-size: .8rem;
  line-height: 1.5;
}
.uacb-article-actions .uacb-action-status:empty { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.uacb-article-actions .uacb-copy-panel { flex: 1 0 100%; min-width: 0; padding-top: 4px; }
.uacb-article-actions .uacb-copy-panel[hidden] { display: none; }
.uacb-article-actions .uacb-copy-panel label { display: block; margin: 0 0 6px; color: #233d62; font-size: .84rem; font-weight: 700; }
.uacb-article-actions .uacb-copy-panel input { box-sizing: border-box; display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b9c9df; border-radius: 9px; background: #fff; color: #233d62; font: 400 16px/1.4 system-ui, sans-serif; }
[data-uacb-page="article"] .uacb-article-actions .uacb-copy-help { max-width: none; margin: 6px 0 0; color: #566b87; font-size: .8rem; line-height: 1.5; }

@media (max-width: 680px) {
  [data-uacb-page="article"] .uacb-article-actions { gap: 12px; padding: 12px; }
  .uacb-article-actions .uacb-article-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .uacb-article-actions .uacb-article-action { flex-direction: column; min-width: 0; min-height: 66px; padding: 9px 4px; gap: 5px; font-size: .76rem; }
  .uacb-article-actions .uacb-article-share { width: 100%; justify-content: center; padding-top: 11px; border-top: 1px solid #e0e7f1; }
}

@media (prefers-reduced-motion: reduce) {
  .uacb-article-actions .uacb-article-action,
  .uacb-article-actions .uacb-share-link { transition: none; }
}

@media print {
  [data-uacb-page="article"] .uacb-article-actions { display: none !important; }
}
