/* VHR Blog 2026: standalone pages (W2). Loaded after blog.css, only on the branded 404 (flag vhr_blog_404) and /news/ (flag vhr_blog_news).
   Both pages use the category components of blog.css (hero, search form, tabs, lead, cards, pagination, CTA) through the
   wrapper class .vhr-cat-page, so this file only holds what is specific to the 404. */

/* ---- footer reaches the viewport bottom on short pages (old 404 left a white gap under the footer) ---- */
body.vhr-404-view #randomApp { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.vhr-404-view #randomApp > .vhr-404-page { flex: 1 0 auto; }
body.vhr-404-view #randomApp > footer, body.vhr-404-view #randomApp > .elementor-location-footer { flex: none; }

/* ---- hero: text + search on the left, branded art panel on the right ---- */
.vhr-404-hero { padding: clamp(40px, 5vw, 80px) 0 clamp(36px, 4vw, 64px); background: var(--paper); }
.vhr-404-hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.vhr-404-page .vhr-eyebrow { margin: 0 0 18px; }
.vhr-404-page .vhr-404-title { font-size: clamp(36px, 4.8vw, 62px); text-wrap: balance; }
.vhr-404-page .vhr-cat-intro { max-width: 560px; }
.vhr-404-page .vhr-cat-search { max-width: 560px; }
.vhr-404-home { margin: 18px 0 0; font-size: 15px; }
.vhr-404-home a { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan-700); font: 600 15px "Outfit", sans-serif; text-decoration: none; }
.vhr-404-home a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vhr-404-home svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.vhr-404-home a:hover svg { transform: translateX(3px); }

.vhr-404-art { position: relative; aspect-ratio: 5 / 4; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); background:
    radial-gradient(circle at 85% 12%, rgba(0,160,223,.55), transparent 55%),
    radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(135deg, #0f151d 0%, #0b3a52 62%, #006a99 100%); }
.vhr-404-art__n { display: inline-flex; align-items: baseline; gap: .02em; font: 800 clamp(96px, 13vw, 190px) / 1 "Outfit", sans-serif; letter-spacing: -.04em; color: #fff; padding-bottom: .06em; border-bottom: 4px solid #00a0df; }
.vhr-404-art__o { color: #00a0df; }

/* ---- shortcuts ---- */
.vhr-404-links { padding: clamp(36px, 4.5vw, 64px) 0; background: var(--paper-2); }
.vhr-post-page .vhr-404-sec-t { font: 700 clamp(24px, 2.6vw, 32px) / 1.2 "Outfit", sans-serif; letter-spacing: -.02em; color: var(--text); }
.vhr-404-sc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.vhr-sc { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ic go" "t t" "d d"; gap: 14px 12px; align-content: start; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none !important; color: inherit !important; transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.vhr-sc:hover { border-color: var(--cyan-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.vhr-sc__ic { grid-area: ic; width: 46px; height: 46px; border-radius: 12px; background: var(--cyan-050); color: var(--cyan-700); display: inline-flex; align-items: center; justify-content: center; }
.vhr-sc__t { grid-area: t; font: 700 20px / 1.2 "Outfit", sans-serif; letter-spacing: -.01em; color: var(--text); margin-top: 6px; }
.vhr-sc__d { grid-area: d; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.vhr-sc__go { grid-area: go; align-self: start; color: var(--cyan-700); }
.vhr-sc__go svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.vhr-sc:hover .vhr-sc__go svg { transform: translateX(3px); }

/* ---- latest articles ---- */
.vhr-404-latest { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); background: var(--paper); }
.vhr-404-latest__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.vhr-404-latest__all { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan-700); font: 600 15px "Outfit", sans-serif; text-decoration: none; }
.vhr-404-latest__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.vhr-404-latest__all svg { width: 16px; height: 16px; }
.vhr-404-latest .vhr-grid { margin-top: 0; }

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .vhr-404-sc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 1024px) {
  /* two columns: show two articles, no orphan third card */
  .vhr-404-latest .vhr-grid > .vhr-card:nth-child(3) { display: none; }
}
@media (max-width: 860px) {
  .vhr-404-hero__in { grid-template-columns: 1fr; }
  .vhr-404-art { order: -1; aspect-ratio: auto; min-height: 150px; padding: 20px 0; border-radius: 16px; }
  .vhr-404-art__n { font-size: clamp(84px, 24vw, 130px); }
}
@media (max-width: 560px) {
  .vhr-404-sc { grid-template-columns: 1fr; gap: 12px; }
  .vhr-sc { grid-template-columns: auto 1fr auto; grid-template-areas: "ic t go" "ic d go"; gap: 2px 14px; align-items: center; padding: 16px 18px; }
  .vhr-sc__t { margin-top: 0; font-size: 18px; }
  .vhr-sc__d { font-size: 14.5px; }
  .vhr-sc__ic { grid-row: 1 / span 2; }
  .vhr-sc__go { align-self: center; }
  .vhr-404-page .vhr-cat-search { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .vhr-sc, .vhr-sc__go svg, .vhr-404-home svg { transition: none; }
  .vhr-sc:hover { transform: none; }
}
