.inline-icon {
    display: inline-block;
    width: 22px;
    height: 20px;
    background-repeat: no-repeat;
    margin-bottom: -3px;
}
#icon-nodes {
    background-image: url(i/icon-nodes.svg);
}
#icon-links {
    background-image: url(i/icon-links.svg);
}
#controls {
    border-bottom: 1px solid var(--eggshell-muddy);    
    padding-bottom: 5px;
}
#ctrl-row {
    display: flex;
    justify-content: space-between;
}
#ctrl-categories,
#ctrl-industries {
    display: flex;
    flex-wrap: wrap;
}
#ctrl-industries { 
    gap: 5px 3px; 
    margin-bottom: 18px;
}
#ctrl-industries .item {
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    text-transform: capitalize;
    padding: 9px 12px 7px;
    border: 1px solid var(--eggshell-muddy);
    border-radius: 3px;
    cursor: pointer;
}
#ctrl-industries .item:hover {
    background-color: var(--eggshell-muddy);
}
#ctrl-industries .item.active {
    color: var(--eggshell-light);
    background-color: var(--text);
    border-color: var(--text);
}
#ctrl-categories {
    margin-bottom: 6px;
    gap: 5px 25px;
}
#ctrl-categories .item {
    display: flex;
    gap: 7px;
    align-items: center;
}
#ctrl-categories .color-marker {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 12px;
}


#viz { margin-top: 30px; }
#viz svg {
    overflow: visible;
    margin-top: 25px;
    margin-bottom: 45px;
}
#nodes circle:not(.active-zone) {
    fill: var(--carmine-light);
    stroke: var(--eggshell-light);
    paint-order: stroke;
    stroke-width: 2.5;
    stroke-opacity: .8;
    transition: stroke .15s, stroke-width .15s, stroke-opacity .15s, fill .15s;
}
#nodes text {
    text-anchor: middle;
    fill: var(--text);
    pointer-events: none;
    transition: fill .15s, opacity .15s, stroke-opacity .15s;

    stroke: var(--eggshell-light);
	paint-order: stroke;
    stroke-width: 2.5;
    stroke-opacity: .25;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#nodes .single text { 
    opacity: 0;
}
#nodes .active circle:not(.active-zone),
#nodes .highlighted circle:not(.active-zone) {
    paint-order: stroke;
}
#nodes .active circle:not(.active-zone) {
    stroke-opacity: .4;
    stroke-width: 17;
}
#nodes .faded circle:not(.active-zone) { 
    fill: var(--eggshell-muddy)!important;
    stroke: var(--eggshell-muddy)!important;
}
#nodes .active text,
#nodes .highlighted text {
    stroke-opacity: .7;
    stroke-width: 3.5;
}
#nodes .active text { fill: #4D1717; }
#nodes .highlighted text { fill: #4D1717; }
#nodes .single.active text,
#nodes .single.highlighted text {
    opacity: 1;
}
#nodes .faded text {
    fill: var(--eggshell-text);
    fill-opacity: .6;
}

#links line {
    stroke: #4e4e4e;
    stroke-opacity: 0.15;
    transition: stroke .25s, stroke-opacity .25s;
}
#links line.highlighted { stroke: #4e4e4e; stroke-opacity: 0.6; }
#links line.faded { stroke-opacity: 0.05; }

#mesh { display: none; }

#tooltip {
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	pointer-events: none; 
	background: var(--text);
	color: var(--eggshell-light);
	position: absolute;
	padding: 15px 15px 10px;
	display: none;
	z-index: 1000;
	width: 100%;
	max-width: 250px;
    opacity: 0;
}
#tooltip .tt-name {
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 3px;
}
#tooltip .tt-category {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
#tooltip .tt-category .color-mark {
    width: 12px;
    height: 12px;
    border-radius: 12px;
}
#tooltip .tt-footer {
    margin: 12px -15px 0;
    border-top: 1px solid #6e6e6e;
    padding: 5px 15px 0;
    font-size: 12px;
    color: #c0c0c0;
}

#viz svg.disabled {
    filter: blur(3px) saturate(0) opacity(.7);
}

#popup-block {
	position: absolute;
	top: 0;
	width: 100%;
    height: 0;
	z-index: 150;
}

#popup-cover {
	position: absolute;
	top: 0;
    width: 100%;
    display: none;
	background: var(--eggshell-light);
    opacity: .2;
}

#popup-window {
	width: 300px;
	max-height: 420px;
	margin: 180px auto 60px;
	padding: 25px 25px 20px;
    font-size: 15px;
	background: var(--text);
    color: var(--eggshell-light);
    border-radius: 5px;
	position: relative;
    box-shadow: 0 25px 25px -10px rgba(48,48,48,.8),
        0 10px 15px -5px rgba(48,48,48,.8);
    transform: scale(0);
    transition: transform .25s;
}

#popup-close {
	display: block;
	width: 20px;
	height: 20px;
	background: url(i/icon-close.svg) center no-repeat;
	border: none;
	cursor: pointer;
	position: absolute;
	top: 15px;
	right: 15px;
}
#popup-close:hover { opacity: .6; }

#tool-info h4.tool-name {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 0;
}
#tool-info .tool-category {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}
#tool-info .tool-category .color-mark {
    width: 12px;
    height: 12px;
    border-radius: 12px;
}
#tool-info .tool-details { margin-bottom: 8px; }
#tool-info .popup-footer {
    margin: 30px -25px 0;
    border-top: 1px solid #4d4d4d;
    padding: 12px 25px 0;
    font-size: 12px;
    color: #c0c0c0;
}
#tool-info .tool-comment::before { content: "! "; }
#tool-info .tool-comment {
    font-style: italic;
    color: var(--carmine-pale);
    margin-top: 6px;
}

#popup-block.active #popup-cover { display: block; }
#popup-block.active #popup-window { transform: scale(1); }

#credits {
    border-top: 1px solid var(--eggshell-muddy);
    padding-top: 25px;
}
#credits p {
    font-size: 14px;
    font-style: italic;
    color: var(--eggshell-text);
    margin-bottom: 6px;
}

@media (max-width: 860px) {
    #ctrl-row {
        flex-direction: column;
        gap: 10px;
    }
    #viz svg { margin-bottom: 25px; }
}
@media (max-width: 660px) { #popup-window { margin-top: 60px; } }
@media (max-width: 480px) { #popup-window { margin-top: 30px; } }