/* Directory Hub Starter 2.4. All styles are scoped to .ydh for Kadence compatibility. */
.ydh{--ydh-gold:#ffc400;--ydh-brown:#1b1503;--ydh-navy:#111827;--ydh-nav-hover:#ffda4d;--ydh-link-hover:#8892a5;color:#fff;background:transparent;border:0;padding:0;margin:0 auto;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;max-width:100%;}
.ydh *,.ydh *:before,.ydh *:after{box-sizing:border-box}
.ydh a{text-decoration:none!important}.ydh a:focus-visible{outline:3px solid #fff!important;outline-offset:4px}
/* Icon homepage: visually similar layout, independently styled and editable icons. */
.ydh-home{max-width:890px!important;padding:0;margin:0 auto}
.ydh-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:22px;row-gap:22px;width:100%;}
.ydh-card{min-height:162px;display:flex;gap:13px;align-items:center;justify-content:center;padding:20px 15px;background:var(--ydh-brown);border:2px solid var(--ydh-gold);border-radius:38px;box-shadow:0 8px 15px rgba(255,196,0,.18),0 0 8px rgba(255,196,0,.1);color:var(--ydh-gold)!important;transition:background .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;}
.ydh-card-icon{flex:0 0 86px;width:86px;height:88px;display:flex;align-items:center;justify-content:center;line-height:1;}
.ydh-card-icon .ydh-emoji{font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif;font-size:70px;line-height:1;display:block;}
.ydh-card-icon img{display:block;max-width:85px;max-height:86px;width:100%;height:100%;object-fit:contain;border:0;background:transparent}
.ydh-card-name{color:inherit!important;font:700 17px/1.3 Arial,Helvetica,sans-serif;text-align:left;overflow-wrap:anywhere}
.ydh-card:not(.is-disabled):hover,.ydh-card:not(.is-disabled):focus-visible{background:var(--ydh-gold)!important;color:#111!important;box-shadow:0 0 19px rgba(255,196,0,.58),0 11px 22px rgba(255,196,0,.24);transform:translateY(-3px)}
.ydh-card.is-disabled{opacity:.55;cursor:not-allowed}
/* Shared yellow pills, same page structure for every category. */
.ydh-page{max-width:900px!important;padding:0;margin:0 auto}
.ydh-nav{display:flex;flex-wrap:wrap;gap:11px 14px;align-items:center;justify-content:center;max-width:610px;margin:0 auto 28px;}
.ydh-nav-item{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 19px;background:var(--ydh-gold);color:#080808!important;border:1px solid transparent;border-radius:6px;font:400 16px/1.3 Arial,Helvetica,sans-serif;white-space:nowrap;transition:background .16s ease,transform .16s ease,box-shadow .16s ease}
.ydh .ydh-nav-item:not(.is-disabled):hover,.ydh .ydh-nav-item:not(.is-disabled):focus-visible{background:var(--ydh-nav-hover)!important;color:#000!important;box-shadow:0 0 11px rgba(255,196,0,.48);transform:translateY(-2px)}
.ydh-nav-item.is-current{box-shadow:inset 0 -3px 0 rgba(0,0,0,.5);font-weight:700}
.ydh-nav-item.is-disabled{opacity:.45;cursor:not-allowed}
/* Category resource buttons: vertical and centered, hover changes navy to slate grey. */
.ydh-resource-list{display:flex;flex-direction:column;gap:31px;max-width:680px;margin:0 auto;}
.ydh-resource-button{min-height:66px;width:100%;display:flex;align-items:center;justify-content:center;gap:13px;padding:16px 18px;border-radius:6px;background:var(--ydh-navy);color:#fff!important;font:700 16px/1.3 Arial,Helvetica,sans-serif;box-shadow:none;transition:background .15s ease,transform .15s ease,box-shadow .15s ease;overflow-wrap:anywhere;text-align:center}
/* Left icon + hostname stay grouped and centered inside each resource button. */
.ydh-resource-inner{display:inline-flex;align-items:center;justify-content:center;gap:12px;max-width:100%;min-width:0}
.ydh-resource-icon{display:inline-flex;flex:0 0 23px;width:23px;height:23px;align-items:center;justify-content:center;color:#f7f8fc}
.ydh-resource-svg{display:block;width:23px;height:23px;flex:none}
.ydh-resource-icon img{display:block;width:23px;height:23px;object-fit:contain;border:0;background:transparent}
.ydh-resource-emoji{font:normal 22px/1 Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif}
.ydh-resource-name{min-width:0;overflow-wrap:anywhere}
.ydh-resource-button:hover,.ydh-resource-button:focus-visible{background:var(--ydh-link-hover)!important;color:#fff!important;box-shadow:0 2px 7px rgba(130,142,165,.25)}
.ydh .ydh-empty{font-size:14px;color:#b2b7c1;text-align:center;padding:20px 0}
.ydh-only-links{max-width:680px}
@media(max-width:930px){.ydh-card-grid{gap:13px}.ydh-card{min-height:145px;padding:15px 10px;border-radius:30px}.ydh-card-icon{flex-basis:72px;width:72px;height:76px}.ydh-card-icon .ydh-emoji{font-size:61px}.ydh-card-name{font-size:15px}}
@media(max-width:680px){.ydh-home,.ydh-page{padding:0}.ydh-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.ydh-card{min-height:116px;gap:7px;padding:12px 7px;border-radius:20px}.ydh-card-icon{flex:0 0 51px;width:51px;height:60px}.ydh-card-icon .ydh-emoji{font-size:45px}.ydh-card-icon img{max-height:58px}.ydh-card-name{font-size:13px}.ydh-nav{gap:8px;margin:20px auto 23px}.ydh-nav-item{font-size:14px;padding:9px 12px;min-height:42px;border-radius:5px}.ydh-resource-list{gap:17px}.ydh-resource-button{min-height:74px;padding:18px 16px;font-size:17px;line-height:1.35}}
@media(max-width:380px){.ydh-card{padding:9px 5px;gap:4px}.ydh-card-icon{width:44px;flex-basis:44px}.ydh-card-icon .ydh-emoji{font-size:38px}.ydh-card-name{font-size:12px}}
@media(prefers-reduced-motion:reduce){.ydh-card,.ydh-nav-item,.ydh-resource-button{transition:none!important;transform:none!important}}

/* Center any final single card instead of leaving a visually unbalanced last row. */
@media(min-width:681px){.ydh-card-grid>.ydh-card:last-child:nth-child(3n + 1){grid-column:2}}
@media(max-width:680px){.ydh-card-grid>.ydh-card:last-child:nth-child(2n + 1){grid-column:1 / -1;justify-self:center;width:calc((100% - 11px)/2)}}

@media(max-width:680px){.ydh-resource-inner{gap:11px}.ydh-resource-icon,.ydh-resource-svg,.ydh-resource-icon img{width:25px;height:25px}.ydh-resource-icon{flex-basis:25px}.ydh-resource-emoji{font-size:24px}}

/* Optional nested groups for Music, eBooks and future category subdivisions. */
.ydh-resource-collection{max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:36px}
.ydh-resource-group{margin:0;padding:0;background:none;border:0}
.ydh-resource-heading{margin:0 0 16px!important;padding:0;color:#fff!important;font:700 21px/1.3 Arial,Helvetica,sans-serif;text-align:left}
.ydh-resource-group .ydh-resource-list{margin:0 auto}
.ydh-resource-icon .ydh-emoji{font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif;font-size:22px;line-height:1}
.ydh-resource-icon img{width:23px!important;height:23px!important;object-fit:contain}
@media(max-width:680px){.ydh-resource-collection{gap:25px}.ydh-resource-heading{font-size:18px;margin-bottom:12px!important}.ydh-resource-icon .ydh-emoji{font-size:20px}}

/* Homepage uploaded icons reuse the original image slot without loading emoji fallbacks. */
.ydh-card-icon .ydh-home-uploaded-icon{display:block;width:100%;height:100%;max-width:85px;max-height:86px;object-fit:contain;border:0;background:transparent}
@media(max-width:680px){
  .ydh-resource-icon img{width:25px!important;height:25px!important}
  .ydh-resource-icon .ydh-emoji{font-size:24px}
  .ydh-card-icon .ydh-home-uploaded-icon{max-height:58px}
}
