/* Responsive tweaks + utilities */

@media (max-width: 768px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .story-inner { padding: 1.6rem; }
  .page-hero { padding-bottom: 1.8rem; }
  .rule-item { grid-template-columns: 1fr; gap: .8rem; }
  .rule-item .num { width: 44px; height: 44px; }
}

@media (max-width: 520px) {
  .hero { min-height: 540px; }
  .hero h1 { font-size: 2.35rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .unit-title-row { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* Print-friendly */
@media print {
  .site-header, .site-footer, .hero-meta, .hero-scroll, .hero-actions, .cta-band { display: none !important; }
  .hero { min-height: auto; height: 100vh; color: #000; }
  .hero-slide::after { display: none; }
}

/* Back to top */
.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 50;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sea-900); color: #f6dfc6; text-decoration: none;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .3s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent-500); color: #fff; }
