/* Elijah Decimus Platform v1.11 — current production theme layer */

/* Build 219 — full platform consistency */
:root{
  --ed219-bg:#faf6ee;
  --ed219-surface:#fffdf9;
  --ed219-surface-2:#f2ece2;
  --ed219-ink:#181b1d;
  --ed219-muted:#666b6e;
  --ed219-line:#e2dbcf;
  --ed219-gold:#c39a42;
  --ed219-dark:#101518;
  --ed219-radius:18px;
  --ed219-shadow:0 8px 26px rgba(43,34,21,.055);
}
html{background:var(--ed219-bg)}
body:not(.print-page){
  background:linear-gradient(135deg,#fbf8f2 0%,#f6efe5 58%,#fbfaf7 100%)!important;
  color:var(--ed219-ink)!important;
}
.site-header.unified-header{
  background:rgba(255,253,248,.98)!important;
  border-bottom:1px solid var(--ed219-line)!important;
  box-shadow:0 5px 20px rgba(35,28,18,.055)!important;
}
.site-header.unified-header .main-nav{
  display:flex!important;align-items:center!important;gap:5px!important;
  overflow-x:auto!important;overscroll-behavior-x:contain!important;scrollbar-width:none!important;
}
.site-header.unified-header .main-nav::-webkit-scrollbar{display:none}
.site-header.unified-header .main-nav a{
  min-height:42px!important;padding:0 13px!important;border-radius:10px!important;
  color:#35393b!important;background:transparent!important;border:0!important;
  font-weight:720!important;text-decoration:none!important;white-space:nowrap!important;
}
.site-header.unified-header .main-nav a:hover,.site-header.unified-header .main-nav a:focus-visible{
  background:#f1ebdf!important;color:#15181a!important;
}
.site-header.unified-header .main-nav a.is-current,
.site-header.unified-header .main-nav a[aria-current="page"]{
  background:#eee6d7!important;color:#15181a!important;
  box-shadow:inset 0 -2px var(--ed219-gold)!important;
}
.site-header.unified-header .main-nav .urgent-link{
  border:1px solid #d0b06a!important;background:#fff9ec!important;
}
body.ed219-platform main:not(.ed216-dashboard){
  width:min(1180px,calc(100% - 28px))!important;
  margin:18px auto 74px!important;
}
body.ed219-platform .breadcrumbs,
body.ed219-platform .flow-breadcrumb{
  margin:4px 0 14px!important;color:#78694f!important;font-size:.9rem!important;
}
body.ed219-platform :is(.page-hero,.flow-hero,.cloud-hero,.hubs-welcome,.hero-panel,.section-hero){
  background:linear-gradient(145deg,#11171a,#1c2225)!important;
  border:1px solid #273035!important;border-radius:22px!important;
  color:#fff!important;padding:clamp(28px,4vw,48px)!important;
  margin-bottom:16px!important;box-shadow:0 14px 36px rgba(15,19,21,.12)!important;
}
body.ed219-platform :is(.page-hero,.flow-hero,.cloud-hero,.hubs-welcome,.hero-panel,.section-hero) :is(h1,h2,h3){
  color:#fff!important;letter-spacing:-.04em!important;
}
body.ed219-platform :is(.page-hero,.flow-hero,.cloud-hero,.hubs-welcome,.hero-panel,.section-hero) p{
  color:#dfe2e1!important;max-width:72ch!important;line-height:1.6!important;
}
body.ed219-platform :is(.card,.hub-card,.resource-card,.course-card,.cloud-card,.flow-card,.panel,.search-panel,.dashboard-card,.tool-card,.guide-card,.collection-card){
  background:var(--ed219-surface)!important;border:1px solid var(--ed219-line)!important;
  border-radius:var(--ed219-radius)!important;box-shadow:var(--ed219-shadow)!important;
}
body.ed219-platform :is(.card,.hub-card,.resource-card,.course-card,.cloud-card,.flow-card,.panel,.search-panel,.dashboard-card,.tool-card,.guide-card,.collection-card) :is(h2,h3,h4){
  color:var(--ed219-ink)!important;letter-spacing:-.025em!important;
}
body.ed219-platform :is(.card,.hub-card,.resource-card,.course-card,.cloud-card,.flow-card,.panel,.search-panel,.dashboard-card,.tool-card,.guide-card,.collection-card) p{
  color:var(--ed219-muted)!important;line-height:1.55!important;
}
body.ed219-platform :is(.tabs,.tab-list,.filter-tabs,.category-tabs,.chip-row,.pill-row){
  gap:8px!important;overflow-x:auto!important;scrollbar-width:none!important;
}
body.ed219-platform :is(.tabs,.tab-list,.filter-tabs,.category-tabs,.chip-row,.pill-row)::-webkit-scrollbar{display:none}
body.ed219-platform :is(.tab,.tab-button,.filter-chip,.chip,.pill){
  background:#fff!important;color:#414548!important;border:1px solid var(--ed219-line)!important;
  border-radius:999px!important;box-shadow:none!important;white-space:nowrap!important;
}
body.ed219-platform :is(.tab,.tab-button,.filter-chip,.chip,.pill).active,
body.ed219-platform :is(.tab,.tab-button,.filter-chip,.chip,.pill)[aria-selected="true"]{
  background:#171c1f!important;color:#fff!important;border-color:#171c1f!important;
}
body.ed219-platform :is(input,select,textarea){
  background:#fff!important;border:1px solid #cfd2d3!important;border-radius:12px!important;color:#202426!important;
}
body.ed219-platform :is(input,select,textarea):focus{
  outline:3px solid rgba(195,154,66,.16)!important;border-color:#a98642!important;
}
body.ed219-platform :is(.btn,.button,button[type="submit"],a.primary-action,.primary-button){
  border-radius:11px!important;
}
body.ed219-platform :is(.btn-primary,.button-primary,.primary-button){
  background:#1b2023!important;color:#fff!important;border-color:#1b2023!important;
}
body.ed219-platform img{
  max-width:100%;
}
body.ed219-platform .unified-footer{
  background:#101518!important;color:#ecece8!important;border-top:0!important;
}
body.ed219-platform .unified-footer a{color:#e5e4df!important}

/* Primary dashboard remains the visual anchor. */
.ed216-dashboard{background:transparent!important}
.ed216-welcome{box-shadow:0 16px 40px rgba(38,29,18,.12)!important}
.ed216-route-grid>a,.ed216-tool-grid a,.ed216-important-grid a{
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;
}
.ed216-route-grid>a:hover,.ed216-tool-grid a:hover,.ed216-important-grid a:hover{
  transform:translateY(-1px)!important;box-shadow:0 8px 20px rgba(42,33,21,.07)!important;border-color:#cbb989!important;
}

@media(max-width:760px){
  body.ed219-platform main:not(.ed216-dashboard){
    width:calc(100% - 18px)!important;margin:10px auto 86px!important;
  }
  .site-header.unified-header{position:relative!important}
  .site-header.unified-header .main-nav a{min-height:38px!important;padding:0 10px!important;font-size:.86rem!important}
  body.ed219-platform :is(.page-hero,.flow-hero,.cloud-hero,.hubs-welcome,.hero-panel,.section-hero){
    padding:22px 19px!important;border-radius:18px!important;
  }
  body.ed219-platform :is(.card,.hub-card,.resource-card,.course-card,.cloud-card,.flow-card,.panel,.search-panel,.dashboard-card,.tool-card,.guide-card,.collection-card){
    border-radius:16px!important;
  }
}



/* Build 220 — navigation + interaction QA */
:root{
  --ed220-focus:#c49a43;
  --ed220-touch:44px;
}
a,button,input,select,textarea{ -webkit-tap-highlight-color:transparent; }
a,button,[role="button"],summary{ touch-action:manipulation; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:3px solid rgba(196,154,67,.28)!important;
  outline-offset:3px!important;
}
.skip-to-content:focus{
  position:fixed!important;
  top:10px!important;left:10px!important;z-index:9999!important;
  width:auto!important;height:auto!important;padding:10px 14px!important;
  clip:auto!important;overflow:visible!important;
  background:#111619!important;color:#fff!important;border-radius:10px!important;
}
.site-header.unified-header .main-nav a,
.ed216-mobile-dock a,
.ed216-pills a,
.ed216-sidebar a{
  min-height:var(--ed220-touch)!important;
}
button:not(.icon-only),.btn,.button,[role="button"]{
  min-height:var(--ed220-touch);
}
.ed216-mobile-dock{
  padding-bottom:max(6px,env(safe-area-inset-bottom))!important;
}
.ed216-dashboard{padding-bottom:max(90px,calc(76px + env(safe-area-inset-bottom)))!important}
@media(min-width:601px){
  .ed216-dashboard{padding-bottom:84px!important}
}
@media(max-width:760px){
  .site-header.unified-header .main-nav{
    scroll-snap-type:x proximity!important;
    padding-inline:4px!important;
  }
  .site-header.unified-header .main-nav a{
    scroll-snap-align:start!important;
  }
  body.ed219-platform :is(.tabs,.tab-list,.filter-tabs,.category-tabs,.chip-row,.pill-row){
    padding-bottom:4px!important;
    scroll-snap-type:x proximity!important;
  }
  body.ed219-platform :is(.tab,.tab-button,.filter-chip,.chip,.pill){
    min-height:40px!important;
    scroll-snap-align:start!important;
  }
  .ed216-route-grid>a,.ed216-tool-grid a,.ed216-important-grid a{
    min-height:64px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}


/* Elijah Decimus Platform v1.1 production polish */
.ed-release-sr-only{
  position:absolute!important;
  width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}
img:not([width]){height:auto}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto!important}
}
