/* InsightWAVE v10 – surgical fixes, after all legacy/v9 styles. */
/* Keep the bottom stripe INSIDE each menu item. v9 pseudo-elements were cut off
   by .sub_menu > ul { overflow:hidden } and the stripe sat outside the dt. */
@media (min-width:768px){
  .iw-modern #header .sub_menu{
    background:linear-gradient(to bottom,#fff 0%,#fff calc(100% - 9px),#d0d4d7 calc(100% - 9px),#d0d4d7 100%)!important;
    border-bottom:0!important;
  }
  .iw-modern #header .sub_menu>ul>li{padding-top:0!important;vertical-align:top}
  .iw-modern #header .sub_menu dl{position:relative}
  .iw-modern #header .sub_menu dt{
    box-sizing:border-box!important;
    min-height:0!important;
    height:143px!important;
    padding:0!important;
    margin:0!important;
    background-position:center 19px!important;
  }
  .iw-modern #header .sub_menu dt a{
    box-sizing:border-box!important;
    min-height:0!important;
    height:143px!important;
    padding:0 5px 19px!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
    text-align:center;
    line-height:1.35;
  }
  .iw-modern #header .sub_menu dt::after,
  .iw-modern #header .sub_menu dt.iw-active::after{
    content:''!important;
    position:absolute!important;
    bottom:0!important;
    left:0!important;
    right:0!important;
    height:9px!important;
    width:auto!important;
    background:transparent!important;
    pointer-events:none;
    transition:background-color .18s ease;
  }
  .iw-modern #header .sub_menu dl:hover dt::after,
  .iw-modern #header .sub_menu dl:focus-within dt::after,
  .iw-modern #header .sub_menu dt.iw-active::after{background:#103c62!important}
}
/* Both cards keep identical fixed external dimensions on desktop.
   Internal gutters grow while content is tightened, rather than enlarging cards. */
@media (min-width:768px){
  .iw-modern .iw-contact-wrap{align-items:stretch}
  .iw-modern .iw-contact-main,
  .iw-modern .iw-contact-side{
    height:360px;
    min-height:0;
    box-sizing:border-box;
    padding:34px 38px!important;
  }
  .iw-modern .iw-contact-side .iw-check{margin-top:15px}
  .iw-modern .iw-contact-side .iw-check li{margin-bottom:8px;line-height:1.8;font-size:13px;padding-left:19px}
  .iw-modern .iw-contact-main .iw-btn-primary{margin-top:auto;align-self:flex-end}
}
@media (min-width:768px) and (max-width:1000px){
  .iw-modern .iw-contact-main,.iw-modern .iw-contact-side{height:395px;padding:29px!important}
  .iw-modern .iw-contact-side .iw-check li{font-size:12.5px}
}
@media (max-width:767px){
  .iw-modern .iw-contact-main,.iw-modern .iw-contact-side{height:auto;min-height:0;padding:27px!important}
  .iw-modern .iw-contact-main{min-height:245px}
  .iw-modern .iw-contact-side .iw-check li{line-height:1.85}
}
/* Restore missing small WordPress-theme icons via local SVG equivalents. */
.iw-archive .lst_col li dl dt,.iw-archive .d_info dt{
  flex:0 0 20px;
  display:inline-block!important;
  width:20px!important;
  height:18px!important;
  margin:0 3px 0 6px!important;
  padding:0!important;
  vertical-align:middle;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:17px 17px!important;
  overflow:hidden;
  text-indent:-9999px!important;
  white-space:nowrap;
}
.iw-archive .lst_col li dl dt.date,.iw-archive .d_info dt.date{background-image:url("../images/icons/clock.svg")!important}
.iw-archive .lst_col li dl dt.cate{background-image:url("../images/icons/category.svg")!important;background-size:14px 14px!important}
.iw-archive .lst_col li dl dt.hit,.iw-archive .d_info dt.hit{background-image:url("../images/icons/eye.svg")!important;background-size:20px 20px!important}
.iw-archive .lst_col li dl{display:flex;align-items:center;flex-wrap:wrap;gap:3px;padding:9px 0!important}
.iw-archive .lst_col li dl dd{top:auto!important;position:static!important;margin:0 4px 0 0!important;line-height:18px}
.iw-archive .d_info{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin:0 0 16px}
.iw-archive .d_info dd{display:inline-block;margin:0 6px 0 0;line-height:18px}
/* The original 'MORE >' badge was supplied by a missing bitmap. */
.iw-archive .lst_col li .btn_more{
  display:inline-flex!important;
  align-items:center;justify-content:center;
  background:#3c7ca9!important;
  color:white!important;
  border-radius:3px;
  width:49px;height:17px;
  right:24px;bottom:64px;
  padding:0;
  line-height:1;
  text-indent:0!important;
  font-size:0!important;
  letter-spacing:0;
  white-space:nowrap;
  position:absolute;
  z-index:2;
}
.iw-archive .lst_col li .btn_more::after{content:'MORE ›';font:700 9px/1 Arial,sans-serif;color:#fff}
.iw-archive .lst_col li .btn_more:hover{background:#103c62!important}
/* No prev/next overlay for article; sidebar is always a thumbnail+title list. */
.iw-archive .foot_atc{display:none!important}
.iw-archive .view_article #aside .iw-aside-list li{
  position:static!important;
  height:auto!important;
  min-height:76px;
  padding:9px 0!important;
  margin:0!important;
  overflow:visible!important;
  border-bottom:1px solid #e0e6eb;
}
.iw-archive .view_article #aside .iw-aside-list li a{
  display:grid!important;
  grid-template-columns:60px minmax(0,1fr);
  align-items:start;
  gap:10px;
  text-decoration:none;
  color:#183f5d;
}
.iw-archive .view_article #aside .iw-aside-list img{
  display:block!important;
  position:static!important;
  width:60px!important;
  height:60px!important;
  max-width:60px!important;
  object-fit:cover;
  background:#eef3f7;
}
.iw-archive .view_article #aside .iw-aside-list strong{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:12px;
  line-height:1.5;
  font-weight:700;
  white-space:normal;
  word-break:keep-all;
  margin:0!important;
}
@media(max-width:780px){
  .iw-archive .lst_col li .btn_more{right:14px;bottom:52px}
}
@media(max-width:480px){
  .iw-archive .lst_col li .btn_more{right:10px;bottom:39px}
  .iw-archive .lst_col li dl{font-size:10px;gap:1px}
  .iw-archive .lst_col li dl dt{width:15px!important;flex-basis:15px;background-size:14px 14px!important;margin:0 2px!important}
}
