/* =========================
   Easy Digital Tools Sidebar System (CLEAN)
   ========================= */

*,
*::before,
*::after{
  box-sizing:border-box;
}

/* =========================
   Layout variables
   ========================= */

:root{
  --edt-main-width:920px;
  --edt-sidebar-width:340px;
  --edt-layout-gap:20px;
  --edt-shell-max:1280px;
  --edt-sticky-top:18px;
}

body.edt-layout-wide{
  --edt-main-width:1100px;
  --edt-shell-max:1460px;
}

/* =========================
   Header width when sidebar active
   ========================= */

body.edt-has-sidebar .site-header,
body.edt-has-sidebar .hub-header,
body.edt-has-sidebar .ip-header,
body.edt-has-sidebar .header-inner,
body.edt-has-sidebar .top-inner{
  max-width:var(--edt-shell-max) !important;
}

/* =========================
   Layout wrappers
   ========================= */

.page-wrap{
  max-width:var(--edt-shell-max);
  margin:0 auto 30px auto;
  display:flex;
  align-items:flex-start;
  gap:var(--edt-layout-gap);
}

.page-wrap > .container{
  width:var(--edt-main-width);
  max-width:var(--edt-main-width);
  flex:0 0 var(--edt-main-width);
  margin:0;
}

body.edt-has-sidebar .page-shell{
  max-width:var(--edt-shell-max);
  margin:26px auto 30px auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:minmax(0, var(--edt-main-width)) var(--edt-sidebar-width);
  gap:var(--edt-layout-gap);
  align-items:start;
}

/* =========================
   Sidebar
   ========================= */

.edt-sidebar{
  width:var(--edt-sidebar-width);
  max-width:var(--edt-sidebar-width);
  flex:0 0 var(--edt-sidebar-width);

  background:#ffffff;
  border-radius:12px;
  box-shadow:0px 0px 4px 2px #2a2b3c;

  padding-top:12px;
  padding-bottom:20px;

  position:sticky;
  top:var(--edt-sticky-top);
  align-self:start;
}

.edt-sidebar-inner{
  padding:0 20px;
}

/* =========================
   Sidebar cards
   ========================= */

.edt-side-card{
  border-radius:12px;
  margin-bottom:10px;
}

.edt-promo-card{
  border:0;
  background:transparent;
}

/* =========================
   promo system 
   ========================= */

.edt-promo-slot{
  width:300px;
  margin:0 auto;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:12px;
  overflow:hidden;
}

.edt-promo-slot a{
  display:block;
  width:100%;
  height:100%;
}

.edt-promo-slot img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Sizes */

.edt-promo-size-300x250{
  width:300px;
  height:250px;
}

.edt-promo-size-300x200{
  width:300px;
  height:200px;
}

.edt-promo-size-300x100{
  width:300px;
  height:100px;
}

/* =========================
   Responsive
   ========================= */

@media (max-width:1270px){

  .page-wrap{
    display:block;
    max-width:var(--edt-main-width);
  }

  .page-wrap > .container{
    width:100%;
    max-width:var(--edt-main-width);
    margin:0 auto 20px auto;
  }

  body.edt-has-sidebar .page-shell{
    grid-template-columns:1fr;
  }

  .edt-sidebar{
    width:340px;
    max-width:340px;
    margin:0 auto;
    position:static;
  }
}

@media (max-width:800px){

  .page-wrap{
    padding-left:10px;
    padding-right:10px;
  }

  body.edt-has-sidebar .page-shell{
    padding-left:10px;
    padding-right:10px;
  }

  .edt-sidebar{
    width:100%;
    max-width:340px;
  }
}




.edt-promo-overlay{
  position:relative;
}

.edt-promo-overlay a{
  position:relative;
  display:block;
}

.edt-promo-label{
  position:absolute;
  top:0px;
  left:0px;

  background:rgba(0,0,0,0.65);
  color:#fff;

  font-size:14px;
  font-weight:700;
  padding:6px 10px;
  border-radius:6px;

  line-height:1.2;
}


/* =========================
   sidebar internal text promos
   ========================= */

.sidebar-block {
  border: 2px solid #00619d;
  background: #f1ffff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.sidebar-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.sidebar-item {
  margin-bottom: 12px;
}

.sidebar-item:last-child {
  margin-bottom: 0;
}

.sidebar-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border: 2px solid #00619d;
  background: #f1ffff;
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 3px;
  padding-bottom: 3px;
  margin-bottom:10px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}

.sidebar-link:hover {
	text-decoration: none !important;

}

.sidebar-link:active {
  transform: translateY(-1px);
  text-decoration: none !important;
}

.sidebar-head {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 2px;
  color: #00619d;
  transition: color .16s ease;
}

.sidebar-link:hover .sidebar-head {
  
}

.sidebar-desc {
  font-size: 12px;
  color: #333;
  line-height: 1.4;
}


/* =========================
   Sidebar Top Tools (tight)
   ========================= */

.side-tools {
  margin-bottom: 10px;
  padding:0;
}

.side-tools-title{
  font-size:18px;
  font-weight:700;
  color:#0f2a3a;
  margin-bottom:8px;
}

.side-tools-list{
  list-style:none;
  padding:0;
  margin:0;
}

.side-tools-list li{
  margin:0;
  padding:0;
}

.side-tools-link{
  display:block;
  width:100%;
  box-sizing:border-box;

  padding:8px 8px;
  margin:10px 0;

  border-radius:8px;
  border:1px solid #00619d;

  background:rgba(255,255,255,0.7);
  color:#0066cc;

  font-size:14px;
  font-weight:600;
  line-height:1.2;

  text-decoration:none !important;

  transition:transform .12s ease, opacity .12s ease;
}

.side-tools-link:hover{
  transform:translateY(-1px);
  opacity:0.95;
  text-decoration:none !important;
}

.side-tools-link:active{
  transform:translateY(0);
}
