.directory .ep-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.3vw,20px);grid-auto-rows:1fr}.ep-tile{min-width:0;overflow:hidden;border:1px solid #d8e2ee;border-radius:14px;background:white;box-shadow:0 3px 12px #12365510}.ep-tile>a{height:100%;display:flex;flex-direction:column;text-decoration:none;color:#102e50}.ep-tile:focus-within{outline:3px solid #246ac1}.ep-tile>a>img{display:block;width:100%;aspect-ratio:1.9;height:auto;background:#f0f4f9}.ep-portrait{object-fit:contain;object-position:center}.ep-card-image{object-fit:contain}.ep-copy{display:flex;flex-direction:column;flex:1;min-width:0;padding:clamp(10px,1.3vw,18px);gap:9px}.ep-copy h3,.ep-copy p{margin:0}.ep-meta,.ep-copy h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ep-meta{font-size:.83rem;color:#486078}.ep-copy h3{font-size:clamp(16px,1.6vw,23px)}.ep-tags{display:flex;flex-wrap:wrap;align-content:flex-start;gap:4px}.ep-tags span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#e9f1ff;color:#174780;border-radius:12px;padding:3px 7px;font-size:.78rem}.ep-intro{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5;height:3em;color:#40556c}.ep-button{margin-top:auto;padding:10px 2px;background:#10477d;color:white;font-weight:700;border-radius:8px;text-align:center}.ep-shortcuts{margin:8px 0}.ep-shortcuts summary{cursor:pointer}@media(max-width:760px){.directory .ep-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-button{font-size:.85rem}}
.ep-photo{display:grid;place-items:center;padding:12px;background:#f5f7fa}
.ep-photo img{display:block;width:72%;height:auto;aspect-ratio:1;border-radius:13px;background:white}
.ep-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:2px solid #1e5287;padding:16px 0}
.ep-heading h2{margin:0}.ep-heading small{color:#175ca5}
.ep-heading nav{display:flex;flex-wrap:wrap;gap:6px}.ep-heading nav a{padding:6px 12px;border-radius:8px;font-weight:650;background:#f6f8fc;color:#193e64;text-decoration:none;border:1px solid #d9e2ed}.ep-heading nav a[aria-current]{background:#10477d;color:white}
@media(max-width:760px){.ep-photo{padding:8px}.ep-photo img{width:85%}.ep-heading nav a{font-size:13px;padding:5px 8px}}

@media (min-width: 1160px) {
  main.experts:has(.ep-heading) {
    box-sizing: border-box;
    width: 94%;
    max-width: 1640px;
    padding-inline: 0;
  }
  .directory .ep-photo img {
    width: 80%;
  }
}

.directory .directory-hero{padding:0;background:none}
.directory .directory-hero header{display:flex;align-items:center;gap:clamp(12px,3vw,44px);min-height:132px;padding:20px clamp(14px,3vw,46px);border-radius:14px;background:linear-gradient(90deg,#071d40 8%,#0b346bee 53%,#15428250),url('/images/expert-samples/directory-hero.webp') right center/cover;color:white}
.directory .directory-hero header h1 span{background:none;padding:0;color:inherit;border-radius:0}
.directory .directory-hero header h1{color:white;margin:0;font-size:clamp(23px,3vw,44px)}
.directory .directory-hero header p{color:#e2edff}
.directory-brand{width:clamp(95px,13vw,185px);height:auto;background:white;border-radius:8px;padding:5px}
.directory .directory-hero .filters{margin-top:12px}
.directory .ep-tile{position:relative;display:flex;flex-direction:column;padding:7px;background:white}
.ep-visual{position:relative;overflow:hidden;border-radius:10px;background:#eff3f8}
.ep-visual img{display:block;width:100%;aspect-ratio:1;height:auto;object-fit:contain;object-position:center}
.ep-visual strong{position:absolute;top:7px;left:7px;background:#ffe395;color:#162744;padding:3px 9px;border-radius:6px;font-size:.84rem}
.ep-nameplate{background:#082c56;color:white;text-align:center;padding:9px 5px}
.ep-nameplate h3{margin:0;font-size:clamp(16px,1.25vw,22px);line-height:1.35;overflow-wrap:anywhere}
.ep-nameplate small{display:block}
.ep-services{list-style:none;padding:0;margin:0}.ep-services li{display:flex;gap:6px;line-height:1.5}.ep-services li::before{content:"✓";color:#1557af;font-weight:800}
.ep-links{display:flex;gap:5px;margin-top:auto}.ep-links a{flex:1;text-align:center;text-decoration:none;font-weight:700;border:1px solid #aac0da;border-radius:7px;color:#12385d;padding:7px 1px}.ep-links a:last-child{background:#10477d;color:white}.ep-links a:first-child::after{content:"";position:absolute;inset:0}.ep-links a:last-child{position:relative}
@media(min-width:1400px){.directory .ep-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){.directory .directory-hero header{padding:14px;min-height:106px}.directory-brand{width:80px}.ep-links{flex-wrap:wrap}.ep-links a{min-width:60px;font-size:12px}}

/* Compact directory at native browser scale, with readable Korean type. */
main.experts:has(.ep-grid), main.experts:has(.ep-heading) {
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
@media (min-width: 1160px) {
  main.experts:has(.ep-heading) {max-width:1230px;margin-block-start:24px}
  .directory .directory-hero header {min-height:106px;padding:14px 26px}
  .directory .directory-hero header h1 {font-size:32px}
  .directory .directory-hero header p {font-size:14px}
  .directory-brand {width:138px}
  .directory .ep-grid {grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
  .directory .ep-copy {padding:10px;gap:7px}
}
.directory .ep-nameplate h3 {font-size:18px;font-weight:800;line-height:1.35;color:#fff;letter-spacing:-.035em}
.directory .ep-nameplate small {color:#fff;font-size:16px;font-weight:700;line-height:1.45;margin-top:3px}
.directory .ep-services {color:#182432;font-size:15px;font-weight:650;line-height:1.5}
.directory .ep-intro {color:#2b3540;font-size:14px;line-height:1.55;height:3.1em}
.directory .ep-meta {color:#34485c;font-size:13px;font-weight:600}
.directory .ep-links a {font-size:14px}
