/* Elijah Decimus v1.26 — final premium micro-polish.
   Deliberately restrained: rhythm, surfaces, controls and responsive consistency only. */

:root{
  --ed-premium-radius:18px;
  --ed-premium-radius-sm:12px;
  --ed-premium-shadow:0 14px 38px rgba(28,35,33,.075);
  --ed-premium-shadow-hover:0 18px 46px rgba(28,35,33,.11);
  --ed-premium-border:rgba(38,57,51,.12);
  --ed-premium-focus:#8b6f34;
}

/* Consistent page rhythm across secondary routes. */
.premium-platform-page main{
  text-rendering:optimizeLegibility;
}
.premium-platform-page :where(.v2-section-inner,.page-hero-inner,.hub-hero-inner,.hubs-section-inner,.hubs-welcome-inner){
  width:min(1180px,calc(100% - 40px));
  margin-inline:auto;
}
.premium-platform-page :where(.v2-section,.section,.flow-section,.hubs-section){
  scroll-margin-top:96px;
}
.premium-platform-page :where(.v2-section-head,.hubs-heading,.page-heading){
  margin-bottom:clamp(22px,3vw,34px);
}
.premium-platform-page :where(.v2-section-head,.hubs-heading,.page-heading) > :where(p,.v2-lead){
  max-width:70ch;
}

/* Shared card finish: clearer grouping without turning every surface into a heavy box. */
.premium-platform-page :where(.v2-card,.hub-card,.action-card,.step-card,.flow-card,.cloud-card,.ward-card,.result-card,.learning-card){
  border-radius:var(--ed-premium-radius);
  border-color:var(--ed-premium-border);
  box-shadow:var(--ed-premium-shadow);
}
@media (hover:hover){
  .premium-platform-page :where(a.v2-card,a.hub-card,a.action-card,a.flow-card,a.learning-card,.hub-cover-link){
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  }
  .premium-platform-page :where(a.v2-card,a.hub-card,a.action-card,a.flow-card,a.learning-card,.hub-cover-link):hover{
    transform:translateY(-2px);
    box-shadow:var(--ed-premium-shadow-hover);
  }
}

/* Buttons share one confident, tactile proportion. */
.premium-platform-page :where(.button,.v2-button,.cloud-button,.journey-button){
  min-height:46px;
  border-radius:999px;
  padding-inline:clamp(18px,2.2vw,24px);
  font-weight:700;
  letter-spacing:.005em;
}
.premium-platform-page :where(button,a,input,select,textarea):focus-visible{
  outline:3px solid color-mix(in srgb,var(--ed-premium-focus) 70%,white);
  outline-offset:3px;
}

/* Form fields: calm premium controls with consistent touch targets. */
.premium-platform-page :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  min-height:48px;
  border-radius:var(--ed-premium-radius-sm);
}
.premium-platform-page textarea{min-height:120px;}

/* Image treatment stays editorial and controlled. */
.premium-platform-page :where(.hub-cover-card,.hub-cover-link){
  border-radius:var(--ed-premium-radius);
  overflow:hidden;
}
.premium-platform-page :where(.hub-cover-card img,.learning-card img){
  object-fit:cover;
}

/* Navigation and footer feel intentionally separated from content. */
.premium-platform-page .unified-footer{
  margin-top:clamp(48px,7vw,84px);
}
.premium-platform-page .footer-links a{
  text-underline-offset:3px;
}

/* Mobile rhythm: remove the cramped/oversized feeling on secondary screens. */
@media (max-width:720px){
  .premium-platform-page :where(.v2-section-inner,.page-hero-inner,.hub-hero-inner,.hubs-section-inner,.hubs-welcome-inner){
    width:min(100% - 28px,1180px);
  }
  .premium-platform-page :where(.v2-section,.section,.flow-section,.hubs-section){
    padding-block:clamp(34px,9vw,52px);
  }
  .premium-platform-page :where(.v2-card,.hub-card,.action-card,.step-card,.flow-card,.cloud-card,.ward-card,.result-card,.learning-card){
    border-radius:16px;
  }
  .premium-platform-page :where(.button,.v2-button,.cloud-button,.journey-button){
    min-height:48px;
  }
}

@media (prefers-reduced-motion:reduce){
  .premium-platform-page *{
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
}
