/* AllmaNews 1.2.18: article actions below hero + bottom reading progress. */
.an-article-page .an-google-actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px; padding: 20px 10px 22px; margin: 0 0 24px;
  border-bottom: 1px solid #e7edf4; max-width: 100%;
}
.an-article-page .an-google-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; max-width: 100%; padding: 9px 13px;
  color: #23344b; background: #fff; border: 1px solid #cbd5df;
  border-radius: 7px; box-shadow: 0 2px 9px rgba(19,43,71,.045);
  text-decoration: none; text-align: center;
  font: 500 12px/1.4 Roboto, Arial, sans-serif;
  transition: border-color .17s ease, background .17s ease, box-shadow .17s ease;
}
.an-article-page .an-google-action strong { color: #162b48; font-weight: 750; }
.an-article-page .an-google-action:hover,
.an-article-page .an-google-action:focus-visible {
  border-color: #7098c7; background: #f7faff; color: #142b4b;
  box-shadow: 0 4px 14px rgba(28,71,129,.12);
}
.an-article-page .an-google-icon { display: block; width: 21px; height: 21px; flex: 0 0 21px; }
.an-article-page .an-google-actions--standard .an-google-action { min-height: 46px; padding: 12px 17px; font-size: 13px; }
.an-article-page .an-google-actions--compact .an-google-action { min-height: 37px; padding: 7px 11px; }
.an-article-page .an-google-actions + .an-article-body { margin-top: 0; }
.an-article-page .an-reading-dock {
  position: fixed; z-index: 98; bottom: 0; left: 0; right: 0;
  min-height: 48px; background: rgba(255,255,255,.97); border-top: 1px solid #e0e8f1;
  box-shadow: 0 -7px 24px rgba(14,38,72,.08); backdrop-filter: blur(10px);
  color: #385273; font: 600 12px/1.2 Roboto, Arial, sans-serif;
  transition: opacity .2s ease, transform .2s ease;
}
.an-article-page .an-reading-dock.is-finished { opacity: 0; transform: translateY(100%); pointer-events: none; }
.an-article-page .an-reading-dock-inner {
  min-height: 48px; max-width: 1490px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 15px;
}
.an-article-page .an-reading-caption { white-space: nowrap; }
.an-article-page .an-reading-track {
  position: relative; display: block; flex: 1; height: 5px; min-width: 40px; overflow: hidden;
  border-radius: 12px; background: #e7edf4;
}
.an-article-page .an-reading-fill {
  position: absolute; inset: 0; border-radius: inherit; background: #ed003b;
  transform: scaleX(0); transform-origin: left center;
}
.an-article-page .an-reading-percent { width: 40px; color: #193965; font-variant-numeric: tabular-nums; text-align: right; }
body.single-post:has(#an-reading-dock) { padding-bottom: 48px; }
@media (max-width: 580px) {
  .an-article-page .an-google-actions { gap: 8px; padding: 17px 0 20px; margin-bottom: 19px; }
  .an-article-page .an-google-action, .an-article-page .an-google-actions--standard .an-google-action {
    width: 100%; min-height: 44px; padding: 10px 12px; font-size: 12px;
  }
  .an-article-page .an-reading-dock { min-height: calc(43px + env(safe-area-inset-bottom, 0px)); }
  .an-article-page .an-reading-dock-inner { min-height: 43px; padding: 0 16px; gap: 10px; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .an-article-page .an-reading-caption { font-size: 10px; }
  .an-article-page .an-reading-percent { font-size: 11px; width: 32px; }
  body.single-post:has(#an-reading-dock) { padding-bottom: calc(43px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .an-article-page .an-google-action, .an-article-page .an-reading-dock { transition: none; }
}
