/* directory listing page (/directory/<did>/): evergreen header band, core tabs, overview + sidebar. Cards, buttons, chips and link rows are the core .tf-box / .button1 / .tf-chip / .tf-linklist */
.dl{--dl-ever:#29691f;--dl-yel:#ffcd05;--dl-ink:#1c1d1f;--dl-grey:#5f6368;--dl-line:#e4e6e1;--dl-on-ever:#dbe9d6;color:var(--dl-ink)}
.dl :focus-visible{outline:3px solid var(--dl-ever);outline-offset:2px}
.dl-band :focus-visible{outline-color:var(--dl-yel)}
.dl-sprite{position:absolute;width:0;height:0;overflow:hidden}
.dl-num{font-variant-numeric:tabular-nums}
.dl-i{width:1.2em;height:1.2em;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dl .translate{position:relative}

/* header band, full bleed without widening the page */
.dl-band{background:var(--dl-ever);color:#fff;box-shadow:0 0 0 100vmax var(--dl-ever);clip-path:inset(-5px -100vmax 0);padding-top:12px}
/* #content-container's 5px top padding left a white strip under the nav; the clip above lets the band's fill cover it */
.dl-band a:not(.button1):not(.tf-chip){color:#fff}
.dl-band a:not(.button1):not(.tf-chip):hover{color:#fff;text-decoration-color:#fff}
.dl-crumb ul{margin:0;color:rgba(255,255,255,.5)}
.dl-crumb a{color:var(--dl-on-ever)!important}
.dl-crumb a:hover{color:#fff!important;text-decoration:underline}
.dl-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:28px;align-items:center;padding:20px 0 24px}
.dl-logo{min-width:112px;max-width:220px;height:112px;padding:10px;border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.dl-logo a{display:grid;place-items:center;width:100%;height:100%}
.dl-logo img{max-width:100%;max-height:92px;width:auto;height:auto;object-fit:contain}
.dl-initials{color:var(--dl-ever);font-weight:800;font-size:26px;letter-spacing:.02em}
.dl-title{font-size:clamp(28px,3.2vw,40px);line-height:1.1;letter-spacing:-.01em;margin:0;color:#fff;font-weight:700;text-wrap:balance}
.dl-titletype{display:block;margin-top:10px;font-size:16px;line-height:1.4;font-weight:400;letter-spacing:0;color:var(--dl-on-ever)}
.dl-meta{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;margin-top:8px;font-size:15px;color:var(--dl-on-ever)}
.dl-meta a:not(.tf-chip){text-decoration:underline;text-decoration-color:rgba(255,255,255,.45);text-underline-offset:3px}
.dl-meta .tf-chip:hover{text-decoration:none}
.dl-memberchip{background:var(--dl-yel)!important}
.dl-stars{display:inline-flex;gap:2px;color:rgba(255,255,255,.35)}
.dl-stars svg{width:16px;height:16px;fill:currentColor}
.dl-stars svg.on{color:var(--dl-yel)}
.dl-acts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dl-acts .button1{display:inline-flex;align-items:center;justify-content:center;gap:4px;font-weight:700}
/* core .outline is a soft 2px half-white ring; on the band a crisp 1px line, and core .selected (light grey on white) stays readable */
.dl-band .button1.outline{box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}
.dl-band .button1.outline:hover{box-shadow:none}
.dl-band .button1.outline.selected{background:rgba(255,255,255,.14);color:#fff}
.dl-count{font-weight:400;opacity:.85}
.dl .likebutton .if-selected{display:none}
.dl .likebutton.selected .if-selected{display:inline}
.dl .likebutton.selected .if-not-selected{display:none}
.dl .likebutton.selected .dl-i{fill:var(--dl-yel);stroke:var(--dl-yel)}

/* stats row */
.dl-stats{display:flex;border-top:1px solid rgba(255,255,255,.18);overflow-x:auto;scrollbar-width:none}
.dl-stats div{flex:none;white-space:nowrap;padding:14px 28px 16px 0;margin-right:28px;border-right:1px solid rgba(255,255,255,.18)}
.dl-stats div:last-child{border-right:0;margin-right:0}
.dl-stats b{display:block;font-size:26px;line-height:1.1}
.dl-stats span{font-size:13px;color:var(--dl-on-ever)}

/* core page tabs, kept in view while reading the overview */
.dl-tabs{position:sticky;top:0;z-index:20;background:#fff;padding-top:12px}
.dl-tabs ul.tabs{margin:0}
.dl-sub{padding:28px 0 48px}
.dl-sub__title{font-size:22px;line-height:1.2;font-weight:700;margin:0 0 14px}
.dl-sub .activityList{max-width:680px}

/* overview + sidebar */
.dl-page{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:48px;padding:28px 0 48px}
.dl-main{min-width:0}
.dl-sec{margin-bottom:40px;scroll-margin-top:64px}
.dl-sec:last-child{margin-bottom:0}
.dl-sec h2,.dl-sec h2.h3,.dl-sec h2.title{font-size:22px;line-height:1.2;font-weight:700;color:var(--dl-ink);margin:0 0 14px;padding:0;border:0;background:none;text-transform:none;letter-spacing:0}
.dl-sec h2 a,.dl-sec h2 a.green{color:inherit}
.dl-sec h2:not(:first-child){margin-top:28px}
.dl-sec .block{margin-bottom:0}
.dl-sec .boxcontent{padding:0;border:0;background:none}
.dl-sec #directoryDescription{font-size:16px;line-height:1.6;max-width:68ch}
.dl-chips{margin-top:16px;gap:8px}
.dl-chips .badge{margin:0}
.dl-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px 40px;align-items:start}
.dl-pair > div{min-width:0}
.dl-pair .eventlist{column-count:1;column-gap:0}
.dl-pair .eventlist > li{padding:10px 0;border-bottom:1px solid var(--dl-line);margin:0}
.dl-pair .eventlist a{font-weight:700}
.dl-pair .eventlist .grey{font-weight:400}

/* brands as chips */
.dl #brandsBlock{display:flex;flex-wrap:wrap;gap:8px}
.dl #brandsBlock h2{flex-basis:100%}
.dl #brandsBlock .col-4,.dl #brandsBlock ul.list{display:contents}
.dl #brandsBlock li{list-style:none;margin:0;padding:0}
.dl #brandsBlock li a{display:inline-block;font-size:14px;padding:6px 12px;border:1px solid var(--dl-line);border-radius:999px;color:var(--dl-ink)}
.dl #brandsBlock li:has(> a:empty){display:none}
.dl #brandsBlock li a:hover{border-color:var(--dl-ever);text-decoration:none}

/* sidebar */
.dl-aside{min-width:0}
.dl-aside > *{scroll-margin-top:64px}
.dl-ci{display:flex;gap:10px;font-size:15px;line-height:1.45;margin-bottom:12px;align-items:flex-start;min-width:0}
.dl-ci > div{min-width:0}
.dl-ci .dl-i{margin-top:2px;color:var(--dl-grey)}
.dl-ci ul{margin:0}
.dl-ci li{max-width:none!important}
.dl-gmap{display:block;width:100%;height:200px;border:0;border-radius:8px;margin-bottom:16px}
.dl-soc{margin-top:4px}
.dl-member-plan{font-size:17px;font-weight:700}
.dl-plans{list-style:none;margin:0 0 14px;padding:0}
.dl-plans li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--dl-line)}
.dl-plans li:last-child{border-bottom:0}
.dl-plans .grey{font-weight:400}
.dl-karma-ico{font-size:28px;line-height:1;color:var(--dl-ever)}
.dl-karma-note{font-style:italic;color:var(--dl-grey);margin-bottom:12px}
.dl-donors{list-style:none;margin:0;padding:0 16px 8px}
.dl-donors li{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:7px 0;border-bottom:1px solid #eceee9}
.dl-donors li:last-child{border-bottom:0}
.dl-donors img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.dl-donors a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dl-donors .grey{font-weight:400}
/* Pro affiliate card in the Pro brand colours (black, yellow) */
.dl .dl-procard{background:#000;border-color:#000;color:#fff}
.dl .dl-procard__title{margin:10px 0 6px;font-size:20px;line-height:1.2;color:#fff}
.dl .dl-procard p{color:#d6d6d6;margin:0 0 14px}
.dl-foot{font-size:13px;line-height:1.6;color:var(--dl-grey)}
.dl-foot a{color:var(--dl-grey);text-decoration:underline;text-underline-offset:2px}

@media (max-width:960px){
    .dl-page{grid-template-columns:minmax(0,1fr);gap:32px}
}
@media (max-width:640px){
    .dl-head{grid-template-columns:72px minmax(0,1fr);gap:16px 18px;padding:16px 0 18px}
    .dl-logo{min-width:72px;width:72px;height:72px;padding:6px}
    .dl-logo img{max-height:60px}
    .dl-initials{font-size:17px}
    .dl-titletype{font-size:15px;margin-top:6px}
    .dl-acts{grid-column:1/-1;justify-content:stretch}
    .dl-acts .button1{flex:1;justify-content:center}
    .dl-stats div{padding-right:18px;margin-right:18px}
    .dl-stats b{font-size:22px}
    .dl-page{padding-top:24px}
}
