/* Site extras (added 2026-12-04), loaded after style.css by the Blade layout and the static home page. */

/* Header logo: the PNG is transparent; show it whole, at its real proportions, without the white disc.
   Over the hero video (transparent header) it is drawn white, on the gold bar in its own colours. */
.brand img{background:none;border-radius:0;padding:0;width:auto;height:clamp(40px,4.2vw,56px);aspect-ratio:728/653;object-fit:contain}
.is-transparent:not(.scrolled) .brand img{filter:brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,.35))}

/* Smooth page-to-page transitions (browsers with cross-document View Transitions). */
@media (prefers-reduced-motion: no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.25s}
}

/* Back to top */
.to-top{position:fixed;inset-inline-end:18px;bottom:96px;z-index:60;width:46px;height:46px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--navy);color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.2);cursor:pointer;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .25s,transform .25s,background .2s}
.to-top svg{width:20px;height:20px}
.to-top.show{opacity:1;transform:none;pointer-events:auto}
.to-top:hover{background:var(--gold);color:var(--navy)}
.to-top:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* Reading progress on article pages */
.read-progress{position:fixed;inset-inline-start:0;top:0;width:100%;height:3px;z-index:200;background:var(--gold);transform-origin:left center;transform:scaleX(0);pointer-events:none}
[dir="rtl"] .read-progress{transform-origin:right center}

/* Share button on article pages */
.share-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 4px}
.share-btn{display:inline-flex;align-items:center;gap:8px;border:1.5px solid var(--navy);background:transparent;color:var(--navy);border-radius:999px;padding:8px 20px;font:inherit;font-weight:700;cursor:pointer;transition:background .2s,color .2s}
.share-btn svg{width:18px;height:18px}
.share-btn:hover{background:var(--navy);color:#fff}
.share-btn:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.share-msg{font-size:14px;color:var(--navy)}

@media print{.to-top,.read-progress,.share-row{display:none!important}}
