/* Original resource links, without generic ad-filter class names. */
.resource-updates-position .resource-updates{margin:10px 0 12px}
.resource-updates-position .section-heading{margin:0 0 10px;min-height:0;padding:0;border:0}
.resource-updates-position .heading-text h2{font-size:18px;line-height:36px;padding:0 20px;background:#674b78;color:#fff}
.resource-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.resource-entry-grid>div{min-width:0;height:50px;line-height:50px;padding:0;border:0;border-radius:0;background:transparent;text-align:center;overflow:hidden}
.resource-entry-grid a{display:block;padding:0 15px;color:#f00;font-size:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.resource-entry-grid a:hover{color:#080;box-shadow:inset 0 0 5px #00c500}
.legacy-desktop-images:empty,.legacy-mobile-images:empty{display:none}
.legacy-desktop-images img,.legacy-mobile-images img{display:block;width:100%;height:auto}
.legacy-mobile-images{display:none}
.legacy-secondary-links{margin:10px 0;line-height:1.8}
@media(max-width:768px){.legacy-desktop-images{display:none}.legacy-mobile-images{display:block}}
@media(max-width:600px){.resource-entry-grid{grid-template-columns:1fr;gap:5px}.resource-entry-grid>div{height:40px;line-height:40px;text-align:left}.resource-entry-grid a{font-size:16px}.resource-updates-position .heading-text h2{font-size:16px;line-height:32px}}
/* Compact resource rows: no repeated caption; real URLs stay on one line. */
.directory-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:10px}
.directory-grid .directory-card{display:grid;grid-template-columns:30px minmax(0,1fr) 12px;gap:9px;align-items:center;min-height:60px;padding:10px 12px;container-type:inline-size}
.directory-grid .directory-card .resource-icon{width:30px;height:30px;border-radius:7px;display:grid;place-items:center}
.directory-grid .directory-card .resource-icon svg{width:20px;height:20px}
.directory-grid .directory-card>div{min-width:0}
.directory-grid .directory-card>svg{display:block;width:12px;height:16px;margin:0}
.directory-grid .directory-card strong{display:block;font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.directory-grid .directory-card--url strong{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-family:Consolas,ui-monospace,monospace;font-size:clamp(10px,calc((100cqw - 60px) / var(--resource-title-length) * 1.6),16px)}
@media(max-width:600px){.directory-grid .directory-card{min-height:54px;padding:8px 10px;gap:8px}.directory-grid .directory-card strong{font-size:15px}.directory-grid .directory-card--url strong{font-size:clamp(10px,calc((100cqw - 58px) / var(--resource-title-length) * 1.6),15px)}}
