/* HireNestle — app.css
 * Progressive enhancements layered on top of the critical CSS that ships inline
 * in templates/layout.php. The site is fully styled WITHOUT this file; everything
 * here is non-blocking polish (focus rings, print, motion, ad sizing).
 *
 * No build step is required to deploy. If you later adopt a Tailwind pipeline,
 * compile its output into THIS file (see docs/DEPLOY.md).
 */

/* --- Accessibility: visible keyboard focus --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary, #2563EB);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- Live AdSense unit: reserve space, prevent overflow --- */
.adslot-live {
  margin: 16px 0;
  min-height: 90px;
  overflow: hidden;
}
.adslot-live ins { display: block; }

/* --- Honour reduced-motion preference --- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Smooth in-page anchor scrolling (only when motion is allowed) --- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* --- Print: drop chrome, keep content readable --- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .header-actions,
  .adslot,
  .adslot-live,
  .pagination,
  .filters {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; padding: 0; }
  .prose, .post, .card { border: 0; box-shadow: none; padding: 0; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}
