/* ADMARKET V236 | OWNER-controlled top campaign + 3 PC vertical + 3 mobile horizontal slots. */
body.portal-home .adm-top-campaign[hidden]{display:none!important}
body.portal-home .adm-top-campaign{
  max-width:1410px;margin:15px auto 0;padding:0 12px;position:relative;
  background:transparent;min-width:0;
}
body.portal-home .adm-top-campaign .adm-ad-picture-wrap{
  display:flex;align-items:center;justify-content:center;min-height:104px;height:clamp(104px,10vw,155px);
  border-radius:18px;background:#f2f8ff;overflow:hidden;border:1px solid #e2ebf6;
}
body.portal-home .adm-top-campaign picture{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
body.portal-home .adm-top-campaign img{display:block;max-width:100%;width:100%;height:100%;object-fit:contain;object-position:center center}
body.portal-home .adm-ad-label{
  position:absolute;left:15px;bottom:8px;z-index:1;padding:2px 6px;border-radius:4px;
  background:rgba(24,40,64,.72);font-size:9px;font-weight:800;color:#fff;letter-spacing:.6px;
}
body.portal-home .adm-top-campaign .adm-ad-label{left:24px;bottom:7px}
body.portal-home .adm-side-ad-group{display:flex;flex-direction:column;gap:13px;min-width:0}
body.portal-home .adm-side-ad-group h2{display:flex;align-items:center;gap:8px;font-size:15px;color:#213b57;margin:2px 1px -2px;font-weight:850}
body.portal-home .adm-side-ad-group h2 span{font-size:9px;background:#f4f6fa;color:#8190a1;padding:2px 5px;border:1px solid #dce5ed;border-radius:3px}
body.portal-home .adm-side-ad-unit{
  min-width:0;width:100%;position:relative;min-height:240px;aspect-ratio:3/4;
  border-radius:16px;overflow:hidden;border:1px solid #dfe9f4;
  box-shadow:0 4px 15px rgba(12,58,114,.035);background:#f6faff;
}
body.portal-home .adm-side-ad-unit .adm-ad-picture-wrap,body.portal-home .adm-mobile-ad-unit .adm-ad-picture-wrap{
  display:flex;width:100%;height:100%;align-items:center;justify-content:center;
}
body.portal-home .adm-side-ad-unit picture,body.portal-home .adm-mobile-ad-unit picture{display:flex;width:100%;height:100%;justify-content:center;align-items:center}
body.portal-home .adm-side-ad-unit img,body.portal-home .adm-mobile-ad-unit img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center}
body.portal-home .adm-ad-placeholder{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:100%;height:100%;min-height:inherit;gap:12px;text-align:center;
  background:linear-gradient(145deg,#f1f7ff,#fff 70%);
  color:#60758e;
}
body.portal-home .adm-ad-placeholder strong{font-size:14px;color:#567492}
body.portal-home .adm-ad-placeholder a{font-size:12px;color:#0769d7;text-decoration:none;font-weight:800}
body.portal-home .adm-ad-placeholder a:hover{text-decoration:underline}
body.portal-home .adm-ad-placeholder-badge{font-size:10px;color:#a3b1c0;letter-spacing:1.2px}
body.portal-home .adm-side-ad-unit:hover{border-color:#a5cefb}
body.portal-home .adm-mobile-ad-unit{display:none}

/* Wide, Naver-style structured portal footer; only linked services actually existing in Admarket. */
body.portal-home .adm-portal-footer-v236{padding:0;background:#f8fafc;border-top:1px solid #e1e7ef;color:#4e6177;text-align:left!important}
body.portal-home .adm-footer-notice{border-bottom:1px solid #e2e8f0;background:#f8fafc}
body.portal-home .adm-footer-notice-inner{max-width:1460px;margin:auto;padding:18px 25px;display:flex;align-items:center;gap:18px;font-size:13px}
body.portal-home .adm-footer-notice-inner strong{font-size:14px;color:#243c57;white-space:nowrap}
body.portal-home .adm-footer-notice-inner span{flex:1;line-height:1.55}
body.portal-home .adm-footer-notice-inner a{white-space:nowrap;font-size:12px;color:#44607e;font-weight:800;text-decoration:none}
body.portal-home .adm-portal-footer-v236 .portal-footer-inner{max-width:1460px;margin:auto;padding:12px 25px 27px}
body.portal-home .adm-footer-directory{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.2fr) 240px;gap:24px;padding:25px 0;border-bottom:1px solid #e2e8f0}
body.portal-home .adm-footer-directory-group h2{font-size:13px;font-weight:900;color:#2f455a;margin:0 0 12px}
body.portal-home .adm-footer-link-row{display:flex;flex-wrap:wrap;gap:9px 13px;line-height:1.8}
body.portal-home .adm-footer-link-row a,body.portal-home .adm-footer-bottom-links a{font-size:12px;color:#6a798e;text-decoration:none}
body.portal-home .adm-footer-link-row a:hover,body.portal-home .adm-footer-bottom-links a:hover{color:#0965d8;text-decoration:underline}
body.portal-home .adm-footer-directory-side{border-left:1px solid #e0e7ee;padding-left:23px}
body.portal-home .adm-footer-directory-side strong{font-size:13px;color:#334a61}
body.portal-home .adm-footer-directory-side p{font-size:12px;line-height:1.7;margin:8px 0}
body.portal-home .adm-footer-directory-side a{display:inline-block;border:1px solid #c8dbea;border-radius:9px;color:#0c63c0;background:#fff;padding:8px 12px;font-size:12px;font-weight:800;text-decoration:none}
body.portal-home .adm-footer-bottom{display:flex;gap:45px;align-items:center;padding:20px 0 6px}
body.portal-home .adm-footer-bottom .portal-footer-brand{flex:none;width:194px}
body.portal-home .adm-footer-bottom .portal-footer-brand img{width:194px;height:auto}
body.portal-home .adm-footer-bottom-links{display:flex;flex-wrap:wrap;gap:15px;margin:0 0 9px}
body.portal-home .adm-portal-footer-v236 small{display:block;margin:4px 0;color:#8594a7;font-size:11px;line-height:1.5}

@media(max-width:920px){
 body.portal-home .adm-side-ad-group{display:none!important}
 body.portal-home .adm-top-campaign{margin:9px 13px 0;padding:0}
 body.portal-home .adm-top-campaign .adm-ad-picture-wrap{height:104px;min-height:0;border-radius:12px}
 body.portal-home .adm-top-campaign .adm-ad-label{left:9px;bottom:6px;font-size:8px}
 body.portal-home .adm-mobile-ad-unit{
   display:block;position:relative;min-width:0;width:100%;margin:12px 0 18px;
   min-height:98px;height:clamp(98px,26vw,155px);
   background:#f5f9ff;border-radius:13px;overflow:hidden;border:1px solid #dfebf8;
 }
 body.portal-home .adm-mobile-ad-unit .adm-ad-placeholder{gap:3px;flex-direction:row;justify-content:space-between;padding:12px 17px}
 body.portal-home .adm-mobile-ad-unit .adm-ad-placeholder strong{font-size:13px}
 body.portal-home .adm-mobile-ad-unit .adm-ad-placeholder a{font-size:11px}
 body.portal-home .adm-mobile-ad-unit .adm-ad-placeholder-badge{position:absolute;top:7px;right:9px;font-size:9px}
 body.portal-home .adm-mobile-ad-unit .adm-ad-label{left:7px;bottom:5px}
 body.portal-home .adm-footer-directory{grid-template-columns:1fr 1fr;gap:17px}
 body.portal-home .adm-footer-directory-side{border-left:0;border-top:1px solid #e6edf3;padding:16px 0 0;grid-column:span 2}
}
@media(max-width:720px){
 body.portal-home .adm-top-campaign{margin:8px 12px 0}
 body.portal-home .adm-top-campaign .adm-ad-picture-wrap{height:84px;min-height:0}
 body.portal-home .adm-footer-notice-inner{padding:14px 16px;gap:10px;flex-wrap:wrap}
 body.portal-home .adm-footer-notice-inner a{width:100%;margin-left:0}
 body.portal-home .adm-portal-footer-v236 .portal-footer-inner{padding:14px 17px 88px}
 body.portal-home .adm-footer-directory{display:block;padding:10px 0 16px}
 body.portal-home .adm-footer-directory-group{padding:12px 0}
 body.portal-home .adm-footer-directory-side{padding:13px 0}
 body.portal-home .adm-footer-bottom{display:block;padding-top:18px}
 body.portal-home .adm-footer-bottom .portal-footer-brand img{width:171px;height:auto}
 body.portal-home .adm-footer-bottom-links{margin-top:15px;gap:9px 15px}
}
@media(prefers-reduced-motion:reduce){body.portal-home .adm-side-ad-unit:hover{transition:none}}

/* V251: video creatives use exactly the same ad-slot geometry as images. */
body.portal-home .adm-ad-picture-wrap video{display:block;width:100%;height:100%;object-fit:contain;object-position:center;max-width:100%;}
body.portal-home .adm-ad-picture-wrap video[hidden]{display:none;}
